Theox Posted July 13, 2016 Share Posted July 13, 2016 Hi. I would need to change blockspecials module to show only the products with the "on sale" flag activated"? I have no need to show all the products with special prices but only those with the attribute on sale. Thanks in advance ! Teo Link to comment Share on other sites More sharing options...
rocky Posted July 14, 2016 Share Posted July 14, 2016 I suggest that you create override/classes/Product.php and then copy the getRandomSpecial function from classes/Product.php and change all WHERE to WHERE p.`on_sale` = 1 AND to filter out specials that aren't on sale. If you want the same on the "Prices drop" page, you'll need to copy the getPricesDrop function and do the same. 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