[Skip to main content](#vessel-content)

#   USPS plug-in not calculating correct rate in 2.4.0

##

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 3 months ago [\#210870](#210870) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#210870 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

Hello,
Can you give me more information through some screensthos for example about :
- the issue that you are having when using the last version
- the way you configured you shipping method / product

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile")
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

11 years 3 months ago [\#210909](#210909) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#210909 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

No error is displayed. It just displays the same rate for every order regardless of the destination, products, weight, quantity, etc.

It is always returning $4.54 for First Class Mail. I'm not sure where it is getting the number.

All other methods work fine.

[ ![usps&#95;config.png](/forum/attachment/25877) ](/forum/attachment/25877 "usps&#95;config.png")

- [ ![usps&#95;config.png](/forum/attachment/25877) ](/forum/attachment/25877 "usps&#95;config.png") [ ](/forum/attachment/25877?download=1 "usps&#95;config.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 3 months ago [\#210933](#210933) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#210933 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

I just tested it on my end using the last Hikashop version, can I have a temporary back-end / FTP access to your website so that I can directly check and test it ?
You can send it through our contact form : [ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)
Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile")
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

11 years 3 months ago [\#211190](#211190) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#211190 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

Information sent for access.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 3 months ago [\#211239](#211239) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#211239 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

Hello,
The priority mail seems to be correctly updating (the first class mail wasn't displayed), also note that your issue can be coming from the fact that you have just set a weight and no dimensions for your products. Can you test it with product which have weights and dimensions ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile")
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

11 years 3 months ago -  11 years 3 months ago [\#211272](#211272) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#211272 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

The site is currently using the old 2.4.0 plugin code.

The problem occurs when running the newer code from 2.5.0.
This is a live site, I cannot leave the problematic code in production.

First class isn't always available, depends what product and where you are shipping too.
The Stool exceeds the First Class weight limits so it shouldn't show First class.

I've entered them on the stool and tried it with the new code and it does work.

However these are all custom handmade products so dimensions constantly vary.

Also with multiple product orders are bundled into a single box which size will vary.
You cannot expect dimensions to always be available/exact on a per product.

My guess is you are forcing the dimension to be sent (e.g. 0x0x0) which will cause a problem.
USPS own site doesn't require dimensions unless you select large package.

And from what I've tested with setting the dimensions on the stool product doesn't impact the cost from USPS regardless if I use 2.4.0 or the newer code.

Thus why the old code works with reality.

Last edit: 11 years 3 months ago by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 3 months ago [\#211275](#211275) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#211275 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

Hello,
In that case can you edit the "usps.php" file of your USPS plugin and change the line : Code:

$package = $this-&gt;getOrderPackage($order, array('weight_unit' =&gt; 'oz', 'volume_unit' =&gt; 'in', 'required_dimensions' =&gt; array('w','x','y','z')));

By : Code:

$package = $this-&gt;getOrderPackage($order, array('weight_unit' =&gt; 'oz', 'volume_unit' =&gt; 'in', 'required_dimensions' =&gt; array('w')));

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5807-jazzmang "View jazzmang's Profile")
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

11 years 3 months ago [\#211374](#211374) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#211374 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

OK, but I get the same effect by just leaving it with the older 2.4.0 code.

Any reason for the change to always send that information?

I'm stuck modifying this with every update, which is no better than where I'm at now.

I'm going to guess this will come up again with someone else where submitting dimensions just won't work.
It might be worth considering making that an option inside the plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#211378](#211378) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[USPS plug-in not calculating correct rate in 2.4.0](/forum/28-shipping-methods/875601-usps-plug-in-not-calculating-correct-rate-in-2-4-0?start=20#211378 "-- url of the page with the problem -- :   www.StutteringTherapyResources.com  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0  With version 2.4.0, installed tonight, the USPS plug-in is no longer taking into account the shipping weight when calculating shipping. It is giving the same flat shipping amount (minimum per USPS) regardless of the weight of items in the cart. This worked earlier tonight. I then updated to the new version, and then it started giving me an inaccurate shipping rate. Help? Thank you! Scott")*

Hi,

All HikaShop shipping plugins are not using the getOrderPackage function.
And all these plugins are using the "required_dimensions" option to check that products are right configured.

The goal of the HikaShop shipping plugin is also to perform estimation on the number of package you will send.
That estimation is made using the weight and dimension of the products ; because all shipping plugins need that information to give you a right shipping cost estimation.

The setting "required dimensions" has been added in the Shipping interface in order to avoid issues.
We had a lot of users who had incorrect shipping values because they didn't set dimensions for their products and it was resulting wrong prices.

Maybe we will add a settings in some of the shipping plugins to not ask for the required dimensions "x,y,z" ; it is a possibility that we can imagine.
But it is not a possibility I appreciate due to the fact that the data we will send to the shipping platform is incorrect and that the shipping estimation we will receive is at this moment, also incorrect (like I wrote before).

Like you wrote:

> USPS own site doesn't require dimensions unless you select large package.

Without dimensions how could you know that you'll need a large package ?
What about an order including products without dimension and products with ? How could you guarantee a right shipping price at this moment ?

Regarding your case, I'll recommend you to duplicate the USPS plugin in order to have your own shipping plugin.
Then you will be sure that you can update HikaShop and still use your custom USPS plugin which feet to your requirements.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODc1NjAxLXVzcHMtcGx1Zy1pbi1ub3QtY2FsY3VsYXRpbmctY29ycmVjdC1yYXRlLWluLTItNC0wP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.093 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
