Product Discount API Multiple Automatic Discounts limit

adkhamllama
Shopify Partner
24 0 46

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 13 (13)

Nick_Wesselman
Shopify Staff
123 31 49

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 2

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
24 0 46

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 2

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
24 0 46

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 2

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
24 0 46

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 1

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
21 2 29

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

taylor-single
Shopify Partner
21 2 29

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.

Liquify
Shopify Expert
95 0 52

Yeah for reference shopify - if anyone from the team is is reading this. We've hit this a dozen times already trying to migrate scripts to functions - all enterprise + clients.

Everyone thinks this arbitrary limit is plain stupid: our developers & clients

Whoever decided this (as well as pretty much all of the B2B functionality on Plus) clearly has limited experience client side and what people actually need.

★★★ Need help setting up your Shopify store? Hire me here: https://liquify.design ★★

Jill-Rush
Tourist
8 0 0

The craziest thing about this is Shopify is rolling out all these functions that improve your sales but the one thing that would actually help (the ability to create more discounts) isn't something they are addressing.

 

I finally found an app that allows me to create discounts for the different levels of customers we have and I can only create 5. This also prevents me from setting up upcoming discounts that will automatically turn on when the previous ones turn off. This is beyond frustrating and is limiting my ability to gain sales though deals.

 

Of course, I wouldn't have to go to an app for discounts if Shopify's automatic discounts let me pick customer segments to target with discounts. Please do something about all of this.