Php 马根托。如何以编程方式设置自定义选项(复选框)的数据,并在购物车中添加简单产品?
下面是我如何为简单产品的自定义选项设置数据Php 马根托。如何以编程方式设置自定义选项(复选框)的数据,并在购物车中添加简单产品?,php,magento,magento-1.7,magento-1.9,magento-1.8,Php,Magento,Magento 1.7,Magento 1.9,Magento 1.8,下面是我如何为简单产品的自定义选项设置数据 $arrProducts = array( array( "product_id" => 8, "qty" => 1, "options" => array( '1' => 'cheese', '2' => 'tomato' )
$arrProducts = array(
array(
"product_id" => 8,
"qty" => 1,
"options" => array(
'1' => 'cheese',
'2' => 'tomato'
)
)
)
);
但是我收到一个错误
请指定所需的产品选项
您需要以稍微不同的方式设置数据: 祝你好运