User Guide of Magento 2 Limit Product Quantity Per Customer Extension

General Configurations

At the backend, go to FME EXTENSIONS > Configurations. Here you can find the extension configurations.

  • Enable Module: Select ‘Yes’ or ‘No’ to Enable/Disable the module
  • Error Message for Quantity: Customize the error message that will be displayed when a customer tries to buy a product above the defined quantity limit.
  • Error Message for Products: Customize the error message that will be displayed when a customer tries to proceed to checkout without buying the selected complementary product(s).

general.png

Save the Configurations.

Refresh Cache.

Refresh Cache: System > Cache Management > Select All from Mass Actions > Click Refresh Cache.

How to Limit Order Quantity of a Product?

To set a quantity limit for a product, go to Catalog > Products from the admin panel sidebar and click on the product to be directed to its edit page. Scroll down and you will see a new section FME Limit Order Quantity per Customer section. Expand this section to see the following options.

  • Quantity Limit per Customer: Set a limit for the product that you want customers not to go beyond.
  • Limit From: Select a starting date for the restriction.
  • Limit Until: Select an ending date for the restriction.
  • Limit Groups or Customers: Select Customer Groups in the dropdown menu.
  • Customer Group: Select the customer groups you want the restriction to apply on.

restrictions.png

Limit Specific Customers

To prevent individual customers from buying the controlled products above the max quantity, expand the Limit Specific Customers section and select the customer(s) you want to apply the restriction on.

limit customers.png

Select Conditional Products

Now, if you want to associate relevant products with the product and force customers to buy those products in addition to the one they are interested in, you can expand the Limit Products Purcheable along section and choose the products. Note that this section is not mandatory and if you don’t feel the need for complementary products, you can leave it blank. But once you have selected a product, customers can’t proceed to checkout without buying it.

conditions.png

Frontend

Maximum quantity limit violation

frontend.png

Conditional products violation

frontend2.png