The request to the Australia Post server failed...

  • Posts: 64
  • Thank you received: 3
9 years 11 months ago #213094

Hi, I applied the above changes to the plugins/hikashopshipping/austpost/aupost.php but there has been no change.

I have done the following...

if(@$order->shipping_address_full->shipping_address->address_country->zone_code_2 == 'AU'){
		//	$limit['w'] = 22000;
			$limit['volume'] = 250000000;
			$limit['x'] = 1050;
		} else {
		//	$limit['w'] = 20000;
			$limit['girth'] = 1400;
			$limit['x'] = 1050;
		}

and changed both of the getOrderPackage to the following
$packages = $this->getOrderPackage($order, array('weight_unit' => 'g', 'volume_unit' => 'mm', 'limit' => $limit, 'required_dimensions' => array('x','y','z')));

And when I make the above changes it won't allow me to do even (1) one product that weighs 2kg x 12 (taking it to a total of 24kg). It sill comes up with the error message: The request to the Australia Post server failed with the message: The maximum weight of a parcel is 22 kg

I have reset the code back to its original again.


HikaShop: v.2.5.0
Joomla: v.3.4.3

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #213100

Hello !
So the error can be coming from :
- That Australia Post API which won't return packages above 22KG
- A cache issue, can you clean your browser cache and try it again so that it will send another request to the Australia Post platform and receive new results ?

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

  • Posts: 64
  • Thank you received: 3
9 years 11 months ago #213188

Hi I have cleared the cache and that is not the problem.

I have also made a video explaining the exact problem and what I have done to try and fix it.

There is one part at the end of the video where the Volume is set to 1(l) 1(w) 1(h) and I was unsure if this affects the outcome. After the video I placed the correct dimensions and it still errored the same way but in length rather than weight.

Video: www.dropbox.com/s/n9rtpif4jje2i4d/CatNet...g%20Problem.mp4?dl=0


HikaShop: v.2.5.0
Joomla: v.3.4.3

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #213217

Hi,
The code that I firstly gave you will only remove the weight limit through the getOrderPackage function, but after some tests, I also didn't add any weight and when I sent it to the AuPost platform and was stopped by a :
The request to the Australia Post server failed with the message: Please enter weight.

We are forced by the Aupost platform to send a package weight, so in your case, it will be hard to ignore the weight limitation imposed by the Australia post platform from the first API, and they still didn't responded me regarding the Aupost v2 plugin.

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

  • Posts: 64
  • Thank you received: 3
9 years 11 months ago #213302

But why can it send one item x 100 at 2kg (and it is split into separate packages OK) but you can't have 2 items x 50 (ea) at 2 kg each. It is essentially the same thing but split into two items.

My client is only using the austpost plugin as an estimation on shipping as he sometimes uses other companies to ship but has found the Aust Post gives a close enough calculation.

If there is another way to do this I'm am open to suggestions.


HikaShop: v.2.5.0
Joomla: v.3.4.3

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
9 years 11 months ago #213343

Hi,

The getOrderPackage function is there to organize the products in different groups following the specified limitations.
So I'm not understanding your request.

If you want a custom behavior in the plugin, the best will be to have your own custom plugin with your own rules.

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.

  • Posts: 64
  • Thank you received: 3
9 years 11 months ago #213459

The getOrderPackage function is there to organize the products in different groups following the specified limitations.
So I'm not understanding your request.


Is the correct function for the plugin to do the following...

1. if there is one item that weighs 1kg and someone orders 100 of them then the austpost plugin will split this into 5 packages (100 divided by 22 (4.5 packages)).... can you confirm this is correct?

2. if there is two items that weighs 1kg (ea) and someone orders 50 of each (total 100) then the austpost plugin will split this into 5 packages (100 divided by 22 (4.5 packages)).... can you confirm this is correct?

If this is the normal functionality of the plugin then it is not doing the 2nd option.

This seems like a fairly simple point to get across so obviously there is something not being translated between what you know and what I know (more likely I'm missing something). When you watch the video supplied in the link above, can you tell me if what you are seeing is the correct behavior of the plugin.


HikaShop: v.2.5.0
Joomla: v.3.4.3

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #213472

Hello,
It's working fine when I try your first test on the video that you sent : Adding 14 "Cat Netting with Reinforced Edging 11m x 1.8m" products on my cart correctly display the shipping method.

1. 2. Yes, but you'll also have to take into account the volume and length restriction.

Note that it also works fine when I set 50 "Cat Netting with Reinforced Edging 11m x 1.8m" and 50 "Cat Netting with Reinforced Edging 7m x 1.8m".

Was it the good thing to do to test you problematic case ?

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

  • Posts: 64
  • Thank you received: 3
9 years 11 months ago #214085

I'm sorry, I'm at a loss to understand what you are saying in this reply? are you saying that it is working fine but what I am trying to do is braking the plugin?

Is it Australia posts restrictions that is not allowing it to work?

The very important thing is I am no closer to a solution on this on either the version 1 or 2 plugin.

Was it the good thing to do to test you problematic case ?

Does this mean you are looking into this more?

If you want a custom behavior in the plugin, the best will be to have your own custom plugin with your own rules.

is this something you can you?

All I need the plugin to do is keep on calculating as if all items can be shipped in separate packages (which they can).

Please, please, please help me understand my possible solutions.


HikaShop: v.2.5.0
Joomla: v.3.4.3
Last edit: 9 years 11 months ago by danpoole.

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
9 years 11 months ago #214112

Hi,

The "getOrderPackage" just put products in packages, if you have 100 identical products or 100 different products, it will act the same and it will just create packages regarding his restrictions (weight for sure, but also dimensions).

If you found a bug in HikaShop, we will look at it ; but you need to provide a precise test case and some configuration screenshots in order to illustrate that bug.
Now, if you want to customize the plugin to feet to your specifications, like I wrote in my previous message, you need a custom plugin made by a developer.

Our support is there to fix the bugs, to help people to use HikaShop and to improve it in the common way.
In the case where your request is too specific and can't be integrated into HikaShop ; we can't do that under the HikaShop support.
We can't also modify the AUPost plugin to feet to your requirements because it will break all other store using that plugin; providing them invalid quotes (or no quotes if the request to AUPost is outside the limitations).

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.084 seconds
Powered by Kunena Forum