Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Associating products with categories within the database

Associating products with categories within the database

Locked

Views: 714

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Nov 2009, 4:26 PM
#1
slegendre avatar

slegendre

New Zenner

Join Date:
Oct 2009
Posts:
13
Plugin Contributions:
0

Associating products with categories within the database

Sorry for the double post. I think my post is better described here. Trying to deleted other post.

I created a small problem for myself. I accidentally created a category with a subcategory within it. Within the subcategory i have about 22 products.

I wanted to get rid of the subcategory so I deleted it. I backed up the 22 products and when I deleted the subcategory the products were deleted as well. So I went into the database and inserted the backed up products.

The products arent showing up within the zen admin section or the site, but are showing up within the database. I changed the master_categories_id within each product to match the main category I have thinking it would associate each product with the category, but still not showing within the zen cart admin, or the site.

I'm sure i'm missing something somewhere and figured i'd write to see if someone could point me in the right direction.

19 Nov 2009, 4:30 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Associating products with categories within the database

Sl,
Please be patient for an answer & don't double post... Read the tutorials on posting a thread please

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

19 Nov 2009, 4:41 PM
#3
slegendre avatar

slegendre

New Zenner

Join Date:
Oct 2009
Posts:
13
Plugin Contributions:
0

Re: Associating products with categories within the database

Yeah i know. Sorry about that. Just thought it would do better here. Even for people looking for solutions to the same issues. Again, sorry. :oops:

19 Nov 2009, 8:44 PM
#4
slegendre avatar

slegendre

New Zenner

Join Date:
Oct 2009
Posts:
13
Plugin Contributions:
0

Re: Associating products with categories within the database

I figured it out. So basically I exported my products from the products table, but failed to backup the product_description, and the products_to_categories tables.

In order for your products to be available in a particular category those three tables rely on each other.

Lesson learned.