Jump to content

Default Category mass change directly in database


Recommended Posts

Hello i´m trying to find the correct sentence to change the default category on a massive amount of products (near 2000)

 

www.castlerockstamps

 

the category CUBA (54) have many items with it´s default category at HOME and it needs to be changed to its own category from it belongs  i mean,  change them to the default category as CUBA (54) not HOME

 

any help will be greatly appreciated, thanks in advance!.

 

 

Link to comment
Share on other sites

First, make a backup of ps_product, just to be safe.

 

In the example below X is the current id_category, and Y is the new id_category.

 

 

UPDATE ps_product SET id_category_default = Y WHERE id_category_default = X
Link to comment
Share on other sites

  • 3 weeks later...

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