Zen Cart Logo
Forums / Addon Shipping Modules / USPS Shipping Module [Support Thread]

USPS Shipping Module [Support Thread]

Sticky

Views: 77,355

Results 161 to 180 of 447
11 Aug 2022, 2:34 PM
#161
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

USPS Shipping Module [Support Thread]

I'm not seeing this on K11e and I'll note that line 555 in that version is not where you posted.

I disabled most of the international-type methods, added an item to the cart, went to the shopping-cart page and requested a quote to send the order to Australia. No matching quotes were found and no logs were generated.

11 Aug 2022, 3:05 PM
#162
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
367
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Hi @lat9, thanks for your reply. This issue seems intermittent and I'm not sure how it was triggered. In the past, I changed my code according to my previous post and this issue seems gone. We have some modifications on the USPS.php file so the line 555 is different than the stock file. Maybe this issue only exists on my site then.

Thanks for your help again.

11 Aug 2022, 5:45 PM
#163
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

njcyx:

Hi @lat9, thanks for your reply. This issue seems intermittent and I'm not sure how it was triggered. In the past, I changed my code according to my previous post and this issue seems gone. We have some modifications on the USPS.php file so the line 555 is different than the stock file. Maybe this issue only exists on my site then.

Thanks for your help again.
What international methods are enabled?

11 Aug 2022, 7:13 PM
#164
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
367
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Hi @lat9, FedEx and USPS are enabled for intl shipping on my site.

I found out the Australian shipping address from the log file. I tried it and my site could display proper shipping rate from USPS and FedEx now. Maybe USPS has an API outage at that moment.

11 Aug 2022, 7:46 PM
#165
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,962
Plugin Contributions:
8

Re: USPS Shipping Module [Support Thread]

njcyx:

Hi @lat9, thanks for your reply. This issue seems intermittent and I'm not sure how it was triggered. In the past, I changed my code according to my previous post and this issue seems gone. We have some modifications on the USPS.php file so the line 555 is different than the stock file. Maybe this issue only exists on my site then.

Thanks for your help again.

i would suggest that rather than modifying said file, i would use the observer-notifier system inherent in this shipping module. if you do not know to use/set that up, i would suggest a review here:

https://docs.zen-cart.com/dev/code/notifiers/

furthermore, if there is not a notifier than accomplishes what you want, than i would suggest raising an issue about that so that we may add a notifier where you might need it.

i bring this up as i have a vague recollection of this problem and that a solution was already implemented. which your new code may obliterate.

12 Aug 2022, 1:52 PM
#166
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
367
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Hi @calwhat, thanks for your suggestion. I will say this "Observer/Notifier System" is beyond my ability. I even have hard time to read through this guide. It looks like I need to create a new function for my requested feature. I don't have coding background and I only took several related courses in my college. I can take some trial and error to modify the current code, sometimes I need a little bit luck or imagination, so the code can work as I want like a miracle. But I have difficulty to write a complete new section of function, without any examples, nor interact with other parameters in the different PHP files. For my point of view, editing the current file is way easier than creating a new function.

I hope some coding examples to use this observer function can be provided for references...

12 Aug 2022, 4:04 PM
#167
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,962
Plugin Contributions:
8

Re: USPS Shipping Module [Support Thread]

njcyx:

Hi @calwhat, thanks for your suggestion. I will say this "Observer/Notifier System" is beyond my ability. I even have hard time to read through this guide. It looks like I need to create a new function for my requested feature. I don't have coding background and I only took several related courses in my college. I can take some trial and error to modify the current code, sometimes I need a little bit luck or imagination, so the code can work as I want like a miracle. But I have difficulty to write a complete new section of function, without any examples, nor interact with other parameters in the different PHP files. For my point of view, editing the current file is way easier than creating a new function.

I hope some coding examples to use this observer function can be provided for references...

why don't you provide your coding changes to this file and perhaps someone can help you to move it to a notifier so that the file can remain unchanged.

30 Aug 2022, 7:29 PM
#168
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: USPS Shipping Module [Support Thread]

Looks like the servers are down.

https://downdetector.com/status/usps/

31 Aug 2022, 12:09 AM
#169
charmlt avatar

charmlt

New Zenner

Join Date:
Mar 2005
Location:
Earth
Posts:
83
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

dbltoe:

looks like the servers are down.

https://downdetector.com/status/usps/

free shipping today!

31 Aug 2022, 12:34 AM
#170
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: USPS Shipping Module [Support Thread]

Finally got through to USPS. They acknowledge problems since around 1300 CDT and have no estimate as to when the service will be back on line.

31 Aug 2022, 3:07 AM
#171
osdmarine avatar

