Thank you Linda, you are a Zen Shipping Queen!
If anyone else is interested in this, being able to designate a shipper based off of cart weight, I added this code to USPS.php in catalog\includes\modules\shipping.
Alternately, I added the same code, changing it from weight > 5 to weight <= to 5 to UPS.php under catalog\includes\modules\shipping.
Works like a champ, added a product I said weighed 3lbs to my cart, proceeded to checkout and it displays USPS as only option. Went back to my cart, changed quantity to 2 of the 3lb item, updated cart and went back to checkout, now with 6lbs of items shipping the only option is UPS. Now I just need to see what the maximum weight of my products I can get crammed into a large flat rate box is and update weights accordingly.
Thank you again Linda!:cheers:
Joey Phillips
Ajeh:
Let's say you did not want USPS to show if weight is > 5 ...
You can customize the module with:
// 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: do not show if weight > 5
if (!IS_ADMIN_FLAG) {
global $cart;
if ($_SESSION['cart']->show_weight() > 5) {
$this->enabled = false;
}
}
// eof: do not show if weight > 5
if ($this->enabled) {
>
> NOTE: this is not taking into account the Tare Rate if you are using it ...