Depending on the USPS shipping module you will use, you can add the code in RED:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
}
// bof: disable over 40lbs
if (!IS_ADMIN_FLAG) {
global $shipping_weight;
if ($shipping_weight > 40) {
$this->enabled = false;
}
}
// eof: disable over 40lbs
Or use ...
Code:
function update_status() {
global $order, $db;
if (IS_ADMIN_FLAG == TRUE) return;
// disable when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
}
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
}
// bof: disable over 40lbs
global $shipping_weight;
if ($shipping_weight > 40) {
$this->enabled = false;
}
// eof: disable over 40lbs
if ($this->enabled == true) {
Bookmarks