Re: ozpost shipping module
Quote:
Originally Posted by
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
Re: ozpost shipping module
Quote:
Originally Posted by
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
Re: ozpost shipping module
Quote:
Originally Posted by
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.
Re: ozpost shipping module
Quote:
Originally Posted by
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:
Re: ozpost shipping module
Quote:
Originally Posted by
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
Re: ozpost shipping module
Quote:
Originally Posted by
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...
Re: ozpost shipping module
Quote:
Originally Posted by
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
Re: ozpost shipping module
Quote:
Originally Posted by
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.
Re: ozpost shipping module
Is the server down again? It's not working at the moment...
Re: ozpost shipping module
Quote:
Originally Posted by
somedood
Is the server down again? It's not working at the moment...
No problems that I can see.