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

前端 未结 5 817
隐瞒了意图╮
隐瞒了意图╮ 2020-12-22 19:01

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 work

5条回答
  •  悲&欢浪女
    2020-12-22 19:48

    Product Attributes are extra values that you can assign to a product and is stored in the main EAV table, by name, and the data is then stored in a few different tables based on the data type, like varchar, decimal, text Integer, date, etc.

    if you had multiple values for your Product Attribute, then that will be stored in the Attribute Options tables, again, different tables based on the data type.

    the following link explains the relationships better: http://www.magentocommerce.com/wiki/2_-_magento_concepts_and_architecture/magento_database_diagram

    And deeper developer's detail: http://www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-7-advanced-orm-entity-attribute-value

    And Attribute sets will be the other thing you come across, like the name suggests, a set of attributes grouped together. http://www.magentocommerce.com/knowledge-base/entry/how-do-i-create-an-attribute-set

    HTH Shaun

提交回复
热议问题