Media Mail Shows Free Shipping
- Dragon41673
-
Topic Author
- Offline
-- HikaShop version -- : 4.7.0
-- Joomla version -- : 3.10.11
For years, my Media Mail option has been working just fine...this morning however, suddenly Media Mail comes up as Free Shipping, so now I just lost all profit on an item and it's costing me to ship this piece. I have not changed anything in Hikashop at all for about 2 months now
Can anyone tell me why this may be happening? I just logged into my test site, tested several other books, and all are coming up as Free Shipping when using Media Mail...so something has definitely happened.
I double checked with the US Postal Service, and they still show Media Mail as being active, even though there has been many price changes that went into effect as of today, January 23rd 2023.
Images attached are of the order in the backend, then on the site as a customer, and then from USPS for the actual charge it should have been.
Thank you
Owner - Aries Games & Miniatures
Please Log in or Create an account to join the conversation.
This means that the USPS API provided a Media service without a "Rate" value.
It could be a bug in the USPS API following the changes they made.
To prevent that, what you can do is to add the code:
It will prevent displaying any free shipping USPS shipping method on the checkout.
Please Log in or Create an account to join the conversation.
- Dragon41673
-
Topic Author
- Offline
nicolas wrote: Hi,
This means that the USPS API provided a Media service without a "Rate" value.
It could be a bug in the USPS API following the changes they made.
To prevent that, what you can do is to add the code:after the line:Code:if(isset($rates[$mode]) && $rates[$mode]->shipping_price < 0.01) unset($rates[$mode]);(2 places) in the file plugins/hikashopshipping/usps/usps.phpCode:$this->addRate($rates, $mode, $parcels, $rate, $currency, false);
It will prevent displaying any free shipping USPS shipping method on the checkout.
Will this effect the free shipping via USPS I offer from time to time during a sale? Sounds like it would...which I cannot block.
Owner - Aries Games & Miniatures
Please Log in or Create an account to join the conversation.
How do you offer free shipping via USPS ?
If it is with a coupon, then it won't change anything. This extra check I'm proposing is just after retrieving the rates from USPS, before the coupon(s) in the cart are calculated.
Please Log in or Create an account to join the conversation.
- Dragon41673
-
Topic Author
- Offline
Thank you
Owner - Aries Games & Miniatures
Please Log in or Create an account to join the conversation.
- Dragon41673
-
Topic Author
- Offline
I offer Media Mail on books, I can't have it blocked, I really need it fixed. I called the US Postal Service and they still offer Media Mail, so an update to the API needs to be done so this returns proper shipping rates for Media Mail.
As such, I put the original file back into place for testing.
Owner - Aries Games & Miniatures
Please Log in or Create an account to join the conversation.
I can have a look. Please provide a backend and a FTP access and instructions to reproduce the issue via our contact form:
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
- Dragon41673
-
Topic Author
- Offline
Owner - Aries Games & Miniatures
Please Log in or Create an account to join the conversation.
While you had indeed provided a backend access for that other issue, please understand we have hundred of emails every week and we can't keep track of everyone's accesses. Plus, you might want to provide access to another website, so to be safe, I prefer asking again anyways. Also, I also needed a FTP access and instructions to reproduce the issue.
So I was able to reproduce the issue on the website thanks to your instructions and access your backend to check your settings, but you forgot to provide a FTP access. Just to be sure, I tried an old one you provided for that same website, but it didn't work anymore. I tried to do some debugging by uploading the package of the USPS plugin via the Joomla installer, but after several tries, I'm not able to do it.
I really need the FTP access to be able to debug the issue.
Please Log in or Create an account to join the conversation.
- Dragon41673
-
Topic Author
- Offline
Owner - Aries Games & Miniatures
Please Log in or Create an account to join the conversation.
Thanks. So looking into it, I found that USPS indeed send the "Rate" with a 0 value. However, It also sends a "CommercialRate" with the shipping fee. I looked online for more information about this, and it seems that merchants can negotiate with USPS to get lower fees which are labeled as "Commercial Rates" and that's apparently what this is.
The USPS plugin so far was only taking into account the "Rate" value. So, I've made a patch to be able to use the rate based on what USPS provides and it seems to be working fine on your website.
I suppose you must have recently talked to USPS to lower your shipping fees and that's why you got that issue as the plugin never supported this, and it's kind of strange to send 0 for the Rate when there is a commercial rate instead of just providing the smaller fee directly in the same variable of the API.
Anyways, the patch is included on our end. So you can download the install package of the latest version of HikaShop on our website and install it on yours to get it for your live website.
Please Log in or Create an account to join the conversation.
- Dragon41673
-
Topic Author
- Offline
Nope...only thing I contacted them on was if Media Mail was gone from the service, that was it...so it's definitely a change on their end not mine. I'll get the new package downloaded & going, thank you!
Owner - Aries Games & Miniatures
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Download the entire HikaShop package, extract it on your local computer, and zip the files in the back/extensions/plg_hikashopshipping/usps folder and you'll get yourself an install package for the plugin only.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.