Minimum order quantity for product, block add to cart if requirements are not met

Minimum order quantity for product, block add to cart if requirements are not met

WoutervdMeer
Shopify Partner
85 1 15

Hi there Shopify community,

 

I managed to set the default input fields for specific products at 12, and with the arrow down you are not able to go below this minimum.
The problem is that you are able to manually edit this number to any number and that you can add this to your cart without problem.

See: https://www.biervaneigenbodem.nl/collections/bierglazen/products/breughel-bierglas-48cl

 

Is there a way to block the add to cart system if the amount added is less than 12?

Or is there a way to always change the input value back to 12 if the input value is less than 12.

 

Please help me out 🙂

 

Kind regards,

Wouter vd Meer

Biervaneigenbodem.nl 

Kind regards,
Wouter van der Meer
info@biervaneigenbodem.nl
https://www.biervaneigenbodem.nl/
Replies 7 (7)

sahilsharma9515
Shopify Partner
1206 156 233

Hi @WoutervdMeer Yes this can be possible, but I have a question that this will be applicable for just the product that you have attached?

 

If yes then you will be able to achieve this with If and else condition so that if the quantity will be less then 12 the button will get disabled and if not then it will be enabled.

 

If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


WoutervdMeer
Shopify Partner
85 1 15

Hi @sahilsharma9515 ,

 

The products all have a product type of "bierglazen".

All of these products should have a minimum order quantity of 12.

Can you help me out with that?

Kind regards,
Wouter van der Meer
info@biervaneigenbodem.nl
https://www.biervaneigenbodem.nl/
sahilsharma9515
Shopify Partner
1206 156 233

Hi @WoutervdMeer Yes, I will be able to help in this situation, but it will require a custom code to achieve this.

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


WoutervdMeer
Shopify Partner
85 1 15

Hi @sahilsharma9515 ,

Can you do a price offer to info@biervaneigenbodem.nl ?

Please include:
- Amount of hours
- When you are able to start

Kind regards,
Wouter van der Meer
info@biervaneigenbodem.nl
https://www.biervaneigenbodem.nl/
sahilsharma9515
Shopify Partner
1206 156 233

Hi @WoutervdMeer 

 

Just sent you the email with all the details.

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


sahilsharma9515
Shopify Partner
1206 156 233

Hi @WoutervdMeer 

 

Just want to verify that did you got my email or not?

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


JimJong
New Member
56 0 0

You can set a minimum order quantity using the Cart Lock https://apps.shopify.com/cart-lock app. Here is how you can do it:

 

  1. Open the app and click on the "Add a new rule" button.
  2. Click "Add a new condition" and select the "Single item quantity" then put 12 in the "Block if less than" field.
  3. You can add the product tag, collection etc conditions if you need to target specific products.
  4. In the "Error message" field, add an appropriate message which will be displayed in the checkout page.
  5. Save the rule.

minqty.png

 

Now your store can only accept order 12 or more quantity.