B2B Minimum Quantity

The B2B Wholesales Tools App offers minium order quantity validation on the product page, cart page and during checkout.  

Setup

On each pricing config, you can add Minimum quantity validation:

Group

The group setting can be used to calculate the total quantity for all items in the cart. The app will load the cart contents to calculate the min validation. You can also configure the same group on different pricing configurations.

When left empty, the minimum quantity is validated for each product individually.

Theme editor

To show the minimum quantity validation on your store, open the Theme editor and navigate to the Product template. There you can add the app block for the B2B Minimum Quantity:


Minimum text

You can fully customize and translate the minimum quantity text directly on the app block:


Variables

The following variables can be used in the template:

Variable Value
{min} Minimum quantity
{qty} Current quantity
{diff} Difference between min/current

The default text is:

Minimum order quantity is {min}.

Default validation text is:

Minimum order quantity required {qty}/{min}. Add {diff} more to proceed.

Custom styles

You can overwrite the default styles directly on the app block:

.cl-b2b-validate {
    font-size: 12px;
    --cl-validate-error: #dc2626;
    --cl-validate-valid: #16a34a;
    --cl-validate-info: #414350;
}

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.