在magento 1.9

时间:2015-06-01 09:39:19

标签: php magento magento-1.9

我在custom options中为该产品添加了两个magento 1.9custom Options是:

  
      
  1. 标题:形状

         

    sku:shape

         

    输入类型:下拉列表

         

    值:矩形,圆形,椭圆形

  2.   
  3. 标题:颜色

         

    sku:color

         

    输入类型:下拉列表

         

    值:红色,蓝色,绿色,白色,黑色

  4.   

这些成功显示在产品页面中。我的问题是

  

当用户从Rectangle选择shape时,请按下第二滴   向下,colors只应加载Red, Blue, Green

这取决于shape下拉列表中的值,我必须更改产品的color下拉列表中的值。

我该怎么做?请帮帮我..我正在使用 Magento 1.9.0.1

2 个答案:

答案 0 :(得分:0)

您需要拥有产品的属性,因为属性可以用作过滤器,但您必须根据选项名称和匹配的属性名称对options.phtml进行更改

答案 1 :(得分:-1)

在自定义选项中有子项字段,只需添加要显示的特定选项的ID。 或者您可以通过Jquery进行操作,但是这样做会效率低下。

 As there is children in choose cover type do make sure you have the children field and associate that children field to other field.