If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Doing a mass duplicate of a batch of products

Doing a mass duplicate of a batch of products

Started by rarpsl on 12 Oct 2012, 9:56 AM · Views: 934

Results 1 to 5 of 5
12 Oct 2012, 9:56 AM
#1
rarpsl avatar

rarpsl

New Zenner

Join Date:
Feb 2011
Posts:
26
Plugin Contributions:
0

Doing a mass duplicate of a batch of products

I have 50 products that all have 2012 in their name. I want to copy them to create new items which have 2013 names (ie: Each will thus be a duplicate of the 2012 just with a new ProductID number but still have a 2012 name). Is there any way to do a mass duplicate or must I select each and hit the c icon?

Since all of the 2012 products are disabled I can then dump that one table and edit the product records (changing the 2012 to 2013 in the cloned records) in the .sql dump file, set the site to maintenance mode, upload the table, and go out of maintenance mode (the cart being down for under a minute).

If there is no mass copy method, I guess I am reduced to doing the duplication one product at a time or creating them by cloning the commands in the .sql file (there seems to be only 2 tables involved and the product IDs is an auto-increment so altering that field to 0 will increment it). This update would be done to a temp database that I create to allow the update of the two tables followed by another dump.

Thanks for any suggestions.

12 Oct 2012, 3:50 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Doing a mass duplicate of a batch of products

Your 2012 items if deleted will mess up customers history

Best to just disable that category

You can copy a full category then edit 2012 to 2013 before enabling it

Zen-Venom Get Bitten

12 Oct 2012, 7:42 PM
#3
rarpsl avatar

rarpsl

New Zenner

Join Date:
Feb 2011
Posts:
26
Plugin Contributions:
0

Re: Doing a mass duplicate of a batch of products

kobra:

Your 2012 items if deleted will mess up customers history

Best to just disable that category

You can copy a full category then edit 2012 to 2013 before enabling it

I was not planning on deleting the old products but just using the copy option to make a duplicate of them. In prior years there were only a few products (they were memberships at a convention) and it was easy to do this. Last year we decided to also use the system to allow online ordering of Dealer's table space and display space in our Art Show (which used to only be payable by check). I will look into your suggestion of cloning the Dealer's room and Art Show Categories and see if that works. If it does, all I will then need to do is change the parm passed from my site to point at the new category.

Thanks for the suggestion. I just wish that there was a mass dupe with-in category option which would make my task easier (I would still need to manually alter the names but as I noted, I can do that in the .sql dump file by a mass find/replace).

12 Oct 2012, 7:53 PM
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Doing a mass duplicate of a batch of products

  1. Use this to bulk duplicate products.
    http://www.zen-cart.com/showthread.php?180447-Multiple-Products-%28Copy-Move-Delete%29

  2. Export the products from this category (Apsona/Easypopulate).

  3. Bulk rename in a spreadsheet

  4. Import back in

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...