First question... What version of ozpost are you using? (please let me know, even though the following suggestion will probably fix this issue for you).
Suggestion for probable fix:
Go to your configuration settings -> shipping/packaging and set your Postal Code.
Then try installing the ozpost module again.
The error you are getting *shouldn't* be happening, because if the postcode isn't set the module should be using a default value of "9999" .. for some reason it appears that you don't have a valid postcode set, and the module isn't correctly detecting this fact, so it is trying to set a value of 'NONE' in a place where NONE isn't allowed.
This was a 'bug' that I noticed in the code a few versions back, which is why I added code to set a default value if the postcode wasn't already set, which is why I'm interested in know what version you are using.. If the current version then I need to take another look at the code, if an older version then I don't need to worry about it any longer.
Cheers
Rod
Yes, you should upgrade, but if you find this impractical you can make the following code changes to your V1.0.2
---------------------------------------------------------
ozpost v1.0.2 - line 338
Add:
Then change this:Code:$HOST= str_replace(" ", "+", $HOST) ;
;Code:$qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth&length=$parcellength&value=$ordervalue&flags=$flags&$method=$method&host=$HOST&version=$VERSION")
To:
CheersCode:$qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth&length=$parcellength&value=$ordervalue&flags=$flags&host=$HOST&version=$VERSION") ;
Rod
Hi
I am hoping someone can help me please.
I am totally stumped.
I have a fresh install of Zencart (latest version).
The lastest ozpost shipping module installed.
I went to do a test order but i get the message "not shipping to this destination at this time" (or something like that)....
I realised then I didn't have the Fixed Cost prices in - it was blank.
So I fixed this and now I come up with a "flat rate" of $7.00.
I do not have any other shipping module installed.
I do not have free shipping products etc.
I have the weight and dimensions in the products.
I have re-installed the ozpost module etc but I still come up with the same.
PLEASE help.
Kind Regards Casey
Hi
It is here.
Kind Regards Casey
Bookmarks