Re: ozpost shipping module
Quote:
Originally Posted by
brindleybear
Hi Rod,
I have played with PHP settings with my host and it is all god now. Thanks for your help and sending me in the right direction.
For the benefit of other Dreamhost users, could you take note of the settings that you have found to work and post them here?
Quote:
Originally Posted by
brindleybear
Where do you find the time?
You know how we've had Daylight savings for many years? Well, I found the nightsafe they keep it in, and managed a daylight robbery, so I get to sneak in an extra hour or two each day :-)
Cheers
Rod
Re: ozpost shipping module
Dear Rod,
Hello again...I have finally got around to replacing Austpost with ozpost. Thanks! Glad to see you have another hit on your hands.
It works well. A few things. My visitors are mostly non-English speaking, so I prefer large icons. I got them happening in the austpost mod. The only thing I can't seem to get as before is the number of (shipping) days enlarged - this is from the austpost.mod:
Quote:
// class methods
function quote($method = '') {
global $db, $order,$cart, $shipping_weight, $shipping_num_boxes, $total_weight, $currencies ;
$bignumber="<span style=\"font-size: 20px ; vertical-align: top ; font-weight: bold ; \" > ";
Can something similar be done in ozpost?
You can see the days are quite small relative to the jpgs in my cart:
http://aapress.com.au/zencart
A couple of other small niggly things that apply to a larger graphic set...
1. I've changed Packaging & Handling to "Packing/Handling" to shorten it.
2. I've changed the fee to "$3" to avoid the "$2.8" with no trailing zero:
Quote:
if (MODULE_SHIPPING_OZPOST_HIDE_HANDLING !='Yes')
{
$details = ' (Inc. ' . $currencies->format($add / $aus_rate ). ' Packing/Handling ';
if ($info > 0) {
$info = $info + 1; // Terry added this line so that it reads $3 rather than $2.8
$details = $details." +$".$info." fee)." ;
I figure the cost is included, so it won't matter. But is there a way to alter the $1.00 and $2.00 Packaging so it becomes just "$1 and $2"? I can't seem to figure it.
I guess it's not so important, but I'm trying for consistency. Else, how can we make the $2.8 into "$2.80". I tried...
3. How does the $2.00 Packaging & Handling come about for a Registered item? I would like $1.00 only.
I think that's about it. I can send you the large icons if you would like to offer them as an alternative.
Actually, you can download them from here...
http://aapress.com.au/dloads/ozpostlargejpgs.zip
I have some vague recollection that someone other than me might have contributed a letter graphic or two to this set, so I'm acknowledging his contribution and hope he doesn't mind.
Re: ozpost shipping module
I've just spotted where the extra $1.00 comes from with the Registered articles. Sorry...
Re: ozpost shipping module
In Zencart admin, the ozpost logo isn't showing up:
Checking the "/.../modules.php?set=shipping&module=ozpost" source code I see two instances of:
Quote:
<img src="DIR_WS_TEMPLATEStemplate_default/images/icons/ozpost_logo.jpg" border="0" alt="Aussie Post" title=" Aussie Post ">
I can't seem to track down the problem. Something to do with this perhaps in ozpost.php? (admin version):
Quote:
$this->icon_del = $template->get_template_dir('ozpost_del.jpg', '' , '','images/icons'). '/ozpost_del.jpg';
$this->logo = $template->get_template_dir('ozpost_logo.jpg', '' , '','images/icons'). '/ozpost_logo.jpg';
Re: ozpost shipping module
Quote:
Originally Posted by
tpeck
The only thing I can't seem to get as before is the number of (shipping) days enlarged - this is from the austpost.mod:
Can something similar be done in ozpost?
Yes, but you'll need to manually edit the code. I suggest you use the old AustPost for an example of what needs to be done.
I'll try to remember to re-add this with the next update.
Quote:
Originally Posted by
tpeck
I figure the cost is included, so it won't matter. But is there a way to alter the $1.00 and $2.00 Packaging so it becomes just "$1 and $2"? I can't seem to figure it.
It shouldn't be difficult, but I'd need to review my code before I can really say what you will need to change.
Quote:
Originally Posted by
tpeck
I guess it's not so important, but I'm trying for consistency. Else, how can we make the $2.8 into "$2.80". I tried...
Yeah, I'm not sure what is going on with this myself either.. If memory serves correctly I think I even have a comment in my code somewhere that says something like "This should work, but it doesn't. Need to get back to it later" .
I haven't gotten back to it yet.
Quote:
Originally Posted by
tpeck
3. How does the $2.00 Packaging & Handling come about for a Registered item? I would like $1.00 only.
That is a setting under the admin settings. The same value is used for registered and insured items.
Quote:
Originally Posted by
tpeck
Thanks. I'll grab them later.
Quote:
Originally Posted by
tpeck
I have some vague recollection that someone other than me might have contributed a letter graphic or two to this set, so I'm acknowledging his contribution and hope he doesn't mind.
I've actually had several people that have contributed various different graphic sets for this module.
What I hope to do at some stage is make them 'themeable' so that people can easily select which set they wish to use. It is 'obvious' that no single set of graphics is suitable for all users. Heck, I can't even decide which set I like best myself. Everyone has done such a nice job on them.
Cheers
Rod
Re: ozpost shipping module
Quote:
Originally Posted by
neridal
Hi,
I just downloaded the new version of OzPost...
There are no files (or directory) for includes/languages/english etc in the zip file I downloaded, so when I installed it I got errors complaining that the files don't exist....
Is there something missing in the download area, or did mine just not download properly?
Thanks for your great work to provide this module, it has saved me many days of work....
Nerida.
There is nothing missing from the file in the download directory. (I just downloaded and checked). I'm going to take a punt and suggest that your download is/was ok, but when you extracted the files you didn't have your unzip program extract the directorys, so all files ended up in the top level directory where you extracted too.
Cheers
Rod
Re: ozpost shipping module
Quote:
Originally Posted by
tpeck
I guess it's not so important, but I'm trying for consistency. Else, how can we make the $2.8 into "$2.80". I tried...
You could simply replace the following line of code in 'includes\modules\shipping\ozpost.php (around line 467 in mine, but i've edited substantially):
$details = $details." + $" . $info . " fee)" ;
...with this...
$details = $details." + $" . number_format($info, 2, '.', '') . " fee)" ;
worked for me, but this doesn't take into account other currencies and/or rules surrounding them.
Re: ozpost shipping module
Dear Rod,
Have you had a chance to check out the graphic not showing up problem in Zencart admin?
Meanwhile, I have spent a few hours editing your notepad files so that they can be more easily read and followed:
http://aapress.com.au/dloads/ozpostmod.doc
It's not a criticism! Just that it might help others reading what at present are unedited files. (It's what I do for a living, so no big deal.)
I don't claim they are now perfect, but they should help get your ozpost mod up and running quicker. Did for me!
Terry
Re: ozpost shipping module
Quote:
Originally Posted by
tpeck
Have you had a chance to check out the graphic not showing up problem in Zencart admin?
No, not really, mainly on account of the fact that it isn't supposed to show up there.
Quote:
Originally Posted by
tpeck
PDF would be a better format. :yes:
Quote:
Originally Posted by
tpeck
It's not a criticism! Just that it might help others reading what at present are unedited files. (It's what I do for a living, so no big deal.)
Not taken as criticism either.
Quote:
Originally Posted by
tpeck
I don't claim they are now perfect, but they should help get your ozpost mod up and running quicker. Did for me!
Terry
I don't wish to offend you (or negate your efforts), but the 'notepad' text file format is pretty much 'standard' for distribution archives, on account of the fact they are small, and can be easily read using any computer system (not just those with a MS .doc reader). PDF's are a little better in their cross platform compatibility, but both formats require a GUI interface, which isn't always practical. As such, the .txt files do need to remain in the distribution archives.
I also don't like to 'encourage' the use of .doc files (it's a personal thing, and I get upset when people think it is *the* standard, rather than a licenced microsoft product), so I'm reluctant to include it in the distribution files. However, I do agree with you that many people, probably even most people would prefer the .doc format that you have put together, so perhaps, rather than sacrifice my principles :laugh: I'll add a header or something to the archive with a link to where they can download them from you. How's that sound?
Cheers
Rod
Re: ozpost shipping module
Points taken - you are perfectly right. I guess I could always open the .txt files in Wordpad or something and print them out one by one, but I like to save paper!
It's up there as a .pdf now too. Your call, naturally.
Still foxed as to why those graphics don't display! Maybe it's because I'm using a theme???