Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Exporting and importing products

Exporting and importing products

Locked

Views: 2,001

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Mar 2007, 3:40 AM
#1
lostinspace avatar

lostinspace

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Exporting and importing products

Looks like I messed up my Zen install this weekend (first timer).
I've loaded about 50 products in the top level category, and now realize this is not the best way of doing things.:oops:

How can I export the products data before deleting them in order to create the categories? Then I guess I need to figure out how to import all of that data back in, and place into the new category I'm going to create?

I've looked at the MySQL DB, and see a few tables that contain data, but I don't know how they are related.

In a nutshell, I need to export or backup my product data. 2, delete all of the products. 3, Create the single category (Its for optics). 4, then import the products back in, associating them with the new category.

I've looked at EZPopulate, and even tried to export some data, but it doesn't look like it has all of my data.

Thanks,
LIS

19 Mar 2007, 3:52 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Exporting and importing products

Edit the products_to_categories table and replace all categories_id with 1

What this will do is "move" them out of the Top Level category ...

Now make a Category ... this will be categories_id 1 and the products will magically appear in there after the new categories_id 1 is made ...

Nifty eh? :cool:

19 Mar 2007, 1:51 PM
#3
lostinspace avatar

lostinspace

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Exporting and importing products

I was hoping it would as simple as that.

I'll give it a try tonight.

LIS

20 Mar 2007, 2:47 AM
#4
nomadrip avatar

nomadrip

Zen Follower

Join Date:
Feb 2007
Location:
Calabasas, CA & St. Pete, FL
Posts:
87
Plugin Contributions:
0

Re: Exporting and importing products

EZ Populate is a great add-on, too. If you are like me, and learning, you don't want to accidentally delete a bunch of products you entered one-by-one.

Makes it real easy to save a backup txt file and make changes to it offline, too.

20 Mar 2007, 3:03 AM
#5
lostinspace avatar

lostinspace

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: Exporting and importing products

Ajeh,
That worked like a charm.:thumbsup:

NomadRip. I actually installed EZ populate last night, but could not get all of the product data in a single file.

It's easier for me to just backup the database every so often (right now anyway). I don't expect to have 100 items anyway.

LIS