manonpiano Posted July 25, 2015 Share Posted July 25, 2015 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 More sharing options...
tomerg3 Posted July 27, 2015 Share Posted July 27, 2015 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 More sharing options...
manonpiano Posted August 16, 2015 Author Share Posted August 16, 2015 I haven´t tried it yet but i never thought it could be so simple!, most of the sentences i´ve found works by joining the tables: ps_product and ps_product_shop thanks for the reply!. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now