Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292
Working on a "update" to 1.5.7c from a older version, and I can't get this module working properly.
All files in store are 1.5.7c, and a clean install of the USPS module was done.
Currently I am not getting any XML data returned...
USPS Debug contents:
This is happening on both the test and production servers.Code:2021-05-13 11:17:06: USPS build: 2021-05-05 K11a Server: production Quote Request Rate Type: Online Quote from main_page: checkout_shipping USPS Options (weight, time): --none-- USPS Domestic Transit Time Calculation Mode: NEW Cart Weight: 0.8 Total Quote Weight: 3.8 Pounds: 3 Ounces: 13 Maximum: 50 Tare Rates: Small/Medium: 0:3 Large: 10:0 Handling method: Order Handling fee Domestic: $1.00 Handling fee International: $3.00 Decimals: 2 Domestic Length: 8.625 Width: 5.375 Height: 1.625 International Length: 8.625 Width: 5.375 Height: 1.625 All Packages are Machinable: False Enable USPS First-Class filter for US shipping: True Sorts the returned quotes: Price-LowToHigh ZipOrigination: 48348 ZipDestination: Postcode: 48353 Country: United States City: Hartland State: Michigan Order SubTotal: $25.00 Order Total: $26.50 Uninsurable Portion: $0.00 Insurable Value: $26.50 2021-05-13 11:17:06: Sending request to USPS 2021-05-13 11:17:07: ================================== SENT TO USPS: <RateV4Request USERID="XXX"><Revision>2</Revision> <Package ID="0"><Service>PRIORITY COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>3</Pounds><Ounces>13</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>26.50</Value><Machinable>FALSE</Machinable></Package> <Package ID="1"><Service>EXPRESS COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>3</Pounds><Ounces>13</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>26.50</Value><Machinable>FALSE</Machinable></Package> </RateV4Request> RESPONSE FROM USPS: ================================== CommErr (should be 0): 0 - ================================== USPS Country - $order->delivery[country][iso_code_2]: United States $this->usps_countries: US Domestic Services Selected: 2021-05-13 11:17:07: RESPONSE FROM USPS: ================================== ============ RAW XML FROM USPS:
The store files are in a test folder on the site currently so they are not "public", I am wondering if the directory of the store is making a difference? or if it could be something else?
Any help would be GREATLY appreciated
@mikestaps, that log implies that you haven't 'ticked' any of the checkboxes to identify which USPS shipping methods you want to use.
I just uninstalled the module, re-installed, input settings and no change.
Same Debug results and shipping method of:
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.)
Could you include that RAW XML FROM USPS section of the log?
There is nothing there to include... I just got off the phone with USPS tech support and started a ticket on this as well. Figured a two prong attack was the best idea.
Below are all contents from log file:
Code:2021-05-13 13:10:34: USPS build: 2021-05-05 K11a Server: production Quote Request Rate Type: Online Quote from main_page: checkout_shipping USPS Options (weight, time): Display transit time USPS Domestic Transit Time Calculation Mode: NEW Cart Weight: 3.4 Total Quote Weight: 6.4 Pounds: 6 Ounces: 7 Maximum: 50 Tare Rates: Small/Medium: 0:3 Large: 10:0 Handling method: Order Handling fee Domestic: $1.00 Handling fee International: $3.00 Decimals: 2 Domestic Length: 8.625 Width: 5.375 Height: 1.625 International Length: 8.625 Width: 5.375 Height: 1.625 All Packages are Machinable: False Enable USPS First-Class filter for US shipping: False Sorts the returned quotes: Price-LowToHigh ZipOrigination: 48348 ZipDestination: Postcode: 48353 Country: United States City: Hartland State: Michigan Order SubTotal: $89.43 Order Total: $94.80 Uninsurable Portion: $0.00 Insurable Value: $94.80 2021-05-13 13:10:34: Sending request to USPS 2021-05-13 13:10:34: ================================== SENT TO USPS: <RateV4Request USERID="XXXXXXXXXXX"><Revision>2</Revision> <Package ID="0"><Service>PRIORITY COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>6</Pounds><Ounces>7</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>94.80</Value><SpecialServices> <SpecialService>155</SpecialService> <SpecialService>106</SpecialService> </SpecialServices><Machinable>FALSE</Machinable><ShipDate>2021-05-13</ShipDate></Package> <Package ID="1"><Service>EXPRESS COMMERCIAL</Service><ZipOrigination>48348</ZipOrigination><ZipDestination>48353</ZipDestination><Pounds>6</Pounds><Ounces>7</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>94.80</Value><SpecialServices> <SpecialService>155</SpecialService> <SpecialService>106</SpecialService> </SpecialServices><Machinable>FALSE</Machinable><ShipDate>2021-05-13</ShipDate></Package> </RateV4Request> RESPONSE FROM USPS: ================================== CommErr (should be 0): 0 - ================================== USPS Country - $order->delivery[country][iso_code_2]: United States $this->usps_countries: US Domestic Services Selected: USPS TrackingTM Electronic USPS TrackingTM 2021-05-13 13:10:34: RESPONSE FROM USPS: ================================== ============ RAW XML FROM USPS:
Thanks to @mikestaps for granting me access to his site. It 'looks like' the culprit is the site's CURL (v7.77.0) version. Updating the following line (in the quoteLogCurlResponse class method):
... indicated that the curl http-code returned was '400' (Bad Request). That's why there's no XML returned for the quotes. Not clear as to what CURL v7.77's issue(s) is/are, but it might be worth asking the webhost to downgrade the CURL version on the site.Code:$message .= 'CommErr (should be 0): ' . $this->commErrNo . ' - ' . $this->commError . ' - ' . json_encode($this->commInfo) . "\n\n";
I volunteer to help on a zen store and with this USPS plug in update I am not seeing how to do get the ground shipment only setting done. The ‘true’ code appears to be in the languages/english/modules/shipping/usps.php area and not where I set it before in includes/modules/shipping/usps.php code. We want everything to ship ground but not necessarily HAZMAT. How might I do this with this new code? I am using 1.55f and so far not seeing a field setting to ‘1’. And there is no logs for some odd reason although I did set it that way. Store is now getting a warning to refresh page when I go to cart. No USPS estimater. Updating from K10 version 9-6-2017 and worked still.
Thanks,
Justwade
Zen 1.5.5f
Zen 1.3.9h, Zen 1.27 + (did that, done with that)