如何在不通过 magento API 创建订单的情况下将产品添加到购物车客户?
how to add product to cart customer without create order by magento API?
如何在不通过 API 创建订单的情况下将产品添加到购物车客户 Magento?
只需删除这部分,正如您在评论中看到的那样,它创建了一个订单:
// create order
echo "\nI will create the order: ";
$resultOrderCreation = $proxy->call($sessionId,"cart.order",array($shoppingCartId, null, $licenseForOrderCreation));
echo "\nOrder created with code:".$resultOrderCreation."\n";
因此,要从头开始将产品添加到购物车,请使用提供的代码段中的第 1-83 行。
如何在不通过 API 创建订单的情况下将产品添加到购物车客户 Magento?
只需删除这部分,正如您在评论中看到的那样,它创建了一个订单:
// create order
echo "\nI will create the order: ";
$resultOrderCreation = $proxy->call($sessionId,"cart.order",array($shoppingCartId, null, $licenseForOrderCreation));
echo "\nOrder created with code:".$resultOrderCreation."\n";
因此,要从头开始将产品添加到购物车,请使用提供的代码段中的第 1-83 行。