Yep, I was generating logs and saw that with that edit, the rates are lower than before the edit.
Logs to follow
Yep, I was generating logs and saw that with that edit, the rates are lower than before the edit.
Logs to follow
Last edited by RixStix; 19 Jan 2016 at 12:12 AM.
Rick
RixStix (dot) com
aka: ChainWeavers (dot) com
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!
SHIP_usps_Debug_01182016160554_US_50588_0lb_0.99oz.zipSHIP_usps_Debug_01182016160554_US_50588_0lb_0.99oz.zip
oops, sorry, here's the latest:
I am an idiot ...
That suggested fix is not going to work ...I do not know what I was thinking ...
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!
If YOU'RE an idiot, Ajeh, I shudder to think about the nomenclature best for me...........:)
Okay let's try this code for the > 13 and < 16 weights ...
Change this code:
with this code:Code:$usps_shipping_weight = ($shipping_weight < 0.0625 ? 0.0625 : $shipping_weight); $this->pounds = (int)$usps_shipping_weight; // usps currently cannot handle more than 5 digits on international // change to 2 if International rates fail based on Tare Settings $this->ounces = ceil(round(16 * ($usps_shipping_weight - $this->pounds), MODULE_SHIPPING_USPS_DECIMALS)); // Determine machinable or not
Code:$usps_shipping_weight = ($shipping_weight < 0.0625 ? 0.0625 : $shipping_weight); if ($this->usps_countries == 'US') { $this->pounds = $usps_shipping_weight; $this->ounces = 0; } else { $this->pounds = (int)$usps_shipping_weight; // usps currently cannot handle more than 5 digits on international // change to 2 if International rates fail based on Tare Settings $this->ounces = ceil(round(16 * ($usps_shipping_weight - $this->pounds), MODULE_SHIPPING_USPS_DECIMALS)); // $this->ounces = round(16 * ($this->usps_weight - $this->pounds), 3); //$check_ounces = $this->ounces = round(16 * ($usps_shipping_weight - $this->pounds), 3); } //echo 'USPS Rate Type: ' . MODULE_SHIPPING_USPS_RATE_TYPE . '<br>'; //echo 'order delivery country: ' . $order->delivery['country']['id'] . ' $this->usps_countries: ' . $this->usps_countries . ' - SHIPPING_BOX_WEIGHT: precent:weight ' . SHIPPING_BOX_WEIGHT . '<br>'; //echo ' $shipping_weight: ' . $shipping_weight . ' $usps_shipping_weight: ' . $usps_shipping_weight . ' $this->pounds: ' . $this->pounds . ' $this->ounces: ' . $this->ounces . ' $check_ounces: ' . $check_ounces . '<br>'; // Determine machinable or not
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!
Thanks for the update that this is able to work 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!
Looks good. Logfiles attached if you need them for any future purpose.
0.85+0.1 pound = accurate 1st class quote
0.88+0.1 pound = accurate 1st class quote
0.89+0.1 pound = No 1st class quote
0.98+0.0 pound = accurate 1st class quote
0.99+0.0 pound = No 1st class quote.
Not sure anyone could expect anything better. If you have any specific parameters for a dummy to test, just ask.
Rick
RixStix (dot) com
aka: ChainWeavers (dot) com
Bookmarks