Quick Database Question

Locked

Started by shadowflux on 22 Sep 2006, 6:44 PM · Views: 1,808

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
22 Sep 2006, 6:44 PM
#1
shadowflux avatar

shadowflux

New Zenner

Join Date:
Aug 2006
Posts:
13
Plugin Contributions:
0

Quick Database Question

This may sounds like a stupid question but I couldn't find a resolution myself so I figured I'd ask here. I need to apply some changes to the description of each product yet each addition is going to be different so I can't just copy it.

Is there a way I can edit the products and their descriptions in a text file, like a CSV file or somthing like that? It would really make my life a lot easier.

Thanks for all the help!

22 Sep 2006, 7:11 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Quick Database Question

There's an add-on called Easy Populate specifically for doing this. Checkout this site.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Sep 2006, 7:20 PM
#3
shadowflux avatar

shadowflux

New Zenner

Join Date:
Aug 2006
Posts:
13
Plugin Contributions:
0

Re: Quick Database Question

Thanks for the link Karoi. So there's no way to download and edit the database file without getting a mod?

22 Sep 2006, 7:31 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Quick Database Question

Your alternative would be use a tool such as phpMyAdmin to export the product_descriptions file in CSV format and then reload it when you have finished. There is nothing in Zen Cart itself that allows you to bypass its product editing features!

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Sep 2006, 7:32 PM
#5
kobra avatar

kobra

Black Belt

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

Re: Quick Database Question

So there's no way to download and edit the database file without getting a mod?One can manually edit the sql export file but only if they are certian that they know exactly what they are doing and is why using a tool for this is highly recommended.
If you attempt this manually, BACKUP, BACKUP first.

Zen-Venom Get Bitten

22 Sep 2006, 8:05 PM
#6
shadowflux avatar

shadowflux

New Zenner

Join Date:
Aug 2006
Posts:
13
Plugin Contributions:
0

Re: Quick Database Question

Ok, I get it. Thanks for the help guys, somthing tells me exporting the database isn't going to make my life any easier. I'll check out the program

22 Sep 2006, 8:41 PM
#7
fymbscu avatar

fymbscu

New Zenner

Join Date:
Jan 2006
Posts:
38
Plugin Contributions:
0

Re: Quick Database Question

Shadowflux,

Not knowing what platform you are on, not sure how helpful this news will be for you, but I would like to recommend that you could find a GUI that might allow you to access your database and make live changes. I think phpMyAdmin will do this, but you have to be willing to poke through the tables to access the data you want to change.

In my case, I am on a Macintosh, and located two such GUIs, Aqua Data Studio 4.5.2 and CocoaMySQL 0.5. I think I may have used VersionTracker.com to find them originally. You might give it a try. Of the two, I prefer CocoaMySQL.

I bring it up because when I tried to make the upgrade from 1.3.02 to 1.3.5 without a backup and by linking the 1.3.5 cart to the 1.3.02 database, the database was obliterated in the process.

Fortunately for me, this site is still in local development and not live. I had also made pdf proofs of the pages to send to my client. Starting from an empty database, I used the Admin interface to begin repopulating products in the cart, but there was some anomalous information specific to my situation that made the process somewhat incomplete.

Going to CocoaMySQL and accessing the various product tables in "contents" mode (as opposed to "structure"), I was able to make some rapid description modifications, among others, and was able to completely restore 45 products in about 2 hours. Hope this is a solution that might work for you.

Good luck,

Mark

23 Sep 2006, 10:31 AM
#8
kobra avatar

kobra

Black Belt

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

Re: Quick Database Question

45 products in about 2 hours.That is about 2.5 minutes per product... One can normally enter a new product through the admin in about 1 minute... You might time this for yourself.

Zen-Venom Get Bitten