What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Add a minimum quantity to order product on ella theme

Add a minimum quantity to order product on ella theme

seventeenc
Shopify Partner
2 0 0

Looking for a solution to set a minimum quantity on products which contain several variants.

For instance a product has four variants in which the customer can choose any of the products but need to set a minimum amount for this instance 10.

 

Any solution would be great.

Replies 2 (2)

gr_trading
Shopify Partner
1973 146 205

Hi @seventeenc ,

 

This can be done using the custom code and the help of metafield you need to create the metafield at product or variant level which will have the minimum quantity to purchase.

 

Now you need custom logic to add to the cart page where the checkout button will be disabled stating to add minimum quantity. The same validation can also be performed at the product level when hits the add-to-cart CTA.

 

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

JimJong
New Member
56 0 0

It is possible to add a minimum quantity to order products on ella theme using the Cart Lock https://apps.shopify.com/cart-lock app easily. 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 "Products" then add your products.
  3. Click "Add a new condition" and select the "Single item quantity" the put 10 in the "Block if less than" field.
  4. In "Match conditions", select "All".
  5. In the "Error message" field, add an appropriate message which will be displayed in the checkout page.
  6. Save the rule.

ella.png

Now your customers cannot order for less than 10 for the specific items.