Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Magento API
 
mahi6687
Newbie
 
Total Posts:  0
Joined:  2012-10-31
 

Hi…

I tried to add product to cart via magento api..But i cant add and there is no request and response found.

I used the following code

$result = $cli->shoppingCartProductAdd($session_id, $quote_id, array(array(
‘product_id’ => ‘1’,
‘sku’ => ‘1’,
‘qty’ => ‘5’,
‘options’ => null,
‘bundle_option’ => null,
‘bundle_option_qty’ => null,
‘links’ => null
)));

$response = $cli->__getLastRequest();
print_r($response);

var_dump($result);

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top