Min Max Quantities

Dokan Multi Vendor Documentation

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,

  1. Minimum/Maximum order based on product quantity
  2. 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,

this is a screenshot of the min:max module

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.

this is a screenshot of the Min/Max options

Under the Vendor Capability option, they will find the “Enable Min/Max Quantities” and enable it. Hit the Save Changes button to finish.

this is a screenshot of the min/max quantity

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.

this is a screenshot of the vendor dashboard options

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.

this is a screenshot of the product page

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.

this is a screenshot of the add product to cart

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.

this is a screenshot of the minimum order quantity

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”.

this is a screenshot of the proceed to checkout button dissapear

Also, if the number of products exceeds the maximum quantity then the customer also can’t complete the checkout.

this is a screenshot of the maximum quantity

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.

this is a screenshot of the min/max amount

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.

this is a screenshot of the Min/Max amount for vendors

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.

this is a screenshot of the Min:Max amount product page

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,

this is a screenshot of the Edit product

Now, if you scroll down, you will see the “Enable Min Max Rule for this product” option. Enable it.

this is a screenshot of the Enable Min Max Rule for this product

When you enable the option, you will see the Min/Max fields open up. Add the Minimum Quantity, Maximum Quantity, Minimum Amount, Maximum Amount,

add min:max

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.

this is a screenshot of the Product page

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,

this is a screenshot of the add variations

Select Minimum Quantity,

this is a screenshot of the min amount

Add the Minimum Quantity value and click OK.

this is a screenshot of the add min value

Also, select the Maximum Quantity option from the drop-down box,

this is a screenshot of the Max quantity

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.

this is a screenshot of the same value

Or, if you want you can alter the global values and add different values for any of the individual variations.

this is a screenshot of the individual amount

So, when you visit the product page, you will see different pricing for different variations, depending on your setup.

this is a screenshot of the product page

If the admin wants they can add Min/Max feature for individual products from the backend.

this is a screenshot of the Backend

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.

this is a screenshot of the purchase a product min:max amount

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”.

this is a screenshot of the minimum order

Also, it the total amount crosses the maximum amount mark, then the customers also can’t complete the checkout process.

this is a screenshot of the Maximum amount cart

If the total amount matches the minimum or the maximum amount then the customers can complete the checkout process.

this is a screenshot of the min:max complete checkout process

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.

this is a screenshot of the activate both feature

Configuring Min/Max Quantities & Min/Max Amount from Vendor Dashboard – Vendor

Now, vendors can configure the settings from their vendor dashboard.

this is a screenshot of the Configuring both settings from vendor dashboard

With both the feature activated, this is what the product page will look like ,

this is a screenshot of the product page both features

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,

this is a screenshot of the both feature checkout

Note:

In case of variable products, customer needs to choose the variants in order to activate this feature.