Magento 2 Limit Quantity for Grouped Products extension allows setting the minimum and the maximum quantity limit for the purchase of the grouped products.
Table of Content
- Extension Installation
- Configuration
- Quantity Restriction for Grouped Product
- Limit Quantity for Grouped Products in Frontend
- Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
- Login to your SSH and run below commands step by step:
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- That’s it.
- Configuration
For configuring the extension, login to Magento 2, move to Stores > Configuration > Limit Quantity for Grouped Products from where you can configure various settings.
- Limit Quantity for Grouped Products: Enable the extension from here.
- Minimum Quantity Error Message: Enter minimum quantity restriction error message to show in the frontend.
- Maximum Quantity Error Message: Enter maximum quantity restriction error message to show in the frontend.
- Quantity Restriction for Grouped Product
You need to set quantity restriction for the grouped product from Catalog > Products > Grouped Product Edit. Find the “Limit Quantity for Grouped Products” tab and configure various quantity settings.
- Minimum Quantity: Set minimum quantity restriction for the selected grouped product.
- Maximum Quantity: Set maximum quantity restriction for the selected grouped product.
- Limit Quantity for Grouped Products in Frontend
Once the quantity restriction is set for all the grouped products, whenever a customer adds a grouped product to cart without meeting the quantity limits, it shows an error message to the customers and restricts checkout for the order.
- Minimum Quantity Restriction Error Message
- Maximum Quantity Restriction Error Message
- Error Message While Updating Quantity from Mini Cart
If a customer tries to update quantity from the mini cart which doesn’t match the set limit, the extension shows an error message in a popup.