Copied to clipboard

Flag this post as spam?

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


  • Spyros Spyriadis 46 posts 70 karma points
    Oct 28, 2017 @ 12:54
    Spyros Spyriadis
    0

    Discount price not visible during checkout / Smart filters

    Hello all,

    I am trying to finalize an e-shop created with merchello and have 3 questions:

    1. Is there any smart way to get the list of filters that have at least one product? (and also maybe get that after filtering for a specific collection?)

    2. Can I have a total of items contained in each filter?

    3. During checkout I cannot find in the Items list the Discount although it has been applied. (I am trying to show that at step Payment and i'm using the BasketSummary.chtml from FastTrack as a base) For this I have already tried :

      • CurrentCustomer.Basket().Items
      • Model.Items
      • CheckoutExtensions.GetCheckoutManager(basket).Context.ItemCache (the last one appears to have the shipping line items but still not the discount items)

    Any ideas? (Using Merchello 2.5 with Umbraco 7.5.14)

    Thank you all in advance! :)

  • Spyros Spyriadis 46 posts 70 karma points
    Oct 31, 2017 @ 19:46
    Spyros Spyriadis
    0

    For the record this is what did the trick for me to get all the discounts / shipping charges and the final payment total.

    var basket = CurrentCustomer.Basket(); var checkout = CheckoutExtensions.GetCheckoutManager(basket); var invoice = checkout.Payment.PrepareInvoice();

    There you get from the invoice: 1. invoice.DiscountLineItems() 2. invoice.Total.AsFormattedCurrency()

    Still havent managed to get the total product count per filter or the list of filters that apply to an item.

Please Sign in or register to post replies

Write your reply to:

Draft