Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are product attributes and attribute options stored in Magento database?

Tags:

magento

I am trying to figure out how the linkage between attribute and attribute options, and product and attributes are made in Magento. Is there any reference to how this is working? or anyone give me a hint on this.

Thanks,

Balan

like image 880
balanv Avatar asked Feb 27 '12 10:02

balanv


People also ask

What are attributes in Magento?

An attribute is a property of a product, for example, the product color, the size, or the description. Some attributes are built into the system by default, and others can be created to address specific needs. You can add, edit, or remove product attributes in Magento 2 to customize your products.

Where are woocommerce product attributes stored?

Product attributes are stored in two locations - in wp_terms, wp_term_taxonomy and wp_term_relationships (that's the first place - each attribute is preceded by pa_ for its taxonomy name - e.g. if you have a color attribute, it's under pa_color) then also as a PHP serialized array in wp_postmeta under '_ ...


1 Answers

As Alan Storm says: "you do not have to know about how your db works. You have to learn how the models work ". (This is not an exact quote. I gave you the meaning).

But I created own scheme to understand the DB structure. So this screen shows how it works: enter image description hereenter image description here

Hope, it helps.

Also I recommend you to look through these links:

http://www.magentocommerce.com/wiki/2_-_magento_concepts_and_architecture/magento_database_diagram

http://alanstorm.com/magento_advanced_orm_entity_attribute_value_part_1

like image 103
Anthony Avatar answered Sep 28 '22 04:09

Anthony