Limit Quantity with a Buy Button

heavysoundlabs
New Member
5 0 0

Hi,

We are using a buy button in our webapp to allow users to redeem points in our community for a $0 tshirt that is only available through a buy button which we display if they have enough points. 

Fix I am trying to make is making sure that users only order one tshirt. I found apps that limit order quantities for a product, but I read that those plugins don't work for buy buttons. 

Anyone have a fix for my problem here?

0 Likes
OliUK
Shopify Partner
193 2 32

Hi @heavysoundlabs ,

I had a think about this and nothing obvious came to mind, but I do have one idea...

The issue as I see it is that you could hide the quantity button, but the customer would always be able to increase the quantity at the cart level.

Have you considered hiding the product from all collections and then using a constructed payment URL instead? There's a type of payment URL that locks in the order quantity and only displays the checkout page. This is how it's constructed:

'https://shopwebsite.com/cart/' + variant id + ':' + quantity

So, an example could be:

https://thebeststore.com/cart/31917583734253:1

You could then include this in an email or even create a 'fake' buy button linking to it, just for the product in question.

 

Cheers,

Oli

 

——————————

Founder @ www.preproduct.io

Test and make sales for future products

 

 

0 Likes