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

ozpost shipping module

Views: 403,051

Results 501 to 520 of 2,251
3 Mar 2010, 10:44 AM
#501
rodg avatar

rodg

Deceased

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

ozpost shipping module

HelenC13:

I think I've figured it out - I think it was the gms / kgs that had me confused because in the description page it is kg's, but I had selected gms,

I have to admit that this (the weight factor) is one of the things that trip most people up. The reason being is that their is no 'connection' between what is displayed on screen (text) and the actual value of the 'units' that the shipping modules use. It is up to the end user make the correct match.

HelenC13:

and the extra packing it adds was bringing them to over 500g, so I've conquered that by just having it add 2%
thanks!:D

Congratulations ... far to many people (in my opinion) set this to 0%,
It is actually a pleasure to meet someone that realises/appreciates that in some instances the tare weights can make a significant difference in cost.

Cheers
Rod

4 Mar 2010, 12:45 AM
#502
rhodie1000 avatar

rhodie1000

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: ozpost shipping module

I have just installed the ozpost module and am getting "Unexpected error (no valid methods). Using AP Flat Rate. "

Strange thing is that when I set debug on, it works.

When I did the install I had to change some code in ozpost.php as below as $pcode had NONE causing an error.

I have tried with cURL set to yes.

I am sure that is is something stupid I am doing. Thanks for any help.


function install()
{
global $db;

  $result = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'SHIPPING_ORIGIN_ZIP'"  ) ;
  $pcode = $result->fields['configuration_value'] ;

-->> if ($pcode == 'NONE') {
-->> $pcode = 2000;
-->> }

4 Mar 2010, 1:05 AM
#503
rhodie1000 avatar

rhodie1000

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: ozpost shipping module

rhodie1000:

I have just installed the ozpost module and am getting "Unexpected error (no valid methods). Using AP Flat Rate. "

Strange thing is that when I set debug on, it works.

When I did the install I had to change some code in ozpost.php as below as $pcode had NONE causing an error.

I have tried with cURL set to yes.

I am sure that is is something stupid I am doing. Thanks for any help.


function install()
{
global $db;

  $result = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'SHIPPING_ORIGIN_ZIP'"  ) ;
  $pcode = $result->fields['configuration_value'] ;

-->> if ($pcode == 'NONE') {
-->> $pcode = 2000;
-->> }

I found the solution. I had gms selected and not Kgs. Thanks to RodG.

4 Mar 2010, 2:50 AM
#504
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

rhodie1000:

I have just installed the ozpost module and am getting "Unexpected error (no valid methods). Using AP Flat Rate. "

I see from your followup post that you have solved your problem, however I thought I'd explain a bit about about the postcode change that you thought you needed to make.

rhodie1000:

$result = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'SHIPPING_ORIGIN_ZIP'" ) ;
$pcode = $result->fields['configuration_value'] ;
-->> if ($pcode == 'NONE') {
-->> $pcode = 2000;
-->> }

What this piece of code is actually doing is during installation extracting the store location postcode from the zencart "shipping and packaging" configuration settings and using the information to populate the "dispatch postcode" field of the ozpost module.

IF the "shipping and packaging" values haven't yet been set (and yours apparently hasn't) then the installation would/should set a valid, but arbitary value (9999, I think) rather than leaving the field empty (which would produce an error).

Regardless of the outcome of this test and insert, it is still only a default value that can be changed at any time with the "dispatch postcode" field of the ozpost module.

Cheers
Rod

4 Mar 2010, 9:04 PM
#505
rhodie1000 avatar

rhodie1000

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

IF the "shipping and packaging" values haven't yet been set (and yours apparently hasn't) then the installation would/should set a valid, but arbitary value (9999, I think) rather than leaving the field empty (which would produce an error).

Cheers
Rod

Rod, Thanks for the detailed reply. As you can see, I am a newbie to Zen Cart and I did eventually realise my mistake with the post code. :oops:

Your response is much appreciated. :yes:

5 Mar 2010, 10:24 PM
#506
rhodie1000 avatar

