Minimum Item Quantity (v. 2.8)
The SiteBuilder system does not allow you to set a minimum quantity on a per-item basis or on a per-order basis. However, if you want to specify a global minimum quantity (i.e. the same minimum amount for every item in your store), you can use the following mod. This example sets a minimum of 5 per item - change the '5' in the code below to another number if you wish the minimums to differ. All items will have the same minimum amount.
Version 2.84
-
Open the products_single.php and products_detail.php files in the /enc/ folder.
-
Change the line:
echo "
-
Open the products_variables.php file in the /enc/ folder.
-
Change the line:
$dispordbut = "";
to:
$dispordbut = "";
-
Open the order.php file in the /go/ folder.
-
Add the lines:
if ($qtty < 5)
$qtty = 5;just above the line:
// BYPASS COOKIE TAX
-
Save and reload all files.
Version 2.8 - 2.83
-
Open the products_single.php, products_multisingle.php and products_detail.php files in the /enc/ folder.
-
Change the line:
echo "
-
Open the products_variables.php file in the /enc/ folder.
-
Change the line:
$dispordbut = "";
to:
$dispordbut = "";
-
Open the order.php file in the /go/ folder.
-
Add the lines:
if($qtty<5) $qtty=5;
just above the line:
// INITIALIZE MEMBERS
-
Save and reload all files.