App reviews, troubleshooting, and recommendations
Hello!
I tried for the first time to use the automatic discount on shopify. It work great but I use order printer and order printer template to print my invoices and the discount do not appear in it.
Is there something i could do to fixe this?
Hi,
You'll need to modify your template with Order Printer to include the discount applied to the order. This should be one of the merge fields that you can add.
Good luck!
Our's does not show either. What would be the edit to fix this please?
I believe I figured it out. Moved discount code to the top and altered it that it will show if there is an amount over $0.00
FROM:
<table class="table-tabular" style="margin: 0 0 1.5em 0; padding: 1em; border: 0px solid black;">
<tr>
<td>Subtotal price:</td>
<td>{{ subtotal_price | money }}</td>
</tr>
{% for discount in discounts %}
<tr>
<td>Includes discount "{{ discount.code }}"</td>
<td>{{ discount.savings | money }}</td>
</tr>
{% endfor %}
<tr>
<td>Total tax:</td>
<td>{{ tax_price | money }}</td>
</tr>
{% if shipping_address %}
<tr>
<td>Shipping:</td>
<td>{{ shipping_price | money }}</td>
</tr>
{% endif %}
<tr>
<td><strong>Total price:</strong></td>
<td><strong>{{ total_price | money }}</strong></td>
</tr>
{% if total_paid != total_price %}
<tr>
<td><strong>Total paid:</strong></td>
<td><strong>{{ total_paid | money }}</strong></td>
</tr>
TO:
<table class="table-tabular" style="margin: 0 0 1.5em 0; padding: 1em; border: 0px solid black;">
{% comment %} Discount Amounts {% endcomment %}
{% if total_discounts > 0 %}
<tr>
<td>Total Discounts:</td>
<td>{{ total_discounts | money }}</td>
</tr>
{% endif %}
<tr>
<td>Subtotal price:</td>
<td>{{ subtotal_price | money }}</td>
</tr>
<tr>
<td>Total tax:</td>
<td>{{ tax_price | money }}</td>
</tr>
{% if shipping_address %}
<tr>
<td>Shipping:</td>
<td>{{ shipping_price | money }}</td>
</tr>
{% endif %}
<tr>
<td><strong>Total price:</strong></td>
<td><strong>{{ total_price | money }}</strong></td>
</tr>
{% if total_paid != total_price %}
<tr>
<td><strong>Total paid:</strong></td>
<td><strong>{{ total_paid | money }}</strong></td>
</tr>
I got mine working, add this to the template just above subtotal section.
<tr>
{% if total_discounts > 0 %}
<td>Discount amount:</td>
<td>{{ total_discounts | money }}</td>
{% endif %}
</tr>
Thanks for the solution.
I used this to include the discount name for Non-Automatic discounts.
{% if total_discounts > 0 %}
<tr>
<td>Total Discounts: {% for discount in discounts %}"{{ discount.code }}"{%endfor%}</td>
<td>{{ total_discounts | money }}</td>
</tr>
{% endif %}
Thanks Craig you just solved my problem of displaying the discount for an automatic percentage off sale. 🙂
Thanks Craig.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024