You could customize the code for Table Rate by adding the code in RED to the file:
/includes/modules/shipping/table.php
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
}
[B]// bof: disable when under $2000.00
if (!IS_ADMIN_FLAG) {
$chk_total_less_free_shipping = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices();
// echo 'Table sees Total: ' . $chk_total_less_free_shipping . '<br>';
if ($chk_total_less_free_shipping < 2000.00) {
$this->enabled = false;
}
}
// eof: disable when under $2000.00
[/B]
if ($this->enabled) {
// check MODULE_SHIPPING_TABLE_HANDLING_METHOD is in
Then, reverse the logic for your other shipping modules to disable them when $chk_total_less_free_shipping >= 2000 ...
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!