WeylandYutani Posted September 29, 2016 Share Posted September 29, 2016 I am having a problem in which decimals that are zero get deleted. The option to display 2 decimals is enabled, but the code I get on product pages is as follows: <link itemprop="availability" href="https://schema.org/InStock"> <span id="our_price_display" class="price" itemprop="price" content="145">$145.00</span> As you can see the price returned is 145 instead of 145.00 (which is what it's displayed on the front end) I would greatly appreciate any help you guys could give me. Thank you in advanced. Link to comment Share on other sites More sharing options...
Krystian Podemski Posted September 29, 2016 Share Posted September 29, 2016 Try to edit product.tpl and where you have this variable on content="" use |string_format modifier for Smarty. Example: {$number|string_format:"%.2f"} Link to comment Share on other sites More sharing options...
WeylandYutani Posted September 30, 2016 Author Share Posted September 30, 2016 Thank you, that solved the issue 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