Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / HELP! Need to copy full categories

HELP! Need to copy full categories

Locked

Views: 1,083

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
19 Mar 2007, 8:49 PM
#1
Join Date:
Jan 2007
Location:
Akron, OH
Posts:
11
Plugin Contributions:
0

HELP! Need to copy full categories

Hello, I hope that you can help me with my problem.

I have a store and I have 1,000 products that need to be copies to two other categories, to make a total of 3,000 product. The reason why I am doing this is because even though its the same product they are for difference colors/styles which mean they have a difference product code. I will then just change any information needed with quick update.

Please help, this is what I need to do:

Copy a category or a subcategory to another category or subcategory. They are already full of products so I want to move them.

20 Mar 2007, 12:55 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: HELP! Need to copy full categories

if you were to do a select in phpMyAdmin for:

SELECT products_id, categories_id as '3' from products_to_categories where categories_id = 10;

where 3 is the new categories_id you want and 10 is the old categories_id ... this would create a new products_to_categories data group that can now be exported as data only then imported and all of the Products that were in categories_id 10 will now also in categories_id 3 as Linked Products ...

WARNING: backup your database before attempting this ...

20 Mar 2007, 12:56 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: HELP! Need to copy full categories

Oh wait ... you want to make NEW products or LINKED products?

20 Mar 2007, 12:12 PM
#4
Join Date:
Jan 2007
Location:
Akron, OH
Posts:
11
Plugin Contributions:
0

Re: HELP! Need to copy full categories

We need new products, or unlinked products.

20 Mar 2007, 5:17 PM
#5
Join Date:
Jan 2007
Location:
Akron, OH
Posts:
11
Plugin Contributions:
0

Re: HELP! Need to copy full categories

So this is the best way to copy a category? How do I then unlink the products?

21 Mar 2007, 1:18 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: HELP! Need to copy full categories

No the method I described only would work for Linked Products ...

There is not a built in method for this at this time to create mass duplicate products for a new category ...

You could do something similar with the tables for:
products
products_description
products_to_categories

And manipulate the products_id and categories_id to copy these but it would take some time to really work out the details on doing this for you ...

Perhaps post something in the Commercial Help Wanted on this ...

22 Mar 2007, 4:12 PM
#7
Join Date:
Jan 2007
Location:
Akron, OH
Posts:
11
Plugin Contributions:
0

Re: HELP! Need to copy full categories

Well can i just unlink the products? Is there a way to keep the product, but just unlink it?

23 Mar 2007, 3:45 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: HELP! Need to copy full categories

No ... and Linked product is not a Product it is a reference