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.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025