-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
mikestaps
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:
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:
This is happening on both the test and production servers.
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
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):
Code:
$message .= 'CommErr (should be 0): ' . $this->commErrNo . ' - ' . $this->commError . ' - ' . json_encode($this->commInfo) . "\n\n";
... 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.
-
Re: USPS Shipping Module [Support Thread]
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,
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
Justwade
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,
I'm guessing that there's some kind of debug log present in the site's /logs subdirectory. If you post the contents of that myDEBUG*.log file, that should tell the story.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
lat9
I'm guessing that there's some kind of debug log present in the site's /logs subdirectory. If you post the contents of that myDEBUG*.log file, that should tell the story.
Ah, some of it is coming back to my brain, slowly. The log files populate later or overnight in my situation. With that here it is for a test local purchase;
Code:
2021-07-07 13:57:44: USPS build: 2021-05-05 K11a
Server: production
Quote Request Rate Type: Online
Quote from main_page: shopping_cart
USPS Options (weight, time): --none--
USPS Domestic Transit Time Calculation Mode: OLD
Cart Weight: 1.0625
Total Quote Weight: 1.221875 Pounds: 1 Ounces: 4
Maximum: 8 Tare Rates: Small/Medium: 15:0 Large: 10:3
Handling method: Order Handling fee Domestic: $3.95 Handling fee International: $20.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: True
Enable USPS First-Class filter for US shipping: False
Sorts the returned quotes: Unsorted
ZipOrigination: 85224
ZipDestination: Postcode: 85205 Country: United States
Order SubTotal: $0.00
Order Total: $55.83
Uninsurable Portion: $0.00
Insurable Value: $55.83
2021-07-07 13:57:44: Sending request to USPS
2021-07-07 13:57:44: ==================================
SENT TO USPS:
<RateV4Request USERID="redacted"><Revision>2</Revision>
<Package ID="0"><Service>PARCEL</Service><ZipOrigination>85224</ZipOrigination><ZipDestination>85205</ZipDestination><Pounds>1</Pounds><Ounces>4</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>55.83</Value><SpecialServices> <SpecialService>106</SpecialService>
</SpecialServices><Machinable>TRUE</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:
USPS TrackingTM
2021-07-07 13:57:44: RESPONSE FROM USPS:
==================================
============
RAW XML FROM USPS:
SimpleXMLElement Object
(
[Package] => SimpleXMLElement Object
(
[@attributes] => Array
(
[ID] => 0
)
[Error] => SimpleXMLElement Object
(
[Number] => -2147219385
[Source] => DomPostageLibrary;RateV4.ProcessRequest
[Description] => The requested Mail Service is only available when Ground Transportation is required, when the Zone is 5-9, or the mail piece is Oversized.
[HelpFile] => SimpleXMLElement Object
(
)
[HelpContext] => SimpleXMLElement Object
(
)
)
)
)
Thanks,
-
Re: USPS Shipping Module [Support Thread]
What we are trying to do is force ground shipment in all zones 1 - 9. This is the only way we ship anyway forcing such with the php as we did in the K10 version as advised by Ajeh. That code change made all shipment only ground but that was more than okay for us. It worked perfectly but I am not grasping how to do the same in this K11 version. I have researched the Admin and the forum but not found an answer so far. The new setting options appear to be there and may be obvious to others but not so much myself.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
Justwade
What we are trying to do is force ground shipment in all zones 1 - 9. This is the only way we ship anyway forcing such with the php as we did in the K10 version as advised by Ajeh. That code change made all shipment only ground but that was more than okay for us. It worked perfectly but I am not grasping how to do the same in this K11 version. I have researched the Admin and the forum but not found an answer so far. The new setting options appear to be there and may be obvious to others but not so much myself.
Could you point me to Ajeh's posting for the changes required for the previous versions of USPS?
-
Re: USPS Shipping Module [Support Thread]
I forget how to make a direct link but here is a quote with date stamp. The only change we made in /includes/modules/shipping/usps.php is change 'false" to 'true' as she described below. Worked perfect then and the later versions as I recall. But no other shipping is available which is okay.
Quote:
12 Oct 2014, 04:43 AM
#40
Re: USPS RateV4 Intl RateV2 - January 26, 2014 Issue To force Standard Post on all USPS shipping where no other shipping method will be available for Domestic shipping, you need to edit the USPS shipping module:
/includes/modules/shipping/usps.php
and change the code in RED around line 806 to true:
// force GroundOnly results in Stand Post only being offered
// to use, you must have a field for products_groundonly in the products table
// then uncomment the in_cart_check for the products_groundonly
// when $usps_groundonly is set to true, only Stand Post will show
$usps_groundonly = 'true';
// $usps_groundonly = ($_SESSION['cart']->in_cart_check('products_groundonly','1') ? 'true' : 'false');
Now, regardless of what shipping methods you have checked, be sure Standard Post is checked, only Standard Post will work for all USPS shipping and no other shipping method will work ...
Linda McGrath
If you have to think ... you haven't been zenned ...
-
Re: USPS Shipping Module [Support Thread]
Checkout line 51 of includes/languages/english/modules/shipping/usps.php and line 1154 (maybe the setting at line 58) of includes/modules/shipping/uspsphp.
Perhaps that will get you in the right direction. Although, you might want to watch out for the HAZMAT indication.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
Justwade
I forget how to make a direct link but here is a quote with date stamp. The only change we made in /includes/modules/shipping/usps.php is change 'false" to 'true' as she described below. Worked perfect then and the later versions as I recall. But no other shipping is available which is okay.
I've opened a GitHub issue (https://github.com/lat9/usps/issues/17) to track these changes in a subsequent USPS shipping-module release.
The change will be twofold.
First, edit /includes/modules/shipping/usps.php, making the highlighted changes:
Code:
protected function _getQuote()
{
global $order, $shipping_weight, $currencies;
$package_id = 'USPS DOMESTIC RETURNED: ' . "\n";
// -----
// Force GroundOnly results in USPS Retail Ground only being offered. See the shipping-module's
// language file for additional information.
//
$usps_groundonly = '';
if (MODULE_SHIPPING_USPS_GROUNDONLY == 'force' || (MODULE_SHIPPING_USPS_GROUNDONLY == 'true' && $_SESSION['cart']->in_cart_check('products_groundonly', '1'))) {
$usps_groundonly = '<Content><ContentType>HAZMAT</ContentType></Content><GroundOnly>true</GroundOnly>';
}
and then create/edit a template-override of the shipping-module's language file, e.g. /includes/languages/english/modules/shipping/YOUR_TEMPLATE/usps.php, changing that 'soft' configuration value to 'force':
Code:
// -----
// Identifies whether/not a check for the database field 'products::products_groundonly' should be made. If any products
// in the cart have that field set to '1', then the shipping request will indicate 'HAZMAT' contents and the
// shipping type will be forced to USPS Ground. Valid values are 'true', 'false' (the default) or 'force' to force the USPS Ground shipping.
//
// NOTE: Setting this value to 'true' if that field doesn't exist in your database will result in a fatal MySQL error
// when the quote-request is made.
//
if (!defined('MODULE_SHIPPING_USPS_GROUNDONLY')) define('MODULE_SHIPPING_USPS_GROUNDONLY', 'force');
-
Re: USPS Shipping Module [Support Thread]
I edited the 2 files as you suggested, did a test purchase and the Ground Shipping now works perfect, Thank You Very Much!
We really do appreciate all the support.
I also put some coffee money up.
Thanks again! :smile:
-
Re: USPS Shipping Module [Support Thread]
Hello everyone.
Quick question. Is it possible to shorten the names of the shipping options to a more manageable size? The one I'm looking at shortening specifically is first class, which appears as - USPS (First-Class Package Service - Retail™ (2-5 b-days)). Because it's so long it messes up everything in the shopping cart when selected, especially on mobile. I shortened things as much as possible by eliminating the spaces in between 2 and 5 (2 - 5) and changing business days to b-days among other minor changes, but it's still ridiculously long. Ideally for the purpose of displaying the options to the customer First Class™ would suffice. Customers don't need that specific description of the service.
Thanks for the help!
-
Re: USPS Shipping Module [Support Thread]
v1.5.7c, USPS United States Postal Service - Version: 2021-05-05 K11a
Domestic shipping to U.S. works fine, as does international shipping to Canada and U.K., however, Australia and New Zealand does not work.
To demonstrate the issue, go to henriettashandbags.com, add any product to the shopping cart. From the shopping cart, scroll down to Shipping Cost section to enter country specifics, e.g. United States, Florida, 32955; Australia, Victoria, 3442.
This issue occurred with an older version of the U.S.P.S. module; updating to the latest version of this module yielded the same result.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
JanusR
v1.5.7c, USPS United States Postal Service - Version: 2021-05-05 K11a
Domestic shipping to U.S. works fine, as does international shipping to Canada and U.K., however, Australia and New Zealand does not work.
To demonstrate the issue, go to henriettashandbags.com, add any product to the shopping cart. From the shopping cart, scroll down to Shipping Cost section to enter country specifics, e.g. United States, Florida, 32955; Australia, Victoria, 3442.
This issue occurred with an older version of the U.S.P.S. module; updating to the latest version of this module yielded the same result.
It looks like, for whatever reason, USPS is limiting the shipping methods for shipping to Australia. I'd enabled all the international shipping methods and these are what was returned for a shipment to the AU:
United States Postal Service (Priority Mail Express International™)
United States Postal Service (Priority Mail Express International™ Flat Rate Envelope)
United States Postal Service (USPS GXG™ Envelopes)
-
Re: USPS Shipping Module [Support Thread]
Google -- Is USPS suspending mail to Australia
Looks like Covid has them holding mail. Some reports since 2 September.
-
1 Attachment(s)
Re: USPS Shipping Module [Support Thread]
Hello!
One of my customers is attempting to ship an order to New Zealand and is receiving an error. On step one of the checkout it will display the delivery information, but will show "this is currently the only shipping method available to use on this order" but without any shipping method options. When the user clicks on the "continue" button, it will not let then go next to select payment methods. I duplicated the issue by entering a New Zealand address into a logged in customer account.
Upon checking my error logs I receive the following PHP error: "Malformed value for session-based shipping module; customer will need to re-select: false" in my includes order php file. I looked into this issue, and could not find another similar posting.
I am operating on Zencart v1.5.7b and the latest version of the USPS shipping module (2021-05-05 K11a). I am not using zoned shipping and have received orders from outside the UK and Australia recently and from New Zealand in the past. Any help would be appreciated!
-
Re: USPS Shipping Module [Support Thread]
My bad. I should have add New Zealand to my previous post. USPS International Service Alerts can be found at https://about.usps.com/newsroom/serv...al/welcome.htm
-
Re: USPS Shipping Module [Support Thread]
Thank you! Glad to know it's not a site issue.
-
Re: USPS Shipping Module [Support Thread]
1.5.7c, clone-a-template, display logs, SiteMapXML.
I've just set up Square to take payments and found it does not have a shipping link to USPS (or I cannot find it) where I can ship directly from the payment/Square website (as does PayPal). Most of my shipping is free so I don't need quotes, but I would like to avoid manually typing in customer shipping addresses. I'm currently using "Zone Rates".
Will this USPS Shipping Module (and an activated USPS WebTools account) work behind the customer veil and allow me to ship directly from my site?
TIA
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
VDecalS
1.5.7c, clone-a-template, display logs, SiteMapXML.
I've just set up Square to take payments and found it does not have a shipping link to USPS (or I cannot find it) where I can ship directly from the payment/Square website (as does PayPal). Most of my shipping is free so I don't need quotes, but I would like to avoid manually typing in customer shipping addresses. I'm currently using "Zone Rates".
Will this USPS Shipping Module (and an activated USPS WebTools account) work behind the customer veil and allow me to ship directly from my site?
TIA
If I understand your question, you're asking whether the USPS shipping module can create shipping labels for those packages. The answer to that question is "No", it only gathers the quotes from USPS.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
VDecalS
Most of my shipping is free so I don't need quotes, but I would like to avoid manually typing in customer shipping addresses.
Try my Copy Shipping Label contribution:
https://www.zen-cart.com/downloads.php?do=file&id=2274
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
lat9
If I understand your question, you're asking whether the USPS shipping module can create shipping labels for those packages. The answer to that question is "No", it only gathers the quotes from USPS.
As imagined. Thank you Cindy.
... and Scott :)
-
Re: USPS Shipping Module [Support Thread]
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
split63
... and that post was:
Quote:
It appears that the USPS domestic shipping times displayed are hard coded. I had thought the time was populated live by USPS based on the source and destination.
inside the USPS.php files is this:
PHP Code:
* Legacy method:
* Parse the domestic-services transit time results data obtained from special extra API calls
Apparently it did once come from the USPS.....has this been eliminated?
It still does. You need to enable (in the admin's Modules :: Shipping :: USPS) the "Display Transit Time" setting. The transit times are part of the quote response from USPS>
-
Re: USPS Shipping Module [Support Thread]
"Display transit time" is checked.
Below that is this:
Quote:
USPS Domestic Transit Time Calculation Mode
Select from the following the USPS options.
note: NEW and OLD will add additional time to quotes. CUSTOM allows your custom shipping days.
Does "custom" pull from the hard coded transit time in the php file?
What does "New" and "Old" do?
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
split63
"Display transit time" is checked.
Below that is this:
Does "custom" pull from the hard coded transit time in the php file?
What does "New" and "Old" do?
I don't know (I inherited this plugin a couple of years ago). I've only used "New" which works.
-
Re: USPS Shipping Module [Support Thread]
I tried "Old" for USPS priority, for west coast, east coast and Texas destination ZIP codes, it always listed "5-days"
I tried "New", it was always "2-days".
How does this plug-in know the starting shipping location? Is it pulling it from Menu - Configuration - My Store - Zone? Or is it tied to the "USPS Web Tools User ID"
-
Re: USPS Shipping Module [Support Thread]
It goes off the "Shipping Origin Country", specified in Configuration :: Shipping & Packaging.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
lat9
It goes off the "Shipping Origin Country", specified in Configuration :: Shipping & Packaging.
Thanks, I had that set to an older ZIP.
Are you seeing the constant value for Transit time when set to "New" or "Old"
This is in the php file:
PHP Code:
Options: 'NEW' = <ShipDate>, 'OLD' = extra API calls, 'CUSTOM' = hard-coded
-
Re: USPS Shipping Module [Support Thread]
I'm posting this here cuz it was suggested.
Zen Cart 1.5.5f
PHP Version 7.4.28
http://trvparts.com/catalog/
Plugins-usps, ups
USPS Version Date
2021-05-05 K11a
USPS has increased their shipping for domestic priority on dimensional (DIM) for things over a certain size . Until now, I pretty much put in the weight and "until now" have been getting accurate shipping price. But now that USPS has changed their rates for certain size packages the module is charging mush less that what price I get through "stamps dot com" when I ship the product. Like I just got a an order for a package that was 1lb-5.4 which was 31x5x1 and my cart charged $13.16 but when I put those numbers in "stamps dot com" it cost me $18.56 to ship it. Just increasing the weight of each item will cause WAY to much to be charged via the cart for the item if I'm sending to Canada. I'm thinking the fix for this is a dimensional thing in the product description. Maybe there is a plug in or a fix for this already. I have looked for this here in the forums but I have not seen it.
Does anyone know the fix for this???????
I understand the problem.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
willweC
I'm posting this here cuz it was suggested.
Zen Cart 1.5.5f
PHP Version 7.4.28
http://trvparts.com/catalog/
Plugins-usps, ups
USPS Version Date
2021-05-05 K11a
USPS has increased their shipping for domestic priority on dimensional (DIM) for things over a certain size . Until now, I pretty much put in the weight and "until now" have been getting accurate shipping price. But now that USPS has changed their rates for certain size packages the module is charging mush less that what price I get through "stamps dot com" when I ship the product. Like I just got a an order for a package that was 1lb-5.4 which was 31x5x1 and my cart charged $13.16 but when I put those numbers in "stamps dot com" it cost me $18.56 to ship it.
Just increasing the weight of each item will cause WAY to much to be charged via the cart for the item if I'm sending to Canada. I'm thinking the fix for this is a dimensional thing in the product description. Maybe there is a plug in or a fix for this already. I have looked for this here in the forums but I have not seen it.
Does anyone know the fix for this???????
I understand the problem.
It's one thing if you know that each shipment will be a single box of a given dimension; it's quite another to take a collection of products with dimensions and attempt to determine a box size that will work.
I know of no currently working plugin that will do dimensional shipping.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
willweC
I'm posting this here cuz it was suggested.
Zen Cart 1.5.5f
PHP Version 7.4.28
http://trvparts.com/catalog/
Plugins-usps, ups
USPS Version Date
2021-05-05 K11a
USPS has increased their shipping for domestic priority on dimensional (DIM) for things over a certain size . Until now, I pretty much put in the weight and "until now" have been getting accurate shipping price. But now that USPS has changed their rates for certain size packages the module is charging mush less that what price I get through "stamps dot com" when I ship the product. Like I just got a an order for a package that was 1lb-5.4 which was 31x5x1 and my cart charged $13.16 but when I put those numbers in "stamps dot com" it cost me $18.56 to ship it.
Just increasing the weight of each item will cause WAY to much to be charged via the cart for the item if I'm sending to Canada. I'm thinking the fix for this is a dimensional thing in the product description. Maybe there is a plug in or a fix for this already. I have looked for this here in the forums but I have not seen it.
Does anyone know the fix for this???????
I understand the problem.
I have been running in to this kind of issue for A LONG time... UPS went totally dimensional a while ago, so our weights are all bumped up to cover that. Using the UPS Worldship program you can see what the "shipping" weight is vs. the actual weight in the detail when you input the package dimensions.
Because of this, when USPS over quotes/charges international we refund the customer the difference. Yes, it is an extra step when shipping, but doing it this way prevents us from having to pay the extra shipping.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
swguy
I will periodically see
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /SITE/includes/modules/shipping/usps.php on line 492. // line 487 in an unmodified file
where that line is
$PackageSize = count($uspsQuote['Package']['Service']);
This is the else branch of $this->is_us_shipment.
Is it possible this branch needs the same check as the other branch, where we check count($uspsQuote['Package']); (line 480).
I noticed the same issues and I spent some time try to fix it. Here is what I found:
How to trigger this warning:
1) When you tried to ship this order to a country that USPS cannot ship (like Russia), this warning will be generated (because USPS cannot ship to that country).
2) If your shopping cart is expensive (like over 10k) or maybe very heavy, and your shipping cart has more than one items, if you want to ship it to non-US country (like France), this warning will be generated. It seems USPS doesn't have a way to ship this order so zen cart cannot get a quote from USPS.
Here is my fix. I tested and it seems good. I'm not a professional developer, so if you have a better way to improve, please let me know. My USPS module version is 2020-09-24 lat9 Version K11. I checked the latest version, the code in this section is the same.
Here is the original code near line 487:
Code:
if ($this->is_us_shipment) {
$PackageSize = count($uspsQuote['Package']);
// if object has no legitimate children, turn it into a firstborn:
if (isset($uspsQuote['Package']['ZipDestination']) && !isset($uspsQuote['Package'][0]['Postage'])) {
$uspsQuote['Package'][] = $uspsQuote['Package'];
$PackageSize = 1;
}
} else {
$PackageSize = count($uspsQuote['Package']['Service']);
}
Here is my code:
Code:
if ($this->is_us_shipment) {
$PackageSize = count($uspsQuote['Package']);
// if object has no legitimate children, turn it into a firstborn:
if (isset($uspsQuote['Package']['ZipDestination']) && !isset($uspsQuote['Package'][0]['Postage'])) {
$uspsQuote['Package'][] = $uspsQuote['Package'];
$PackageSize = 1;
}
} else {
// $PackageSize = count($uspsQuote['Package']['Service']);
if ($uspsQuote['Package']['Service']) {
$PackageSize = count($uspsQuote['Package']['Service']);
}
}
-
Re: USPS Shipping Module [Support Thread]
Thanks for the reports and the detective work! I've opened a tracking issue for the resolution on the USPS shipping modules GitHub repository: https://github.com/lat9/usps/issues/19
-
Only First Class shipping rates are being displayed
I posted this in the built in shipping category also, but then realized it probably belonged here.
All of a sudden, customers are seeing only First Class shipping rates (if a package falls within the weight limit for First Class). If it's heavier than that, they're not seeing USPS rates at all. I've had to take the site down for maintenance to avoid people choosing store pickup for everything. It's acting as though the First Class filter was on, but it is not and never has been.
I turned on debug, but the post office appears to be returning the rates for all the checked services. They just aren't being displayed to the customer.
Any ideas? I've had the site down for maintenance for hours now, and I have to get this fixed.
-
Re: Only First Class shipping rates are being displayed
Quote:
Originally Posted by
HeleneWallis
I posted this in the built in shipping category also, but then realized it probably belonged here.
All of a sudden, customers are seeing only First Class shipping rates (if a package falls within the weight limit for First Class). If it's heavier than that, they're not seeing USPS rates at all. I've had to take the site down for maintenance to avoid people choosing store pickup for everything. It's acting as though the First Class filter was on, but it is not and never has been.
I turned on debug, but the post office appears to be returning the rates for all the checked services. They just aren't being displayed to the customer.
Any ideas? I've had the site down for maintenance for hours now, and I have to get this fixed.
I received the USPS log (thanks @HeleneWallis) and will note that the only methods returned are for versions of "Priority Mail". What methods and associated weights are currently configured for the store?
-
Re: Only First Class shipping rates are being displayed
Quote:
Originally Posted by
lat9
I received the USPS log (thanks @HeleneWallis) and will note that the only methods returned are for versions of "Priority Mail". What methods and associated weights are currently configured for the store?
All the ones that are showing for Priority Mail, plus First Class and Priority Mail Express. What is really weird, though, is that I'm not getting any log entries now at all. I still have debug turned on, but no log entries are being generated.
The weights would be 15 ounces for First Class, and anything over that would go in one of the Priority Mail classes.
-
Re: Only First Class shipping rates are being displayed
Edit to above--logs are now showing up again. But as you said, only the Priority rates are being returned, even though First Class is enabled.
One of my customers mentioned that the post office is doing a rate update today. So I guess it's possible that this is actually a PO glitch and not anything in the software.
-
Re: Only First Class shipping rates are being displayed
The USPS API has done it again; they've changed the branding for the Priority Mail and Priority Mail Express methods from a trademark (TM) to a registered-trademark (RM), which results in a mismatch when the shipping module attempts to locate methods returned.
An update will be available later today or tomorrow. Thanks, @HeleneWallis, for the notification and your help.
-
Re: Only First Class shipping rates are being displayed
Quote:
Originally Posted by
lat9
The USPS API has done it again; they've changed the branding for the Priority Mail and Priority Mail Express methods from a trademark (TM) to a registered-trademark (RM), which results in a mismatch when the shipping module attempts to locate methods returned.
An update will be available later today or tomorrow. Thanks, @HeleneWallis, for the notification and your help.
I am happy to buy a cup of coffee to anyone who can provide an update to fix this issue! Customers are unable to checkout!
-
Re: Only First Class shipping rates are being displayed
I've just submitted 2022-07-10 K11b for the Zen Cart moderators' review; I'll post back here when it's available for download.
This version has changes associated with the following GitHub issues:
#17: Enable "Ground" shipping to be forced.
#19: Correct PHP warning when no quote is returned.
#20: Correct USPS branding change that results in no "Priority Mail" or "Priority Mail Express" methods returned.
#21: Automatically update the configuration if updating from '2021-05-05 K11a'.
Early adopters can download from the module's GitHub repository: https://github.com/lat9/usps/release...022_07_10_K11b
-
Re: Only First Class shipping rates are being displayed
-
Re: Only First Class shipping rates are being displayed
Hi @lat9, thanks for your fast update on this plug-in! I just upgraded my site to 2022-07-10 K11b (downloaded from github) and US domestic works good (first-class, priority, EMS). However, Priority Express Intl (International EMS) doesn't show up like before. I have double checked that "Priority Express Intl" is enabled under the settings page.
-
Re: Only First Class shipping rates are being displayed
I can replicate this issue.
-
Re: Only First Class shipping rates are being displayed
Hi @swguy, thanks for your test.
Hi @lat9, I did some search to try to find the updated shipping method names and I found the following link. Not sure if it is useful or not. Google said this link is updated 3 days ago.
https://ve.wordpress.org/plugins/ele...ipping-method/
USPS Domestic Services:
* First-Class Mail® Parcel
* First-Class™ Postcard Stamped
* First-Class™ Large Postcards
* First-Class™ Keys and IDs
* First-Class™ Package Service
* First-Class Mail® Metered Letter
* First-Class™ Package Service Hold For Pickup
* Priority Mail Express™ Hold for Pickup
* Priority Mail Express™
* Priority Mail Express™ Sunday/Holiday
* USPS Retail Ground ( Standard Post™ )
* Media Mail
* Library Mail
* Priority Mail®
* Priority Mail® Keys and IDs
* Priority Mail® Hold For Pickup
* Priority Mail® Regional Rate Box A
* Priority Mail® Regional Rate Box B
USPS International Services:
* Priority Mail Express International™
* Priority Mail International®
* Global Express Guaranteed® (GXG)
* Global Express Guaranteed® Envelope
* Global Express Guaranteed® Non-Document Rectangular
* Global Express Guaranteed® Non-Document Non-Rectangular
* USPS GXG™ Envelope
* First Class Package Service™ International Letters
* First Class Package Service™ International Large Envelope
* First Class Package International Service™
* International Postcards
-
Re: Only First Class shipping rates are being displayed
.
In the readme.txt file of the "2021-07-10 Version K11b" update is this:
"2. If USPS exists, Click on USPS and edit then save all your settings to NotePad as they will be lost ... UNLESS
... you've currently got '2021-05-05 K11a' installed and you're updating to '2022-07-10 K11b'. For that
update (and possibly future ones), the update is **automatic** so that you don't need to re-enter all
your settings!
"
For those that do have 2021-05-05 K11a installed, do the directions after that step change? For example, do we still remove the plugin? Does this delete the old plugin files?
-
Re: Only First Class shipping rates are being displayed
If you have a, you can load just the includes/modules/shipping/usps.php and files are updated without having to redo your settings.
-
Re: Only First Class shipping rates are being displayed
You want to visit Admin > Modules > Shipping and click USPS to verify the update worked. Assuming all was well you'll see a green message at the top of the screen ("Updated to USPS version ...") and the right sidebox will say USPS version 2022-07-10 K11b.
-
Re: Only First Class shipping rates are being displayed
Quote:
Originally Posted by
njcyx
Hi @lat9, thanks for your fast update on this plug-in! I just upgraded my site to 2022-07-10 K11b (downloaded from github) and US domestic works good (first-class, priority, EMS). However, Priority Express Intl (International EMS) doesn't show up like before. I have double checked that "Priority Express Intl" is enabled under the settings page.
Ok I think I found the fix for this bug. I tested it on my site and it worked good. Maybe @lat9 has a better way to improve...
\includes\modules\shipping\usps.php
Near line 626, change from
PHP Code:
if ($type === 'Priority Mail Flat RateRM Envelope') {
$type = 'Priority MailRM Flat Rate Envelope';
}
$type_rebuilt = $type;
To
PHP Code:
if ($type === 'Priority Mail Flat RateRM Envelope') {
$type = 'Priority MailRM Flat Rate Envelope';
}
if ($type === 'Priority Mail Express InternationalRM') {
$type = 'Priority Mail Express International';
}
$type_rebuilt = $type;
-
Re: Only First Class shipping rates are being displayed
Quote:
Originally Posted by
njcyx
Hi @lat9, thanks for your fast update on this plug-in! I just upgraded my site to 2022-07-10 K11b (downloaded from github) and US domestic works good (first-class, priority, EMS). However, Priority Express Intl (International EMS) doesn't show up like before. I have double checked that "Priority Express Intl" is enabled under the settings page.
Sigh, the Priority Mail Express International has also changed from a TM to an RM; update forthcoming.
-
Re: Only First Class shipping rates are being displayed
2022-07-12 K11c of the USPS Shipping module has been submitted for the Zen Cart moderators' review.
This release corrects the quote-checking for "Priority Mail Express International" methods; see GitHub issue #22.
-
Re: Only First Class shipping rates are being displayed
Hi @lat9, thanks for your fast update again! I just updated my site to k11c and it worked great!
-
Re: USPS Shipping Module [Support Thread]
Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
teresa529
Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.
It should work fine. If you have 2021-05-05 K11a, it's a simple matter of overwriting includes/modules/shipping/usps.php from the version 2022-07-12 K11c download.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
teresa529
Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.
Quote:
Originally Posted by
dbltoe
It should work fine. If you have 2021-05-05 K11a, it's a simple matter of overwriting includes/modules/shipping/usps.php from the version 2022-07-12 K11c download.
What @dbltoe said.:smile:
-
Re: USPS Shipping Module [Support Thread]
Hey guys,
After I updated the USPS module I started having problems with payment page.
I tried reversing what what done, meaning reinstalled the 2021 usps files but nothing changed.
Here is what I have at the checkout page.
MODULE_PAYMENT_PAYFLOW_TEXT_TITLE
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_FIRSTNAME
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_LASTNAME
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_NUMBER
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_EXPIRES
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_CHECKNUMBER
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION
MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT
My cart version is v1.5.4
Any help will be very much appreciated.
-
Re: USPS Shipping Module [Support Thread]
Nevermind, re-installed the payment module folder and solved the issue.
-
Re: USPS Shipping Module [Support Thread]
I've just uploaded 2022-07-30 K11d for the Zen Cart moderators' review and will post back here when it's available for download.
This release contains the correction for GitHub issue #23 (CommitmentName coming back as an empty array).
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
lat9
I've just uploaded 2022-07-30 K11d for the Zen Cart moderators' review and will post back here when it's available for download.
This release contains the correction for GitHub issue
#23 (CommitmentName coming back as an empty array).
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292
-
Re: USPS Shipping Module [Support Thread]
I've just uploaded USPS version 2022-08-07 K11e, correcting the auto-update from 2022-07-12 K11c due to a misspelling (see GitHub issue #25).
Sorry about the churn!
-
Re: USPS Shipping Module [Support Thread]
2022-08-07 K11e
This morning, my site received several error messages from an Australian customer:
[11-Aug-2022 07:10:50 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: 121.213.160.xx
#1 usps->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/pages/checkout_one/header_php.php:222]
#3 require(/includes/modules/pages/checkout_one/header_php.php) called at [/home3/auberins/public_html/index.php:35]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /includes/modules/shipping/usps.php on line 555.
and
[11-Aug-2022 06:54:41 America/New_York] Request URI: /index.php?main_page=popup_shipping_estimator, IP address: 121.213.160.x
#1 usps->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/shipping_estimator.php:156]
#3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php:16]
#4 require(/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /includes/modules/shipping/usps.php on line 555.
Line 555 is the following:
if ($this->is_us_shipment) {
$PackageSize = count($uspsQuote['Package']);
// if object has no legitimate children, turn it into a firstborn:
if (isset($uspsQuote['Package']['ZipDestination']) && !isset($uspsQuote['Package'][0]['Postage'])) {
$uspsQuote['Package'][] = $uspsQuote['Package'];
$PackageSize = 1;
}
} else {
$PackageSize = count($uspsQuote['Package']['Service']); //line 555
}
I remember this error and I found out a temporary solution as the following before. I thought this bug was fixed already so I removed this modification... Maybe @lat9 has a better way to improve.
Change
$PackageSize = count($uspsQuote['Package']['Service']); //line 555
To
if ($uspsQuote['Package']['Service']) {
$PackageSize = count($uspsQuote['Package']['Service']);
}
-
Re: 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.
-
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.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
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?
-
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.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
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.
-
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...
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
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.
-
Re: USPS Shipping Module [Support Thread]
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
dbltoe
free shipping today!
-
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.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
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).
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
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.
-
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!
-
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.
-
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
-
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.
-
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!
-
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?
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
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'.
-
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
Code:
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;
}
-
Re: USPS Shipping Module [Support Thread]
@ChuckPhillips it's easy to change the $300 from a hardcoded number to a value in your Admin's Configuration screens. See
https://docs.zen-cart.com/dev/plugins/adding_config/
-
Re: USPS Shipping Module [Support Thread]
This is super rare but I have seen logs from K11d when $uspsQuote['Package'] is not set on line 539.
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/CUST/public_html/includes/modules/shipping/usps.php on line 539.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
swguy
This is super rare but I have seen logs from K11d when $uspsQuote['Package'] is not set on line 539.
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/CUST/public_html/includes/modules/shipping/usps.php on line 539.
Hi @swguy, I received the exact same warning last week. It might be due to the USPS API glitch?
I changed the nearby line
if ($this->is_us_shipment) {
To the following line
if ($this->is_us_shipment && $uspsQuote['Package']) {
And it seems working without generating new logs.
In the past, I only received warning regarding un-countable $uspsQuote['Package']['Service'] (for intl quote), not un-countable $uspsQuote['Package'] (for US domestic quote).
-
Re: USPS Shipping Module [Support Thread]
> It might be due to the USPS API glitch?
Certainly could be. Let's sit tight until it starts happening with regularity.
-
Re: USPS Shipping Module [Support Thread]
usps 1st class won't show? i am using PHP version 7.4. and usps version is 2022-08-07 K11e.
I selected domestic first class letter, first class package retail, and priority mail, but only priority mail shows.
my product weight unit is oz. i tried 3oz, 9oz,.. etc but first class never show.
i registered and got use ID for the API, but i don't see anywhere to enter anything else. so the user ID (which looks something like 008XPRAV6385) is the only thing i've entered into the settings. i have entered my site URL for registration. I have not contacted USPS for permission like i've read somewhere. i just need to get the shipping cost. so i suppose i don't need to?
i've changed Tare from 0:3 to 10:0 and nothing changed.
i've changed Minimum Length to 0 from the default 8.625, and nothing changed.
i've changed 'Enable USPS First-Class filter' to false, and nothing changed.
this is my site: https://xtrava.us
btw, also if i use flat rate shipping on 1 item, then order with multiple products will all have the same flat rate. how do i change that?
thanks
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
gdtw
usps 1st class won't show? i am using PHP version 7.4. and usps version is 2022-08-07 K11e.
I selected domestic first class letter, first class package retail, and priority mail, but only priority mail shows.
my product weight unit is oz. i tried 3oz, 9oz,.. etc but first class never show.
i registered and got use ID for the API, but i don't see anywhere to enter anything else. so the user ID (which looks something like 008XPRAV6385) is the only thing i've entered into the settings. i have entered my site URL for registration. I have not contacted USPS for permission like i've read somewhere. i just need to get the shipping cost. so i suppose i don't need to?
i've changed Tare from 0:3 to 10:0 and nothing changed.
i've changed Minimum Length to 0 from the default 8.625, and nothing changed.
i've changed 'Enable USPS First-Class filter' to false, and nothing changed.
this is my site:
https://xtrava.us
btw, also if i use flat rate shipping on 1 item, then order with multiple products will all have the same flat rate. how do i change that?
thanks
See post #177 in this support thread for a possible solution, setting the Tare weights to 0:0.
The "Flat rate" shipping is, as you've noted, a flat rate for the entire order. You could use the "Per Item" method to assign a cost of shipping on a per-item basis.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
lat9
See post #177 in this support thread for a possible solution, setting the Tare weights to 0:0.
The "Flat rate" shipping is, as you've noted, a flat rate for the entire order. You could use the "Per Item" method to assign a cost of shipping on a per-item basis.
setting Tare to 0:0 makes no difference for me..
-
Re: USPS Shipping Module [Support Thread]
What is the weight of the product(s) in question?
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
lat9
What is the weight of the product(s) in question?
tried 3oz, 6oz, 10oz
-
Re: USPS Shipping Module [Support Thread]
A screenshot of the site's current USPS configuration would help, too. Thanks for your patience.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
lat9
A screenshot of the site's current USPS configuration would help, too. Thanks for your patience.
USPS Version Date
2022-08-07 K11e
Enable USPS Shipping
True
Full Name or Short Name
Long
Enter the USPS Web Tools User ID
008XTRXXX305
Which server to use
production
Quote Sort Order
Price-LowToHigh
Handling Fee - US
0
Handling Fee - International
0
Handling Per Order or Per Box
Box
Decimal Settings
2
Tax Class
Taxable Goods
Tax Basis
Shipping
Shipping Zone
--none--
Sort Order
0
All Packages are Machinable?
False
USPS Options
Display transit time
USPS Domestic Transit Time Calculation Mode
NEW
USPS Domestic minimum Length
8.625
USPS minimum Width
5.375
USPS minimum Height
1.625
USPS International minimum Length
8.625
USPS minimum Width
5.375
USPS minimum Height
1.625
Enable USPS First-Class filter for US shipping
False
Shipping Methods (Domestic and International)
First-Class Mail Letter, 0, .21875, 0.00, 0, .8125, 0.00, First-Class Package Service - RetailTM, 0, .8125, 0.00, 0, .9375, 0.00, 0, 70, 0.00, 0, 70, 0.00, Priority MailRM, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 15, 0.00, 0, 20, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, .21875, 0.00, 0, 4, 0.00, 0, 4, 0.00, 0, 66, 0.00, 0, 4, 0.00, 0, 4, 0.00, 0, 20, 0.00, 0, 20, 0.00, 0, 66, 0.00, 0, 4, 0.00, 0, 70, 0.00, 0, 70, 0.00
Retail pricing or Online pricing?
Online
Debug Mode
Off
** i notice that it says "USPS expects you to use pounds as weight measure for your products." so i changed my product weight from 3 (oz) to 0.2.
still nothing has changed.
it also says "You will need to have registered an account with USPS at https://secure.shippingapis.com/registration/ to use this module" i register at usps.com site in "web tools". i received an email with user ID which i used.
-
Re: USPS Shipping Module [Support Thread]
-
Re: USPS Shipping Module [Support Thread]
Look in Configuration :: Shipping/Packaging. What settings do you have for
Package Tare Small to Medium - added percentage:weight and Larger packages - added packaging percentage:weight
I'm betting that they're not set to 0:0 (which adds no weight to the value you've set for the products' weight).
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
lat9
Look in Configuration :: Shipping/Packaging. What settings do you have for
Package Tare Small to Medium - added percentage:weight and Larger packages - added packaging percentage:weight
I'm betting that they're not set to 0:0 (which adds no weight to the value you've set for the products' weight).
they are both 0:0
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
gdtw
they are both 0:0
Turn on the USPS debug (to file) and then post (using the 'CODE' tag) the output. Something's (obviously) amiss with your setup, since it's working properly for me.
-
USPS changes
I've just learned that several USPS services are being discontinued as of January 22, 2023--Regional Rates A and B. Is that going to require any changes to the USPS shipping module? We use Regional Rate A more than anything else, so it's definitely going to have an impact on us and our customers.
-
Re: USPS changes
Something must have updated on the USPS side. When creating a shipment this morning the module is now reporting "-2147221202 - The element 'RateV4Request' has incomplete content. List of possible elements expected: 'RateClientType, Package'." I get the message with international packages using priority mail. Appears first class and priority domestic mail still functions.
-
Re: USPS changes
Here is the log file with my user info removed. Everything worked fine a couple of days ago.
Code:
2023-01-20 11:24:15: USPS build: 2022-08-07 K11e
Server: production
Quote Request Rate Type: Retail
Quote from main_page: checkout_shipping
USPS Options (weight, time): --none--
USPS Domestic Transit Time Calculation Mode: NEW
Cart Weight: 1.63
Total Quote Weight: 1.63 Pounds: 1 Ounces: 11
Maximum: 100 Tare Rates: Small/Medium: 0:0 Large: 10:0
Handling method: Box Handling fee Domestic: $0.00 US Handling fee International: $0.00 US
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: 61015
ZipDestination: Postcode: 61015 Country: United States City: Chana State: Illinois
Order SubTotal: $125.00 US
Order Total: $125.00 US
Uninsurable Portion: $0.00 US
Insurable Value: $125.00 US
2023-01-20 11:24:15: Sending request to USPS
2023-01-20 11:24:15: ==================================
SENT TO USPS:
<RateV4Request USERID="XXXXXXXXXXXXX"><Revision>2</Revision>
</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:
2023-01-20 11:24:15: RESPONSE FROM USPS:
==================================
============
RAW XML FROM USPS:
SimpleXMLElement Object
(
[Number] => -2147221202
[Source] => Common:XmlParse
[Description] => The element 'RateV4Request' has incomplete content. List of possible elements expected: 'RateClientType, Package'.
[HelpFile] => SimpleXMLElement Object
(
)
[HelpContext] => SimpleXMLElement Object
(
)
)
-
Re: USPS changes
Disregaurd my previous posts. Things appear to be working now without changing anything.
-
Re: USPS changes
Media Mail Parcel query coming back with a 0 rate as of a few days ago. Priority Mail works fine.
Any ideas?