Hi Woon Cherk,
Thanks for Reply.
Steps you've provided are perfect !!
We got it done.
But we are getting one error.
Shipping total couldn't be calculatedWe debugged nopcommerce code and found that error is coming from
..\Libraries\Nop.Services\Orders\OrderProcessingService.csIt's on
line number 732 to 734 in nopcommerce 3.10 source code.
Here is code where we get error.
Discount shippingTotalDiscount = null;
orderShippingTotalInclTax = _orderTotalCalculationService.GetShoppingCartShippingTotal(cart, true, out taxRate, out shippingTotalDiscount);
//We are getting error in next line with message - Shipping Total Couldn't be calculated.
orderShippingTotalExclTax = _orderTotalCalculationService.GetShoppingCartShippingTotal(cart, false);
if (!orderShippingTotalInclTax.HasValue || !orderShippingTotalExclTax.HasValue)
throw new NopException("Shipping total couldn't be calculated");
if (shippingTotalDiscount != null && !appliedDiscounts.ContainsDiscount(shippingTotalDiscount))
We tried to find out reason for this and got result that it is not calculating shipping rates from plugin.
Actually for we are using third party plug-in for calculation shipping rates. This plugin is specially created as per our bussiness logic. It is working fine for normal checkout from nopcommerce site but when we are creating order from newly created function for web service we are receiving error.
I changed it to default fix rate shipping from nopcommerce admin and our code worked perfect to create order from web service.
So what could be the issue here?
If you can help us with you suggestion/view on this.
Thanks In Advance.