USPS2 Not Providing Rates

  • Posts: 288
  • Thank you received: 25
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
4 days 15 hours ago #370010

v1.5.3 fixed the issue with the rates not showing.

One discrepancy is that First-Class doesn't get the Rate Indicator Restriction [XX] tagged on at the end

.e.g.
USPS (new under 1oz) First-Class Mail $1.03
USPS (new under 1oz) USPS Ground Advantage - [SP] Single Piece $7.90
USPS (new under 1oz) Priority Mail - [SP] Single Piece $14.20
USPS (new under 1oz) Priority Mail Express - [E4] Priority Mail Express Flat Rate Envelope - Post Office To Addressee $33.40
USPS (new under 1oz) Priority Mail Express - [E6] Priority Mail Express Legal Flat Rate Envelope $33.65
USPS (new under 1oz) Priority Mail Express - [E7] Priority Mail Express Legal Flat Rate Envelope Sunday / Holiday $33.65
USPS (new under 1oz) Priority Mail Express - [PA] Priority Mail Express Single Piece $43.70

Is that overlooked, or is there a reason? I figured it would be [SP] Single Piece like Ground and Priority Mail.

Doing more testing, but it looks promising.

Please Log in or Create an account to join the conversation.

  • Posts: 288
  • Thank you received: 25
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
4 days 10 hours ago #370014

FYI - testing it on a production site now.

Note that with the "USPS Ground Advantage", the Plugin name gets added to it.

So in the end, we get "USPS USPS Ground Advantage" (with USPS twice).

I tried changing it via Joomla Language Overrides, but it only changes it on the plugin admin side; it still shows up in the cart that way. I couldn't find it in the Configuration -> Language file either. Is there any place to change that?

Please Log in or Create an account to join the conversation.

  • Posts: 84955
  • Thank you received: 13842
  • MODERATOR
4 days 7 hours ago #370016

Hi,

Thanks for the feedback! Glad to hear v1.5.3 fixed the main issue with rates not showing.

Version 1.5.4 Release:
I've just released version 1.5.4 which fixes an issue reported earlier where the shipping service names (Priority Mail, Ground Advantage, etc.) were not displaying on fresh installs - only the raw translation keys were shown. This was due to the language file being loaded too late during plugin initialization.
It also fixes the issue with the USPS text being doubled in some cases.

Regarding First-Class Mail not showing rate indicators: This is by design and there's no need to change it. First-Class Mail uses a simpler pricing structure - there's just one rate based on weight and whether it's a Letter or Flat.

Unlike Priority Mail which has multiple packaging options (Flat Rate Envelope, Small Box, Single Piece, etc.) that customers can choose from at different prices, First-Class letters don't have such variations. That's why USPS doesn't provide rate indicator codes for them in their Letter API response.

So "First-Class Mail $1.03" is the complete and accurate rate - there's no missing information. Adding "[SP] Single Piece" would actually be misleading since USPS doesn't return or even support that distinction for First-Class letters.

Please update to version 1.5.4 and let me know how your testing goes!

The following user(s) said Thank You: jazzmang

Please Log in or Create an account to join the conversation.

  • Posts: 288
  • Thank you received: 25
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
3 days 16 hours ago #370023

Quick check of v1.5.4 seems good.

One thing that would be nice is to have a <span></span>around the Rate Indicator Restriction in the checkout's results.

Some of them get quite long and wrap awkwardly, especially for mobile.

Being able to control the presentation in the checkout would help.

I'm not sure if this can be done in checkout/show_block_shipping.php.
I see "<?php echo $shipping->shipping_name;?>" but not sure if there's a way to break shipping_name apart.

I see front-end template options for plugins like hikashopshipping_ups, but nothing for the USPS2 plugin.

Please Log in or Create an account to join the conversation.

  • Posts: 288
  • Thank you received: 25
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
3 days 13 hours ago #370031

So this is odd.

In v1.5.4, the double USPS in Ground Advantage is gone.

But on a different site with a fresh v1.5.4 install, I'm still seeing the double.



Tried adding an override via Joomla language, but still not getting the double.

Never mind, figured out what you were doing. If I just had the shipping method = "USPS" it removes it.


So far, everything else seems to be working.

Attachments:
Last edit: 3 days 13 hours ago by jazzmang. Reason: Update

Please Log in or Create an account to join the conversation.

  • Posts: 288
  • Thank you received: 25
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 hours 50 minutes ago #370059

A few additional bugs after orders started coming in, which we found when dealing with missing language text.

First is in the administration's Orders area, as just the constant name, not the shipping method value:



On the invoice (for printing) for the order, it is blank instead of either a constant name or a value:


And on the emails going out, it just has the constant name again:


This seems to be mainly with anything OTHER than USPS - First-Class Mail, which shows fine in all 3 locations if that is the method.

Attachments:
Last edit: 10 hours 20 minutes ago by jazzmang. Reason: Noticed this only affects the non-first-class mail method.

Please Log in or Create an account to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum