jazznuts699:
there must be dependencies somewhere... i ran this query and my products are still under the old categories even though the master_categories_id changed to 71... :) good thing i did a backup of the db prior to the update
any insight on what else i need to update? what other tables
answered my own question... here is the other table you need to modify :) 'products_to_categories'
here is what i ran for my scenario
UPDATE products_to_categories
SET categories_id = '71'
WHERE categories_id NOT IN (71, 72)
so if you wanted to move your 10 products from CAT 1 to CAT 30 do it like this
UPDATE products
SET master_categories_id = '30'
WHERE master_categories_id = '1';
then you update the products_to_categories table
UPDATE products_to_categories
SET categories_id = '30'
WHERE categories_id = '1';
your category id is listed in the admin page under products/categories
i would run a couple select statements before you run the update to ensure you are grabbing the correct products
for example in phpmyadmin (in zencart database, select sql tab)
SELECT *
FROM products
WHERE master_categories_id = '1'; --write down result (# of rows)
this will show you what products you want to move
then check the caterogy_id's in
SELECT *
FROM products_to_categories
WHERE categories_id = '1'; --write down result (# of rows)
when you run the update statement for each table the # of rows or affected rows should be the same.
RUN A DATABASE BACKUP before hand :)