Liquid variable `order.total_price` field includes removed shipping fee after order edit

Short description of issue

The field order.total_price includes removed shipping fee after order edit

Link to Shopify Store

Reproduction steps

  1. Place an order with shipping price
  2. In the order management, edit order → remove existing shipping price → add new shipping price
  3. On the store front, the liquid variable order.total_price is higher than the actual price in order admin page. The gap amount contains the removed shipping price

Additional info

The order.tax_price is calculated mis-match between admin and liquid

What type of topic is this

Bug report

Upload screenshot(s) of issue

Hi @Loqfrze! Thanks for the write-up and screenshot. The side-by-side admin versus storefront comparison is useful.

The gap in your screenshot (86,513 versus 43,513 VND) exactly matches the shipping line still shown. To pin down where it comes from, it would help to see

  • the Liquid snippet that renders the storefront grand total, since I can’t tell from the image whether it’s a raw {{ order.total_price }} output or something the theme computes
  • the raw values of order.total_price, order.total_net_amount, and order.total_refunded_amount for that same order (total_net_amount is documented as total_price minus refunded amounts, so those numbers will show whether the theme’s math or the raw field is off)
  • which shipping amount was removed during the edit and what it was replaced with

For the tax mismatch, the screenshot shows 0 tax on the storefront side. Could you also share a sanitized expected-versus-actual example from where you’re seeing the difference?

Hi @Donal-Shopify , thanks for your response.

Sorry I put the wrong field name on the screenshot, the actual field I highlight is order.total_net_amount

The scenario was follow:

  1. The initial shipping fee is: 530,000 VND → original net payment is order.subtotal + order.shipping_price = 513 + 530,000 = 530,513

  2. Then I remove the original shipping fee and add a new one with value 43,000 VND. At this point the the order.total_price is expect 513 + 43,000 = 43,513

however, the value of order.total_price in liquid theme is 573,513,00 = 530,000 + 43,000 + 513 resulting the order.total_net_amount = order.total_price - order.total_refunded_amount = 573,513,00 - 487,000 = 86,513

The attached bellow show the value of order from liquid theme in the console area

Thanks for clarifying @Loqfrze! Your figures are consistent with order.total_price behaving as a cumulative sold total rather than the current active order price. The original shipping sale stays in that history and the replacement shipping is added on top, so 530,513 + 43,000 = 573,513 VND. The removal is recorded as a separate adjustment rather than erasing the original shipping sale, which is why the old fee still shows up even though the shipping line is inactive.

The order.total_net_amount field is defined as order.total_price minus order.total_refunded_amount, so 573,513 - 487,000 = 86,513 VND. The admin’s net payment figure is a different calculation (530,513 - 487,000 = 43,513), which is why the two screens disagree. The 43,000 VND gap is the replacement shipping sitting in the sold total.

For the order.tax_price report, can you share a nonzero expected versus actual example? The screenshots so far show zero tax, so there is nothing to compare yet. Thanks!

Hey @Loqfrze, that split is by design, not a bug. `order.total_price` is the original order total as placed, and Shopify exposes post-edit values through the `current_*` fields instead. Swap your snippet to `order.current_total_price` and `order.current_total_tax` (same for `current_subtotal_price`) and the storefront will match what admin shows. The Admin API mirrors this: GraphQL `Order.totalPriceSet` versus `currentTotalPriceSet`. If `current_total_price` is still inflated by the removed shipping line on that order, send the order ID to Shopify support.

Hi @Donal-Shopify , thanks for clarifying that order.total_price represents the original order total and that this behavior is by design.

I’m also providing another example related to the tax mismatch that I mentioned in the original report.

In this scenario:

  • Product price: $100.00
  • Original shipping method (Express): $15.00
  • Order edit:
    • Removed shipping: $15.00
    • Added new shipping fee: $20.00

The Shopify Admin shows:

  • Shipping: $20.00
  • Tax: $7.85 (Florida State Tax $6.73 + Miami Dade County Tax $1.12)
  • Total: $120.00

However, on the storefront, the Liquid order object returns:

  • order.shipping_price = $20.00
  • order.tax_price = $8.83
  • order.total_net_amount = $135.00

This is what I am trying to understand. The order.tax_price value does not appear to match the tax shown in Admin for the edited order. Could you clarify how order.tax_price is calculated after an order edit involving shipping changes?

Also, more generally, if order.total_price is intentionally the original order total and the Admin UI displays the current edited order values, which Liquid order fields should theme developers use to display values that match what merchants see in the Shopify Admin?

Specifically, is there a Liquid equivalent for the current order values shown in Admin (similar to currentTotalPrice / currentTotalTax in the Admin API), or what is the recommended way to display:

  • Current order total
  • Current tax amount
  • Current shipping amount

so that the customer-facing order page matches the values displayed in Shopify Admin after an order edit?

thanks for your response, however adding the prefix current_* does not work for my case, according to the document Liquid objects: order it does not mention that

hi @Donal-Shopify , just a friendly reminder regarding this issue. Could you please let me know if there are any updates or progress on the investigation?

Thanks for the worked example @Loqfrze!

Both figures are consistent with your 6% + 1% tax being included in the prices. At 7% embedded, tax on $120 is $7.85 and tax on $135 is $8.83, so the $0.98 gap matches the embedded tax on the removed $15 shipping. This doesn’t look like tax charged twice. The storefront figure is consistent with a base that still includes the original shipping amount, while admin shows the current base. Your first example fits the same pattern where the total behaves like the cumulative sold total from my earlier reply, where removals are recorded as separate adjustments rather than subtracted from the total.

For replacements, you’re right that order.current_total_price / current_total_tax don’t resolve. They’re not part of the documented order object, so that suggestion isn’t usable. For shipping, order.shipping_price reads the active shipping amount, which in your example is the current $20. If you ever discount shipping, shipping_method.price_with_discounts is the discount-aware variant. For exact current total and tax from Liquid there’s no drop-in field today. The supported route is fetching currentTotalPriceSet / currentTotalTaxSet through a small backend you control, since a theme can’t safely hold Admin API credentials. A native way to show post-edit totals directly in Liquid would be a welcome addition, and this thread is useful feedback for the team to consider.

Sorry for the wait on this one, let me know if there’s anything else I can do to help!