Displaying cart level discounts on line items

Displaying cart level discounts on line items

cillulta
Visitor
3 0 0

Hello all,

We have a discount code set up which is only available to customers with a specific tag and only applicable to specific product collections (cart level discount?).  We are attempting to add a column to my invoice template in Order Printer which reflects the individual line item price with the cart level discount applied and adjusted line total.  For the life of me, I cannot figure out how to do this and we did not receive a workable solution when we reached out to the developers. 

We have found a paid app which is able to do this - so we know it is possible.  However, there are other aspects of the paid app which will not work for us (well, in addition to the cost). 

  • line_item.original_price does return the original price
  • line_item.final_price returns a blank (as do many similar variables related to line items and discounted amounts)

Would anyone have any suggestions for how we could retrieve this information?

Many thanks!

 

*paid app displaying original price, discounted price of line items, and updated line totals

cillulta_0-1629291728608.png

*the same order using my Order Printer template - unable to find the code needed to display the same discounted prices as above.

cillulta_2-1629292552826.png

cillulta_3-1629292594269.png

 

Reply 1 (1)

matt55
Shopify Partner
7 0 1

Same exact issue. I have tried all the end points on the line items and nothing works.

Can anyone chime in on this one?