-
NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Have problem with USPS v15 Ratev4 2013_0127 R2013_0729_J5 not displaying International rates. I have Removed and Installed over four times with no better results.
Domestic works fine.
International to any country I do not get an error code just following message displayed on checkout page:
"United States Postal Service United States Postal Service
We are unable to find a USPS shipping quote suitable for your mailing address and the shipping methods we typically use.
If you prefer to use USPS as your shipping method, please contact us for assistance.
(Please check that your Zip Code is entered correctly.)" These address's are repeat customers that are correct so problem is elsewhere.
Have the below installed:
zencart 1.50 with the following 3rd Party Mods:
admin login as customer
backup mysql
css_js_loader
numinix FedEx web services
numinix highslide
numinix category discount
numinix FECA2.0
image_handler
Google Analytics
sale_reprt
USPS v15 Ratev4 2013_0127 R2013_0729_J5
zipship_1.1
With USPS debug on "set to send email" the dosmestic email shows:
<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>79707</ZipOrigination><ZipDestination>48092</ZipDestination><Pounds>0</Pounds><Ounces>13.36</Ounces><Container></Container><Size>REGULAR</Size><Zone>6</Zone><Postage CLASSID="3"><MailService>Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt;</MailService><Rate>32.85</Rate></Postage></Package><Package ID="1"><ZipOrigination>79707</ZipOrigination><ZipDestination>48092</ZipDestination><Pounds>0</Pounds><Ounces>13.36</Ounces><Container></Container><Size>REGULAR</Size><Zone>6</Zone><Postage CLASSID="1"><MailService>Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt;</MailService><Rate>6.20</Rate></Postage></Package></RateV3Response>
and the Internation email shows:
"<?xml version="1.0"?>
<IntlRateResponse><Package ID="0"><Prohibitions>Arms and weapons.
Articles bearing false trademarks or lacking the indication of origin required by the Irish regulations......on & on with regulations and requirements to Notes:
1. An invoice, in duplicate, is required for all commercial shipments regardless of value and for all personal shipments valued at $300 or more. The invoices must be either affixed to the outside of the parcel or enclosed in PS Form 2976-E with the customs declaration.
2. Arms, weapons, and human remains are prohibited.
3. Coins; banknotes; currency notes, including paper money; securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver; precious stones; jewelry; watches; and other valuable articles are prohibited in Priority Mail Express International shipments to Ireland.
4. An Priority Mail Express International shipment may be addressed to a street address or to a post office box. A local telephone number for the addressee should be provided when the item is addressed to a street address and must be provided when the item is addressed to a post office box.
5. All items must have both the county and city in the address.
Areas Served: All</ExpressMail><AreasServed>Please reference Express Mail for Areas Served................. "to the end"
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I see no rate information being passed and assume I should have.
Anyone with a clue what's the problem? I would really appreciate help due to International sales has been shut down over two days.
Thanks,
Larry
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Just got off phone with USPS tech support and they said this was a know bug and an update has already been sent out. You know how the USPS is, so take this as a grain of salt.
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Are you saying USPS had a hiccup today with International Rates only? :lookaroun
Not that I would doubt something like that happening with the way this last week to 10 days has been going with USPS ... I just want to be sure I understand the specific problem/solution a little more ...
And just what did USPS "send out" or do you mean their servers were not sending the correct responses back?
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
I talked to the regular customer tech support to find out if they had gotten there other issue they were having where if you had more than one shipping label to print after you have paid for them it would not print shipping labels but print several scan forms. She replied they hope to get it fixed this weekend.
NEXT I told her my shopping cart would not return International rates but work just fine on Domestic. She replied that they were aware of that bug. They had sent email out to all the shopping cart company's. I first discovered this when one of my Canadian customer called and had me to place an order for her. The results were as described above. I also tried with other Country's same results. I had held off installing the USPS upgrade until 08/01/2013 so after no International Rates I went ahead and installed the USPS mod. with same results. That is all I can tell you.
What I wanted to know is this true? Is anyone else having this problem or is there some other 3rd party mod that is causing this with my cart which I don't really think there is.
Linda please let me know if this is a bug or do I need to start looking else where this weekend.
Thanks,
Larry
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Could you please set your USPS Debug to Logs and try to obtain a quote via your checkout_shipping ...
The logs are found in either /cache or /logs depending on your Zen Cart version ...
Then Zip the log, they start with SHIP_usps and end in the Country 2 digit ISO code and Zip Code such as:
Domestic:
SHIP_usps_Debug_date_info_here_US_33601.log
International:
SHIP_usps_Debug_date_info_here_CA_M4B1B3.log
Once you Zip the log(s), could you then attach them to your next post, please?
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
I will do this give me a hour or less.
Thanks,
Larry
-
1 Attachment(s)
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
This is the first time I've uploaded anything on this forum. I think I did it correct if not give me instructions on how-to.
There are four files. The first I think is after you add product to cart and the other from checkout page.
Larry
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Go to your Zen Cart Admin and go to Tools ... Developers Tool Kit ...
In the bottom input box enter:
usps.php
Then, select Catalog ... click SEARCH ...
What comes up on the lines for:
* @version $Id: usps.php
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
Go to your Zen Cart Admin and go to Tools ... Developers Tool Kit ...
In the bottom input box enter:
usps.php
Then, select Catalog ... click SEARCH ...
What comes up on the lines for:
* @version $Id: usps.php
Hi Linda,
I have really got a mess now. By the time you help me get this fixed I will have to raise your monthly coffee disposite from 7-11 to Star Bucks.
Below is the file you ask for and it appears the one starting Line #12 is wrong. So I did the following and created a mess. I have loss USPS Shipping showing up under Modules.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x
/home/ezorb1/public_html/EZorb/secure/includes/languages/english/modules/shipping/usps.php
Line #6 : * @version $Id: usps.php 18348F 2012-01-22 01:22:00Z ajeh $
/home/ezorb1/public_html/EZorb/secure/includes/modules/shipping/usps.php
Line #9 : * @version $Id: usps.php 18348F 2012-01-22 01:22:00Z ajeh $
/home/ezorb1/public_html/EZorb/secure/includes/modules/zen4ezorb/shipping/usps.php
Line #9 : * @version $Id: usps.php 18348F 2012-01-22 01:22:00Z ajeh $
/home/ezorb1/public_html/EZorb/secure/includes/usps.php
Line #12 : * @version $Id: usps.php 2013-07-28 ajeh Version J $ 2013-07-28
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxx
I removed all the above USPS.php files then reinstalled usps.pnp files. Using Tools I have the below files installed. These look OK to me.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
home/ezorb1/public_html/EZorb/secure/includes/languages/english/modules/shipping/usps.php
Line #10 : * @version $Id: usps.php 2013-07-28 ajeh $ Version J 2013-07-28
/home/ezorb1/public_html/EZorb/secure/includes/modules/zen4ezorb/shipping/usps.php
Line #12 : * @version $Id: usps.php 2013-07-30 ajeh Version J5 $
Match Lines found: 2
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxx
Ran another shipping test and have nothing shown for either Domestic or International.
I went to Modules>Shipping and USPS Shipping does not show. I remember I forgot to go to shipping modules and remove USPS Shipping before removing the usps.php files.
How do I get the USPS Shipping module to show so I can reinstall it?
Larry
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Actually this particualr issue may be solved easier than you expect, should this work ...
Go to:
http://www.zen-cart.com/downloads.php?do=file&id=1292
and download a fresh copy of USPS July 28, 2013 J5 ...
Now be sure to install the files in:
/includes/modules/shipping/usps.php
/includes/languages/english/modules/shipping/usps.php
Note: again the same test in the Developers Tool Kit will reveal that those two lines should read:
Quote:
* @version $Id: usps.php 2013-07-30 ajeh Version J5 $
Then do the REMOVE, INSTALL and re-configure of the USPS shipping module in the Modules ... Shipping ...
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
Actually this particualr issue may be solved easier than you expect, should this work ...
Go to:
http://www.zen-cart.com/downloads.php?do=file&id=1292
and download a fresh copy of USPS July 28, 2013 J5 ...
Now be sure to install the files in:
/includes/modules/shipping/usps.php
/includes/languages/english/modules/shipping/usps.php
Note: again the same test in the Developers Tool Kit will reveal that those two lines should read:
Then do the REMOVE, INSTALL and re-configure of the USPS shipping module in the Modules ... Shipping ...
Hi Linda,
Now I only have 1 minor problem left. The Pharm. Company that I repersent set's the shipping cost at a Flat Rate of $6.95. This is for any qunitity sold in US. So if a customer orders 1 bottle shipped to FL. for example the USPS will show a charge of $6.20 or if closer to me much less. I need my Fix Rate to overide any usps shipping cost below $6.95. This is the only way I have to help offset the usps shipping cost that are way over $6.95
I have been using the below 3 or 4 lines of code with the previous usps code going way back 1.2.x. Will this code still work or have some of variables been change where it won't work? I think in your usps.php this mod would be inserted a few lines after line 460.
// Find this around line 225 for USPS -- includes/modules/zen4ezorb/shipping/usps.php
// $methods[] = array('id' => $type,
// 'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
// 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
// */
// Insert this
// ************* START MODIFICATION USPS *****************
// If quoted cost is lower than flat rate module cost, mark up the cost to equal flat rate!
$quoted_cost = ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes;
$adjusted_cost = ($quoted_cost < MODULE_SHIPPING_FLAT_COST ? MODULE_SHIPPING_FLAT_COST : $quoted_cost);
$methods[] = array('id' => $type,
'title' => $title,
'cost' => $adjusted_cost);
// ************* END MODIFICATION *****************
Everything works great now
I now see how I mess up this simple to install module. Rule # 1 don't install modules when tired and it is 3:00am.
Thank you,
Larry
FYI: We only use Priority Mail (PM) 2-day or Express PM or FedEx and the reason I don't just turn PM off is (I call the Fix Rate, Flat Rate Best Way) this way I have option to ship the cheaper way. If a customer wants to be sure to get order in 2 days then they will select Priority Mail and pay the actual shipping cost. But I don't want them being able to select shipping below $6.95. So if you fix the above give it a name and add to Plugin I am sure others would use it.
Again Thank you for all the help and have a great weekend,
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Have you an URL to your site so that I can see your shipping and checkout in action?
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
Have you an URL to your site so that I can see your shipping and checkout in action?
Please do. EZorbCalcium.com
also find RWoody zipship that is being used to only allow certain zip codes entered will show a walk in handling price.
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Let's pretend I know nothing about your site, Products nor shipping ... other than I maybe shopping with you later as this sounds rather interesting ... :lookaroun
Meanwhile ...
You appear to have 3 Products that you sell ...
Do all 3 Products have the same shipping rules?
It sounds like you are saying Order anything I want in whatever quantity and I can get a single charge of $6.95 ... and that there are other shipping methods available that will be "more" expensive should I chose to use them ...
And that the catch is ... you never want the USPS quote to be "less" than the $6.95 quote for Flat Rate ... is this correct?
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
Let's pretend I know nothing about your site, Products nor shipping ... other than I maybe shopping with you later as this sounds rather interesting ... :lookaroun
Meanwhile ...
You appear to have 3 Products that you sell ...
Do all 3 Products have the same shipping rules?
It sounds like you are saying Order anything I want in whatever quantity and I can get a single charge of $6.95 ... and that there are other shipping methods available that will be "more" expensive should I chose to use them ...
And that the catch is ... you never want the USPS quote to be "less" than the $6.95 quote for Flat Rate ... is this correct?
That is correct. 3 products with 3 discount on 3 bottles, 7 bottles, and 12 bottles any combination.
Shipping defaults at $6.95 per order in USA
Customer may also select other USPS Priority Mail or several FedEx shipping methods.
International is set only USPS
If customer is in local area will default to Walk In set by (zipship) assigning zip codes then shipping cost will default to $1.80 local pickup.
These products were first sold only to doctors. I use to have severe osteoporosis back in 2004 and after 3 + years back to normal bone density in 2006 and still there.
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
If would go between the IF and the $methods[] ...
Code:
if ($this->usps_countries == 'US' && MODULE_SHIPPING_USPS_FIRST_CLASS_FILTER_US == 'True' && preg_match('#First\-Class#i', $type) && $cnt_first > 1) continue;
$methods[] = array('id' => $type_rebuilt,
'title' => $title,
'cost' => $cost,
);
NOTE: Just watch what the $methods[] is made up of as it uses different variables and you just want the $cost ...
NOTE: be aware of what $cost is made up of from this section:
Code:
// COST
// clean out invalid characters
$cost = preg_replace('/[^0-9.]/', '', $cost);
down to the $methods[] ...
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Hi Linda,
It seems to be working fine now. Notice below code that I had to "Remark out" the 4 lines after //***** End Mod **** cause I was getting both 'cost' displayed.
One last question. in your $methods[] = array('id' => $type_rebuilt,
you have _rebuilt after $type.
Should I change my $methods[] = array('id' => $type, to be same as yours?
Thanks so much for the help and have a wonderful week,
Larry Penny
if ($this->usps_countries == 'US' && MODULE_SHIPPING_USPS_FIRST_CLASS_FILTER_US == 'True' && preg_match('#First\-Class#i', $type) && $cnt_first > 1) continue;
// ************* START MODIFICATION USPS *****************
// if quoted cost is lower than flat rate module cost, mark up the cost to equal flat rate
$quoted_cost = ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes;
$adjusted_cost = ($quoted_cost < MODULE_SHIPPING_FLAT_COST ? MODULE_SHIPPING_FLAT_COST : $quoted_cost);
$methods[] = array('id' => $type,
'title' => $title,
'cost' => $adjusted_cost);
// ************* END MODIFICATION *****************
// $methods[] = array('id' => $type_rebuilt,
// 'title' => $title,
// 'cost' => $cost,
// );
} else {
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Could you Zip your file:
/includes/modules/shipping/usps.php
and post it as an attachment so that I can see the whole thing?
-
1 Attachment(s)
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
Could you Zip your file:
/includes/modules/shipping/usps.php
and post it as an attachment so that I can see the whole thing?
Attachment 12857
Here is the attachment if I did it right.
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
You did it right thanks ... :smile:
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Here is a good example of how you can mess up installing an upgrade. There are many post on this website with similar install problems, thinking I installed it just as the instructions said and it don't work. Then there are very few installs done correctly and have problems. So look at all of Ajeh's time I wasted that she could have been helping someone with real problems instead of the problem I created by taking shortcuts.
For the ones that don't know the USPS module only has 2 files to install, you could not ask for an install much simpler that this.
So here to the best of my memory the recap of how a Simple Module Install can escalate into a major problem with shopping cart shut down all together several hours along with much confusion on my part.
I did not want to shut down my shopping cart until late after most went to bed so after a long and tiring day I waited until around 2:00 am to start the 5 minute project. I first zipped up my working cart, just in case something goes wrong (this was about the only smart thing I did correctly). Not being mentally alert I loaded the files to be installed into FileZilla first opening up all folders in path to the file to be installed then opened the same folders where they were to be installed last. After opening last folder in path "Shipping" somehow unknowingly I double click on usps.php file. When you double-click on a file it will be loaded either up or down. Since I was on the destination side of FileZilla it was downloaded and overwrote the new file to be installed. Not realizing what I had done I now uploaded individually the files to their correct folders.
I ended up with one old file and one new file installed. This was compounded by the usps.php file being installed in "Includes/modules/My Temple t/shipping/" folder where it should have been due to a simple modification requirement for my shopping cart. I did not realize that the file had to be also installed in "Includes/modules/shipping/".
If the usps.php file is not installed in this folder then when you open "Admin>Modules>Shipping> USPS Shipping module is missing. After wasting hours of time I could not get USPS Shipping to show. Finally I unzip my working shopping cart in a test folder and replace the mess by reinstalled the shopping cart as it was before starting.
Next day I uploaded the unknowingly wrong files into my test shopping cart. So for some reason the Domestic quotes work and International did not. Resulting in thinking something was wrong with USPS server since they were having problems almost a week now or there was something wrong with the new USPS files. I called USPS Tech support and was told they knew about the International bug and all was related hoping to have fixed shortly. Finally Ajeh came to the rescue and I assume her first thoughts were how can anyone screw-up something so simple. Well you can follow the Posts and see it really can be done.
So here are some Rules to help eliminate installing modules wrong. This applies to any module you are installing.
1. Never try installing when you are tired.
2. UnZip your working files in a test folder leaving your working cart along. How many times has that been said.
3. When using a FTP always first open the destination file folder first then load the new file folder last that are to be uploaded. Will help prevent overwriting your new files to be installed.
4. If you have a "My Template" overrides folder change the usps.php file to be installed to usps.php_old. Change back after you have tested and found everything works OK.
5. Don't open all folders in the path and just install the usps.php file. Always install from the first folder (in this case includes) and let your FTP install all files in correct folders.
6. This may should be #2, don't take shortcuts even though a simple install.
To make a long story short first realize the module you are installing would not be released to be installed if it did not work. So after you install a module and it does not work then step back remove all files you installed and follow each step in detail not taking short cuts and then 99% of time your upgrade will work. If it still does not work most likely the error is coming from another 3rd party module you have installed.
Hope this helps someone.
-
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
That makes perfect sense ...
I have done something similar in that I copy the file I want in memory and switch to the FTP I want to update and upload to the server ... it is amazing what a mess you can make when:
1 In the wrong directory
2 copying the wrong version
3 working on the wrong FTP window with one server and thinking you are working with another
4 overwritting the code/language file with the reverse code/language file
Thanks for the clarification!