Need DiscountApplicationStrategy: ALL

Need DiscountApplicationStrategy: ALL

markus12
Shopify Partner
30 1 14

A function can return multiple discounts. Need ALL of them to be applied, not just one:  https://shopify.dev/api/functions/reference/product-discounts/graphql/common-objects/discountapplica...

 

Use case: Volume discount, included in examples.

1st cart line product can meet Tier 1, needs to get a 10% discount

2nd cart line (another product) can meet Tier 3, needs to get a 30% discount

 

There's already a setting per "function discount"  which says if (all) the discounts provided by this function combinesWith other product discounts

https://shopify.dev/api/admin-graphql/2022-07/mutations/discountAutomaticAppCreate

so the `DiscountApplicationStrategy` is useless. The function can manage it's own internals and return one or more discounts. 

Replies 7 (7)

Greg_P
Shopify Partner
41 4 30

Hi Shopify,

 

any chance that strategy ALL will be added soon?

Best,
Greg

Shopify Developer
If I have solved your issue, please mark my post as accepted solution 🙂
abdul81
Shopify Partner
20 1 2

Hi @Greg_P @markus12 we are getting the same limitation, have you got any solution or work-around this one?

 

Thanks

Abdul

Product Manager at Developer's Capital

  • Creator of App Quantity & Volume Discounts
  • Was my reply helpful? Click Like to let me know!
  • Was your question answered? Mark it as an Accepted Solution
,new value=Product Manager at Developer's Capital
  • Creator of App Quantity & Volume Discounts
  • Was my reply helpful? Click Like to let me know!
  • Was your question answered? Mark it as an Accepted Solution
Greg_P
Shopify Partner
41 4 30

Well, as we need only 2 discounts at the same time we decided to use 2 separated functions, but it's not something which make us happy 😉 Strategy ALL would be the best solution.

Shopify Developer
If I have solved your issue, please mark my post as accepted solution 🙂

nbfusion
Shopify Partner
3 0 3

We need this also. Has Shopify support responded?

Greg_P
Shopify Partner
41 4 30

Hi @nbfusion, please look here https://github.com/Shopify/function-examples/discussions/194 and upvote 😉 It’s not a good news but better than nothing.

Shopify Developer
If I have solved your issue, please mark my post as accepted solution 🙂

SGSdev
Shopify Partner
18 2 7

This is also an issue for us. We need to be able to apply different discount amounts on different line items. This should be based on the line item, not the variant ID. We need the same capabilities that the Script Editor currently has.

shrey2506
Shopify Partner
3 0 0

Hey @markus12 ,

Are you using two order discount shopify functions or one order discount and one product discount shopify function to apply multiple discounts?