New Zenner
- Join Date:
- Jan 2014
- Location:
- Sydney
- Posts:
- 17
- Plugin Contributions:
- 0
Australia Post Shipping Module 2.0
It shouldn't. The module uses the domain name to access the API. If they don't change that, it will be OK.
Views: 55,946
New Zenner
It shouldn't. The module uses the domain name to access the API. If they don't change that, it will be OK.
Zen Follower
Thanks.
Zen Follower
Ok I received an email from Australia Post:
As noted in our Postage Assessment Calculator (PAC) update in April, we've now migrated the PAC API to a new host URL: https://digitalapi.auspost.com.au
Next, we're going to decommission the old PAC API URL: https://auspost.com.au/api
**What you should do
**
Please update your websites and applications and migrate to the new URL as soon as possible. You can test the new URL directly at https://digitalapi.auspost.com.au.
In next correspondence:
The key that you use remains the same.
In this case, I would suggest that the notice be forwarded on to the Zencart Aus Post module developers.
They will need to check how they’re connecting to our API to retrieve prices and if they are using the old link.
I’ve provided an example of what they may need to update if they are using the old URL (auspost/api)
https://www.auspost.com.au/api/postcode/search.json?3000
https://digitalapi.auspost.com.au/postcode/search.json?3000
Considering that the module developer is no longer working on this, do I just go through the files and look for the old link and change it to the new link?
Deceased
Annie_zaz:
.....
Considering that the module developer is no longer working on this, do I just go through the files and look for the old link and change it to the new link?
Take a look at the OzPost module, actively developed and updated - see https://www.zen-cart.com/downloads.php?do=file&id=899
NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Deceased
Annie_zaz:
Considering that the module developer is no longer working on this
Strictly speaking, the developer of this module (me) is still actively working and constantly upgrading this module.
https://www.zen-cart.com/downloads.php?do=file&id=899
The specific version that you are referring to is a ripoff copy of my code that was created because the person had objections about having to pay for the support and ongoing updates. <hmmmpphh>.
It's hardly a surprise that this person has chosen to not update it further. Why should he, when he gets nothing for his efforts (other than a possible satisfaction of undermining my efforts) <shrugs>
Annie_zaz:
, do I just go through the files and look for the old link and change it to the new link?
You could do that, I guess - but that won't take care of the changes in the many different methods introduced several months ago, for example, platinum services no longer exist, Parcel Plus satchels no longer exist, satchels can now be insured, the introduction of priority post letters, signature option available for most services..... and the changes to the overseas deliveries are even more profound.
Having said that, I appreciate that you may only be interested in the 'basic' satchel and parcel services anyway, so 'ozpost' may well be a bit of an overkill, in which case, I've no problems with anyone using this hacked version, assuming you can keep it functional with the proposed API changes, but this isn't something I'm going to look into.
Cheers
RodG
New Zenner
Hi , only new to Zen Cart.
I am having a problem with the cart postage/weight total.
Example.
Product A = 100gm
Product B = 100gm
If I add to cart 4xA(400gm) and 3xB(300gm) this should be total weight of 700gm.
But when it does the postage calculator estimate it is only taking into account product A-400gm.
If I enter 7xA which is 700gm, same weight total as product A+B as above it is calculating the correct postage on the estimator.
So if my customers are ordering multiple products it is only taking the first product to calculate postage.
I am using the Aust Post Calculator.
ZenCart Version v1.5.5e
https://www.bargainbuyer.com.au is my site.
Does anyone know why it is doing this and how to rectify?
Thanks
Totally Zenned
Ccake77:
Hi , only new to Zen Cart.
Does anyone know why it is doing this?
ThanksYES .... It is NOT actively supported and updated.
Ccake77:
Hi , only new to Zen Cart.
Does anyone know how to rectify?
ThanksYES ..... See Post 45 from RodG above
RodG's mod is supported and constantly updated.
Switch to RodG's mod
It just WORKS .....
Contribs: - Time Zone Fix/Offset ■ Google Adsense ■ betterCategoriesEzInfo ■ Multi Cross Sell
New Zenner
I've been actively using the original AustPost module for a number of years now with success. Mind you I only need Regular Parcel, Signature on Delivery and Express Parcel. We have no use for satchels. Since the emergence of PHP7 I've had to do minor tweaking especially with the split() function. Replacing it with explode() or preg_spilt() where necessary. However there is a session issue which I can track down. I wont go into details.
I've installed this AUPOST v2.3 (after I've tweaked for PHP7) purely because it doesn't have any session related issues. The only part I'm trying to get working the REG part of the module. I'll be replacing to show Regular Parcel + Signature on Delivery. Got it working in the original module but not this one.
Showing below as an example. All references for REG that show Registered I will replace with Signature on Delivery.
case "AUSPARCELREGULAR" ;
if (in_array("Regular Parcel", $this->allowed_methods))
{
$add = MODULE_SHIPPING_AUPOST_RPP_HANDLING ; $f = 1 ;
}
break;
case "REG" ;
if (in_array("Registered", $this->allowed_methods))
{
$add = MODULE_SHIPPING_AUPOST_RPP_HANDLING + MODULE_SHIPPING_AUPOST_REG_HANDLING ; $f = 1 ; /*$info = $xml->information[0]->registration ;*/
}
break;
Further along the code I've added the work 'Registered' is hopes it would show up as an option. In the Admin settings it all shows up fine.
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title,
configuration_key,
configuration_value,
configuration_description,
configuration_group_id,
sort_order,
set_function,
date_added)
values ('Shipping Methods for Australia',
'MODULE_SHIPPING_AUPOST_TYPES1',
'Regular Parcel, Registered, Express Parcel, Prepaid Satchel, Prepaid Express Satchel, Express Post Platinum Parcel, Express Post Platinum Satchel',
'Select the methods you wish to allow',
'6',
'3',
'zen_cfg_select_multioption(array(\'Regular Parcel\',\'Registered\',\'Express Parcel\',\'Prepaid Satchel\',\'Prepaid Express Satchel\',\'Express Post Platinum Parcel\',\'Express Post Platinum Satchel\'), ',
now())"
) ;
I should, I have been receiving the correct quotes from Australia Post. Just need the Signature on Delivery showing up.
Move down I've added
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Registered', 'MODULE_SHIPPING_AUPOST_REG_HANDLING', '2.95', 'Registered', '6', '7', now())");
MODULE_SHIPPING_AUPOST_REG_HANDLING was previously referred to MODULE_SHIPPING_AUPOST_RI_HANDLING
I'm no expert at coding or at using forums so please excuse any lack of decorum or proper formatting.
New Zenner
Is this plugin still being supported?
With the possible demise of ozpost plugin, and the fact that I now only use Australia Post, this looks like the go to for Aussie Zenners.
I've had to adjust a couple of things to get rid of debug issues, mainly to do with the latest PHP versions, but it returns issues with the size of parcels.
A box measuring 44 x 40 x 48 will return a valid quote from the AP website but the plugin reports that it is oversize and returns the flat rate set up in the plugin.
Zen Cart 2.0.1
PHP 8.3.11
New Zenner
Any luck with this version Vacuum Dog? Can you let us know the changes you had to make to fix the errors? I think there's going to be alot of Aussie sellers looking for a new shipping module :(
The lack of news from ozpost is disapointing :(
Totally Zenned
Mitkins:
Any luck with this version Vacuum Dog? Can you let us know the changes you had to make to fix the errors? I think there's going to be alot of Aussie sellers looking for a new shipping module :(
The lack of news from ozpost is disapointing :(
Unfortunately the very generous author and maintainer of the excellent Ozpost mod, who was known in the forum as RodG, passed away a few years ago, and AFAIK no one (except perhaps Gilby) has volunteered to maintain the mod. The code is certainly beyond my abilities.
New Zenner
That's very sad :(
Does anybody use this version of ozpost? or know if it still works?
It was my understanding that this version of ozpost used the Auspost API? So the ozpost servers wouldn't be needed.
"This module uses the Australia Post API to get valid quotes directly from the Australia Post server."
Zen Follower
I have updated this plugin to V2.4 and it is available for download: https://www.zen-cart.com/downloads.php?do=file&id=1138
This upgrade of the Australia Post Shipping module uses the latest Australia Post API codes and URL and is compatible with PHP 7.4 and PHP 8.0.
It calculates postage rates for delivery addresses within Australia and overseas using two separate modules.
It allows you to get rates for the following delivery options:
Australian Delivery Options
Regular Parcel
Express Post Parcel
Prepaid Satchel
Prepaid Express Satchel
Express Post Platinum Parcel
Express Post Platinum Satchel
International Delivery Options:
Sea Mail
Economy Air Mail
Standard Post International
Express Post International
Courier International
OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB
Zen Follower
I have updated this plugin to V2.4.2 and it has been submitted to the moderators. I will post here when it is available for download.
This upgrade of the Australia Post Shipping module uses the latest Australia Post API codes and URL and is compatible with PHP 7.4, PHP 8.0 and PHP 8.1.
It allows for the following delivery options.
Aust Standard
Aust Priority
Aust Express
Aust Express +sig
Aust Express Insured +sig
Aust Express Insured (no sig)
Regular Parcel
Regular Parcel +sig
Regular Parcel Insured +sig
Regular Parcel Insured (no sig)
Prepaid Satchel
Prepaid Satchel +sig
Prepaid Satchel Insured +sig
Prepaid Satchel Insured (no sig)
Express Parcel
Express Parcel +sig
Express Parcel Insured +sig
Express Parcel Insured (no sig)
Prepaid Express Satchel
Prepaid Express Satchel +sig
Prepaid Express Satchel Insured +sig
Prepaid Express Satchel Insured (no sig)
Letters are not offered as no items of commercial value can be send by International Letter
Sea Mail
Sea Mail +sig
Sea Mail Insured +sig
Sea Mail Insured (no sig)
Economy Air Mail
Economy Air Mail +sig
Economy Air Mail Insured +sig
Economy Air Mail Insured (no sig)
Standard Post International
Standard Post International +sig
Standard Post International Insured +sig
Standard Post International Insured (no sig)
Express Post International
Express Post International International +sig
Express Post International International Insured +sig
Express Post International International Insured (no sig)
Courier International
Courier International Insured
OldNGrey
environment Dev: Zen Cart 157d; Apache 2.4.46; PHP 8.0.20; 8.1.9 MySQL 5.5.5 -10.4.17-MariaDB; XAMPP v3.2.4; Windows 10 build 19041
PRODUCTION: Zen Cart 157d; Apache 2.4.41; PHP 7.4.3; MySQL 8.0.27; Ubuntu 5.4.0
GitHub: https://github.com/OldNGreyBMR
OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB
New Zenner
Hi, have been using the older version of this plugin and it seems to have an issue with my store in that if there are more than 35 items in the cart, the module falls over. A typical error log is below.
So, I updated it to your current version, but the same issue happens. If there are 35 items in the cart, all is well, if there are 36, the module falls over.
Is this something you have come across before? Seems a very odd issue, and no-one seems to have any idea about it (I posted in the forum a while back).
Also, another issue, I noticed that the cart was displaying the options that I had turned off in the module. For example, I don't use prepaid satchels and so they were turned off in admin, but in the front end they were still showing in the cart.
ZC version is 1.5.7 (no suffix, needs an update, I know), php 7.3, default ZC responsive template, very few mods overall.
Anyway, error log entry:
[13-Feb-2023 22:05:00 Australia/Sydney] Request URI: /index.php?main_page=shopping_cart, IP address: 154.6.151.140
#1 aupost->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/shipping_estimator.php:156]
#3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php:200]
#4 require(/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php) called at [/includes/templates/responsive_classic/common/tpl_main_page.php:177]
#5 require(/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant AUD - assumed 'AUD' (this will throw an Error in a future version of PHP) in /includes/modules/shipping/aupost.php on line 145.
[13-Feb-2023 22:05:00 Australia/Sydney] Request URI: /index.php?main_page=shopping_cart, IP address: 154.6.151.140
#1 aupost->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/shipping_estimator.php:156]
#3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php:200]
#4 require(/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php) called at [/includes/templates/responsive_classic/common/tpl_main_page.php:177]
#5 require(/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_AUPOST_HIDE_PARCEL - assumed 'MODULE_SHIPPING_AUPOST_HIDE_PARCEL' (this will throw an Error in a future version of PHP) in /includes/modules/shipping/aupost.php on line 302.
[13-Feb-2023 22:05:00 Australia/Sydney] Request URI: /index.php?main_page=shopping_cart, IP address: 154.6.151.140
#1 aupost->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/shipping_estimator.php:156]
#3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php:200]
#4 require(/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php) called at [/includes/templates/responsive_classic/common/tpl_main_page.php:177]
#5 require(/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_AUPOST_CORE_WEIGHT - assumed 'MODULE_SHIPPING_AUPOST_CORE_WEIGHT' (this will throw an Error in a future version of PHP) in /includes/modules/shipping/aupost.php on line 398.
[13-Feb-2023 22:05:00 Australia/Sydney] Request URI: /index.php?main_page=shopping_cart, IP address: 154.6.151.140
#1 aupost->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/shipping_estimator.php:156]
#3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php:200]
#4 require(/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php) called at [/includes/templates/responsive_classic/common/tpl_main_page.php:177]
#5 require(/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_AUPOST_CORE_WEIGHT - assumed 'MODULE_SHIPPING_AUPOST_CORE_WEIGHT' (this will throw an Error in a future version of PHP) in /includes/modules/shipping/aupost.php on line 398.
[13-Feb-2023 22:05:00 Australia/Sydney] Request URI: /index.php?main_page=shopping_cart, IP address: 154.6.151.140
#1 aupostoverseas->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/shipping_estimator.php:156]
#3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php:200]
#4 require(/includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php) called at [/includes/templates/responsive_classic/common/tpl_main_page.php:177]
#5 require(/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Use of undefined constant AUD - assumed 'AUD' (this will throw an Error in a future version of PHP) in /includes/modules/shipping/aupostoverseas.php on line 139.
Zen Follower
Lance
Firstly more specific information is required.
Exactly which "older version of this plugin" are you using. I didn't look at AuPost until v2.3 and that required modification to work with Australia Post and ZC157c as many things had changed since it was released in back in 2018.
Australia Post Shipping Module - Version: 2.4 worked with ZC 157 and PHP7.3
The more recent versions have improved.
I could not get V2.4 on zc157 to fail with 36 items in the shopping cart. What is the error message displayed?
Perhaps your 36 items are too large to be sent as one parcel with Australia Post.
OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB
New Zenner
Thanks for the fast response, it looks like I have 2.3, the overseas module says 2.3, the australia module says 2.2.1, no idea why they are different, they were uploaded from the same zip. But, when I rename them and upload the latest versions in all folders, the problem remains anyway.
When it fails, there is no error in the front end, just a php warning generated when the problem happens, so not really an error that shows up in the logs, but something is clearly failing somewhere.
To try it yourself, add 35 of these to the cart: https://www.ledsales.com.au/index.php?main_page=product_info&products_id=1997
You will notice 4 shipping options, the first two are from the aupost module. Now change it to 36 or more and update, those options go away. The items I sell are small and light, it isn't a weight or volume issue, just a quantity issue.
I set up the shipping tables as a fallback for when it happens, but it is a bit of a pain.
New Zenner
I also should have mentioned that I have the modules to disable when there is an error, which is why they disappear. If I set the latest version to a fixed rate on error instead, that works but it says something like "overlength" or similar, would be worth changing that default to something like "Fixed rate" maybe?
Zen Follower
Lance Turner:
I also should have mentioned that I have the modules to disable when there is an error, which is why they disappear. If I set the latest version to a fixed rate on error instead, that works but it says something like "overlength" or similar, would be worth changing that default to something like "Fixed rate" maybe?
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.
OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB
Zen Follower
I have updated this plugin to V2.5.3 and it has been submitted to the moderators. I will post here when it is available for download.
This upgrade of the Australia Post Shipping module uses the latest Australia Post API codes and URL and is compatible with PHP 7.4, PHP8.0 ,PHP 8.1 and PHP8.2.
It allows for the following delivery options.
Aust Standard
Aust Priority
Aust Express
Aust Express +sig
Aust Express Insured +sig
Aust Express Insured (no sig)
Regular Parcel
Regular Parcel +sig
Regular Parcel Insured +sig
Regular Parcel Insured (no sig)
Prepaid Satchel
Prepaid Satchel +sig
Prepaid Satchel Insured +sig
Prepaid Satchel Insured (no sig)
Express Parcel
Express Parcel +sig
Express Parcel Insured +sig
Express Parcel Insured (no sig)
Prepaid Express Satchel
Prepaid Express Satchel +sig
Prepaid Express Satchel Insured +sig
Prepaid Express Satchel Insured (no sig)
Letters are not offered as no items of commercial value can be send by International Letter
Sea Mail
Sea Mail +sig
Sea Mail Insured +sig
Sea Mail Insured (no sig)
Economy Air Mail
Economy Air Mail +sig
Economy Air Mail Insured +sig
Economy Air Mail Insured (no sig)
Standard Post International
Standard Post International +sig
Standard Post International Insured +sig
Standard Post International Insured (no sig)
Express Post International
Express Post International International +sig
Express Post International International Insured +sig
Express Post International International Insured (no sig)
Courier International
Courier International Insured
GitHub: https://github.com/OldNGreyBMR
OldNGrey
ZC222 PHP 8.4.16
MySQL 11.8.5-MariaDB
Tell staff why this post should be reviewed.