- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2016
02:31 AM
09-28-2016
02:31 AM
I try this code to add configurable product to shopping cart but it`s not work.
$pro = array( 'product_id' => '916', 'sku' => 'vam_conig_test-01', 'qty' => '1', 'options' => array( 0=> array( 'key' => 214, //attribute id 'value' => 252 //value ), 1=> array( 'key' => 215, 'value' => 254 ), 2=> array( 'key' => 217, 'value' => 262 ) ) ,'bundle_option' => null, 'bundle_option_qty' => null, 'links' => null ); $result_addProduct2Cart = $proxy->shoppingCartProductAdd($sessionId, $result_CartId, array($pro),'1');
but this code return me this message :
Uncaught SoapFault exception: [1022] Please specify the product's option(s)My configurable product has 3 attributes,and when I add this product to cart from front page,I get these message
product:916 related_product: super_attribute[214]:252 super_attribute[215]:254 super_attribute[217]:262 qty:1
Thanks !
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2016
06:05 AM
10-03-2016
06:05 AM
Follow This Link
It might help you.
OpenSource Expert | OpenSource Technologies | www.opensourcetechnologies.com
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2016
06:05 AM
10-03-2016
06:05 AM
Follow This Link
It might help you.
OpenSource Expert | OpenSource Technologies | www.opensourcetechnologies.com
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2016
08:33 PM
10-07-2016
08:33 PM
Re: cannot add configurable product to cart in magento with soap API
I had solved the problem with your help.Thanks very much.