Add a minimum quantity to order product on ella theme

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.

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.

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.

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