Magento SOAP API v1로 주문을 만들고 번들 제품을 장바구니에 추가 할 때 문제가 있습니다. 간단한 제품으로 올바르게 주문할 수는 있지만 번들 제품을 추가하는 것에 대해 혼란 스럽습니다.Magento Soap API 번들 제품을 장바구니에 추가
// The Products Array with Bundle
$products = array(
array(
"product_id" => "38914",
"qty" => "1",
"bundle_option" => array(
"18194" => "20360",
),
"related_product" => null,
"bundle_qty" => array("20360" => "1"),
"options" => array(
"0" => array(
"key" => "3328",
"value" => "4494",
),
"1" => array(
"key" => "3329",
"value" => null,
),
"2" => array(
"key" => "3339",
"value" => null,
),
)
)
);
// Get an API session
$client = new \SoapClient('magentoinstallation/index.php/api/soap/?wsdl');
$session = $client->login('user', 'password');
//Create the Cart
$cart = $client->call($session, 'cart.create');
// add the products
$resultCartProductsAdd = $client->call($session, "cart_product.add", array( $cart, $products));
나는 여러 가지 형식과 점점 오류
Selected required options are not available
Please specify product option(s).
어떤 도움이나 제안이 크게 감사하겠습니다을 시도했습니다.
보십시오 변화 "옵션"위에서 설명한 방법을 여기에 "bundle_option"http://inchoo.net/ecommerce/magento/programatically-add-bundle -product-to-cart-n-magento/PHP API 메소드가 있지만 배열이 비슷해야합니다. –