Forums / Addon Shipping Modules / Australia Post Shipping Module 2.0

Australia Post Shipping Module 2.0

Views: 55,946

Results 61 to 80 of 150
15 Feb 2023, 11:59 AM
#61
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Australia Post Shipping Module 2.0

OldNGrey:

Do you have dimensions on the products ie (products_weight [ this is built into Zen Cart]; products_height; products_width; products_length)?
If so what are they for product 1997?

The problem is not the 36 items, it's that the combined size or weight is calculated as larger than Australia Post will handle. So a valid quote is not returned.

I have a version 2.5.3 on my GitHub at https://github.com/OldNGreyBMR/aupost-v2.5.3/archive/refs/tags/v2.5.3.zip
It is backwardly compatible with PHP7.

Please try it on your **TEST system (NOT **production). Once the files are copied over, you will need to uninstall and reinstall each module and add your API code and tax rates.

I'm pretty sure it's not a size and weight thing, the products have no sizes (there are no size fields in the product listing page anyway, and I can't see anything in the settings about an assumed volume for each product), it all goes by weight, and those weights vary but are quite small. That product is 5g, so 35 of them is just 175g. But, if you select a smaller product, such as a 5mm LED which is 0.5g, it still bombs at 36 items. Or any combination of items, regardless of weight, it's always when it hits 36.

16 Feb 2023, 12:41 AM
#62
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Lance Turner:

I'm pretty sure it's not a size and weight thing, the products have no sizes (there are no size fields in the product listing page anyway, and I can't see anything in the settings about an assumed volume for each product), it all goes by weight, and those weights vary but are quite small. That product is 5g, so 35 of them is just 175g. But, if you select a smaller product, such as a 5mm LED which is 0.5g, it still bombs at 36 items. Or any combination of items, regardless of weight, it's always when it hits 36.

Have you tried the latest version yet?

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

17 Feb 2023, 10:21 AM
#63
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Sorry, no, has been a very busy few days, might get to it on the weekend, will post results when I get a chance.

12 Apr 2023, 9:41 PM
#64
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

I have submitted Version 2.5.5 which is compatible with Zen Cart 157 to 158a with PHP 7.4 to PHP 8.2.

The following issues were corrected:
. postage girth not used for local post - changed to max volume in cubic metres
. corrected bug where GST was sometimes removed in the cart total for local post
. version number displayed in admin panel

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

16 Apr 2023, 11:43 PM
#65
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

The Github for AuPost 2.5.5 is located at https://github.com/OldNGreyBMR/aupost
The zip file can be downloaded directly from there or wait for admin update of the plugin download page.

OldNGrey

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

23 Apr 2023, 6:30 AM
#66
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Version 2.5.5 can be downloaded from the plugins page https://www.zen-cart.com/downloads.php?do=file&id=1138

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

26 Jun 2023, 6:01 AM
#67
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Thanks, will try to get to it asap and test it...

9 Sep 2023, 4:35 AM
#68
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Ok, have set up a new shop in a subfolder, v1.5.8a, installed the module, and the issue is still there, ie if there are more than 35 items in total, the module fails and doesn't show in the cart.

Other issues: I have express and regular turned on, and the satchels turned off because I don't use them, but in the cart, it also shows the regular and express satchel options, even though they are turned off.

Also, there was some weirdness with total calcs, for example, with no admin fee added, it shows the regular small parcel as $10.90, but when I add a $1 fee, it changes to $11.60 (ie, it adds 70 cents).

9 Sep 2023, 6:10 AM
#69
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Ok, worked out what's going wrong with the quantities. There is an option for "Default Parcel Dimensions", which I had set to my most common box size, but it seems the module is using those dimensions as a default product dimension, see debug grab below.

Attachment 20383

So, it was calculating a huge cubic volume. It seems the calculation is incorrect in the module.

Also, setting the Default Parcel Dimensions field to blank or 0,0,0 results in the module erroring as well, if those dimensions are not set, it should just ignore that part of the calc and just go by weight.

Interestingly, once I set the Default Parcel Dimensions to .1,.1,.1 the issue with the satchels showing when they shouldn't went away, so there seems to be some logic issues in the module as well.

12 Sep 2023, 4:20 AM
#70
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Ok, an update, seems when I uploaded the new version of the module files I forgot to uninstall and then reinstall the module. Once I did that, a great many more options became available, as per the description. Only problem is, the satchel issue is still there, ie even turned off, the standard satchel and express satchel options still appear.

12 Sep 2023, 5:06 AM
#71
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Lance Turner:

Only problem is, the satchel issue is still there, ie even turned off, the standard satchel and express satchel options still appear.
Lance
I have identified the issue that lets the small satchel and small express satchel through and am working on.

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

14 Sep 2023, 6:38 AM
#72
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Ok, thanks, for now I have just installed a second zone tables rates module, so have one for regular, one for express. Gets me out of trouble for the moment...

17 Sep 2023, 12:36 AM
#73
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

I have updated the Australia Post Shipping module in my GitHub repository https://github.com/OldNGreyBMR/aupost/releases/tag/2.5.5-05

The AustPost module is now at V2.5.5-05 and the AusPost Overseas module is now at V2.5.5-03.

Before installing in Production environment please test it on a test system first. This version captures the redundant satchel codes returned by Australia Post and prevents them from being displayed when no satchel options are selected in the Admin configurations.

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

17 Sep 2023, 1:50 AM
#74
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

For those users of AustPost Shipping Module if you have not already modified the Zen Cart invoice to meet Australian Tax requirements there is a sample invoice and related language files in my GitHub at https://github.com/OldNGreyBMR/aupost-additional-settings/releases/tag/V1.0

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

7 Nov 2023, 12:19 PM
#75
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Hi All,

Getting this error message when I press shopping cart button:

Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, SimpleXMLElement given in /home/xxxx/public_html/includes/modules/shipping/aupost.php:803 Stack trace: #0 /home/xxxx/public_html/includes/modules/shipping/aupost.php(803): str_replace() #1 /home/xxxx/public_html/includes/classes/shipping.php(201): aupost->quote() #2 /home/xxxx/public_html/includes/modules/pages/checkout_shipping/header_php.php(184): shipping->quote() #3 /home/xxxx/public_html/index.php(35): require('/home/a1ntacdk3...') #4 {main} thrown in /home/xxxx/public_html/includes/modules/shipping/aupost.php on line 803

Server Information
Server Host: xxxx503484.prod.phx3.secureserver.net (xxxx)Database: xxxx_live158Store Home: /home/xxxx/public_html/Server OS: Linux 4.18.0-477.21.1.lve.1.el8.x86_64Server Date: 07/11/2023 06:27:49 Server Up Time: Disabled/UnavailableHTTP Server: ApachePHP Version: 8.1.24 (Zend: 4.1.24)PHP File Uploads: OnUpload Max Size: 1024MPHP Memory Limit: -1POST Max Size: 1024MDatabase Engine: MySQL 10.6.14-MariaDB-cll-lveDatabase Host: localhost (127.0.0.1)Database Date: 07/11/2023 06:27:49Database Data Size: 244,613 kBDatabase Index Size: 36,112 kBMySQL Slow Query Log Status: OffMySQL Slow Query Log File: xxxxx503484-slow.log

Any help would be appreciated

Outdoorking
Live Site https://www.outdoorking.com.au

7 Nov 2023, 8:28 PM
#76
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

  1. What version of zencart and what version of PHP are you using?

  2. What other modules do you have installed?

  3. What version of aupost are you using? It will be displayed at the top of the screen in shipping modules when auspost is selected.
    Attachment 20418

  4. Is the user logged in or is it a guest user?

  5. Does this occur when you add items to the shopping cart or when items are in the shopping cart and you enter an address and press the Update button?

Please provide all of the details requested above so I can assist.

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

8 Nov 2023, 12:58 AM
#77
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

OldNGrey:

  1. What version of zencart and what version of PHP are you using?

  2. What other modules do you have installed?

  3. What version of aupost are you using? It will be displayed at the top of the screen in shipping modules when auspost is selected.
    Attachment 20418

  4. Is the user logged in or is it a guest user?

  5. Does this occur when you add items to the shopping cart or when items are in the shopping cart and you enter an address and press the Update button?

Please provide all of the details requested above so I can assist.

PHP version as stated in server info is 8.1
Quite a few have but have not finished the count as we are not finished
Not showing version for the Australia Post
Yes logged in
When looking at shopping cart it shows the error

Outdoorking
Live Site https://www.outdoorking.com.au

8 Nov 2023, 2:09 AM
#78
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

The Australia Post plugin is now on Version 2.5.5.07
A link to the latest version is https://github.com/OldNGreyBMR/aupost/releases/tag/2.5.5-07

Please use the latest version. After you copy the files, in Admin > Shipping Modules note down your codes, then > Remove Module and > Reinstall Module.

It looks like Australia Post is returning an blank quote. If you get an error with the latest version at least I'll be able to match an error with a line number in the code.

It will also help if you turn on the Enable Debug option in the module and see what is being collected and what is being sent.

Only do this is in a test environment.

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB

8 Nov 2023, 11:52 AM
#79
bruce1952 avatar

bruce1952

Totally Zenned

Join Date:
Aug 2008
Location:
Sydney Australia
Posts:
828
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

OldNGrey:

The Australia Post plugin is now on Version 2.5.5.07
A link to the latest version is https://github.com/OldNGreyBMR/aupost/releases/tag/2.5.5-07

Please use the latest version. After you copy the files, in Admin > Shipping Modules note down your codes, then > Remove Module and > Reinstall Module.

It looks like Australia Post is returning an blank quote. If you get an error with the latest version at least I'll be able to match an error with a line number in the code.

It will also help if you turn on the Enable Debug option in the module and see what is being collected and what is being sent.

Only do this is in a test environment.

Have installed the latest module and it is showing the version now

The only issue that I am having is with the additional Handling fee does not appear to be working. I have placed zero in all the fields and nothing is changing with the prices being quoted and it does not appear to change them even if I place different amounts into the handling fee boxes and press update.

I even logged out and logged beck in again to test.

The only thing that is changing the cost is the default parcel dimensions.

Any suggestions what might be wrong?

Outdoorking
Live Site https://www.outdoorking.com.au

8 Nov 2023, 9:19 PM
#80
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
427
Plugin Contributions:
0

Re: Australia Post Shipping Module 2.0

Can you turn on **Enable Debug **andprovide a screen shot of the shopping cart with one item and the first postage estimates returned. ?

OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB