How To Install Limit Quantity Per Category In Magento 2

Hello Everyone,                  

In this blog, we will learn how to install a limit quantity per category extension in Magento 2. 

Limit Per Category extension for Magento 2 by Magecurious allows store admins to manage per-category purchases. They can set a maximum and minimum quantity limit per category for any customer group. A custom message warns customers if their purchase quantity in a particular category is minimum or maximum below that limit. 

Magento2 core built-in provides customer login via email by using username and password.

This extension was approved by Magento Marketplace. 

Limit Per Category extension allows the admin to set the minimum and maximum quantity per category to go for checkout successfully. In case, the customer adds more or lesser quantity, they are shown an error message and cannot proceed to checkout until they meet the quantity condition.

Without wasting your time, let us guide you straight away. Follow the easy steps below to install a limit quantity per category extension and Configure it. 

 WHY MAGECURIOUS LIMIT QUANTITY PER CATEGORY? 

  • Enable or Disable from Magento 2 admin. Enable or disable from Magneto admin.
  • Admin allows to set minimum and maximum quantity allowed in the cart based on customer group for specific categories. 
  • Open source code and easy to customization.
  • admin set custom error message for minimum and maximum quantity.
  • Admin allows to set minimum and maximum quantity for customers group base per category. 

STEPS FOR INSTALL LIMIT QUANTITY PER CATEGORY IN MAGENTO 2       

STEP 1: Extract the downloaded extension package in your Magento root folder using FTP(File Transfer Protocol) Tools. For verification of the root folder, you can see some folders inside the Magento root folder like app, bin, lib, PHP server vendor, etc.

STEP 2: Next Need to run some Mageno commands to install the extension in your system, so connect with your server via SSH go to the Magento root folder (e.g: cd /var/www/html/magentp243), and run the below commands one by one.

  • php bin/magento setup: upgrade 
  • php bin/magento setup:static-content:deploy-f  
  • php bin/magento indexer: reindex  
  • php bin/magento cache: clean  
  • php bin/magento cache: flush  
  • chmod-R 777 var/ pub/ generated/

STEP 3: If all your commands run successfully then login to your system Admin Panel and go to Store > Configuration, if you see a new Tab in the left sidebar with the MageCurious Logo it means the extension was installed successfully.

STEPS FOR CONNECT LIMIT QUANTITY PER CATEGORY WITH MAGENTO 2 

STEP 1: To Configure Extension go to Stores > Configuration > MageCurious Tab > Limit Per Category. 

STEP 2:– In General Configuration:

  • Enabled:-  Enable/Disable the Limit per Category extension from here.
  • Maximum Quantity Error Message:- Enter the Maximum Quantity error message with a custom variable. Use variable {{var product_name}} {{var qty_limit}}  
  • Min Quantity Error Message:- Enter the Minimum Quantity error message with a custom variable. Use Variable {{var product_name}} {{var qty_limit}} 
  • Quantity Threshold:- Set quantity threshold per category for various customer groups.

WHAT ARE THE  FEATURES OF THE LIMIT QUANTITY PER CATEGORY? 

  • Limit Quantity Per Category in Frontend. 

Once the settings are configured properly, when a customer from the front end adds a product to a cart with a quantity higher or lesser than the set threshold, an error message is shown accordingly.

  • Alert Message for Minimum Quantity Per Category at Cart Page.
  • Alert Message for Maximum Quantity Per Category at Cart Page. 

Final Thoughts:   

So this was the easiest way which we have told you in this blog. This is how you can install a limit quantity per category in Magento 2. Hope you liked the blog.  

So quickly go to the comment box and tell me how you like this blog.

Stay tuned with us on our site to get new updates on Magento. 

Thanks for reading and visiting our site.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Leave a Reply

Your email address will not be published. Required fields are marked *