Jump to content

How to display prices in value ?


Leana

Recommended Posts

Hello,

I have a problem with Prestashop 1.7 because everytime I want to do a mathématiques equation with price value, it turns out wrong :

For the value "price", I found out the value "price_amount" which shows the decimals

But for the value "discount", I don't know how to do...

{$unit_price = $quantity_discount.discount|floatval}

I tried Floatval, but it doesn't change anything..

Thanks for your help !

 

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...