packing slip

Hello Everyone

I edited the packing slip template . It displays the total price of the order. But the problem is that if I edit someone’s order and remove one item, and then generate the packing slip, it does not update the price; it still shows the old price .

Here’s the code

Order {{ order.name }}

{% if order.po_number != blank %}

PO number #{{ order.po_number }}

{% endif %}

{{ order.created_at | date: format: "date" }}

{% if delivery_method.instructions != blank %}Delivery to{% else %}Ship to{% endif %}

{% if shipping_address != blank %} {{ shipping_address.name }} {% if shipping_address.company != blank %}
{{ shipping_address.company }}{% endif %}
{{ shipping_address.address1 }} {% if shipping_address.address2 != blank %}
{{ shipping_address.address2 }}{% endif %} {% if shipping_address.city_province_zip != blank %}
{{ shipping_address.city_province_zip }}{% endif %}
{{ shipping_address.country }} {% if shipping_address.phone != blank %}
{{ shipping_address.phone }}{% endif %} {% else %} No shipping address {% endif %}

Bill to

{% if billing_address != blank %} {{ billing_address.name }} {% if billing_address.company != blank %}
{{ billing_address.company }}{% endif %}
{{ billing_address.address1 }} {% if billing_address.address2 != blank %}
{{ billing_address.address2 }}{% endif %} {% if billing_address.city_province_zip != blank %}
{{ billing_address.city_province_zip }}{% endif %}
{{ billing_address.country }} {% else %} No billing address {% endif %}


Items

Quantity

{% assign desired_image_size = 58 %}
{% assign resolution_adjusted_size = desired_image_size | times: 300 | divided_by: 72 | ceil %}
{% capture effective_image_dimensions %}
{{ resolution_adjusted_size }}x{{ resolution_adjusted_size }}
{% endcapture %}

{% for line_item in line_items_in_shipment %}

{% if line_item.image != blank %}
{{ line_item.image | img_url: effective_image_dimensions | img_tag: '', 'aspect-ratio__content' }}
{% endif %}

{{ line_item.title }} {% if line_item.variant_title != blank %} {{ line_item.variant_title }} {% endif %} {% if line_item.sku != blank %} {{ line_item.sku }} {% endif %} {% for group in line_item.groups %} Part of: {{ group.title }} {% endfor %}

{% if line_item.final_price %}
Total: {{ line_item.final_price | times: line_item.quantity | money }}
{% endif %}

{{ line_item.shipping_quantity }} of {{ line_item.quantity }}

{% endfor %}

{% unless includes_all_line_items_in_order %}


There are other items from your order not included in this shipment.

{% endunless %}

{% if order.total_discounts > 0 %}

Discounts: –{{ order.total_discounts | money }}

{% endif %}

{% if order.total_tax > 0 %}

Tax: {{ order.total_tax | money }}

{% endif %}

Total: {{ order.total_price | money }}

{% if order.note != blank %}

Notes

{{ order.note }}

{% endif %}

{% if delivery_method.instructions != blank %}

Delivery instructions

{{ delivery_method.instructions }}

{% endif %}

Thank you for shopping with us!

{{ shop.name }}
{{ shop_address.summary }}
{{ shop.email }}
{{ shop.domain }}

body { font-size: 15px; } * { box-sizing: border-box; } .wrapper { width: 831px; margin: auto; padding: 4em; font-family: "Noto Sans", sans-serif; font-weight: 250; } .header { width: 100%; display: flex; flex-direction: row; align-items: flex-start; } .header p { margin: 0; } .shop-title { flex: 6; font-size: 1.9em; } .order-title { flex: 4; } .customer-addresses { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; margin: 2em 0; } .shipping-address, .billing-address { flex: 1 1 45%; min-width: 18em; padding-right: 2em; } .address-detail { margin: 0.7em 0 0; line-height: 1.5; } .subtitle-bold { font-weight: bold; margin: 0; font-size: 0.85em; } .to-uppercase { text-transform: uppercase; } .text-align-right { text-align: right; } .order-container { padding: 0 0.7em; } .order-container-header { display: inline-block; width: 100%; margin-top: 1.4em; } .order-container-header-left-content { float: left; } .order-container-header-right-content { float: right; } .flex-line-item { display: flex; flex-direction: row; align-items: center; margin: 1.4em 0; page-break-inside: avoid; } .flex-line-item-img { margin-right: 1.4em; min-width: 58px; } .flex-line-item-description { flex: 7; } .line-item-description-line { display: block; } .flex-line-item-description p { margin: 0; line-height: 1.5; } .flex-line-item-quantity { flex: 3; } .subdued-separator { height: 0.07em; border: none; color: lightgray; background-color: lightgray; margin: 0; } .missing-line-items-text { margin: 1.4em 0; padding: 0 0.7em; } .notes { margin-top: 2em; } .notes p { margin-bottom: 0; } .notes .notes-details { margin-top: 0.7em; } .footer { margin-top: 2em; text-align: center; line-height: 1.5; } .footer p { margin: 0; margin-bottom: 1.4em; } hr { height: 0.14em; border: none; color: black; background-color: black; margin: 0; } .aspect-ratio { position: relative; display: block; background: #fafbfc; padding: 0; } .aspect-ratio::before { z-index: 1; content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 1px solid rgba(195,207,216,0.3); } .aspect-ratio--square { width: 100%; padding-bottom: 100%; } .aspect-ratio__content { position: absolute; max-width: 100%; max-height: 100%; display: block; top: 0; right: 0; bottom: 0; left: 0; margin: auto; }

Order has several totals.

As per https://shopify.dev/docs/api/liquid/objects/order#order-total_price :

The total price is calculated before refunds are applied. Use order.total_net_amount to output the total minus any refunds.

So this would be my first step – try using this one.

Can you please provide me with the complete code, as I am not into coding that much.
Thanks

This line:


Total: {{ order.total_price | money }}

Use the other property instead:


Total: {{ order.total_net_amount | money }}

When I do this, the price disappears.

Hmm. My code:

<strong>
            {{ order.total_price | money }} 

            {{ order.total_net_amount | money }}
        </strong>

Result (under Total):

Screenshot 2025-06-26 at 5.42.52 PM.png

Since I have no refunds, amount is the same, as it should be.