I need to know SQL Table Structure for adding new product.I don't want to any sql queries only want to know effecting tables names.
Asked
Active
Viewed 1.7k times
8
-
Thank you very much for sharing the valuable information @Marius – Sam May 07 '19 at 11:54
-
Please don't add "thank you" as an answer. Once you have sufficient reputation, you will be able to vote up questions and answers that you found helpful. - From Review – fmsthird May 07 '19 at 12:34
1 Answers
23
catalog_product_entity- this one is the main product table. It contains the id, sku, attribute set and a few other detailscatalog_product_entity_int|varchar|text|datetime|decimal- these tables contain attribute values. Each attribute has a type and based on that type the value is inserted in the right table.catalog_product_website- this table contains the association of products on websites (product id, website id). If you don't add the products to at least a website nothing will be inserted here.catalog_category_product- this table contains the association between products and categories (product id, category id). if you don't assign products to categories nothing will be inserted herecatalog_category_product_index- this tables also holds the association between products and categories but it is populated after reindexing.catalog_product_entity_gallery,catalog_product_entity_media_gallery,catalog_product_entity_media_gallery_value- these hold references to images assigned to productscatalog_product_linkthis holds the links between products: cross-sells, up-sells, related products, child products of configurable & grouped productscatalog_product_link_attribute,catalog_product_link_attribute_decimal|int|varchar, hold the positions and other attribute values that might be related to the links above for the related products up-sells and cross-sellscatalog_product_entity_tier_pricecontains the tier prices for the productscatalog_product_optionholds the product custom optionscatalog_product_option_priceholds the custom options pricescatalog_product_option_titleholds the custom options titlescatalog_product_option_type_valueholds the custom options type valuescatalog_product_option_type_priceholds the custom options price typescatalog_product_relationholds a kind of redundant parent-child relation for configurable productscatalog_product_index_*hold values for product attributes after reindexingcatalog_product_bundle_*hold relations and options for bundle productsdonwloadable_*- hold data related to downloadable products
That's all I got. I hope I didn't miss anything.
Marius
- 197,939
- 53
- 422
- 830