Jump to content
fulluvscents

USPS Rate V4, Intl Rate V2 (official support thread)

Recommended Posts

@Jack_mcs

Just so you know.  I'm running Phoenix v1.0.7.1 and PHP 7.3

Running your usps.com and mine, I have an error/warning that pops up.  It pops up when it goes to the delivery page options. I wasn't seeing it before because the php display errors was off.

Warning: Invalid argument supplied for foreach() in /includes/system/versioned/1.0.0.0/shipping.php on line 98

Line 98            foreach ($quotes['methods'] as $method) {

I'm not getting usps to show on the delivery screen with or without the display errors on or off.

Hope this helps. 

 

 

Share this post


Link to post
Share on other sites

Have done a bit of CSS tweaking (I'm not great at it!). This cleans up the display considerably.

 

usps.php

Share this post


Link to post
Share on other sites

Noticed today response is not returning 'First-Class Package International ServiceTM\'.


The water in a vessel is sparkling; the water in the sea is dark. The small truth has words which are clear; the great truth has great silence.

- Rabindranath Tagore

Share this post


Link to post
Share on other sites
3 hours ago, Smoky Barnable said:

Noticed today response is not returning 'First-Class Package International ServiceTM\'.

Removing the dimensions from the international API request has solved the issue for me. I am now getting first class international package quotes as expected.


The water in a vessel is sparkling; the water in the sea is dark. The small truth has words which are clear; the great truth has great silence.

- Rabindranath Tagore

Share this post


Link to post
Share on other sites
19 hours ago, Smoky Barnable said:

Noticed today response is not returning 'First-Class Package International ServiceTM\'.

It's because they changed the minimum width and height to 6x4. Deleting those lines probably cause their default to be used but you could leave them in and change the sizes accordingly.

Share this post


Link to post
Share on other sites

Anyone notice any difference between rates quoted if you just remove the dimensions versus setting them to 6 * 4?

 

Share this post


Link to post
Share on other sites
On 2/2/2021 at 7:26 PM, Smoky Barnable said:

Removing the dimensions from the international API request has solved the issue for me. I am now getting first class international package quotes as expected.

Where exactly did you do this? File name and search term would really be appreciated.

Share this post


Link to post
Share on other sites

In \includes\modules\shipping\usps.php I commented out the following in the $request variable.

        '<Country>' . tep_get_country_name($order->delivery['country']['id']) . '</Country>' .
        '<Container>RECTANGULAR</Container>' .
        '<Size>LARGE</Size>' .
        //'<Width>0.2</Width>' .
        //'<Length>0.2</Length>' .
        //'<Height>0.2</Height>' .
        '<Girth>0</Girth>' .
        '<OriginZip>' . SHIPPING_ORIGIN_ZIP . '</OriginZip>' 

 

Edited by Smoky Barnable

The water in a vessel is sparkling; the water in the sea is dark. The small truth has words which are clear; the great truth has great silence.

- Rabindranath Tagore

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×