Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
After I have saved the shipment rate quote the shipping address is removed from the customer. This is my code where the line
Basket.GetCheckoutManager().Shipping.SaveShipmentRateQuote(quote);
triggers the shipping address to be removed.
var billingAddress = sh.GetAddressFromBillingAddress(addressDetails.BillingAddress); var shippingAddress = sh.GetAddressFromShippingAddress(addressDetails.ShippingAddress); Basket.GetCheckoutManager().Customer.SaveBillToAddress(billingAddress); Basket.GetCheckoutManager().Customer.SaveShipToAddress(shippingAddress); Basket.GetCheckoutManager().Shipping.ClearShipmentRateQuotes(); var shipment = Basket.PackageBasket(addressDetails.ShippingAddress); if (shipment != null && shipment.Any()) { var quotes = shipment.Last().ShipmentRateQuotes(); var quote = quotes.FirstOrDefault(q => q.ShipMethod.Key.ToString().Equals(addressDetails.ShippingQuote)); Basket.GetCheckoutManager().Shipping.SaveShipmentRateQuote(quote); } Basket.Save();
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Shipping address is removed after saving shipment rate quote
After I have saved the shipment rate quote the shipping address is removed from the customer. This is my code where the line
Basket.GetCheckoutManager().Shipping.SaveShipmentRateQuote(quote);
triggers the shipping address to be removed.
is working on a reply...