Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi!
I'm trying to show the updated price of a line item when the quantity of it has been modified. The Storefront API only exposes the originalTotalPrice field which has the original price. How do I query for and show the updated price of line items.
I see that there is quantity and currentQuantity, would be nice if there was a similar currentTotalPrice.
https://shopify.dev/docs/api/storefront/2024-04/objects/OrderLineItem
*Not related to javascript but could not find an appropriate label
In what context are you trying to update the price of a line item? It will help if we understand what you are trying to achieve in the very first place.
My storefront just reads data from the API. It does not update. Updates can happen from the Shopify admin/dashboard. The reason could be anything, the customer requested to update their order, a line item was low on stock, really anything.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey 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, 2025