Hello Everyone,
In this blog, we will learn how to install a Limit Quantity Per Cart in Magento 2.
This extension allows the admin to set the minimum and maximum quantity per cart to go for checkout successfully. In case, the customer adds more or lesser quantity, they are shown an error message and they 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 and configure a Limit Quantity Per Cart extension.
Why Does Magecurious Limit Quantity Per Cart?
- Enable or disable from Magento admin.
- Admin set custom error messages for minimum and maximum quantity.
- Admin allows to set minimum and maximum quantity for customers group base per cart.
- Open source code and easy to customise
- Set restrictions on the cart quantity based on customer groups.
- Compatible With 2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x
Steps For Install Limit Quantity Per Cart 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 Magento 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 connecting Limit Quantity Per Cart with Magento 2.
STEP 1:- To Configure Extension go to Stores > Configuration > MageCurious Tab > Limit Per Cart.
STEP 2:- In General Configuration:
- Enable: Enable/Disable the limit per cart extension from here.
- Minimum Quantity Allowed: Select the customer group from the dropdown and the minimum quantity allowed for the respective customer group.
- Alert Message for Minimum Cart Quantity: Enter the alert message to be displayed in the front end when the minimum cart quantity threshold value is exceeded.
- Maximum Quantity Allowed: Select the customer group from the dropdown and the maximum quantity allowed for the respective customer group.
- Alert Message for Maximum Cart Quantity: Enter the alert message to be displayed in the front end when the maximum cart quantity threshold value is not reached.
Extension Features:
Alert message for minimum cart Quantity at Cart Page.
Alert message for Maximum cart Quantity at cart page.
Final Thought
This was the easiest way we told you in this blog. This is how you can install a Limit Quantity Per Cart 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 to our site to get new updates on Magento.
Thanks for reading and visiting our site.
