Forums / Addon Shipping Modules / USPS January 17 2016 K8 - Support Quirks

USPS January 17 2016 K8 - Support Quirks

Views: 56,854

Results 121 to 140 of 143
1 Mar 2018, 10:54 PM
#121
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

USPS January 17 2016 K8 - Support Quirks

Ajeh:

You are going to have to re-create that file by getting the quote again on the server then copy that to your computer and Zip it ...

That file is like the PDF was just renamed to .log and that won't work ...

The last one I just supplied is okay correct?

1 Mar 2018, 10:55 PM
#122
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

Re: USPS January 17 2016 K8 - Support Quirks

Ajeh:

You are going to have to re-create that file by getting the quote again on the server then copy that to your computer and Zip it ...

That file is like the PDF was just renamed to .log and that won't work ...

The last one I just sent is okay correct?

1 Mar 2018, 11:02 PM
#123
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

That one worked ...

Try the dimensions of:
8-5/8" x 5-3/8" x 1-5/8"

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

1 Mar 2018, 11:08 PM
#124
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

Re: USPS January 17 2016 K8 - Support Quirks

Ajeh:

That one worked ...

Try the dimensions of:
8-5/8" x 5-3/8" x 1-5/8"

You are just awsome.
Worked perfectly.
Where can I donate to assist you.

1 Mar 2018, 11:14 PM
#125
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

You can donate to the Zen Cart Team at:
https://www.zen-cart.com/content.php?6-donate

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

1 Mar 2018, 11:16 PM
#126
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

Re: USPS January 17 2016 K8 - Support Quirks

Ajeh:

You can donate to the Zen Cart Team at:
https://www.zen-cart.com/content.php?6-donate

Done, thank you

1 Mar 2018, 11:34 PM
#127
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

Thanks ver ymuch for your support ... that really helps out the Zen Cart Team! :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

20 Nov 2018, 9:42 PM
#128
lat9 avatar

lat9

Administrator

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

Re: USPS January 17 2016 K8 - Support Quirks

I have a client, based in the US, that uses USPS shipping only for international shipments so none of the "Domestic Rates" are checked. Running USPS (USPS RateV4 Intl RateV2 - March 28, 2018 Version K10) on Zen Cart 1.5.5e.

When a domestic customer enters the checkout process, the following message is received for the USPS quotes:

-2147221202 - The element 'RateV4Request' has incomplete content. List of possible elements expected: 'RateClientType, Package'.

The USPS log shows the following for the RESPONSE from USPS:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Number>-2147221202</Number><Source>Common:XmlParse</Source>
<Description>The element 'RateV4Request' has incomplete content. List of possible elements expected: 'RateClientType, Package'.</Description><HelpFile/><HelpContext/></Error>

with SENT TO USPS:

<RateV4Request USERID="xxxxxxx">
<Revision>2</Revision>
</RateV4Request>
21 Nov 2018, 5:21 PM
#129
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

To turn it off when no Domestic is set add the code:

