Minimum Item Quantity (v. 2.8)

This mod will set a global minimum quantity for every item in the store. To set a minimum quantity per order instead, change the minimum in Mals. In the 'Cart Setup' area of your Mals-e cart account, select 'Minimum order size' under 'Advanced settings'.

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

  1. Open the products_single.php and products_detail.php files in the /enc/ folder.

  2. Change the line:

    echo "
    $display_formflds";

    to:

    echo "$display_formflds";
  3. Open the products_variables.php file in the /enc/ folder.

  4. Change the line:

    $dispordbut = "";

    to:

    $dispordbut = "";
  5. Open the order.php file in the /go/ folder.

  6. Add the lines:

    if ($qtty < 5)
    $qtty = 5;

    just above the line:

    // BYPASS COOKIE TAX
  7. Save and reload all files.

Version 2.8 - 2.83

  1. Open the products_single.php, products_multisingle.php and products_detail.php files in the /enc/ folder.

  2. Change the line:

    echo "";

    to:

    echo "";
  3. Open the products_variables.php file in the /enc/ folder.

  4. Change the line:

    $dispordbut = "";

    to:

    $dispordbut = "";
  5. Open the order.php file in the /go/ folder.

  6. Add the lines:

    if($qtty<5)
    $qtty=5;

    just above the line:

    // INITIALIZE MEMBERS
  7. Save and reload all files.