I have two websites and I can;t get the USPS module to work. I have been working on it for 14 days now. I have everything inputed correct - BUT - I can;t get any quotes for either site, I have two different ids one for each store, Any ideas?
Printable View
I have two websites and I can;t get the USPS module to work. I have been working on it for 14 days now. I have everything inputed correct - BUT - I can;t get any quotes for either site, I have two different ids one for each store, Any ideas?
Does the USPS changes implemented last weekend have any "known" changes in USPS services or classes that need to be made?
The changes were for price and have not affected the USPS module itself ...
:hug:
TNX, Linda. Just wanted to make sure that I didn't miss something other than the obvious increase in rates printed on Monday morning.
You are most welcome :smile:
It looks like the $400 requirement preventing International Small Flatrate boxes or envelopes from being used has been removed during later 2016 USPS change.
I don't trust my skills to make edits though the edits may be as simple as a couple of keystrokes.
https://about.usps.com/postal-bullet...l/updt_005.htm
Items Valued Over $400
Currently, mailers may not use Priority Mail International Flat Rate Envelopes and Small Flat Rate Priced Boxes for items valued over $400. With the change to the air-parcel stream, this restriction will no longer apply, and mailers may mail items valued over $400 by all forms of Priority Mail International service, subject to individual country limitations.
um, okay so this is a weird one. I'm getting this message:
-2147221202 - The element 'RateV4Request' has incomplete content. List of possible elements expected: 'RateClientType, Package'.
using the most recent USPS version on the same hosting as another cart which is working fine. I did upgrade this cart from 1.5.4 to 1.55f and I think it was working before. I can't imagine what could be happening. There are no error log files. I know this error has shown up before so maybe you might have an idea what could be happening specifically on this site.
Is there a USPS plugin update in 155F for minimum shipping cost?
$show_hiddenCost = '';
// bof: force minimum of $7.00
if ($cost < 6.99) {
$cost = 7.00;
}
// eof: force minimum of $7.00
1st Class not working in estimator and Priority minimum is $13. Testing with 0.1LB item.
Thanks.
This will work to ensure all shipping methods both Domestic and International are $7.00 or above ...
On your First-Class issue not working, is this Domestic or International?
Thanks for your reply.
Domestic. International is all unchecked.
I just changed decimal settings back to 2, and chose Custom Transit Time Calculation Mode, and only Priority tracking as extra services, The shipping estimator is now showing the minimum of $7.00. Yet no 1st Class :(
The product that I'm using for testing is 0.1LBS $0.50 IchibanConcepts.com Cultured Net Cups.
Using local Zip codes and 02134 (as if sending it to Zoom). Thanks!
Attachment 17698
Make sure that you are using the most current USPS shipping module:
https://www.zen-cart.com/downloads.php?do=file&id=1292
Also ensure that Machinable is set to TRUE ...
Yes, always used your USPS mod. Yes machinable. Does the 1st Class Max Weight need to be anything other than 1 (LB)? First class will ship 1 pound :)
Maximums are:
.2187 1 st-Class Letter
.8125 1st-Class Lg. Env
.8125 1st-Class Pkgs - Retail
1.5.5f, K10
Been using your module for awhile with no issues but I was just alerted by my over seas customers that the small flat rate box is no longer available for selection when they check out. I reviewed my module settings and International Small F/R box is selected but it will not show up on the Estimated shipping costs area of the checkout screen. The others, medium large etc, show up. Any help would be greatly appreciated.
Here is a debug log I ran but it's a bit over my head. User Id has been removed:Attachment 17719
Check your Debug setting and get the one in the /logs for shipping and attach that ...
Thank You, I have to zip it or the system will not let me upload it due to size
Attachment 17720
Sorry one more time ... can you do that again and not change it to a PDF file?
My apologies, I get it now
Attachment 17721
In case I screwed that one up as well....lolAttachment 17722
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 ...
That one worked ...
Try the dimensions of:
8-5/8" x 5-3/8" x 1-5/8"
You can donate to the Zen Cart Team at:
https://www.zen-cart.com/content.php?6-donate
Thanks ver ymuch for your support ... that really helps out the Zen Cart Team! :smile:
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:
The USPS log shows the following for the RESPONSE from USPS:Code:-2147221202 - The element 'RateV4Request' has incomplete content. List of possible elements expected: 'RateClientType, Package'.
with SENT TO USPS:Code:<?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>
Code:<RateV4Request USERID="xxxxxxx">
<Revision>2</Revision>
</RateV4Request>
To turn it off when no Domestic is set add the code:
Code:if ($usps_shipping_methods_domestic_cnt < 1) {
$this->enabled = FALSE;
}
if (SHIPPING_ORIGIN_COUNTRY != '223') {
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!
Maker sure that works for both.
If not, use:
Code:if ($uspsQuote['Number'] == -2147219085) {
$this->quotes = array('module' => $this->title,
'error' => 'NO OPTIONS INSTALLED: ' . $uspsQuote['error']);
} else {
// $this->quotes = array('module' => $this->title,
// 'error' => $uspsQuote['error']);
}
return $this->quotes;
What I'd done was:
Code:if (isset($uspsQuote['error'])) {
if ($uspsQuote['Number'] == -2147219085) {
$this->quotes = array('module' => $this->title,
'error' => 'NO OPTIONS INSTALLED: ' . $uspsQuote['error']);
//-bof-20181121-lat9: Return no quotes on "incomplete" submission (i.e. no methods selected).
} elseif ($uspsQuote['Number'] == -2147221202) {
$this->quotes = array();
//-eof-20181121-lat9
} else {
$this->quotes = array('module' => $this->title,
'error' => $uspsQuote['error']);
}
Thanks for the update ...
Is there a GitHub for the USPS shipping method? I've found a bunch of PHP Notices being generated on current versions of PHP.
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:
Code:[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.
okay - that's worse! but here's an example I'm looking at
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.PHP Code:
[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.
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.
Yeah, I stopped the USPS warning with my edits. So a known issue? I have good reason for not using 1.5.6 now.
So USPS module doesn't work with 1.5.6?
I wouldn't do anything significant before the January 26, 2020 USPS price changes or coding changes.
Some years, the changes are minimal. Some years, significant.