Question

i want to submit a shipping method to my magento cart object via SOAP (api/v2_soap?wsdl=1)

$data = array(
   'sessionId' => $sessionId,
   'quoteId' => $quoteId,
   'shippingMethod' => 'matrixrate_matrixrate_1211'
);

$this->_client->shoppingCartShippingMethod($data);

The message i get said that the shipping method is not available.

$data = array(
   'sessionId' => $sessionId,
   'quoteId' => $quoteId,
   'shippingMethod' => 'matrixrate_matrixrate_1211'
);

$this->_client->shoppingCartShippingMethod($data);
{
 "statusCode": 200,
 "data": "1062: Shipping method is not available"
}

so i try to get all shippingMethods

{
 "statusCode": 200,
 "data": [
   "env:Sender: Error cannot find parameter"
 ]
}

If i add the store_id (which is 0) i reveice a different message

{
 "statusCode": 200,
 "data": "1002: Can not make operation because quote is not exists"
}

The is_active state of this quote is also 0.

So i have several questions:

  1. How do i get the shippingMethods to use them for adding to my cart object?

  2. Why my quote not exists? I find the quote in my table sales_flat_quote (value is_active = 0 && value store_id = 0)

  3. Why the quote has the status "is not exists"? And when i have to change this status?

This is my soap request order for the quote:

  • getSessionId
  • createCartId
  • addProductToCart
  • setCustomerForCart
  • addAddressToCart
  • setShippingMethod => this not work anymore
  1. Did i have to update any backend settings? (to use shippingMethodList via SOAP)

Thanks in advance!

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top