0
我在將可配置產品添加到購物車時遇到問題。以下陣列I設置功能Magento SOAP API v2 - 將可配置產品添加到購物車
$productList_final =
Array
(
[0] => Array
(
[product_id] => 3
[sku] => Wallpaper
[name] => Wallpaper
[set] => 4
[type] => configurable
[category_ids] => Array
(
[0] => 3
)
[website_ids] => Array
(
[0] => 1
)
[qty] => 1.0000
[options] => Array
(
[info_buyRequest] => Array
(
[uenc] => aHR0cDovL2xvY2FsaG9zdC9zeW5jaHJvbml6ZS1vcmRlci9pbmRleC5waHAvY2VsbC1waG9uZXMvd2FsbHBhcGVyLmh0bWw,
[product] => 2
[form_key] => rYNDd47kaYLWGl4a
[related_product] =>
[super_attribute] => Array
(
[0] => Array
(
[key] => 92
[value] => 5
)
)
[qty] => 1
)
[attributes_info] => Array
(
[0] => Array
(
[label] => Color
[value] => Green
)
)
[simple_name] => Wallpaper-Green
[simple_sku] => Wallpaper-Green
[product_calculations] => 1
[shipment_type] => 0
)
)
)
但它產生的錯誤,「SOAP-錯誤:編碼:對象有沒有‘關鍵’屬性」叫下面的函數
$apiClient->shoppingCartProductAdd($sessionId, $cartId, $productList_final);
任何線索,我怎麼當應該準備上面的數組 - 選項(supper_attributes)?