rhodie1000

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: ozpost shipping module

I have a problem that is described in the link to the post below. "Dimensions do not display for my parcels. I get Dims: xx Boxes: ".

http://www.zen-cart.com/forum/showpost.php?p=722191&postcount=70

The answer here is that it is a bug. This is the only reference I can find. I am sure that it is another silly mistake on my part and was wondering if anyone knows the answer.

Thanks.

6 Mar 2010, 8:11 AM
#507
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: ozpost shipping module

rhodie1000:

I have a problem that is described in the link to the post below. "Dimensions do not display for my parcels. I get Dims: xx Boxes: ".

http://www.zen-cart.com/forum/showpost.php?p=722191&postcount=70

The answer here is that it is a bug. This is the only reference I can find. I am sure that it is another silly mistake on my part and was wondering if anyone knows the answer.

Thanks.

Hey Rod,

Probably a stupid question with an easy fix, and most likely not ozpost related..

I've created 8 separate zones and installed zonetables to get around the over 20kg limit and calculate freight for each state, but the shipping estimator does not show up states, which renders the zonetables option useless unless the user is registered.

I attempted to un-comment out the relevant states settings in the tpl_modules_shipping_estimator.php file, but all that did was break the estimator..!

Any clues..?

6 Mar 2010, 9:26 AM
#508
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: ozpost shipping module

Mike_Dean:

Hey Rod,

Probably a stupid question with an easy fix, and most likely not ozpost related..

I've created 8 separate zones and installed zonetables to get around the over 20kg limit and calculate freight for each state, but the shipping estimator does not show up states, which renders the zonetables option useless unless the user is registered.

I attempted to un-comment out the relevant states settings in the tpl_modules_shipping_estimator.php file, but all that did was break the estimator..!

Any clues..?

Sorted it out.. grabbed an original file and dumped that it, now I have all three options, Country, State and Postcode...

6 Mar 2010, 10:17 AM
#509
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

rhodie1000:

I have a problem that is described in the link to the post below. "Dimensions do not display for my parcels. I get Dims: xx Boxes: ".

http://www.zen-cart.com/forum/showpost.php?p=722191&postcount=70

The answer here is that it is a bug. This is the only reference I can find. I am sure that it is another silly mistake on my part and was wondering if anyone knows the answer.

Thanks.

It's a bug.

Cheers
Rod

6 Mar 2010, 1:01 PM
#510
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: ozpost shipping module

Rod,

I'm doing my head in here..

I use the Prepaid Satchels as an option, and in the estimator, and or at checkout, if that option is available, it displays

3kg Prepaid Satchel Express

I want to rename it Express Satchel

But I cannot find the instance anywhere where 3kg Prepaid Satchel Express is documented..

:frusty:

6 Mar 2010, 1:11 PM
#511
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Mike_Dean:

Rod,

I'm doing my head in here..

I use the Prepaid Satchels as an option, and in the estimator, and or at checkout, if that option is available, it displays

3kg Prepaid Satchel Express

I want to rename it Express Satchel

But I cannot find the instance anywhere where 3kg Prepaid Satchel Express is documented..

:frusty:

The text comes from the server. If you wish to change it you'll need to add a line or two of code into the ozpost.php file (one to test, the other to change).

Cheers
Rod

6 Mar 2010, 1:17 PM
#512
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

The text comes from the server. If you wish to change it you'll need to add a line or two of code into the ozpost.php file (one to test, the other to change).

Cheers
Rod

Thanks,

At least I know where it comes from now.. as for me writing code... hmmmmm...

Any chance you could offer some input ?

Cheers,
Mike

6 Mar 2010, 10:49 PM
#513
rhodie1000 avatar

rhodie1000

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

It's a bug.

Cheers
Rod

Thanks for the quick response Rod. Do you have anymore info on the bug. I have seen in some posts that it does display sometimes. Just wondering if there is a work around.

6 Mar 2010, 11:39 PM
#514
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: ozpost shipping module

integrity_designs:

