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.
In Canada, payment processors, like those that provide payment processing services t...
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