Jump to content

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


Cesare77
 Share

Recommended Posts

Hello everybody,

I would need to make sure that only products with a discount amount greater than 10% are shown on the Price Drop page.

Can anyone suggest me how to do it?

Thanks so much

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More