Product Discount API Multiple Automatic Discounts limit

adkhamllama
Shopify Partner
13 0 40

I am using Shopify Functions to create Automatic Product Discount and faced the problem of maximum 5 active automatic discounts. In this article about combining multiple discounts it was stated that we can have up to 25 automatic discounts active on store. I understand that automatic discount created by app is a bit different.
I would like to know if this limit is going to be increased?
Or where can I find information about such limitations?

Graphql error when creating 6th discount:

{
"code": "INVALID",
"message": "The active period overlaps with that of another price rule",
"field": [
"automaticAppDiscount"
]
}

 

Replies 11 (11)
Nick_Wesselman
Shopify Staff
Shopify Staff
89 23 33

Hi @adkhamllama -- Yes there is currently a limit of 5 active app-based discounts at a time. We do plan to increase this. We've created an issue internally to improve the documentation on this. Sorry for the confusion!

Nick Wesselman | 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 the Shopify Help Center or the Shopify Blog

sonchu
Shopify Partner
7 0 5

Hey Nick, is there any update regarding the limit of the app-based automatic discounts?

dan-hrpr
Shopify Partner
4 0 1

I've just spent some time getting an automatic tiered discount to work and we need more tiers.

For some reason I can't create more than 3.

I've checked using the admin graphql schema and can only find 3. (I've been messing around with multiple apps so thought there might be some rogue ones hanging around)

Cheers Dan

adkhamllama
Shopify Partner
13 0 40

Hello @Nick_Wesselman we are still limited by 5 discounts. Moreover I have noticed that this limit of 5 is per store. Meaning I have installed another app which also creates such discounts. Now my app cannot create event 5 discounts.
Can you provide information on status of increasing the limit?

dan-hrpr
Shopify Partner
4 0 1

In the end I created a UI with the number of tiers I needed and that seemed to work.

 

The only issue I haven't worked out yet is that if I have 5 tiers with different discount amounts it only shows the title of the discount rule which is generic "Loyalty scheme" whereas I would like  "Loyalty scheme 5%", "Loyalty scheme 10%"  etc.

I guess there would be a performance impact if you allowed a lot more automatic discounts as it would have to check them all and then work out which apply and which don't etc.

Cheers Dan

adkhamllama
Shopify Partner
13 0 40

Hello @dan-hrpr 
Do you mean you were able to create 5 discounts but apply different discount amount from a single discount? Example: function_result has 2 discounts for different products [

{
targets:[product1],
value: 10%,
},
{
targets:[product2],
value: 50%,
}

]

dan-hrpr
Shopify Partner
4 0 1

Yes,

But I don't filter by products so it's easier in that respect, my discount applies to all products but still respects the maximum rule so if another discount works out to be more then that one takes precedent. 

My app creates a metafield on the customer object called "Tier" automatically when it the app installed. The only allowed values are "Tier 1", "Tier 2", "Tier3", "Tier 4", "Tier 5"

The discount configuration page has 5 (hard coded) fields, a discount for each Tier.

The discount function queries the current customer to find the current discount tier from the metafield and then matches that with the discount rule.

I'm not sure what your discount logic is?
Screenshot 2023-09-18 at 14.40.59.jpg
adkhamllama
Shopify Partner
13 0 40

Thank you @dan-hrpr 
I see what you did.
I just asked because there is a question here regarding Maximum rule that was not allowing to have multiple discount application from a single discount

Athena4
Shopify Partner
1 0 0

I know this reply is a bit older at this point, but I am wondering if there is a timeline I can expect this increase to incur? Trying to setup my shop discounts and am limited to 5... I need/want to have the option to do 20 different discounts. Thank you!

taylor_single
Shopify Partner
18 1 24

Over a year later and the documentation is still not updated. You love to see it 😂

taylor_single
Shopify Partner
18 1 24

What makes this even more wild is it's not 5 per app per store, it's five per store shared across all apps installed in the store. Just madness.