Developer forum

Forum » Development » Minimum Order Quantity

Minimum Order Quantity


Reply

Lets say that the smallest amount you can buy of a product is 10 units.

How do you set this up in e-com


Replies

 
Reply
paul wrote:

Lets say that the smallest amount you can buy of a product is 10 units.

How do you set this up in e-com


 

Hi Paul,

 

As of now, the only way I can think of, is to have a javascript check that in the Cart template (step 1) and if the total amount is less than 10 units, redirect to another page.

 

Nuno

 
Reply

Yes, What Nuno wrote. Use a custom product field to store the minimum and use it's tag in the javascript:

 

if ("<!--@MyCustomField-->" != ""){

  if (EnteredValue < <!--@MyCustomField-->){

    alert("Minimum purchase is <!--@MyCustomField--> units.");

  }

}

 

You must be logged in to post in the forum