Aupost V2 Calculating Wrong Price

  • Posts: 12953
  • Thank you received: 1778
8 years 9 months ago #228846

Hello,
Well their support portal isn't really adapted for developer query, but more for their own customers. I already tried to contact them through that portal but even the "Enquiry details" field have a limit of characters number so I can't give them all of the detail they need to understand that issue, so I sent them that message :

I'm part of the Hikari softwares development team and I'm in charge of the development of the AusPost shipping module. I'm currently using your API apipostageparcelinternationalserviceapiv3postagedomesticservice and some of our clients feedback are saying that when we send a grouped order (only in one package), the rates doesn't change regardless of the weight / dimension package which is changing.
Can we continue via email so that I can give you all details to understand that issue ?
Thank you.


The case number is : # 04345478

Last edit: 8 years 9 months ago by Mohamed Thelji.

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

  • Posts: 12
  • Thank you received: 3
8 years 9 months ago #229514

Someone from Aust Post came onto the Whirlpool Forum and I tried to push this issue along.

whrl.pl/Rex6jh

Whirlpool is one of the biggest internet forums in Australia and if anyone else is a member it might be worth adding a comment. Often publicity like this will push them into making an effort.

The following user(s) said Thank You: Mohamed Thelji

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

  • Posts: 12
  • Thank you received: 0
8 years 8 months ago #232295

Is there any update to this? It is still causing us huge problems. As of yesterday we now have another issue that suddenly it seems to be requiring dimensions for all products whereas before these could be left out. Not sure if that is a change at the HikaShop end or the AusPost end?

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

  • Posts: 12953
  • Thank you received: 1778
8 years 8 months ago #232312

Hello,
We didn't add anything on the AuPost V2 shipping method since that issue because we are waiting for a response from the AuPost platform we even opened a ticket that we are following.
But note that by default the Hikashop Aupost V2 shipping plugin needs your product dimensions, but if you really want to use it without your product dimensions, you'll have to edit the "Aupost2.php" file of the Aupost2 shipping plugin, and change these lines (2 times) :

$packages = $this->getOrderPackage($order, array('weight_unit' => 'g', 'volume_unit' => 'mm', 'limit' => $limit, 'required_dimensions' => array('w')));
By :
$packages = $this->getOrderPackage($order, array('weight_unit' => 'g', 'volume_unit' => 'mm', 'limit' => $limit, 'required_dimensions' => array('w')));

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

  • Posts: 12
  • Thank you received: 1
8 years 7 months ago #234531

Hi

any update on plugin?

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

  • Posts: 12953
  • Thank you received: 1778
8 years 7 months ago #234560

Hello,
We didn't get any response from the Australia Post platform, but we received an email telling us that an Australia Post API update was planned for 18 April 2016, so we'll just update our Australia Post (V2) shipping plugin as soon as possible.

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

  • Posts: 12
  • Thank you received: 1
8 years 7 months ago #237284

Hello

Any solution to the problem?. If this is not working I have to build a new site from scratch using some other plugin and leave hikashop. It has been more than 5 months and nothing has been resolved. I can't understand how other platforms calculate right pricing and hikashop not!!

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

  • Posts: 12953
  • Thank you received: 1778
8 years 7 months ago #237321

Hello,

I can't understand how other platforms calculate right pricing and hikashop not!!

We can understand your frustration as we also are by the long time Australia post took to send us a reply, in fact they sent us a response 1 week ago :

Hi Mohamed,

Thank you for taking the time to contact us about issues you were experiencing with the Australia Post Shipping calculations. I can certainly understand how confusing this can be. I'm really sorry that it has taken so long to get back to you. We are working hard to get back to everyone as soon as possible.

PAC API is built for sending a single item. It cannot provide price calculation for multiple items. Calculations are based on:

1. Destination
2. Weight
3. Dimensions.

API consumer has to ensure they are using service correctly. Prices will be returned as per details provided by API consumer to PAC API interfaces. For more information please refer to Australia Post developer portal: developers.auspost.com.au/

Again, I'€™m really sorry that I was unable to respond sooner and apologise for the inconvenience this has caused. I hope that this information has clarified the matter and been of some assistance.

Regards,

So the only solution seems to be to do 1 call to their API per package, we actually planned on doing it on the Australia Post V2.
Also, note that for the time being you can still use the Australia Post V1 shipping plugin.

I apologize for the long wait regarding that issue even if we were also waiting for news from Australia post which actually just came recently.

Last edit: 8 years 7 months ago by Mohamed Thelji.

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

  • Posts: 55
  • Thank you received: 3
8 years 6 months ago #238187

I seem to be seeing a slightly different behaviour with the auspost 2 plugin; and will watch this thread for any answers.

What seems to be happening for me is that any call exceeds a 20Kg limit that shows an error message. So same 'order' using the v1 plugin doesn't show this error, but the same order shows the weight exceeded message using v2.

For others who may be experiencing the same issue, what I have done is implement a 'quote for shipping' checkout (only for overseas orders for me); as auspost v1 seems to still work fine for domestic orders. Relatively straightforward to implement the quote for shipping process (I used the 'manual shipping plugin' and modified the 'purchase order' payment plugin, inclduing some language file overrides - not perfect but means orders still get through).

