Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
We have some orders that have discounts applied. Some orders have discounts applied on an order level (e.g 10% off the entire order), others have discounts are applied directly to a specific product in the order (e.g buy 2 get 1 free). However on an `Order`’s `LineItems` in the Storefront API, `discountedTotalPrice` is always equal to `originalTotalPrice`, even though that `LineItem` has `discountAllocations` returning the correct amount of discount on that `LineItem`.
Shouldn’t `discountedTotalPrice` include the discounts returned inside a `LineItem`s `discountAllocation` array?
I'm seeing the same behavior on my end as well, discountedTotalPrice is not reflecting the discount associated with that line item
Hey @Kieran-madefres
Do you happen to have an order ID or a request ID so I can take a look?
Kevin_A | Solutions Engineer @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog