You could customize the Flat Rate flat shipping module:
/includes/modules/shipping/flat.php
with the code in RED using:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
// bof: allow only for orders of >= $20.00
// Only allow Free Shipping when whole cart is Always Free Shipping
if (!IS_ADMIN_FLAG && $this->enabled) {
global $cart;
$chk_total = $_SESSION['cart']->show_total();
if ($chk_total >= 20.00) {
$this->enabled = true;
} else {
$this->enabled = false;
}
}
// eof: allow only for orders of >= $20.00
if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) ) {
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!