Cesare77 Posted January 11, 2023 Share Posted January 11, 2023 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 Link to comment Share on other sites More sharing options...
jmauclair Posted January 11, 2023 Share Posted January 11, 2023 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 More sharing options...
Cesare77 Posted January 11, 2023 Author Share Posted January 11, 2023 I thank you for your answer but I would need further help. Link to comment Share on other sites More sharing options...
jmauclair Posted January 11, 2023 Share Posted January 11, 2023 https://devdocs.prestashop-project.org/8/themes/reference/templates/ Link to comment 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