Jump to content

Blockspecial module how to show only products with "on sale" flag ?


Theox

Recommended Posts

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

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

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