Jump to content

How To show only products with a certain % discount on the Price drop page


Cesare77

Recommended Posts

You should check on your product template, check the variables set, you usually have a variable product in which is stored the intial price and the specific price, then you can do a math equation in smarty to find out the percentage, then you will be able to a if statement to only show when it's over 10%

Smarty math : https://www.smarty.net/docsv2/fr/language.function.math.tpl

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