Jump to content

[Solved] Use More Than One Digit % Discount But Display Rounded


Recommended Posts

Hi guys,


we use a very VERY modified 1.3 and we would like to be able to enter comma-quantity discounts in admin unter percent discount - which presta handles really well in backend but what we need is a rounded view for the frontend product page.


So, if we enter a % discount of lets say 10.11123% in backend we display it in frontend product page like this: "You save 10.11123%" - and we use the {$product->reduction_percent} variable for this in product.tpl - what we want is only display "You save 10%" without the commas in frontend - is that possible? Can anyone help? =)



Edited by miss-d (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...