Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anton 135 posts 186 karma points
    Nov 02, 2015 @ 09:21
    Anton
    0

    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 enter image description here

    enter image description here

    So I cannot Fulfill sales, why it happens?

  • Anton 135 posts 186 karma points
    Nov 02, 2015 @ 16:44
    Anton
    0

    I found error I didn`t add this function

        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
        }
    
Please Sign in or register to post replies

Write your reply to:

Draft