Show discount amount on line item on Order Printer invoice template

Show discount amount on line item on Order Printer invoice template

rr1
Tourist
6 0 1

Hi

 

Can anyone help with showing discount amount on each line item please.  My code is below. have tried all the variables but I'm just not an html wizard. also attached current invoice layout so i would like the discount amount to be sat between the price net and net total. Its an automatic discount, no code. Thank you!

 

<h4 style="margin: 0 0 1em 0;">Item Details</h4>

<table class="table-tabular" style="margin: 0 0 1.5em 0;">
<thead>
<tr>
<th>Quantity</th>
<th>Item</th>
{% if show_line_item_taxes %}
<th>Price each</th>

{% endif %}

<th>Net total</th>

</tr>
</thead>
<tbody>
{% for line_item in line_items %}
<tr>
<td>{{ line_item.quantity }} x</td>
<td><b>{{ line_item.title }}</b></td>
<td>
{% if line_item.original_price != line_item.price %}
<s>{{ line_item.original_price | money }}</s>

{% endif %}
{{ line_item.price | money }}

</td>

{% if line_item.tax_lines %}

{% endif %}

<td>{{ line_item.price | times: line_item.quantity | money }}</td>


</tr>
{% endfor %}
</tbody>
</table>

 

 

 

Capture.JPG

Replies 3 (3)

greghuntoon
Shopify Partner
4 0 1

Could definitely use some help on this one as well. Having a difficult time accessing the discount(s) object through Order Printer.

Fujihime
Visitor
2 0 1

Having the same problem, please help...

DogFurniturePro
Tourist
4 0 4

Did you ever get help with this. I'm also looking for a solution. Thanks a bunch!