{"id":1295,"date":"2020-10-14T12:27:27","date_gmt":"2020-10-14T12:27:27","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2020\/10\/14\/set-maximum-qty-allowed-in-shopping-cart-in-magento-2\/"},"modified":"2025-07-17T10:29:21","modified_gmt":"2025-07-17T04:59:21","slug":"set-maximum-qty-allowed-in-shopping-cart-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/set-maximum-qty-allowed-in-shopping-cart-in-magento-2\/","title":{"rendered":"How to Set Maximum Qty Allowed in Shopping Cart in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/magento-2-inventory-management\/\" target=\"_blank\" rel=\"noreferrer noopener\">Inventory management<\/a>&nbsp;is undoubtedly one of the most important factors where merchants pay their attention.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A merchant has to manage inventory properly to satisfy their customers. If a customer purchases the same product on a large quantity, the product may be sold out and no other customers will be able to purchase that product.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If other customers are not able to buy a product even in a single quantity or in a small quantity, it drastically reduces the shopping experience to customers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The configuration of maximum and minimum quantity based on customer groups can be done with Meetanshi\u2019s&nbsp;<a href=\"https:\/\/meetanshi.com\/magento-2-limit-cart-quantity.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 Limit Cart Quantity<\/a>&nbsp;extension.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By setting up the maximum quantity allowed to be sold by a single customer, the Magento 2 store owners can restrict customers from buying a product on a large quantity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The default\u00a0Magento 2\u00a0has the facility to do so. Improve the sales management using the steps given below in your Magento 2 store:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Set Maximum Qty Allowed in Shopping Cart in Magento 2<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/Annotation-on-2020-10-06-at-12-35-48-1024x429.png\" alt=\"Configure Maximum Quantity Allowed in Magento 2\" class=\"wp-image-10869\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Login<\/strong>&nbsp;to Magento 2 admin panel<\/li>\n\n\n\n<li>Navigate to&nbsp;<strong>Stores &gt; Settings &gt; Configuration<\/strong><\/li>\n\n\n\n<li>Select&nbsp;<strong>Inventory<\/strong>&nbsp;under&nbsp;<strong>Catalog<\/strong>&nbsp;section<\/li>\n\n\n\n<li>Expand&nbsp;<strong>Product Stock Options<\/strong>&nbsp;section<\/li>\n\n\n\n<li>Set the maximum quantity as per your business requirement in&nbsp;<strong>Maximum Qty Allowed in Shopping Cart<\/strong><\/li>\n\n\n\n<li>Click&nbsp;<strong>Save Config<\/strong><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Here, I have set 15 as a maximum quantity allowed in the shopping cart. Therefore, when customers will add more quantity than 15, the error message will be shown saying that \u201cThe maximum you may purchase is 15\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The below figure shows the error message to restrict the customer to add the products to the cart.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/10\/Annotation-on-2020-10-07-at-09-38-15-1024x514.png\" alt=\"Maximum Quantity Allowed in Shopping Cart - Frontend in Magento 2\" class=\"wp-image-10887\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also refer to the video tutorial to Set Maximum Qty Allowed in Shopping Cart in Magento 2 from our&nbsp;<a href=\"https:\/\/www.youtube.com\/playlist?list=PLBTOxSAJzwEjM5MilmEqj98Ib80tKBu7r\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 video tutorial<\/a>&nbsp;series:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Set Maximum Qty Allowed in Shopping Cart in Magento 2\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/FlVe61h4RNE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Do consider sharing this post with Magento 2 community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inventory management&nbsp;is undoubtedly one of the most important factors where merchants pay their attention. A merchant has to manage inventory properly to satisfy their customers&#8230;.<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1295","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1295"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1295\/revisions"}],"predecessor-version":[{"id":13955,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1295\/revisions\/13955"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}