private void SaveApprovedShipmentRateQuote(Guid shipMethodKey)
{
// if (!ModelState.IsValid) return CurrentUmbracoPage();
var shippingAddress = Basket.SalePreparation().GetShipToAddress();
// if (shippingAddress == null) return RedirectToUmbracoPage(GetContentIdByContentName(ShipRateQuotePage));
// Get the shipment again
var shipment = Basket.PackageBasket(shippingAddress).FirstOrDefault();
// Clear any previously saved quotes (eg. the user went back to their basket and started the process over again).
Basket.SalePreparation().ClearShipmentRateQuotes();
// get the quote using the "approved shipping method"
var quote = shipment.ShipmentRateQuoteByShipMethod(shipMethodKey);
// save the quote
Basket.SalePreparation().SaveShipmentRateQuote(quote);
// return SavePayment(); // Proceed to step 3
}
Why shipping is empty?
I did example of merchello from official site
and when I set in controller
Basket.SalePreparation().SaveShipToAddress(address);
in admin panel it is empty
So I cannot Fulfill sales, why it happens?
I found error I didn`t add this function
is working on a reply...