Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Where is the category/product stored?

Where is the category/product stored?

Views: 1,866

Results 1 to 5 of 5
28 Jan 2012, 4:19 PM
#1
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Where is the category/product stored?

Are they stored in database? Why I couldn't see them in my database tables?

And how the ID is generated? it seems category and product can have same ID.

Thanks.

28 Jan 2012, 4:35 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,702
Plugin Contributions:
56

Re: Where is the category/product stored?

Category and product can have the same id because they are separate things.

They are stored in tables - the product id is in the table "products," and the category id(s) for each product, is in the table products_to_categories. The categories themselves are stored in the table "categories." If you use phpMyAdmin to examine your database, you can look at all these tables.

7 Nov 2018, 8:21 AM
#3
mike_harmon avatar

mike_harmon

New Zenner

Join Date:
Sep 2018
Location:
Texas
Posts:
33
Plugin Contributions:
0

Re: Where is the category/product stored?

swguy:

Category and product can have the same id because they are separate things.

They are stored in tables - the product id is in the table "products," and the category id(s) for each product, is in the table products_to_categories. The categories themselves are stored in the table "categories." If you use phpMyAdmin to examine your database, you can look at all these tables.

I looked in my database. I do have the catagories listed but do not have folder called "Products" The last folder in the list is "newsletter".
It seems the tables are listed alphabetically and stops t the N.

The site is working except for Special tabs no working..

Any clue what is happening with the database display?

7 Nov 2018, 8:47 AM
#4
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Where is the category/product stored?

I assume you are using phpmyadmin?
You are only looking at the first of 3 pages of tables.
Scroll to the top and click on the "next" page

7 Nov 2018, 9:38 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,702
Plugin Contributions:
56

Re: Where is the category/product stored?

gilby:

I assume you are using phpmyadmin?
You are only looking at the first of 3 pages of tables.
Scroll to the top and click on the "next" page

Gilby is correct - the list of tables is just being paginated. Your site would not work if it were missing the tables after Newsletter.