Magento Custom Options VS Attributes

匿名 (未验证) 提交于 2019-12-03 02:51:02

问题:

What is the actual difference between Custom Options and Attributes? or are Custom Options actually Attributes that get created when you configure the Custom Option

回答1:

Magento Attribute:-
An attribute in Magento is defined as any property of a Catalog Category (Entity Type ID - 3), Catalog Product (Entity Type ID - 4), Customer (Entity Type ID - 1), Customer Address (Entity Type ID - 2), Order (Entity Type ID - 5), and some more. These include Product ID, Product Title, SKU, Image, Description, Customer First Name, Customer Last Name, and so on.

All the attributes are stored in the Database Table "eav_attribute", and all these attributes depend upon their Entity Types, which are stored in the DB Table "eav_entity_type".

A store owner can add as many additional attributes as desired. These can be grouped into attribute sets, so similar products can be created with the same attributes. If you sell TVs, shoes, books, and power tools you could create four attribute sets - one specific to TVs, one for shoes, one for books, and one for power tools. When adding new power tool Products to your Catalog, you simply select the “power tool” attribute set, and the appropriate fields are added for this Product. You can check this link to know how to Create Attributes in Magento.

Magento Custom Options:-
Only Catalog Products (and no other Entity Types) use the concept of Custom Options, which are stored in the DB Table "catalog_product_option".

Magento Custom Options enable the customers to add new options (non-stock specific) to the Magento product before adding it to the shopping cart. It allows to increase the product price or to gather extra information from the customer such as product length (custom option can be just a drop down of probable lengths provided by the store), a name to engrave (custom option can be a text field) or an image to print on it (custom option needs to be an upload file field).

Magento Custom options are similar to attributes but they must be filled in by a customer rather than an admin. But which all options can be filled by the customer, is totally dependent upon the admin, as he is maintaining the available Custom Options of the Products.

Hope it helps.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!