osdmarine

New Zenner

Join Date:
Nov 2017
Location:
United States
Posts:
63
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

dbltoe:

Finally got through to USPS. They acknowledge problems since around 1300 CDT and have no estimate as to when the service will be back on line.

I'm also currently down thanks to that since early this afternoon. This is one of my busiest weeks of the year the week before the last holiday too. Hope they get something figured out and quick! The USPS sites calculator is working, just not the one I use (most current version).

31 Aug 2022, 3:28 AM
#172
osdmarine avatar

osdmarine

New Zenner

Join Date:
Nov 2017
Location:
United States
Posts:
63
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

dbltoe:

Finally got through to USPS. They acknowledge problems since around 1300 CDT and have no estimate as to when the service will be back on line.

Just an FYI I figured out what was wrong. Apparently I didn't have the most current USPS Plug In so downloaded the 8/7 one and installed and now my site's working again. Must have been some small issue that caused the previous version to quit working earlier today.

31 Aug 2022, 8:57 PM
#173
mahlerosa avatar

mahlerosa

New Zenner

Join Date:
Nov 2011
Posts:
35
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Reading the "Read Me" portion of the USPS dowload. It states:

  • /includes/modules/shipping/usps.php
  • /includes/languages/english/modules/shipping/usps.php
  • /includes/templates/template_default/images/icons/shipping_usps.gif
    This does not match what my file structure looks like. I do not know where to put the files?
    AM I supposed to upload the whole folder or just the USPS.php?
    Thnx!
31 Aug 2022, 11:43 PM
#174
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: USPS Shipping Module [Support Thread]

Whether your main site is under /store, /test, or whatever; that becomes you "root" of you site. That root should include folders like docs, download, editors, images, and inclcudes.

As the instructions say, load the two folders into the root for an initial install.

There are other options if you have an older version installed.

lat9 always has excellent instructions and they are in the readme.txt included with this mod.

2 Sep 2022, 5:37 PM
#175
techiant avatar

techiant

New Zenner

Join Date:
Oct 2008
Posts:
82
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Just upgraded to USPS Version Date 2022-08-07 K11e.
It is returning quotes for Priority Mail and Priority Mail Express with no problems.
It is however not returning First Class Pkg rates.
I tried enabling
1st-Class Pkgs - Retail
1st-Class Pkgs - Comm

Tried with Retail pricing or Online pricing?
Online as well as Retail.

Enable USPS First-Class filter for US shipping: True (also tried with "False")

Test cart contains goods with a value less than $45 and weighing 0.025 lb (0.4oz).
Minimums set to: 8.625" x 5.375" x 1.625"

ZenCart: v1.5.5f
PHP Version 7.1.33

Thanks

2 Sep 2022, 6:03 PM
#176
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: USPS Shipping Module [Support Thread]

I don't believe the older version of Ze Cart is your culprit but, it would be a good idea to take advantage of the changes/fixes in 1.5.7d.

Meanwhile, check under admin >> Configuration >> Shipping/Packaging to make sure that your tare weights do not take the total weight beyond the .8125 pounds (13 ounces) for Retail and .9375 (15 ounces) for Commercial.

2 Sep 2022, 6:06 PM
#177
techiant avatar

techiant

New Zenner

Join Date:
Oct 2008
Posts:
82
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Good call! This was the issue and potentially bumped other shipping prices.
Setting it to 0:0 fixed it.

Thank yoU!

2 Sep 2022, 6:19 PM
#178
techiant avatar

techiant

New Zenner

Join Date:
Oct 2008
Posts:
82
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Not related to the problem but is there a way to limit the usps First Class package based on order value?

3 Sep 2022, 9:57 AM
#179
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

Techiant:

Not related to the problem but is there a way to limit the usps First Class package based on order value?
You could make a site-specific modification to the 'extra' element provided in the USPS shipping module's zip-file. Look at /extras/includes/classes/observers/auto.usps_overrides.php and make the modifications you're 'looking for'.

3 Sep 2022, 2:00 PM
#180
chuckphillips avatar

chuckphillips

Zen Follower

Join Date:
Sep 2012
Location:
Upstate South Carolina
Posts:
106
Plugin Contributions:
1

Re: USPS Shipping Module [Support Thread]

We limit USPS shipping to orders less than $300, like this:

/includes/modules/shipping/usps.php - about line 368

        

        global $template, $current_page_base;
        // CUSTOMIZED CONDITIONS GO HERE
        // Optionally add additional code here to change $this->enabled to false based on whatever custom rules you require.
        // -----


        //orders over 300 may not use usps
        if ($order->info['subtotal'] >= 300){
        
            $this->enabled = false;
        
        }