birchoff Posted January 24, 2020 Share Posted January 24, 2020 Hi, on PS 1.7.6.0 on frontend I'm showing few dimension variables like: {$product.width} {$product.depth} {$product.height} On backend I write them in Shipping tab in format like: "5", "10", "23" etc. But on front they show in format "5.000000", "10.000000" etc. How to show them without zeros after . ? I would like to show them in format "5", "10" etc. like on backend... Link to comment Share on other sites More sharing options...
birchoff Posted January 27, 2020 Author Share Posted January 27, 2020 Anyone? Link to comment Share on other sites More sharing options...
JBW Posted January 27, 2020 Share Posted January 27, 2020 You can use smarty format modifiers e.g. https://www.smarty.net/docsv2/en/language.modifier.string.format.tpl Link to comment Share on other sites More sharing options...
birchoff Posted January 27, 2020 Author Share Posted January 27, 2020 Works for me! Tnx! 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