Jump to content

[SOLVED] shop products where on_sale=1 but where is no reduction price


Recommended Posts

Hi,

I found out that when you change a product to a reduction product without entering a reduction price it is not shown at the price_drop page.

I import a hugh xml catalogue where reduction are set by the reduction_from / reduction_to date and the on_sale parameter to 1.

is there any possibility to show all those special product without a need of a reduction price?

thx

Link to comment
Share on other sites

Try editing classes/Product.php and changing line 1224 (in PrestaShop v1.3.1) from:

AND (`reduction_price` > 0 OR `reduction_percent` > 0)



to:

AND `on_sale` = 1



and line 1246 from:

WHERE (`reduction_price` > 0 OR `reduction_percent` > 0)



to:

WHERE `on_sale` = 1

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