Developer forum

Forum » Ecommerce - Standard features » Minimum order quantity

Minimum order quantity

Rene Zwagerman

We have a customer who sells the same products in two different webshops. Now shop A has to deal with a minimum order quantity, but shop B would like have not. We have now adjusted this in shop B on the front-end, so that any quantity can be ordered. Unfortunately, the quantity automatically changes back to the minimum order quantityof shop A. Is there a solution for this?



Adrian Ursu Dynamicweb Employee
Adrian Ursu

Hi Rene,

If you use the standard MinimumOrderQuantity field, DW will use it to validate the quantity when you add the product to cart.

I suggest you create a custom ProductField where you store that value and use it in the Cart where you need it.

It won't validate the quantity server side (as it would if you use the MinimumOrderQuantity field) but you can still create your custom logic for a front-end validation.


Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen

Hi Adrian

There is some serverside - not checks, but calculations - to ensure the MinimumOrderQuantity is enforced. So a regular addto cart with a qty that does not match MinimumOrderQuantity, would round to the MinimumOrderQuantity value...

So I think this requires that the MinimumOrderQuantity field is not used as it would be enforced (some times)


You must be logged in to post in the forum