Last edit: 8 years 6 months ago by netpastor. Reason: clarity
The following user(s) said Thank You: Mohamed Thelji

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

  • Posts: 12
  • Thank you received: 0
8 years 6 months ago #239764

I have still not seen any progress on fixing the basic issues in the V2 plugin, and the new AusPost API came out 4 weeks ago. What is the status please?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 6 months ago #239780

Hi,

Mohamed has been away for 2 weeks and won't return until next week and thus didn't had the occasion to move forward on that since his last message. It's his first mission when he gets back.

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

  • Posts: 55
  • Thank you received: 3
8 years 6 months ago #239988

Hi Nicolas

I applied the patched version today - ie upgrade to 2.6.3; but I am still seeing the same issue with freight calcs.

What is happening is that even though the order is below 20Kg, the system error message is saying that the freight calc is above 20Kg - ie no shipping methods available. This is using the current/new version of the auspost v2 shipping plugin. The old plugin calcs the correct weight. My guess is that there is a decimal point somewhere in the code that is making it jump to the wrong freight weight.

The weight and dimensions of the specific single product that I am testing is 1.1kg, and 30 x 10 x 10 cm

Thanks
Ian

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

  • Posts: 12953
  • Thank you received: 1778
8 years 6 months ago #240355

Hello,

@Netpastor :

What seems to be happening for me is that any call exceeds a 20Kg limit that shows an error message. So same 'order' using the v1 plugin doesn't show this error, but the same order shows the weight exceeded message using v2.

The AuPost V2 shipping plugin have a 20 KG limit for International deliveries and a 22KG limit for local deliveries, if you want to remove or edit that limitation you'll have to edit these lines through the "aupost2.php" file :
if(@$order->shipping_address_full->shipping_address->address_country->zone_code_2 == 'AU') {
	$limit['w'] = 22000;
	$limit['volume'] = 250000000;
	$limit['x'] = 1050;
} else {
	$domestic = 0;
	$limit['w'] = 20000;
	$limit['girth'] = 1400;
	$limit['x'] = 1050;
}

And change the value of the "$limit" variable which is the weight limitation in g.

Also note that editing the weight limit won't do the job, the AuPost v2 plugin needs 1 call to the AuPost V2 platform for each package which is not the case for the moment.

@WangNET :

We are firstly working on the adaptation of the AuPost v2 regarding their API update, and then we'll work on the adaptation of our rate calculation so that it will send 1 request to the AuPost platform per package.

We apologize for the delay and any inconvenience this may cause.

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

  • Posts: 55
  • Thank you received: 3
8 years 6 months ago #240384

Thanks heaps Mohamed
just clarifying though - the order that is being submitted is nowhere near 20kg
ie I figure it is a multiplication factor of some sort in the plugin
I appreciate your work on this :-)

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

  • Posts: 12
  • Thank you received: 0
8 years 5 months ago #241722

We are having more and more issues with this. On another site now - one that had been working properly - it can no longer accept orders from overseas. When Air is selected as the shipping method, it gives an error message:

The request to the Australia Post server failed with the message: Please enter a valid Service code.
No shipping method found

If we change it to use Sea it calculates a price, but it is very wrong.

This is the case in V1 or V2.

I am not sure if this is related to the change Australia Post made on April 18, but it seems that it no longer recognises Air as a shipping method?? This issue is costing the site many sales.

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

  • Posts: 12953
  • Thank you received: 1778
8 years 5 months ago #241752

Hello,
Can you test it with the last AuPost shipping version :

We update the Australia Post V2 shipping plugin according to the "pac api update 2016", which means that we have added new weight/dimensions limits and services but that we also cleared and optimized the code.
Here is the last Australia Post V2 version if you want to directly download, install and test it.

www.hikashop.com/forum/shipping-methods/...html?start=20#240964

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

  • Posts: 6
  • Thank you received: 0
8 years 5 months ago #242035

Have two post same. Sorry.

Last edit: 8 years 5 months ago by LPlater. Reason: Posted two posts similar

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

  • Posts: 6
  • Thank you received: 0
8 years 5 months ago #242183

Hi,

I have a website 12 month old. The freight is not right, but more on international than domestic. Does Australia Post work internally to fix this issue or do they work with outsides business or work with groups of people like from this forum? Why does it take so long? Why can't they make somethings that work easier?

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

  • Posts: 12
  • Thank you received: 0
8 years 5 months ago #242190

I am pleased to say that this version appears to work. Thank you.

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

  • Posts: 12953
  • Thank you received: 1778
8 years 5 months ago #242224

Hello,
@LPlater

I have a website 12 month old. The freight is not right, but more on international than domestic. Does Australia Post work internally to fix this issue or do they work with outsides business or work with groups of people like from this forum? Why does it take so long? Why can't they make somethings that work easier?

Did you tried it with the last AuPost v2 shipping version ? International rates are maybe different because of their update which was only affecting International rates.

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

Time to create page: 0.106 seconds
Powered by Kunena Forum