• Magento网站如何添加一个可配置产品


    有的产品,比如服装,同一件衣服有S、M、L、XL、XXL等尺码供客户选择,或者有多种颜色可以供客户选择,Magento中管这种有选项供客户选择的产品叫做可配置产品 (Configurable Product)。

    如何添加一个可配置产品呢?

    步骤可以概括为:

    1. 创建可供客户选择的属性(Attribute),比如 Color、Size、Length等
    2. 创建将被分配到可配置产品的属性组合(Attribute Set),比如下面的例子我们创建一个叫做 clothes的属性组合
    3. 用每个变量单独创建一个个简单产品
    4. 创建可配置产品,并增加“clothes”属性组合
    5. 将一个个单独变量产品组合到可配置产品

    创建属性

    Catalog -> Attributes -> Manage Attribute 点击右上角 Add New Attribute

    在 Attribute Information界面 Properties选项下依次输入

    Attribute Code : clothes_size (自己随便起名字,注意不能有空格,必须小写字母,可以有_下划线符号链接)
    Scope : Global
    Catalog Input Type for Store Owner:Dropdown
    Unique Value: No
    Values Required:Yes
    Input Validation for Store Owner:None
    Apply To *: All Product Types
    Use To Create Configurable Product: Yes

    如图:

    add-attributes-1

    在 Manage Label/Option 选项下输入可供选择的变量值,如图

    add-attributes-2

    点击右上角 Save Attribute 保存。

    同理,再创建一个服装颜色属性,如图:

    add-attributes-3

    add-attributes-4

    创建属性组合 (Attribute Sets)

    Catalog -> Attributes -> Manage Attribute Sets 点击 右上角 Add New Set

    给属性组合起一个名字,如 clothes,在 Groups处点击 Add New创建一个新的属性组,起名为Clothes Selector,将右侧刚创建还未分配的 clothes_size 和 clothes_color属性拖入Clothes Selector属性组中,点击 Save Attribute Set 保存,如图:

    add-attributes-5

    创建一个基于clothes属性组的简单产品

    Catalog -> Manage Products 点击 Add Product,创建一个基于 clothes变量组合的简单产品

    add-attributes-6

    依照创建简单产品的方法创建一个基于clothes属性组的简单产品,注意中间会有一个Clothes Selector选择(就是我们刚才添加属性组合时添加的一个属性组,包含了 clothes_size 和 clothes_color这两个属性变量),如图,分别选择一个属性值,如 S、Red,这样我们就添加了一个S号红色衣服简单产品

    add-attributes-7

    重复上面这个步骤,创建更多的简单产品,比如 (M、Black)(L、Black)(XL、Black)(S、Blue)

    这样,你就创建了一系列简单产品如图所示:

    add-attributes-8

    最后一步,创建可配置产品 (Configurable Product)

    Catalog -> Manage Products ,点击右上角 Add Product

    创建一个基于 clothes变量组合的 configurable product,如图

    add-attributes-9

    在下一屏选择需要的变量

    add-attributes-10

    输入产品的各项信息(和创建简单产品是一样的方法)

    最后一步 Associated Products,勾选刚才创建的简单产品

    add-attributes-11

    点击 Save 保存,一个可配置产品就创建成功了

  • 相关阅读:
    python爬虫学习(7) —— 爬取你的AC代码
    python爬虫学习(6) —— 神器 Requests
    python爬虫学习(5) —— 扒一下codeforces题面
    python爬虫学习(4) —— 手刃「URP教务系统」
    听说你叫爬虫(3) —— 模拟登陆
    python爬虫学习(2) —— 爬一下ZOL壁纸
    python爬虫学习(1) —— 从urllib说起
    数据结构/ 串的模式匹配法 / kmp算法与next数组的构造
    ADWORLD web/PHP2
    ADWORLD web/upload1
  • 原文地址:https://www.cnblogs.com/zhengyanbin2016/p/5608346.html
Copyright © 2020-2023  润新知