Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi, I need help on editing packing slips!
I've managed to add the product price, shipping rate and order total quantity, amount etc to my packing slip.
However, whenever an order is edited (ie. removing products), the amounts on the packing slip does not change.
Does anyone know the code to deduct cancelled items from the packing slips?
This is the code I'm currently using.
<p class="text-align-right">
{% assign final_price = nil %}
{% assign line_name = line_item.title %} {% if line_item.variant_title != blank %} {% assign line_name = line_name | append: " - " | append: line_item.variant_title %} {% endif %} {% for item in order.line_items %} {% assign order_name = item.title %}
{% if order_name == line_name %}
{% assign final_price = item.final_price %}
{% endif %}
{% endfor %}
{% if final_price %}
{{ final_price | money }}
{% endif %}
/
{{ line_item.quantity }}
</p>
</div>
</div>
{% endfor %}
</div>
{% unless includes_all_line_items_in_order %}
<hr class="subdued-separator">
<p class="missing-line-items-text ">
</p>
{% endunless %}
<br><br><br>
<div class="flex-totals">
<p class="text-align-right">
Subtotal:{{ order.subtotal_price | money }}
<br>
Shipping {{ order.shipping_price | money }}
<br>
<strong>
Order Total {{ order.total_price | money }} </strong>
<br><br>
Taxable Amount {{ order.total_price | minus: refund_amount | money }}
<br>
Tax Amount {{ order.total_price | divided_by: 1.1 | times: 0.1 | money }}
<br>
Payment Method Credit Card
</p>
</div>
Hi! I was trying to add the product price, shipping rate and order total quantity, amount etc to my packing slip as well. Is this the full code sequence and where do you include it in the template so it reads correctly?
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey 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, 2024