Configuring Min/Max Quantities for the Cart in WooCommerce allows you to control the total number of items that can be added to the shopping cart. This can be useful in various scenarios, such as implementing order limits or ensuring certain quantities are met for cart completion.
Steps to Configure Min/Max Quantities for the Cart
- Navigate to WooCommerce Settings:
- Go to your WordPress dashboard.
- Click on WooCommerce > Settings.
- Access the Inventory Tab:
- In the settings page, select the Products tab.
- Choose the Inventory section within the Products tab.
- Set Minimum & Maximum Quantity:
- Locate the Min/Max Quantities for Cart section.
- Here, you can set the Minimum Cart Quantity and Maximum Cart Quantity.
- Enter the desired values for minimum and maximum quantities.
- For example, if you want to ensure that customers must buy at least 5 items but no more than 20, you would set the minimum to 5 and the maximum to 20.
- Set Quantity Step:
- In the same section, you can set the Quantity Step.
- The Quantity Step determines the increments in which products can be added to the cart.
- For example, if you define the quantity step as 2, customers will be able to add products in increments of 2 (2, 4, 6, etc.).
Here’s how it looks in the shopping cart:
5. Save Changes:
- After entering the values, scroll down and click on the Save Changes button to apply the new settings.
Example
If you set the minimum cart quantity to 3, the maximum cart quantity to 10, and the quantity step to 2, customers will not be able to checkout unless they have at least 3 items in their cart but no more than 10, and they will be able to add products in increments of 2.