Php 使用产品选项将产品添加到购物车
我尝试使用以下代码将产品添加到购物车:Php 使用产品选项将产品添加到购物车,php,web-services,api,magento,attributes,Php,Web Services,Api,Magento,Attributes,我尝试使用以下代码将产品添加到购物车: $proxy = new SoapClient('http://example.com/index.php/api/v2_soap/?wsdl'); try{ $result = $proxy->shoppingCartProductAdd($sessionID, $cartID, array(array( 'product_id' => $productID, 'sku' =&
$proxy = new SoapClient('http://example.com/index.php/api/v2_soap/?wsdl');
try{
$result = $proxy->shoppingCartProductAdd($sessionID, $cartID, array(array(
'product_id' => $productID,
'sku' => $sku,
'qty' => $qty,
'options' => null,
'bundle_option' => null,
'bundle_option_qty' => null,
'links' => null
)));
} catch(SoapFault $e){
$result = $e->getMessage();
}
我从这个链接找到它:
在链接示例中,如果我想添加颜色、大小或。。。将产品添加到购物车,然后将产品添加到购物车我应该怎么做 是捆绑产品吗?@AmitBera是的,是捆绑产品。@AmitBera我也想用简单的产品试试。