Post by Theboxspot » Tue Oct 01, 2019 4:00 pm

Hi,

I have an issue, seems to be related to the September 30 update of the AusPost API function. Now one of the items is not named, and an error is being thrown on the page. Is this something wrong with the API calling the information? Or an issue in coding somewhere on the website. They updated their service codes on 30 September. I've attached a picture of the problem, all but one option have been named.

Thanks

Attachments

auspostfail.png

auspostfail.png (53.52 KiB) Viewed 252 times


Newbie

Posts

Joined
Thu Aug 15, 2019 1:48 pm

Post by Johnathan » Tue Oct 01, 2019 10:35 pm

Try the following edit, which should remove the errors:

Code: Select all

IN:
/catalog/model/extension/shipping/auspost.php

AFTER BOTH INSTANCES OF:
foreach ($response_services as $response_service) {

ADD:
if (empty($response_service['name'])) continue;

That won't fix whatever new rate AusPost added (if that's the cause) but it should stop all the errors from occurring.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Theboxspot » Wed Oct 02, 2019 4:38 pm

Worked a treat, thank you :) .

Newbie

Posts

Joined
Thu Aug 15, 2019 1:48 pm
Who is online

Users browsing this forum: coxmin1 and 16 guests