[B]if ($usps_shipping_methods_domestic_cnt < 1) {
  $this->enabled = FALSE;
}
[/B]
    if (SHIPPING_ORIGIN_COUNTRY != '223') {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

21 Nov 2018, 5:34 PM
#130
lat9 avatar

lat9

Administrator

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

Re: USPS January 17 2016 K8 - Support Quirks

Thanks, @ajeh! That's much better than the patch I'd applied, since it's not going to be asking USPS for a quote ... for nothing!

21 Nov 2018, 5:36 PM
#131
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

Maker sure that works for both.

If not, use:

        if ($uspsQuote['Number'] == -2147219085) {
          $this->quotes = array('module' => $this->title,
                                'error' => 'NO OPTIONS INSTALLED: ' . $uspsQuote['error']);
        } else {
[B]//[/B]          $this->quotes = array('module' => $this->title,
[B]//[/B]                                'error' => $uspsQuote['error']);
        }
        return $this->quotes;

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

21 Nov 2018, 6:09 PM
#132
lat9 avatar

lat9

Administrator

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

Re: USPS January 17 2016 K8 - Support Quirks

What I'd done was:

      if (isset($uspsQuote['error'])) {
        if ($uspsQuote['Number'] == -2147219085) {
          $this->quotes = array('module' => $this->title,
                                'error' => 'NO OPTIONS INSTALLED: ' . $uspsQuote['error']);
[B]//-bof-20181121-lat9: Return no quotes on "incomplete" submission (i.e. no methods selected).
        } elseif ($uspsQuote['Number'] == -2147221202) {
            $this->quotes = array();
//-eof-20181121-lat9[/B]
        } else {
          $this->quotes = array('module' => $this->title,
                                'error' => $uspsQuote['error']);
        }
21 Nov 2018, 6:12 PM
#133
ajeh avatar

ajeh

Oba-san

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

Re: USPS January 17 2016 K8 - Support Quirks

Thanks for the update ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

1 Aug 2019, 7:13 PM
#134
lat9 avatar

lat9

Administrator

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

Re: USPS January 17 2016 K8 - Support Quirks

Is there a GitHub for the USPS shipping method? I've found a bunch of PHP Notices being generated on current versions of PHP.

2 Aug 2019, 12:10 PM
#135
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS January 17 2016 K8 - Support Quirks

7.2 throwing all sorts of warnings, not errors, but think it's easily fixable. ups, usps, paypal - some in admin and others in checkout. All Use of undefined constant where apostrophes need adding. Been chasing down this for my template and for testimonials on this site. Are you seeing this on any other php version?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

2 Aug 2019, 12:25 PM
#136
lat9 avatar

lat9

Administrator

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

Re: USPS January 17 2016 K8 - Support Quirks

delia:

7.2 throwing all sorts of warnings, not errors, but think it's easily fixable. ups, usps, paypal - some in admin and others in checkout. All Use of undefined constant where apostrophes need adding. Been chasing down this for my template and for testimonials on this site. Are you seeing this on any other php version?
I'm seeing various PHP notices on 7.1.4 on zc156c with Report All Errors set to enable those notices to be logged; these are from the checkout_shipping page, for instance:

[01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->extra_service() called at [C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php:321]
#2  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#3  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#4  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined variable: extraserviceinternational in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 2223.

[01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 511.

[01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 512.

[01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 513.

[01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined variable: cnt_dump in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 655.

[01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined variable: cnt_dump in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 656.

[01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 511.

[01-Aug-2019 15:05:07 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 512.

[01-Aug-2019 15:05:08 America/New_York] Request URI: /checkout, IP address: 127.0.0.1
#1  usps->quote() called at [C:\xampp\htdocs\test_store\includes\classes\shipping.php:168]
#2  shipping->quote() called at [C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php:187]
#3  require(C:\xampp\htdocs\test_store\includes\modules\pages\checkout_shipping\header_php.php) called at [C:\xampp\htdocs\test_store\index.php:36]
--> PHP Notice: Undefined index: FirstClassMailType in C:\xampp\htdocs\test_store\includes\modules\shipping\usps.php on line 513.
2 Aug 2019, 12:31 PM
#137
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS January 17 2016 K8 - Support Quirks

okay - that's worse! but here's an example I'm looking at

[02-Aug-2019 12:19:08 UTC] Request URI: /products/index.php?main_page=checkout_shipping, IP address: 172.101.3.191
#1  paypalwpp->__construct() called at [/home/xxxx/public_html/products/includes/classes/payment.php:75]
#2  payment->__construct() called at [/home/xxx/public_html/products/includes/modules/pages/checkout_shipping/header_php.php:228]
#3  require(/home/xxx/public_html/products/includes/modules/pages/checkout_shipping/header_php.php) called at [/home/xxx/public_html/products/index.php:36]
--> PHP Warning: Use of undefined constant MODULE_PAYMENT_PAYPALWPP_CHECKOUTSTYLE - assumed 'MODULE_PAYMENT_PAYPALWPP_CHECKOUTSTYLE' (this will throw an Error in a future version of PHP) in /home/matri14/public_html/products/includes/modules/payment/paypalwpp.php on line 185.

I didn't install this - it was 1.5.6a - updated files to 1.5.6c. No mods added. Shouldn't report all errors not be working here? Not lost just a bit bewildered.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

2 Aug 2019, 12:36 PM
#138
lat9 avatar

lat9

Administrator

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

Re: USPS January 17 2016 K8 - Support Quirks

That's coming from the PayPal Express Checkout (/includes/modules/payment/paypalwpp.php), not the usps shipping method. Previously reported in this Zen Cart GitHub issue.

2 Aug 2019, 12:40 PM
#139
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS January 17 2016 K8 - Support Quirks

Yeah, I stopped the USPS warning with my edits. So a known issue? I have good reason for not using 1.5.6 now.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

6 Aug 2019, 12:37 AM
#140
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,452
Plugin Contributions:
3

Re: USPS January 17 2016 K8 - Support Quirks

So USPS module doesn't work with 1.5.6?

IDEASLady
IDEAS Creative Studio

Your image... our business!