USPS plug-in not calculating correct rate in 2.4.0

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #210870

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 or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
9 years 3 months ago #210909

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.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #210933

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
Thanks.

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

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
9 years 3 months ago #211190

Information sent for access.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #211239

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 or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
9 years 3 months ago #211272

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: 9 years 3 months ago by jazzmang.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #211275

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

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

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

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
9 years 3 months ago #211374

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 or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #211378

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum