Zen Cart Logo
Forums / Addon Shipping Modules / ozpost shipping module

ozpost shipping module

Views: 403,108

Results 1,241 to 1,260 of 2,251
9 Oct 2010, 9:44 AM
#1241
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

ozpost shipping module

pinksugardesign:

Still no joy here.

I keep getting the old error rate, it still hasn't even updated that.
Bugger.

By chance you don't have any idea where I should start trouble shooting?

This sounds like it may be a cache problem. Try clearing your cache files and/or try using a different browser.

Cheers
Rod

9 Oct 2010, 10:10 AM
#1242
pinksugardesign avatar

pinksugardesign

New Zenner

Join Date:
Aug 2009
Posts:
17
Plugin Contributions:
0

Re: ozpost shipping module

The new error rate is now showing. I have just cleared the cache on my browser (after the new error rate showed) and still no joy.

How did you get the proper rates?
Bugger me this is going to be a pain...

9 Oct 2010, 11:42 AM
#1243
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

pinksugardesign:

The new error rate is now showing. I have just cleared the cache on my browser (after the new error rate showed) and still no joy.

How did you get the proper rates?
Bugger me this is going to be a pain...

Try disabling e-GO rates.

It looks like there is something amiss with there servers at the moment causing unexpected problems.

Cheers
Rod

9 Oct 2010, 9:53 PM
#1244
pinksugardesign avatar

pinksugardesign

New Zenner

Join Date:
Aug 2009
Posts:
17
Plugin Contributions:
0

Re: ozpost shipping module

E-go rates disabled and its working like a charm again. :clap:

You are nothing short of a life saver Rod, thanks so much for your help and quick resolution.

Much appreciated! If you are ever in the need for a decal - just let me know! :bigups:

24 Oct 2010, 2:55 PM
#1245
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

G'day Boys 'n' Girlz

Just a quicky to let those subscribed to this thread know that a new update of the ozpost,net client for zencart has been released.

Version 2.1.1 is now available for download at its home site http://ozpost.net

It has also been uploaded to the software add-ons section of the zencart site and should be made available in a week or so.

Main new features are support for Platinum parcels/satchels and support for express letters. Please see the changelog.txt file for more information.

Cheers
Rod

25 Oct 2010, 6:24 AM
#1246
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Re: ozpost shipping module

I'm just reading the changes and this line sticks out:

"Re-wrote the packing/stacking code so that multiple items are now treated as individual items."

What's the upshot of that change... are items no longer combined where possible?
Regards
Rob

25 Oct 2010, 7:27 AM
#1247
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

robax:

I'm just reading the changes and this line sticks out:

"Re-wrote the packing/stacking code so that multiple items are now treated as individual items."

What's the upshot of that change... are items no longer combined where possible?

Yes, items are still combined, but instead of 10 x item = L x W x (H*10) they are added one at at time within a loop that re-orientates the parcel with each iteration. The result being a cubeshaped parcel rather than pipe shaped.

This change has no effect when several different items are added to the cart.. it only affects multiple quantities of the same item.

Cheers
Rod

25 Oct 2010, 9:25 AM
#1248
robax avatar

robax

Zen Follower

Join Date:
Mar 2006
Posts:
187
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

Yes, items are still combined, but instead of 10 x item = L x W x (H*10) they are added one at at time within a loop that re-orientates the parcel with each iteration. The result being a cubeshaped parcel rather than pipe shaped.

This change has no effect when several different items are added to the cart.. it only affects multiple quantities of the same item.

Cheers
Rod

Ok cool, thanks for the information
Rob

25 Oct 2010, 6:39 PM
#1249
gmturner avatar

gmturner

New Zenner

Join Date:
Jun 2009
Posts:
26
Plugin Contributions:
0

Re: ozpost shipping module

Updated and now fastway shipping time estimate doesnt display correctly.

Also postage delay doesnt work

26 Oct 2010, 6:57 AM
#1250
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

gmturner:

Updated and now fastway shipping time estimate doesnt display correctly.

Actually, it is displaying the unmodified data send from the fastway server.

gmturner:

Also postage delay doesnt work

It does, but only in certain circumstances.

Let me explain ... there is a bit of an evolution processes going on here. The original postage delay was very simple because only one source of data was used, namely, Australia Post, and it supplied a single number/digit to indicate the estimated days delivery to the client, so all the module needed to do was add the number of days delay to this number, then add a bit of text to make it obvious what the number stood for, the text of course being 'Days Estimated delivery'

