If you look at some of the related topics below this thread, you should see you can use something like:
Example, to not show when weight is less than 20 ...
Code:
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() < 20) {
$this->enabled = false;
} else {
$this->enabled = true;
}
This code would be placed, for example, in the Flat Rate flat shipping module for:
/includes/modules/shipping/flat.php
just below the code:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
Bookmarks