Jump to content

[solved] Hide out ofstock items


Freds

Recommended Posts

Hello I need help to get out of stock items to be automatically hidden.

 

The mysql thing did not work it complained about to old mysql version so it has to be a noter way.

 

Give me offer and a about when it might be done.

 

Prestashop version 1.5.4.1

 

/

Fredrik

Link to comment
Share on other sites

i suppose that he want to hide the products which aren't in stock, not only "block" ordering

 

The mysql thing did not work
you're talking about triggers (tutorial: hide out of stock products) ???

 

You can also run cron job - run php script with sql query:

UPDATE ps_product_shop SET active=0 WHERE id_product IN (SELECT id_product FROM ps_stock_available WHERE quantity=0);
UPDATE ps_product_shop SET active=1 WHERE id_product IN (SELECT id_product FROM ps_stock_available WHERE quantity>0);

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