ddaniele Posted November 27, 2015 Share Posted November 27, 2015 Hello, Did not find anything on the topic, does anyone know of how to retrieve the file extension (.pdf, .doc etc...) of a product attachment (related to product) Any help would be appreciated. Thanks Link to comment Share on other sites More sharing options...
ddaniele Posted November 28, 2015 Author Share Posted November 28, 2015 Found a solution, {assign var="var" value=$attachment.file_name} {$attachment.name|escape:'html':'UTF-8'}{' ('}{($var|substr:($var|strpos:"."+1))|upper}{')'} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now