Jump to content

Help with smarty operation


Recommended Posts

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 by zell9999 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...