Magento 2 B2B Extensions

  1. Home
  2. Docs
  3. Magento 2 B2B Extensions
  4. Magento 2 Maximum Order Quantity per Product
  5. User Guide

User Guide

1. Overview

Magento 2 Maximum Order Quantity per Product extension lets you set restrictions on the maximum quantity of each product that your customers can buy within a calendar month. Hence, you can make better inventory planning and avoid sending order rejection emails to customers. 

2. How Does It Work? 

2.1. In the Backend

As this extension allows you to set restrictions on two levels on configuration, with product config having higher priority than global config, we will look at them respectively. 

First of all, please go to Stores → Configuration → BSS Commerce → Order Restriction and set Yes to Enable our module. 

2.1.1. Global Config

Please go to Stores → Configuration → Catalog → Inventory → Product Stock Options.

In the Limit Product Quantity per Month field, uncheck the Use System Value checkbox, and enter the global limit that you want to set as the maximum order quantity within a calendar month for all products. Do not forget to hit Save. 

set-global-order-limit

*Note: If you leave this field blank, then there will be no global limit for all products. 

2.1.2. Product Config

If you want to set a special limit for any specific product, please go to that product detail page then expand the Advanced Inventory section. 

In the Limit Product Quantity per Month field, uncheck the Use Config Settings field, and enter the maximum order quantity per month for this product. 

set-specific-product-order-limit

*Note: If you leave this field blank, then there will be no limit for this product. 

2.2. In the Frontend

When customers order a product with a quantity greater than the limit (first time in the month) or the remaining limit (second time and forth), they will receive an error message. 

2.2.1. When placing an order with surpassed quantity on the product page

error-on-product-page

2.2.2. When updating quantity to more than the available limit in the shopping cart

In mini cart

error-on-mini-cart

In shopping cart

error-on-shopping-cart

If you change the limit of any product within the month or prioritize the product config over general config, then the limit will be automatically adjusted. Also, if an order is canceled or refunded, like with the case of inventory being added back, the limit will be adjusted accordingly.

Was this article helpful to you? Yes No

How can we help?