Need to create a simple maximum items in cart discount.

RonhillNZ
Visitor
3 0 2

Hi everyone,

I am trying to do something super simple, but it seems that it's impossible in Shopify without an expensive app.

I want to offer a 50% discount on one item, one time from one collection. This requires a maximum amount of products it applies to in the cart - ie apply, 50% off a maximum of 1 pair of socks per customer, per cart.

However, Shopify only does the minimum, so it means people can get the 50% off everything in the cart if I use that process. But leaves it open to abuse.

The only app that does it the way I want it to is Discount Ninja, but it's expensive to solve this small problem and I find it very buggy for some of our other deals.

Does anyone know of a process or app that will do this one simple thing?

Cheers

Replies 11 (11)
gr_trading
Shopify Partner
1387 130 151

Hi @RonhillNZ 

 

custom script which will restrict the user to have more than 1 items for discounted product.

 

 

will this work?

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | YouTube Videos
To support Buy Me a Coffee
RonhillNZ
Visitor
3 0 2

Sounds like an options but how to implement?

gr_trading
Shopify Partner
1387 130 151

Hi @RonhillNZ 

 

Sorry, for late reply.

 

Here is the solution you can create automatic product discount using discount in admin.

 

Now since you want to restrict the discount for 1 quantity.

 

Put a script which will use cart.js API to check for item exists in cart or not.

 

If item exists you can disable the add to cart CTA on product page.

 

For cart Ajax API please refer to the below URL.

 

https://shopify.dev/docs/api/ajax/reference/cart

 

Now user will able to add only one product at a moment and automatic discount will reduce its price.

 

 

Hope this will help...

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | YouTube Videos
To support Buy Me a Coffee
tobebuilds
Shopify Partner
145 9 48

Are you looking to give your customers a discount code with a maximum quantity, or an automatic discount?

Founder / Developer, Regios Technologies, Inc.
Automatic discounts | Post purchase surveys
DM me for custom app development and consulting.
satoshi_00
Shopify Partner
40 5 7

Hi @RonhillNZ 

 

I have experience in developing discount applications and I'm interested in the issues you're facing. I believe I can offer a more cost-effective solution than Discount Ninja. Could you please provide more details about your requirements?

 

Is it correct that you want to apply a 50% discount to the least expensive item from the collection of discounted items added to the cart?

 

●example

Discounted Collection A:

  • Item 1 in Collection A: $40 (2 items) → 50% discount → $40 * 0.5 + $40 = $60
  • Item 2 in Collection A: $60 (1 item) → No discount → $60
    Total price $120

 

kgonz
Visitor
1 0 0

I'm having the same issue. Would love to hire you if you are willing. Please let me know

satoshi_00
Shopify Partner
40 5 7

I am working on this issue and will be adding this feature soon to the apps I have already released.

 

https://apps.shopify.com/steppun-discount

 
 
satoshi_00
Shopify Partner
40 5 7

I have released an app to solve this issue.

You can ◯% off with a maximum purchase limit of ◯ items.

 

You can install it from here.

https://apps.shopify.com/steppun-discountスクリーンショット 2023-10-15 15.19.15.png

AngyPaws
Visitor
1 0 0

Hi Satoshi, 
I have tried your app to fix this issue and it appears to limit it to one discount for an individual product, but when different products from the collection are added, they too are discounted.  So it's still not limiting the discount to 1 total use.

AngyPaws_1-1699866653128.png

 

satoshi_00
Shopify Partner
40 5 7
 
Thank you for your reply.
I have Changed functions. One item from the collection will be discounted at random (or more precisely, the first item you put in your cart).
satoshi_00
Shopify Partner
40 5 7

I have released an app to solve this issue.

https://apps.shopify.com/steppun-discount