So I would like the 20% discount to be shown on the order printer invoice I sent to my customers. On my POS sales it crosses out the old amount and displays the discounted price. But on my online sales channel sales it does not. Any ideas on how I can alter the code?
This is my current code…
{{ "now" | date: "%m/%d/%y" }}
Invoice for {{ order_name }}
{{ shop.address }}
{{ shop.city }} {{ shop.province_code }} {{ shop.zip | upcase }}
{{ shop.country }}
Item Details
{{ discounts_amount }} {% for line_item in line_items %} {% endfor %}| Quantity | Item | Price |
|---|---|---|
| {{ line_item.quantity }} x | {{ line_item.title }} |
{% if line_item.original_price != line_item.price %}
|
Payment Details
{% if discounts_savings != 0 %} {% for discount in discounts %}{{ discount.savings | times: -1 | plus: subtotal_price | money }}{% endfor %} {% else %} {{ subtotal_price | money }} {% endif %} {% if shipping_address %} {% endif %} {% if total_paid != total_price %}{% endif %}
| Subtotal price: | {{ subtotal_price | money }} |
| Total tax: | {{ tax_price | money }} |
| Shipping: | {{ shipping_price | money }} |
| Total price: | {{ total_price | money }} |
| Total paid: | {{ total_paid | money }} |
{% if note %}
Note
{{ note }}
{% endif %}{% if shipping_address %}
Shipping Details
{{ shipping_address | format_address }}

