Magento 中的自定义选项与属性

发布于 2024-10-15 06:37:41 字数 53 浏览 2 评论 0原文

自定义选项和属性之间的实际区别是什么?或者自定义选项实际上是在配置自定义选项时创建的属性吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九公里浅绿 2024-10-22 06:37:41

Magento 属性:-
Magento 中的属性定义为目录类别(实体类型 ID - 3)、目录产品(实体类型 ID - 4)、客户(实体类型 ID - 1)、客户地址(实体类型 ID - 2)、订单(实体类型 ID - 5)等等。其中包括产品 ID、产品标题、SKU、图像、说明、客户名字、客户姓氏等。

所有属性都存储在数据库表“eav_attribute”中,并且所有这些属性都取决于其实体类型,而实体类型存储在数据库表“eav_entity_type”中。

店主可以根据需要添加任意数量的附加属性。这些可以分为属性集,因此可以使用相同的属性创建类似的产品。如果您销售电视、鞋子、书籍和电动工具,则可以创建四种属性集 - 一组特定于电视,一组针对鞋子,一组针对书籍,一组针对电动工具。将新的电动工具产品添加到目录时,您只需选择“电动工具”属性集,然后就会为此产品添加适当的字段。您可以查看此链接了解如何操作在 Magento 中创建属性。

Magento 自定义选项:-
只有目录产品(而不是其他实体类型)使用自定义选项的概念,该选项存储在数据库表“catalog_product_option”中。

Magento 自定义选项使客户能够在将 Magento 产品添加到购物车之前向其添加新选项(非特定于库存)。它允许提高产品价格或从客户那里收集额外信息,例如产品长度(自定义选项可以只是商店提供的可能长度的下拉列表)、要雕刻的名称(自定义选项可以是文本字段)或要在其上打印的图像(自定义选项需要是上传文件字段)。

Magento 自定义选项与属性类似,但必须由客户而不是管理员填写。但客户可以填写哪些选项,完全取决于管理员,因为他正在维护产品的可用自定义选项。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文