This was fine until I started adding other carriers each of which had their own methods of specifying the delivery time. SO, to mitigate this issue I added code to skip this behaviour with the new carriers. For all practical purposes this worked quite well, but what I didn't realise though that I failed to exclude FastWay from being treated in this manner... and because PHP doesn't enforce script coding habits instead of producing an error, it was allowing the code to add the days delay to a "number" like ("2 to 3").. it does this by ignoring anything after the '2', so if the dals delay was '3' then the reported estimate for "2 to 3" plus 4 = 6.
Now, because this is working only due to a bug, the number is now a single digit, so the client text "Day Estimated Delivery" was correctly/incorrecty added and everything appeared fine.

Anyway, I discovered this 'bug' whilst adding the Platinum Parcel methods and noted that the estimated days returned for these were no longer using the standard AustPost single number/no text - So I have been/am seeking a method to both fix the bug AND allow the differently formatted data from the server. To do this, A bit of lateral thinking gave me the idea of using the length of the string(s) returned, so if a "long" string was returned (such as "not avialalbe to all locations" then the module should display the string, 'as is'. If the string was short, then assume it was a number (or range of numbers) and then add the postage delay and other text.

I chose to make the 'switch' at 5 characters.. "2 to 3" is 6 characters so it is being displayed as is.

To revert back to the previous bevaviour edit line 572 of /includes/modules/ozpost.php and change

if (strlen($quote->days) > 4 )
to
if (strlen($quote->days) > 6 )

Anyway, that said, I still need to do some serious thinking/tinkering in regards to how to deal with this in the future... as mentioned, it currently only works with fastway due to an oversight combined with loose (poor) coding, the days delay has never had any affect with the other courier times.

I'm also not at all happy with the various inconsitancy of formats ... TNT for example estimates a particular date (taking weekends and holidays into account), Australia Post returns just a single number (for all but platinum)
Fastway provides a range of days, but only the numbers, no text, and so on.

It'd be nice if I had the server return them all in the same format, my personal preference would the format used by TNT, where it specifies a partcular date, but I can't just jump into doing that, because then it will break the postage delay stuff completely, and to mitigate this issue means the days-delay needs to be sent to the server so that they can be added before the request, rather than after the results are returned (Bugger, I meant to add that to this release so that if I did get around to looking at it serverside the client code wouldn't need to be updated again. Oh well. Next time.

The other (simpler) option would be to convert the very informative date based estimates down to the number of days format and add the delay client side...

Other than my current neglect to send the delay_days to the server it is theoretically possible to support both methods with no other changes to the client code.

Anyway, that's the story regarding this change... if you have any thoughts, opinions or suggestions as to how you'd like to see the estimated delivery times in the future then I'm all ears.

Cheers
Rod

30 Oct 2010, 3:34 AM
#1251
integrity_designs avatar

integrity_designs

Zen Follower

Join Date:
Nov 2009
Location:
North Bendigo, VIC, Australia
Posts:
157
Plugin Contributions:
0

Re: ozpost shipping module

**includes/templates/template_default/images/icons/ozpost_logo.gif **

How do I remove the above part from the postage section of shopping cart please (the part in bold I mean)?

I have tried placing the icon in the section etc, but it is not removing it.

I have just subscribed to the module today.

Everything else is working fine that I can see.
Kind Regards Casey

30 Oct 2010, 4:43 AM
#1252
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

integrity_designs:

**includes/templates/template_default/images/icons/ozpost_logo.gif **
How do I remove the above part from the postage section of shopping cart please (the part in bold I mean)?

I have tried placing the icon in the section etc, but it is not removing it.

This usually only shows when the icon is missing (or no permission to view), but after a number of tests/checks there does appear to be something amiss that I haven't quite put my finger on yet.

Meanwhile, the best fix is to load
/includes/modules/shipping/ozpost.php into a text editor, navigate to line #315, which currently reads:

$ozicon = ( $_SERVER['QUERY_STRING'] == "main_page=checkout_shipping" ) ? $this->logo:" " ;

Then replace this line with
$ozicon = " " ;
(That is a space character enclosed by quotes, followed by a semi colon).

Resave the file.

Cheers
Rod

31 Oct 2010, 1:10 AM
#1253
integrity_designs avatar

integrity_designs

Zen Follower

Join Date:
Nov 2009
Location:
North Bendigo, VIC, Australia
Posts:
157
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

This usually only shows when the icon is missing (or no permission to view), but after a number of tests/checks there does appear to be something amiss that I haven't quite put my finger on yet.

Meanwhile, the best fix is to load
/includes/modules/shipping/ozpost.php into a text editor, navigate to line #315, which currently reads:

$ozicon = ( $_SERVER['QUERY_STRING'] == "main_page=checkout_shipping" ) ? $this->logo:" " ;

Then replace this line with
$ozicon = " " ;
(That is a space character enclosed by quotes, followed by a semi colon).

Resave the file.

Cheers
Rod

Thank-you for your help. It is very much appreciated. :bigups:

Kind Regards Casey

4 Nov 2010, 2:23 AM
#1254
lissy avatar

lissy

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: ozpost shipping module

Hi, I just went to check some postage costs on my site, only to find that I'm getting no results back.
It shows "Available Shipping Methods" and "Rates" but then there's nothing underneath.
I'm not sure when it stopped working. I did check it after I subscribed and it was working then. My site is Learn Heaps.
I've checked my other site and it does seem to be working, so I'm not sure what's happened.

4 Nov 2010, 2:43 AM
#1255
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

Lissy:

Hi, I just went to check some postage costs on my site, only to find that I'm getting no results back.
It shows "Available Shipping Methods" and "Rates" but then there's nothing underneath.

I've just tried to verify this, and it seems that you are offering Free Shipping on every single item I've looked at.

You MAY have done this as a result of the apparent problem you were having, or it may be the problem itself.. You haven't really provided enougth information.

Lissy:

I'm not sure when it stopped working. I did check it after I subscribed and it was working then. My site is Learn Heaps.
I've checked my other site and it does seem to be working, so I'm not sure what's happened.

Nothing amiss at the server end, and it is obvious that whatever the problem is, it is local to one of your stores only. Enabling the DEBUG option is generally very informative in cases like this.

Cheers
Rod

4 Nov 2010, 2:58 AM
#1256
lissy avatar

lissy

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod
Okay, I've turned debug on. Hopefully it tells you something useful, because I can't see anything obvious!!

I have 2 types of products.
One lot have free shipping, and have a "Free Shipping" logo in the product list. When I estimate shipping on those, I'm getting the free shipping option showing up and nothing else, which is fine and how it should work.
The problem is all the rest of my products, which should have shipping listed as it's not included in the product's price, but these are returning a blank result - ie just the table headers and nothing underneath that. An example is:
http://learnheaps.com/zencart/literacy/abc-alphabet-wall-border-frieze-poster

4 Nov 2010, 3:00 AM
#1257
lissy avatar

lissy

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: ozpost shipping module

Oh, and I notice the VCSWEB section under debug is coming up with a 403-Forbidden error page. Is that correct or am I supposed to be able to see helpful stuff there?

4 Nov 2010, 9:10 AM
#1258
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

Lissy:

Okay, I've turned debug on. Hopefully it tells you something useful, because I can't see anything obvious!!

The permission denied is of significant concern, I'm currently at a loss to expain it ....

Lissy:

I have 2 types of products.
One lot have free shipping, and have a "Free Shipping" logo in the product list. When I estimate shipping on those, I'm getting the free shipping option showing up and nothing else, which is fine and how it should work.
The problem is all the rest of my products, which should have shipping listed as it's not included in the product's price, but these are returning a blank result - ie just the table headers and nothing underneath that. An example is:
http://learnheaps.com/zencart/literacy/abc-alphabet-wall-border-frieze-poster

At least now I have something to work with.... I wonder how long it would have taken me to stumple onto an item that didn't have free shipping? (not long actually, I stop looking after 5 seconds). It is easier (but takes longer) for me to wait until a suitable link is provided :-)

Do you have any other useful information? Such as are there any other problems? Hints about changes or updates that may have caused the problem?

I'll run a few more test/checks later this evening..

Cheers
Rod

4 Nov 2010, 9:43 AM
#1259
lissy avatar

lissy

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: ozpost shipping module

It would be nice to say that I check the postage calculator daily, but as I don't think I have since I subscribed, it's a bit hard to put the finger on when it went funny. I don't "fiddle" with the site much though!
The only change made recently was I was trying to change something, which involved altering
admin/includes/configure.php
includes/configure.php
To do it, though, I just renamed the existing file configure_old.php in both directories, fiddled with a copy, then when it didn't work, deleted the copy and renamed the old file back to configure.php
I have double checked these files and they're dated 2008, so they've definitely gone back to the old versions when the postage calculator worked fine, so I'm not really sure if there's any way that's upset something.

4 Nov 2010, 2:45 PM
#1260
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

Lissy:

I have double checked these files and they're dated 2008, so they've definitely gone back to the old versions when the postage calculator worked fine, so I'm not really sure if there's any way that's upset something.

Hopefully you have seen my PM by now?

Cheers
Rod