How would this be done though? (which files etc) I am only just learning PHP / Zen Cart etc.

Kind Regards

If anyone can work this out, I for one would love to know! :smile:

7 Mar 2010, 2:43 AM
#515
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Mike_Dean:

Thanks,

At least I know where it comes from now.. as for me writing code... hmmmmm...

Any chance you could offer some input ?

Cheers,
Mike

In the ozpost.php file, search for the line that reads:
$description = ($xml->quote[$i]->description);

Then immediately after this, add the following:

if ( $description == "3kg Prepaid Satchel Express") {
$description = "Express Satchel" ;
}

I think that should work without any repercussions, but haven't actually tried it.

Cheers
Rod

7 Mar 2010, 2:54 AM
#516
mike_dean avatar

mike_dean

Totally Zenned

Join Date:
Feb 2006
Location:
Central Coast, NSW, Australia
Posts:
531
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

In the ozpost.php file, search for the line that reads:
$description = ($xml->quote[$i]->description);

Then immediately after this, add the following:

if ( $description == "3kg Prepaid Satchel Express") {
$description = "Express Satchel" ;
}

I think that should work without any repercussions, but haven't actually tried it.

Cheers
Rod

Your blood is worth bottling... worked perfectly

Thanks Rod...

7 Mar 2010, 2:54 AM
#517
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

rhodie1000:

Thanks for the quick response Rod. Do you have anymore info on the bug. I have seen in some posts that it does display sometimes. Just wondering if there is a work around.

There are few of lines of code that didn't get ported from 'austpost' over to 'ozpost' - So the posts that say it 'displays sometimes' are either pure BS or they are referring to the older/obsolete module.

There are two fixes/workArounds.

If you just want to get rid of the 'xx's revert the tpl_modules_shipping_estimator.php file back to the original zencart copy.

If you want the dimension data to be displayed (so instead of "xx" it will show something like "2x3x4" you'll need to add the 'missing' lines to the oppost.php file.

Specifically: Locate the line that reads"

if (MODULE_SHIPPING_OZPOST_WEIGHT_FORMAT == "kgs") {$parcelweight = $parcelweight * 1000 ; }

Then immediatly after this line add the following:

$_SESSION['swidth'] = $parcelwidth ;
$_SESSION['sheight'] = $parcelheight ;
$_SESSION['slength'] = $parcellength ;
$_SESSION['boxes'] = $shipping_num_boxes ;

Cheers
Rod

8 Mar 2010, 8:48 AM
#518
rhodie1000 avatar

rhodie1000

New Zenner

Join Date:
Mar 2010
Posts:
6
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

There are few of lines of code that didn't get ported from 'austpost' over to 'ozpost' - So the posts that say it 'displays sometimes' are either pure BS or they are referring to the older/obsolete module.

There are two fixes/workArounds.

If you just want to get rid of the 'xx's revert the tpl_modules_shipping_estimator.php file back to the original zencart copy.

If you want the dimension data to be displayed (so instead of "xx" it will show something like "2x3x4" you'll need to add the 'missing' lines to the oppost.php file.

Specifically: Locate the line that reads"

if (MODULE_SHIPPING_OZPOST_WEIGHT_FORMAT == "kgs") {$parcelweight = $parcelweight * 1000 ; }

Then immediatly after this line add the following:

$_SESSION['swidth'] = $parcelwidth ;
$_SESSION['sheight'] = $parcelheight ;
$_SESSION['slength'] = $parcellength ;
$_SESSION['boxes'] = $shipping_num_boxes ;

Cheers
Rod

Thanks once again for your help Rod. Worked like a charm.

Just to correct the typo for any newbie like me, oppost = ozpost.

9 Mar 2010, 1:30 PM
#519
somedood avatar

somedood

New Zenner

Join Date:
Sep 2009
Posts:
18
Plugin Contributions:
0

Re: ozpost shipping module

Is the server down again? It's not working at the moment...

9 Mar 2010, 2:31 PM
#520
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

somedood:

Is the server down again? It's not working at the moment...

No problems that I can see.