5

we are using 2 shipping methods in our site.

  1. Table rate shipping method
  2. Custom shipping method [ extension]

we are doing Android app for our magento site.

when we use default shipping methods [ example : "Table rate shipping method " ,code : "tablerate_bestway" ] shipping charges are working fine in site and in andriod app.

when we use custom shipping method [ example : "custom shipping method 1" , code "ship_ship" ] shipping charges are working fine in site but we are getting "0" as shipping charges in android app Because in APP, shipping charges are not saving in "sales_flat_quote_shipping_rate " table It showing "0" in that table.

this is the problem. what we need to do so that shipping charges should work in andriod app when we use custom shipping method.

  • What does magentocommerce.com/api/soap/checkout/cartShipping/… return for you in the android app? – B00MER Dec 31 '15 at 8:02
  • i wil check with andriod team now...... – Baby in Magento Dec 31 '15 at 8:03
  • we are getting shipping charges as "0". we are not getting any error if we place the order through app. – Baby in Magento Dec 31 '15 at 9:42
  • Try debugging .... first figure out your quote ids for both web and android... then add the same item to cart for both web and android take a look at sales_flat_quote_address and sales_flat_quote_shipping_rate tables (fields - shipping method, weight, etc) to figure out a pattern of what the issue maybe. Without knowing the order in which the api are been called or what version of the api you are using it very debug remotely – Renon Stewart Jan 9 '16 at 21:59
  • @R.S Thanks for your valuable hints, we will check it. – Baby in Magento Jan 9 '16 at 22:29
3
+100

First,You need to

check available shipping methods for current cart/Quote using Soap api function shoppingCartShippingList().See at link .If you have multiple store view/stores /websites then you need to send store id/code as it parmas.

Just like: $result = $proxy->shoppingCartShippingList($sessionId, 10,'default');

In order to get shipping methods list for a cart

  • you Should save customer shipping address for calculated before getting shipping methods
  • if shoppingCartShippingList() not give the shipping method then you need check backend setting means per as scope wish(at store /view /wise)
  • we are getting the shipping method using "shoppingCartShippingList()" . I want to know in which file, i need to place this code : $result = $proxy->shoppingCartShippingList($sessionId, 10,'default'); – Baby in Magento Jan 12 '16 at 6:10
  • we are getting shipping methods , but main problem is its taking " 0" as shipping charges... – Baby in Magento Jan 12 '16 at 8:02
  • dude,ask u developer first to check available shipping methods using below api magentocommerce.com/api/soap/checkout/cartShipping/… – Amit Bera Jan 12 '16 at 8:03
  • we are getting custom shipping methods also. – Baby in Magento Jan 12 '16 at 8:04
  • i checked with android devoloper, we are getting custom shipping method. but shipping charges are gettting zero only. – Baby in Magento Jan 12 '16 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.