Forums / Templates, Stylesheets, Page Layout / all product on top category, now i cannot create new category

all product on top category, now i cannot create new category

Locked

Views: 1,724

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
27 Dec 2007, 7:32 PM
#1
tsakali avatar

tsakali

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

all product on top category, now i cannot create new category

so i decided to dump all my products under the top category (basically I didn't create any categories) and now that I want to add a new line of products I find out that zencart control panel wont even give me the option of creating a category, only allowed to create products...

  1. is there an easy way to add category now?

or 2) is there an easy way i can backup my products and after I create categories sorta like "copy and paste" all my products back in there? I'd rather not have to do all of them from scratch again

thanx

27 Dec 2007, 10:50 PM
#2
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Re: all product on top category, now i cannot create new category

How good is your SQL??? What you are looking to do is possible but fraught with possible problems so I would not attempt it unless you where very sure of your command of SQL and that you understand the tables/layouts for ZenCart.

Otherwise it might be a good idea to check out Easy Populate. A little painful to get to grips with but may be a lot easier in the long run.

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com

27 Dec 2007, 11:09 PM
#3
tsakali avatar

tsakali

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: all product on top category, now i cannot create new category

shoot I was afraid there wasn't an easy solution

27 Dec 2007, 11:15 PM
#4
kuroi avatar

kuroi

Totally Zenned

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

Re: all product on top category, now i cannot create new category

My thoughts also leapt to Easy Populate. You would need to use it to export your products, then drop them from your database, update the resulting spreadsheet with your new category structure and re-import.

The trouble with this approach is that it would disconnect your products from your order history. However, if you're not using product models, you could first use DQL to populate your product model field with your products ID field (you need a product model anyway for Easy Populate) and then repopulate your products ID field from your product models after you have re-imported.

And of course, you should backup your database before even thinking about starting any of this.

Kuroi Web Design and Development | Twitter

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

27 Dec 2007, 11:36 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: all product on top category, now i cannot create new category

You could back up your database ...

Then run the following SQL commands in the Tools ... Install SQL Patches ...

update products_to_categories set categories_id = 1;
update products set master_categories_id = 1;

Then create your Category and all Products will appear in this Category ...

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!

27 Dec 2007, 11:39 PM
#6
kuroi avatar

kuroi

Totally Zenned

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

Re: all product on top category, now i cannot create new category

Duh! Sneaky but very effective. Throw away the Easy Populate sledgehammer and reach for the Ajeh scalpel.

Kuroi Web Design and Development | Twitter

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

27 Dec 2007, 11:43 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: all product on top category, now i cannot create new category

I do look for that ol' easy way out ... :cool:

NOTE: if you plan to use this temporary category you should also run the Tools ... Update Product Price Sorter ...

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!

28 Dec 2007, 8:26 AM
#8
tsakali avatar

tsakali

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: all product on top category, now i cannot create new category

:smile: