{"id":3866,"date":"2024-12-16T09:43:19","date_gmt":"2024-12-16T09:43:19","guid":{"rendered":"https:\/\/ithemelandco.com\/docs\/woommp\/?p=3866"},"modified":"2025-11-08T12:24:43","modified_gmt":"2025-11-08T12:24:43","slug":"set-min-max-qty-res-for-variations","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/docs\/woommp\/set-min-max-qty-res-for-variations\/","title":{"rendered":"How to set minimum and maximum quantity restrictions for each product variation?"},"content":{"rendered":"\n<p>If you are selling variable products in your online shop, you may need to set minimum and maximum quantity restrictions for each product variation. The rule you set for each individual variation could be different from the general rule applied to all simple or variable products in your store.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Read More:<\/strong> <a href=\"https:\/\/ithemelandco.com\/docs\/woommp\/minimum-and-maximum-quantity-restriction-to-product\/?utm_source=docs&amp;utm_content=product-variation-min-max-quantity-res\" target=\"_blank\" rel=\"noreferrer noopener\">How to Set Minimum and Maximum Quantity Restriction to WooCommerce Product? (all\/individual)<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>In this tutorial, we will show you how to set the minimum and maximum quantity restriction of individual variation with the <a href=\"https:\/\/ithemelandco.com\/plugins\/woocommerce-min-max-quantity\/?utm_source=docs&amp;utm_content=product-variation-min-max-quantity-res\" target=\"_blank\" rel=\"noreferrer noopener\">MINMAXiT &#8211; Min and Max Quantity for WooCommerce plugin<\/a> in three simple steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Enable Min and Max quantity restrictions settings for products<\/h3>\n\n\n\n<p>First, you must enable product quantity restriction on the plugin <strong>General<\/strong> setting. For this:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>navigate to the below address to see the main page <strong>WordPress Dashboard &gt; iThemeland &gt; Min and Max Quantity.<\/strong><\/li>\n\n\n\n<li>Then in the <strong>General<\/strong> tab, find the <strong>Product restrictions<\/strong> section.<\/li>\n\n\n\n<li>Mark the <strong>Enable product quantity restriction<\/strong> checkbox.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/01-enable-product-quantity-restriction.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"950\" height=\"578\" src=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/01-enable-product-quantity-restriction.png\" alt=\"enable product quantity restriction \" class=\"wp-image-3867\"\/><\/a><\/figure>\n\n\n\n<p>\u00a0Now, you can set a new rule for all products in your store if needed\u00a0\u2013 Read a step-by-step guide here, then go through the next step to override a rule just for a single variation.\u00a0<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Read More:<\/strong> <a href=\"https:\/\/ithemelandco.com\/docs\/woommp\/minimum-and-maximum-quantity-restriction-to-product\/?utm_source=docs&amp;utm_content=product-variation-min-max-quantity-res\" target=\"_blank\" rel=\"noreferrer noopener\">How to Set Minimum and Maximum Quantity Restriction to WooCommerce Product? (all\/individual)<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>It is also possible to directly set a rule for an individual variation without changing the general tab&#8217;s restrictions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Set minimum and maximum quantity limit for one variation<\/h3>\n\n\n\n<p>To apply a minimum and maximum quantity limit for a single variation, follow the below instructions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Products &gt; All products.<\/strong><\/li>\n\n\n\n<li>Hover over the variable product that you want to set limits for its variations and press <strong>Edit<\/strong>.<\/li>\n\n\n\n<li>Scroll down and find the <strong>Min\/Max settings<\/strong> tab in the <strong>Product Data<\/strong> section.<\/li>\n\n\n\n<li>Mark the below two items:\n<ul class=\"wp-block-list\">\n<li><strong>Override product restrictions:<\/strong> By enabling this option, the General rule you have set before will be disabled and you can set a new rule to override it for this specific product.<\/li>\n\n\n\n<li><strong>Enable variations restrictions:<\/strong> By marking this option, you can set quantity limits for each product variation individually.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/02-how-set-min-max-quantity-restriction-limit-for-one-variation.png\"><img decoding=\"async\" width=\"959\" height=\"377\" src=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/02-how-set-min-max-quantity-restriction-limit-for-one-variation.png\" alt=\"set min-max quantity restriction limit for one product variation\" class=\"wp-image-3868\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the <strong>Variations<\/strong> tab to see a list of variations related to this product.<\/li>\n\n\n\n<li>Click on one of the variations in the list \u2013 For example, we tried to set a rule for <strong>Grey-Medium<\/strong> variation.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/03-set-min-max-restriction-on-one-variation-product.png\"><img decoding=\"async\" width=\"816\" height=\"421\" src=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/03-set-min-max-restriction-on-one-variation-product.png\" alt=\"set restriction on grey meduim product variaon\" class=\"wp-image-3869\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Scroll down the form to find the <strong>Min and Max restrictions<\/strong> settings and set the following items:\n<ul class=\"wp-block-list\">\n<li><strong>Minimum quantity restriction<\/strong>: The minimum quantity that customers are allowed to order from this variation.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>For example, we set it to 3 which means customers are not allowed to order less than 3 items from this variation.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Maximum quantity restriction<\/strong>: The maximum quantity that customers are allowed to order from this variation.<\/li>\n<\/ul>\n\n\n\n<p>For example, we set it to 9, which means customers can not order more than 9 items from this variation.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>In Group of<\/strong>: if you want to force customers to order this variation as a group containing a specific number of items, set the quantity in the textbox.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>For example, we set it to 3, which means customers can order 3, 6, or 9 items from this variation.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/04-set-the-desierd-min-max-quantity-restriction.png\"><img loading=\"lazy\" decoding=\"async\" width=\"635\" height=\"302\" src=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/04-set-the-desierd-min-max-quantity-restriction.png\" alt=\"set min-max restriction on product\" class=\"wp-image-3870\"\/><\/a><\/figure>\n\n\n\n<p>Repeat these steps to set limits on other variations in your store if required.&nbsp;<\/p>\n\n\n\n<p>Please, note that there is no option for applying min and max restrictions rules on all variations at once. So, you have to set the rule for each variation individually as we described above.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Save Changes and Update the product page<\/h3>\n\n\n\n<p>To apply the rule on the variation, click on the<strong> Save changes<\/strong> button then <strong>Update<\/strong> the product. In this way, customers can add <strong>Grey-Medium<\/strong> variation of V-neck t-shirts in groups of 3 to their card and they are forced to order these items in a range of 3 to 9.&nbsp;<\/p>\n\n\n\n<p>As illustrated below, if the condition has not been met, the error message will be shown on the product page:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/05-error-msg-when-condistion-didnt-met.png\"><img loading=\"lazy\" decoding=\"async\" width=\"982\" height=\"551\" src=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/05-error-msg-when-condistion-didnt-met.png\" alt=\"error message when condition occured\" class=\"wp-image-3871\"\/><\/a><\/figure>\n\n\n\n<p>However, if they order the right quantity, the products will be added to their cards:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/06-result-when-restriction-applied-to-your-cart.png\"><img loading=\"lazy\" decoding=\"async\" width=\"971\" height=\"583\" src=\"https:\/\/ithemelandco.com\/docs\/woommp\/wp-content\/uploads\/sites\/21\/2024\/12\/06-result-when-restriction-applied-to-your-cart.png\" alt=\"result on restriction when cusomer purchase\" class=\"wp-image-3872\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you are selling variable products in your online shop, you may need to set minimum and maximum quantity restrictions for each product variation. The rule you set for each individual variation could be different from the general rule applied to all simple or variable products in your store. Read More: How to Set Minimum [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3866","post","type-post","status-publish","format-standard","hentry","category-plugin-usage"],"_links":{"self":[{"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/posts\/3866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/comments?post=3866"}],"version-history":[{"count":3,"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/posts\/3866\/revisions"}],"predecessor-version":[{"id":4510,"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/posts\/3866\/revisions\/4510"}],"wp:attachment":[{"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/media?parent=3866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/categories?post=3866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/woommp\/wp-json\/wp\/v2\/tags?post=3866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}