我想添加产品总量的价格分手,并在Magento中配置产品

时间:2016-01-06 09:03:06

标签: magento customization magento-1.9

我想添加产品总量的价格分手,并在Magento中配置产品。 Click here to see image reference

这里的任何人都可以为我提供解决方案吗?

1 个答案:

答案 0 :(得分:0)

例如,我们有笔选项,麦迪逊LX2200和麦迪逊RX3400作为它的价值。这些笔中的每一支都是一个简单的产品(在管理员中称为“选择”)。

现在我们已经完成了基础知识,我们将创建创建包含两个选项的捆绑产品所需的代码 - 每个选项包含两个值来表示简单的产品。

 $bundleSelections = array();
 $bundleSelections = array(
  '0' => array( //option ID
        '0' => array( //selection ID of the option (first product under this option (option ID) would have ID of 0, second an ID of 1, etc)
            'product_id' => '554', //if of a product in selection
            'delete' => '',
            'selection_price_value' => '10',
            'selection_price_type' => 0,
            'selection_qty' => 1,
            'selection_can_change_qty' => 0,
            'position' => 0,
            'is_default' => 1
        ),

        '1' => array(
            'product_id' => '553',
            'delete' => '',
            'selection_price_value' => '10',
            'selection_price_type' => 0,
            'selection_qty' => 1,
            'selection_can_change_qty' => 0,
            'position' => 0,
            'is_default' => 1
        )
    ),