Copied to clipboard

Flag this post as spam?

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


  • James Pawsey 10 posts 119 karma points c-trib
    Sep 11, 2018 @ 09:55
    James Pawsey
    0

    Discount not showing in Invoice Summary until after Payment

    Hi there,

    I am using Merchello v2.6.0 on Umbraco 7.11 and I am having some trouble with applying discounts.

    I have followed Merchello.Bazaar in the implementation of RedeemCouponOffer.

     public ActionResult RedeemCouponOffer(RedeemCouponOfferModel model)
        {
            if (string.IsNullOrEmpty(model.OfferCode)) return this.CurrentUmbracoPage();
    
            var checkoutMgr = this.Basket.GetCheckoutManager();
    
            var result = checkoutMgr.Offer.RedeemCouponOffer(model.OfferCode);
            ViewBag.CouponRedemptionResult = result;
    
            return RedirectToUmbracoPage(ViewOrderId);
        }
    

    This does not add the discount to the incomplete summary that we show to a customer before payment but it will be displayed on the complete summary displayed after payment with the discount applied to the amount paid.

    I have tried a few different ways to display the discount but none seem to work so any help would be greatly appreciated.

    Thanks James

Please Sign in or register to post replies

Write your reply to:

Draft