zoukankan      html  css  js  c++  java
  • Magento创建configurable产品的要点

    接着上一篇用API创建可配置的产品Configurable Product说事。Magento的产品类型可分为Simple Product、Group Product、Configurable Product、Virtual Product、Bundle Product、Downloadable Product。其中Simple的产品最简单,属于基础产品。Configurable Product和Bundle Product的产品是建立在这些Simple产品之上的。

    Configurable Product 和 Bundle Product的产品都可以独立的跟踪库存 。Custom Option是无法跟踪独立产品的库存。Configurable Product是需要独立建立不同属性的产品的组合,而 Bundle Product是可以组合产品的。举个例子来说,一件衣服有2种颜色和3个大小,建立Configurable Product 需要创建6个独立的Simple产品,而Bundle 是只需要创建2+3=5个Simple产品。在属性比较多的时候,区别还是很大的。

    关于Configurable Product 的创建,不得不说,Magento管理后台的用户体验很差。前段时间教我的同事创建Configurable Product,过了一阵子,忘了,为此写下这篇文章。

    首先创建Configurable Product有3个要点:

    1. 在属性集里必须有一个全局的属性,即属性的Scope为Global。

    2. 属性的Catalog Input Type for Store Owner要选择Dropdown。

    3. 属性的Use To Create Configurable Product要选择Yes。

    下面以创建一个Configurable Product为例,该产品有一个cm_color的属性。有bule、red、yellow。价格分别为10、20、30。

    创建Configurable Product的属性

    从导航进入到CataLog->Attributes->Manage Attributes,在Properties这个tab中:

    magento-create-configurable-product0

    新建一个cm_color的属性,Scope选择Global,Catalog Input Type for Store Owner为Dropdown,Catalog Input Type for Store Owner为Yes,注意图中画红线的部分。

    magento-create-configurable-product1

    切换到Manage Label/Options,添加该属性在不同语言的store显示不同的Title,这里只需填写Admin的部分就可以了。

    给该属性添加3个选项,Bule、Red、Yellow,然后Save Attribute。

    magento-create-configurable-product2

    将属性添加到属性集中

    从导航进入到CataLog->Attributes->Manage Attributes Sets,选择Default属性集。

    magento-create-configurable-product3magento-create-configurable-product4

    将cm_color属性从右边的Unassigned Attribute拖到左边的Groups的General组,完成之后Save Attribute Set。

    magento-create-configurable-product5

    创建Configurable Product

    从导航进入到CataLog->Manage products,点击Add Product。Attribute Set 选择Default,Product Type 选择Configurable Product,点击Continue。

    magento-create-configurable-product6

    选择具有全局属性的cm_color,点击Continue。

    magento-create-configurable-product7

    添加Configurable Product的基本属性,Name,Description,Short Description,SKU,Status,Visibility,Price等基本属性,点击Save and Continue Edit。

    切换到Associated products选项卡,重点在红线的部分Quick Simple Product Creation。

    magento-create-configurable-product8

    创建一个Color为Bule的产品,Color选择Bule,price选择10,Fixed是直接定价,Percentage是百分比,该价格都是在原价价格加价。Visibility最好选择不显示Not Visible Individually。

    magento-create-configurable-product9

    点击Quick Create,可在下方的Super Product Attribute Configuration看到自动创建的Simple Product,并自动绑定到Color的Bule选项。

    magento-create-configurable-product10

    同样创建Color为Red,和Yellow的产品。

    magento-create-configurable-product11

    magento-create-configurable-product12

    magento-create-configurable-product13

    此时创建好了3个Simple Product了,并都已经绑定相应的属性上。选择Save and Continue Edit。

  • 相关阅读:
    系统设计的定量原理
    [Java-基础]单元测试Junit
    二维图元生成:直线生成算法
    [Java-基础]反射_Class对象_动态操作
    浅说模板的局限性
    普通函数和函数模板调用规则
    普通函数和函数模板的区别
    十大排序算法(原理及代码实现细节)
    linux远程登陆以及从其他服务器下载文件
    循环队列-抽象数据类型
  • 原文地址:https://www.cnblogs.com/focai/p/4205271.html
Copyright © 2011-2022 走看看