What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Re: Product Discount API Multiple Automatic Discounts limit

Product Discount API Multiple Automatic Discounts limit

adkhamllama
Shopify Partner
27 1 50

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
171 43 73

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
10 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
27 1 50

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
10 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
27 1 50

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
10 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
27 1 50

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 30

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

taylor-single
Shopify Partner
21 2 30

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 Partner
98 1 59

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
Excursionist
14 0 6

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.