The products_to_categories table is in your database ...
You can visually see it with phpMyAdmin from your Control Panel for your domain ...
The command I gave you just issues the command to take all of the products that are assigned to the categories_id 0 and set them all to categories_id 1 so that when you make your first Category and it is assigned the categories_id 1 all of the Products will be associated with it so you can Move them to new Categories that you will be able to create ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thank you very much.
I found the php file but I don't know where to make those changes. So I guess I'll delete every files and start all over again. It seemed not to be too complicated but I'm not familiar with php so I don't want to mess things up.
thank you for your time.
philippe
All you have to do is go to your Zen Cart Admin and click on the TOOLS ... INSTALL SQL PATCHES ... and in the box enter:
And then go back to Catalog ... Categories/Products ... and click on the NEW CATEGORY button that should now be show and ADD you first Category which should end up as categories_id and when you SAVE that new first Category all of your Products will "magically" appear in that new Category ...Code:UPDATE products_to_categories SET categories_id = 1 where categories_id = 0;
Now, you can make your Categories and MOVE these Products to the right Category without having to delete them all and remake each one of them ...
If you don't care about deleting each Product that you already made, then delete each one ... otherwise, run that command after backing up your database ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I have a similar problem. I accidentally added products that were supposed to be in a sub-category into the main category using EP. Can I use this same solution?
So I could change:
toCode:UPDATE products_to_categories SET categories_id = 1 where categories_id = 0;
Then delete the new category? Or would this also move the subcategories?Code:UPDATE products_to_categories SET categories_id = (NewNumber) where categories_id = (CurrentMainCategory);
I thought I had a good backup, which I always do before I EP. Unfortunately, I had made a mistake, and lost my backup, so now I have a big mess to clean up. I'm trying to avoid having to delete my whole catalog and reinstall it.
Thanks,
Jessica
www.bestfriendsquilts.com
The idea is, your Products are in the products_to_categories under categories_id XXX and you want to put them in the next categories_id you create YYY but to do that you need to first get them out of the current categories_id XXX to a categories_id not yet used YYY ...
If you ONLY have categories_id XXX on ALL products, you can use:
If you have several categories_id and just need to fix one categories_id set of products then you can use:Code:UPDATE products_to_categories SET categories_id = YYY;
Once you do that, youCode:UPDATE products_to_categories SET categories_id = YYY where categories_id = XXX;
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
NOTE: you also need to update the master_categories_id on the products table to reflect this change ...
There are several ways to do this, or, if you move them into New Real Categories that will be done for you during the Move ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!