Accepting credit cards, warehouses, and shipping and fulfilling orders
How can I get the discounted price to show in the line item in my invoice ?
Please see snippet from my order template:
<table class="table-tabular" style="margin: 0 0 1.5em 0;">
<thead>
<tr>
<th>Qty</th>
<th>Image</th>
<th>Item</th>
{% if show_line_item_taxes %}
<th>Taxes</th>
{% endif %}
<th>Price</th>
</tr>
</thead>
<tbody>
{% for line_item in line_items %}
<tr>
<td><strong>
{% if line_item.quantity > 1 %}
<span style="color:red;background-color:#ffff00;font-weight:bold">{{ line_item.quantity }}</span>
{% else %}
{{ line_item.quantity }}
{% endif %} x</strong></td>
<td>{{ line_item.image | img_url: 'small' | img_tag }}</td>
<td><b>{{ line_item.title }}</b>
{% for property in line_item.properties %}
{% if property.first contains '_io_' %}{% continue %}{% endif %}
<br>{{ property.first }}: {{ property.last }} {% endfor %}
</td>
{% if line_item.tax_lines %}
<td>
{% for tax_line in line_item.tax_lines %}
{{ tax_line.price | money }} {{ tax_line.title }}<br/>
{% endfor %}
</td>
{% endif %}
<td>
{% if line_item.original_price != line_item.price %}
<s>{{ line_item.original_price | money }}</s>
{% endif %}
{{ line_item.price | money }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
I have the same problem, I checked this article: https://shopify.dev/api/liquid/objects/order#order-discount_applications and all variables are wrong I cannot display the price of the items in the order after applying a certain discount via promo code!!! 😞 live chat didn't help too.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025