I would like to configure the USPS module to be disabled for items that are more than 2 pounds. I think this requires editing the php file,but I am not sure what needs to change and where.
This is a great module, it installed without a problem.
I would like to configure the USPS module to be disabled for items that are more than 2 pounds. I think this requires editing the php file,but I am not sure what needs to change and where.
This is a great module, it installed without a problem.
Do you want ALL USPS to be turned off when the Order is >= 2lbs?
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: v1.5.5]
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!
My product is supplied by a drop shipper. They do not use USPS for anything over 2 pounds but rather they use UPS. I have both modules installed and would like only UPS available when the total weight is over 2 pounds.
You can customize the code for preventing USPS on Orders of 2lbs or more:
/includes/modules/shipping/usps.php
with 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 USPS when weight is >= 2 if (!IS_ADMIN_FLAG) { if ($_SESSION['cart']->weight >= 2) { $this->enabled = false; } } // eof: disable USPS when weight is >= 2 if ($this->enabled) {
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: v1.5.5]
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!
Thank very much, it worked nicely.
You are most welcome ... thanks for the update that this worked for you ...
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: v1.5.5]
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!
Bookmarks