Shopify Function With Product Discount API Critical Limitation

We have successfully deployed our Shopify function for volume discounts. e.g.

  • Buy 2 get 10% Off
  • Buy 3 get 15% Off

Now the issue is

DiscountApplicationStrategy

is limiting discount application to only 1, even if more than 1 line items are eligible for discount. Is there any work around this? What is the actual benefit of this field?

Looking forward to more information, or a possible solution.

Thank you

1 Like
DiscountApplicationStrategy

is just the strategy that’s applied to the list of discounts. (the first satisfied condition discount or the maximum reduction discount)

The line items that are eligible for discount are defined in discounts.

Ex: If you want the targets of discount A is product B, product C, just define them (B,C) in targets and discount value (A) in value