zunxunz Posted March 14 Share Posted March 14 (edited) In earlier versions of Prestashop it used to be possible to display a number as a price using the smarty method convertPrice in a smarty template. Example: {convertPrice price=$price|floatval} This method does not seem to exist anymore in Prestashop 8. So, how would I display a number as a price? Edited March 14 by zunxunz (see edit history) Link to comment Share on other sites More sharing options...
Daresh Posted March 14 Share Posted March 14 {Context::getContext()->currentLocale->formatPrice($price, Context::getContext()->currency->iso_code)} 1 1 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 14 Share Posted March 14 Link to comment Share on other sites More sharing options...
Knowband Plugins Posted March 15 Share Posted March 15 Format the price in the PHP file & assign it to the tpl file and use the same in the TP file. 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