Totally Zenned
- Join Date:
- Feb 2007
- Location:
- Pennsylvania
- Posts:
- 858
- Plugin Contributions:
- 0
[Fixed - See post 26] USPS International shipping problem...
Thanks Linda! Workin' Great so far on 1.3.8>upgrades>1.3.9h
John
Views: 63,770
Totally Zenned
Thanks Linda! Workin' Great so far on 1.3.8>upgrades>1.3.9h
John
Oba-san
SeanLoberg:
Also, if, after installing Ajah's quick fix, international is showing up, but domestic is not, change, on line 193 the zen_round from 3 to 2 ...
Line 193 old: $shipping_ounces = zen_round($shipping_ounces, 3);Line 193 new: $shipping_ounces = zen_round($shipping_ounces, 2);
for some reason, USPS can't handle 3 digits!
P.S. All credit to Ajeh, who found this for me months ago! Thanks again for the quick action Ajeh!!!
Did you find you needed the 2 digit for domestic or international?
What are your settings in the Shipping/Packaging?
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
Zen Follower
thank you Ajeh for the super fast response. In case anyone wants to know if this works with rather old versions of zencart, I run 1.3.0.2 and it appears to have taken just fine.
I should also note that the weights I have set in my shop are 3 decimal points and there were no issues returning a postage estimate - international nor domestic.
Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2
Oba-san
Usually, I have only seen that issue on certain cases of Tare Settings ... but I am looking for a better pattern ...
I hate to default it to 2 digit unless it is absolutely necessary as that causes issues for folks with very low weight products ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
New Zenner
I too had customers telling me they could not place orders. This started a day or two ago. I did some Googling and came up to this thread.
Applied the above fix and it works great! I have 1.3.8a
Love this site!
New Zenner
Ajeh:
Usually, I have only seen that issue on certain cases of Tare Settings ... but I am looking for a better pattern ...
I hate to default it to 2 digit unless it is absolutely necessary as that causes issues for folks with very low weight products ...
Ajeh:
Did you find you needed the 2 digit for domestic or international?
What are your settings in the Shipping/Packaging?
Good morning Ajeh! I had it **backwards **in my previous post (sorry everyone)... if International is not showing up, round down to 2 digits! I have very low weight products ...
Oba-san
Yes, based on your Product Weights and your specific Tare Rates, the International can fail on certain quantities, unless you change the rounding to 2 ...
Why the International will not accept the same values as the National is a USPS mystery in their ... umm ... infinite wisdom ... :lookaroun
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
New Zenner
Hi Linda,
You're awesome! :clap:
My old USPS php had a little customization to limit the First Class weight to 2.2 pounds. If you can help me to add this restriction to the 2011 USPS php I will appreciate it.
Here is my old customization for my 1.37 cart
$methods[] = array('id' => $type,
'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
*/
if ($type == 'First-Class Mail International Package' && $shipping_weight >= 2.2) {
// skip First Class Mail Int Package on >= 2.2
} else {
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
Oba-san
Try using:
First-Class Mail International Package**
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
Inactive
Thank you - again - I guess we should all just make a yearly appt. with Ajeh and the USPS module?
Grrrr,,,,
Zen Follower
The fix works just fine, but I'm having a very small problem. Now, the shipping estimator is highlighting the lowest UPS price, and not the lowest overall shipping price, which would be the USPS price.
Zen Follower
Thank you for your hard work and updating this module! I totally appreciate it :-)
Oba-san
sadie:
The fix works just fine, but I'm having a very small problem. Now, the shipping estimator is highlighting the lowest UPS price, and not the lowest overall shipping price, which would be the USPS price.
Could you check that you are using the current release of the USPS Jan 2, 2011 C code?
And, that you did an REMOVE, INSTALL and reconfigure of the settings ...
Then, if this is still happening ... could you provide an exact click for click of how to reproduce this problem as I cannot get the shipping estimator to not show the lowest price whether logged in or not logged in and regardless of what I select in the checkout the shipping estimator will still highlight the cheapest cost ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
New Zenner
sadie:
The fix works just fine, but I'm having a very small problem. Now, the shipping estimator is highlighting the lowest UPS price, and not the lowest overall shipping price, which would be the USPS price.
Same problem here Linda. :huh:
Oba-san
What version of Zen Cart are you using?
Clean install or an Upgrade?
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
Zen Follower
Ajeh:
Could you check that you are using the current release of the USPS Jan 2, 2011 C code?
And, that you did an REMOVE, INSTALL and reconfigure of the settings ...
Then, if this is still happening ... could you provide an exact click for click of how to reproduce this problem as I cannot get the shipping estimator to not show the lowest price whether logged in or not logged in and regardless of what I select in the checkout the shipping estimator will still highlight the cheapest cost ...
This is so strange, earlier today, right after I made the changes to the USPS update C, my shipping estimator was doing what I explained. Now, after being off line for several hours (and making no changes to my files), I checked it again, and it is working fine, and is choosing the lowest shipping. I don't understand it, but everything is fine now.
New Zenner
Round down to 2 digits is not working for everything yet.
I am not getting any international options in the shipping estimator for Nova Scotia or Japan.
Stock 1.3.9h + USPS round to 2 digits.
Oba-san
I cannot reproduce the problem, when I change the code:
$shipping_ounces = zen_round($shipping_ounces, 3);
to read:
$shipping_ounces = zen_round($shipping_ounces, 2);
What Ship From and Ship To are you using?
What weight are you shipping?
What are your settings in the Shipping/Packaging?
What are your settings in the USPS shipping module?
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
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!
Zen Follower
This worked. Thank you!
Is there a way to remove the two astericks from First Class International? This is how it appears on my website (without the quotations): "Priority Mail International**".
New Zenner
hi there - i am running 1.3.8a and use USPS exclusively. got two emails that international customers are getting no shipping choices, so i attempted to install this module.
copied usps.php, uploaded this new file. when i refreshed my modules admin screen, there was no 'USPS' module listed, and the right-hand column that normally houses the 'install' button was entirely missing!
i quickly deleted the new file and renamed the copy so at least i can continue to receive domestic orders, but would love to know what's going on with my shipping module!!
upgrade, (not clean install) all security patches installed as far as i can tell. URL: http://oyinhandmade.com
please help!!
thanks so much :)
zencart installation is at http://oyinhandmade.com/shop
Tell staff why this post should be reviewed.