Zen Cart Logo
Forums / Addon Shipping Modules / NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

Views: 6,361

Results 1 to 20 of 22
2 Aug 2013, 7:03 PM
#1
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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<sup>™</sup></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<sup>™</sup></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

2 Aug 2013, 8:56 PM
#2
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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.

3 Aug 2013, 6:06 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

3 Aug 2013, 2:15 PM
#4
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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

3 Aug 2013, 2:33 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

3 Aug 2013, 3:40 PM
#6
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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

3 Aug 2013, 4:26 PM
#7
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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

3 Aug 2013, 5:37 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

3 Aug 2013, 8:43 PM
#9
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

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:

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.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

/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

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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

3 Aug 2013, 10:44 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

  • @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 ...

4 Aug 2013, 12:24 AM
#11
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

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,

4 Aug 2013, 12:39 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

4 Aug 2013, 1:30 AM
#13
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

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.

4 Aug 2013, 3:38 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

4 Aug 2013, 7:20 AM
#15
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

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.

4 Aug 2013, 1:28 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

If would go between the IF and the $methods[] ...

          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:

        // COST
        // clean out invalid characters
        $cost = preg_replace('/[^0-9.]/', '',  $cost);

down to the $methods[] ...

5 Aug 2013, 3:54 AM
#17
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

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 {

5 Aug 2013, 1:33 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

5 Aug 2013, 2:08 PM
#19
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

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.

5 Aug 2013, 3:08 PM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

You did it right thanks ... :smile: