Monovolador Posted March 20, 2019 Share Posted March 20, 2019 (edited) Hello, I'm trying to do math operation between two variables inside product-discounts.tpl but result is wrong... {$product.regular_price} [output: 12,85 €] {$quantity_discount.discount} [output: 9.8%] {$product.regular_price*$quantity_discount.discount} [output: 117,6] Should be: 12.85*9.8= 125.93 Any idea? I've tryed: {$product.regular_price|floatval} [output:12] Should be: 12.85 Thanks in advance Prestashop 1.7 Edited March 20, 2019 by zell9999 (see edit history) 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