Cesare77 Posted January 11 Posted January 11 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 More sharing options...
jmauclair Posted January 11 Posted January 11 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 More sharing options...
Cesare77 Posted January 11 Posted January 11 I thank you for your answer but I would need further help. Share this post Link to post Share on other sites More sharing options...
jmauclair Posted January 11 Posted January 11 https://devdocs.prestashop-project.org/8/themes/reference/templates/ Share this post Link to post Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now