Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

LineItem discountedTotalSet does not apply discounts

LineItem discountedTotalSet does not apply discounts

tkowalewski
Visitor
1 0 4

The graphql api documentation is saying:

 

LineItem.discountedTotalSet

The total line price after discounts are applied, in shop and presentment currencies.

 

(https://shopify.dev/api/admin-graphql/2022-07/objects/LineItem#field-lineitem-discountedtotalset)

 

But when we fetch line items data for discountedTotalSet we get value without applied discount 😐

 

For example an order is for one product that is cost 1 USD and to this order we apply 50% discount

Via graphql api we will get:

Order.totalPriceSet = 0,5 USD

LineItem.discountedTotalSet = 1 USD (but should be 0,5 USD)

 

Is that a bug or discountedTotalSet behavior/return value was changed?

 

Reply 1 (1)

_CRM
Shopify Partner
4 0 0

@Staff 

We have the same issue.

Please tell me whether it is a bug or not.