Categories

Featured templates

Magento. 如何创建属性并将其应用于产品

Norman Fisher October 29, 2013
Rating: 4.1/5. From 9 votes.
Please wait...

本教程将向您展示如何创建属性并将其应用于Magento上的产品 website.

Magento. 如何创建属性并将其应用于产品

在Magento中,属性是指产品的任何属性 you can add as many attributes as you need.  They can be grouped into attribute sets, 因此,可以创建具有相同属性的类似产品. 比如说我们想创建一个名为Material的属性. 

  1. Log into the Magento admin panel. Go to Catalog -> Attributes -> Manage Attributes

    在这里,您将看到系统中使用的所有属性.

  2. In the top right, click on “Add New Attribute

  3. In the Properties tab you will need to configure the Attribute Properties:

    • Attribute Identifier: 系统使用的属性名称. E.g. material.
    • Scope: 允许您声明属性值保存范围,如 Global (给定产品的此属性值必须与此Magento安装上的所有网站和商店相同), Store View (给定产品的此属性值在所有网站和所有商店视图中可能不同), Website (给定产品的此属性的值在不同的网站中可能不同, 但是,它不能在相同目录下包含的存储视图之间有所不同 Website).
    • Catalog Input Type for Store Owner: 描述属性将存储的数据类型. 例如,如果您希望在文本字段中手动输入每个产品的值,请选择 Text Field etc. In our case we want to use Dropdown.
    • Unique Value: 如果希望保存在此属性中的数据对于每个产品都是唯一的,请选择“yes”. 但我们宁愿用“no”,因为不同的产品类型可能是由相同的材料制成的.
    • Values Required: 我们用的是“是”,因为我们所有的产品都是由某种材料制成的.
    • Input Validation for Store Owner: 决定在保存产品时是否验证商店所有者输入的数据.  In our particular case, we don’t need validation on this field, so we’ll choose “None”.
    • Apply To: 决定该属性将显示哪些产品类型.  如果在下拉菜单中选择“选择产品类型”, 你可以设置“材料”不适用于分组/简单/可配置等产品,或者只使用“所有产品类型”.
  4. And the settings for Frontend Properties:

    • Use in quick/advanced search: If “yes”, 保存在该属性中的数据可以在前端的快速搜索和高级搜索中进行搜索.
    •  Comparable on Front-end: If “yes”, 该属性将在产品比较中显示, 如果比较列表中至少有一个产品包含此属性的值.
    • Use in Layered Navigation (can be used only with catalog input type Dropdown, Multiple Select and Price). Since we selected  “Dropdown,此选项处于活动状态,我们可以选择e.g. Filterable (with results).
    • Position: 确定此属性在分层导航菜单中的位置.
    • Visible on Catalog Pages on Front-end: 如果为“no”,该属性将不会显示在og体育页面中. “可见性”只控制属性是否在前端显示. 记住——如果你将属性设置为“可见:否”, and leave it as “Comparable: Yes”, 这个属性仍然会显示在比较图表中.
  5. Click on the Manage Label/Options tab. Under this tab,您可以通过属性标签在前端命名属性. 您可以输入不同的标签.  如果一个商店的标签是空白的,这个商店将查找 default label and use this one.  在Admin和English下面输入Material. Then, under the 管理选项(属性的值)  我们将进入莱卡、尼龙、聚酯、缎子、蕾丝、丝绸和透明织物. Click Add Option  每次都需要为属性值添加一行新的字段. In the Position  现在你可以输入1、2、3来定位它们.

  6. When you are ready, click Save Attribute in the top right corner.
  7. 要将此可选择属性应用于产品,首先将其添加到 attribute set. Go  back to the Catalog tab and select Manage Attribute Sets.

  8. 在这里,您将看到在系统中创建的所有属性集. Click Add New Set.
  9. Give your new attribute set a name by entering the Name  filed. E.g. material. Let it be Based On -> Default. Click Save Attribute Set.

  10. On the  next page you will see the attribute set 在第三列中创建的 Unassigned Attributes. 将其拖放到第二列中的一个组中. For instance, to General.

  11. Click Save Attribute Set in the top right.
  12. Now you can create new product under Catalog -> Manage Products -> Add Product and  in the Attribute Set drop-down select the attribute set you’ve created.  Then click Continue.

  13. 现在您可以根据您创建的新产品属性组(“material”)创建一个新产品。. 的新属性 General 部分,你会在这里找到它在 General  tab in the same order it was added.  创建新产品后,您可以在 frontend 以查看在其详细信息中添加的新属性.

请随时查看下面的详细视频教程:

Magento. 如何创建属性并将其应用于产品

如果您有一个非电子商务项目与现有的管理面板,请查看我们的 Bootstrap Admin Themes to give your dashboard a boost.

Responsive Magento Themes
This entry was posted in Magento Tutorials and tagged apply, attribute, create, Magento, products, to. Bookmark the permalink.

Submit a ticket

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: Submit a ticket