Jump to content

My SQL Query to deactivate products in my shop.


adrianwalerczak

Recommended Posts

Hello everyone.

 

I write my own script to deactivate the products in my shop.

SQL:

1) "UPDATE ps_product SET active=0, redirect_type=404 WHERE id_product IN (".implode(',',$itemsDeactivate).")";

2) "UPDATE ps_product_shop SET active=0, redirect_type=404 WHERE id_product IN (".implode(',',$itemsDeactivate).")";

Query works fine, but when I refresh the page these products continue to see.

What am I doing wrong - help.

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