Now vendors can set the minimum/maximum order amount for customers using Dokan. That means in order to complete the order customers will have to choose a set quantity of products or his/her subtotal amount has to match a certain amount.
There are two types of Minimum/Maximum order type,
- Minimum/Maximum order based on product quantity
- Minimum/Maximum order based on total order amount.
We are going to show you how to enable this feature for your marketplace.
Table of Content
First, we are going to show you how to Enable Min/Max Quantities.
Or you can see the video tutorial as well.
Activate “Enable Min/Max Quantities” – Admin
First, navigate to WP-Admin–> Dokan–> Modules and activate the Min-Max Quantities module,
![Min Max Quantities 1 this is a screenshot of the min:max module](https://cdn.wedevs.com/uploads/2021/11/minmax-module-1024x557.png)
Admin needs to enable the Min/Max quantities option from the admin dashboard. To enable this feature, the admin needs to go to WP-Admin–> Dokan–> Settings–> Selling Options.
![Min Max Quantities 2 this is a screenshot of the Min/Max options](https://cdn.wedevs.com/uploads/2021/11/MinMax-options-920x1024.png)
Under the Vendor Capability option, they will find the “Enable Min/Max Quantities” and enable it. Hit the Save Changes button to finish.
![Min Max Quantities 3 this is a screenshot of the min/max quantity](https://cdn.wedevs.com/uploads/2021/11/minmax-qunatity.png)
Configure Min/Max Quantities from Vendor Dashboard – Vendor
After the admin has enabled the Min/Max Quantities option from the backend, now vendors can configure this feature from the vendor dashboard.
To configure this vendors need to go to Vendor Dashboard–> Settings. If they scroll down they will find the options.
![Min Max Quantities 4 this is a screenshot of the vendor dashboard options](https://cdn.wedevs.com/uploads/2021/11/vendor-dashboard-options.png)
Enable Min/Max Quantities: Enable this to activate the feature. That means vendors can select minimum/maximum orders for selected products.
Minimum product quantity to place an order: Add the minimum number of products customers need to buy in order to place an order. For example, if vendors choose 2, then customers need to buy at least 2 of the selected products in order to place an order.
Maximum product quantity to place an order: Add the maximum number of products customers need to buy in order to place an order.
Select Products: Type the product name here or you can select all the products by clicking the Select all button.
Select Category: Vendors can select the product categories from here.
After configuring all the options, vendors need to hit the Update Settings button to finish.
This is what the product page will look like after enabling the Min/Max Quantities feature.
![Min Max Quantities 5 this is a screenshot of the product page](https://cdn.wedevs.com/uploads/2021/11/product-page-1024x647.png)
Purchasing Products with a Minimum/Maximum Quantity – Customer
To purchase a product with a minimum/maximum quantity, at first customer needs to select a product and add the selected product to the cart.
![Min Max Quantities 6 this is a screenshot of the add product to cart](https://cdn.wedevs.com/uploads/2021/11/add-product-to-cart-1024x603.png)
Now, while adding a product that has a minimum amount set then it will show that minimum quantity in the cart. Suppose when the customer buys Beanie, they need to order a minimum of 2 pieces in order to complete the order. So, when they click on the add to cart button, it will automatically add 2 pieces of that product to the cart.
![Min Max Quantities 7 this is a screenshot of the minimum order quantity](https://cdn.wedevs.com/uploads/2021/11/minimum-order-quantity-1024x662.png)
If the customer reduces the quantity from the minimum amount ( in this case to 1 ), then the Proceed to checkout button will disappear. And it will show a message “min quantity X”.
![Min Max Quantities 8 this is a screenshot of the proceed to checkout button dissapear](https://cdn.wedevs.com/uploads/2021/11/proceed-to-checkout-button-dissapear-1024x602.png)
Also, if the number of products exceeds the maximum quantity then the customer also can’t complete the checkout.
![Min Max Quantities 9 this is a screenshot of the maximum quantity](https://cdn.wedevs.com/uploads/2021/11/maximum-quantity.png)
Only if the quantity matches the set number, then customers can complete the checkout process.
Now, let’s see how to configure the Enable Min/Max Amount.
Activate “Enable Min/Max Amount” – Admin
Now, to activate the Min/Max Amount option, the vendor again needs to navigate to WP-Admin–> Dokan–> Settings–> Selling Options. Under the Vendor Capability option, they will find the “Enable Min/Max Amount” and enable it. Hit the Save Changes button to finish.
![Min Max Quantities 10 this is a screenshot of the min/max amount](https://cdn.wedevs.com/uploads/2021/11/minmax-amount.png)
Configure Min/Max Amount from Vendor Dashboard – Vendor
After the admin has enabled the Min/Max Amount option from the backend, now vendors can configure this feature from the vendor dashboard.
To configure this vendors need to go to Vendor Dashboard–> Settings. If they scroll down they will find the options.
![Min Max Quantities 11 this is a screenshot of the Min/Max amount for vendors](https://cdn.wedevs.com/uploads/2021/11/MinMax-amount-for-vednors.png)
Enable Min/Max Amount: Enable this to activate the feature. That means vendors can select minimum/maximum amount for selected products.
Minimum amount to place an order: Add the minimum amount customers need to cross in order to place an order. For example, if vendors choose $10, then customers need to place an order that crosses the $10 mark.
Maximum amount quantity to place an order: Add the maximum amount in order to place an order.
Select Products: Type the product name here or you can select all the products by clicking the Select all button.
Select Category: Vendors can select the product categories from here.
After configuring all the options, vendors need to hit the Update Settings button to finish.
This is what the product page will look like after enabling the Min/Max Amount feature.
![Min Max Quantities 12 this is a screenshot of the Min:Max amount product page](https://cdn.wedevs.com/uploads/2021/11/MinMax-amount-product-page-1024x635.png)
Enable Min/Max Order Amount for Individual Products
If you want you can set the Min/Max feature for individual products as well. To do that, click on the Edit option of any product,
![Min Max Quantities 13 this is a screenshot of the Edit product](https://cdn.wedevs.com/uploads/2021/11/Edit-product-1024x512.png)
Now, if you scroll down, you will see the “Enable Min Max Rule for this product” option. Enable it.
![Min Max Quantities 14 this is a screenshot of the Enable Min Max Rule for this product](https://cdn.wedevs.com/uploads/2021/11/Enable-Min-Max-Rule-for-this-product.png)
When you enable the option, you will see the Min/Max fields open up. Add the Minimum Quantity, Maximum Quantity, Minimum Amount, Maximum Amount,
![Min Max Quantities 15 add min:max](https://cdn.wedevs.com/uploads/2021/11/add-minmax.png)
After you save the product, visit the Shop Page, where you will see that the product’s Min/Max option is different than the global options.
![Min Max Quantities 16 this is a screenshot of the Product page](https://cdn.wedevs.com/uploads/2021/11/Product-page.png)
Enabling Min/Max Option for Variable Products
You can set different Min/Max options for different product variations as well. You can set Min/Max options with global variations. That way, every variation will have the same Min/Max amount.
Click on the Select Variations option,
![Min Max Quantities 17 this is a screenshot of the add variations](https://cdn.wedevs.com/uploads/2021/11/add-variations.png)
Select Minimum Quantity,
![Min Max Quantities 18 this is a screenshot of the min amount](https://cdn.wedevs.com/uploads/2021/11/min-amount.png)
Add the Minimum Quantity value and click OK.
![Min Max Quantities 19 this is a screenshot of the add min value](https://cdn.wedevs.com/uploads/2021/11/add-min-value.png)
Also, select the Maximum Quantity option from the drop-down box,
![Min Max Quantities 20 this is a screenshot of the Max quantity](https://cdn.wedevs.com/uploads/2021/11/Max-quantity.png)
Add the Maximum Quantity and click ok to finish. In the same way, you can add Min and Max amount as well. When you add all the values, you will see that every variation has the same Min/Max quantity and amount.
![Min Max Quantities 21 this is a screenshot of the same value](https://cdn.wedevs.com/uploads/2021/11/same-value.png)
Or, if you want you can alter the global values and add different values for any of the individual variations.
![Min Max Quantities 22 this is a screenshot of the individual amount](https://cdn.wedevs.com/uploads/2021/11/individual-amount.png)
So, when you visit the product page, you will see different pricing for different variations, depending on your setup.
![Min Max Quantities 23 this is a screenshot of the product page](https://cdn.wedevs.com/uploads/2021/11/product-page-1-1024x629.png)
If the admin wants they can add Min/Max feature for individual products from the backend.
![Min Max Quantities 24 this is a screenshot of the Backend](https://cdn.wedevs.com/uploads/2021/11/Backend.png)
This is how you can enable individual product-wise Min/Max features.
Order Rules: If you enable this then the system won’t count this product against order rules when there are other items in the cart
Category Rules: If you enable this then the system will exclude this product from category rules.
Purchasing Products with a Minimum/Maximum Amount – Customer
To purchase a product with a minimum/maximum amount, at first customers need to select a product and add the selected product to the cart.
![Min Max Quantities 25 this is a screenshot of the purchase a product min:max amount](https://cdn.wedevs.com/uploads/2021/11/purchae-a-product-minmax-amount-1024x564.png)
Now, if the total order amount doesn’t cross the minimum amount ( in this case that is $10 ), customers can’t proceed to complete the checkout as the Proceed to checkout button will disappear. Also, there will be a message “Min amount $10”.
![Min Max Quantities 26 this is a screenshot of the minimum order](https://cdn.wedevs.com/uploads/2021/11/minimum-order-1024x564.png)
Also, it the total amount crosses the maximum amount mark, then the customers also can’t complete the checkout process.
![Min Max Quantities 27 this is a screenshot of the Maximum amount cart](https://cdn.wedevs.com/uploads/2021/11/Maximum-amount-cart-1024x586.png)
If the total amount matches the minimum or the maximum amount then the customers can complete the checkout process.
![Min Max Quantities 28 this is a screenshot of the min:max complete checkout process](https://cdn.wedevs.com/uploads/2021/11/minmax-complete-checkout-process-1024x574.png)
That is how the Min/Max Amount feature works.
Activate Min/Max Quantities & Min/Max Amount – Admin
Also, admins can activate both the Min/Max Qunatity & Min/Max Amount feature. They will both work simultaneously.
Admins need to activate both the feature from WP-Admin–> Dokan–> Settings–> Selling Options.
![Min Max Quantities 29 this is a screenshot of the activate both feature](https://cdn.wedevs.com/uploads/2021/11/activate-both-feature.png)
Configuring Min/Max Quantities & Min/Max Amount from Vendor Dashboard – Vendor
Now, vendors can configure the settings from their vendor dashboard.
![Min Max Quantities 30 this is a screenshot of the Configuring both settings from vendor dashboard](https://cdn.wedevs.com/uploads/2021/11/Configuring-both-settings-from-vendor-dashbaord-.png)
With both the feature activated, this is what the product page will look like ,
![Min Max Quantities 31 this is a screenshot of the product page both features](https://cdn.wedevs.com/uploads/2021/11/product-page-both-features-1024x602.png)
Purchasing Products with Min/Max Quantity & Min/Max Amount Feature – Customer
Customers need to match both the minimum/maximum amount and quantity in order to complete the checkout,
![Min Max Quantities 32 this is a screenshot of the both feature checkout](https://cdn.wedevs.com/uploads/2021/11/both-feature-checkoout-1024x626.png)
Note:
In case of variable products, customer needs to choose the variants in order to activate this feature.