To turn off the Table Rate table shipping module, you can customize the code in:
/includes/modules/shipping/table.php
by adding the code in RED with:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
}
// bof: disable if weight is over 1.5
if (!IS_ADMIN_FLAG) {
global $cart;
$test_total_weight = $_SESSION['cart']->show_weight();
if ($test_total_weight > 1.5) {
$this->enabled = false;
}
}
// eof: disable if weight is over 1.5
if ($this->enabled) {