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

ozpost shipping module

Views: 403,032

Results 321 to 340 of 2,251
28 Oct 2009, 12:47 AM
#321
rodg avatar

rodg

Deceased

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

ozpost shipping module

Stumpy74:

Yes I have turned on debug and yes I have turned on cURL but I don't have the cURL info from my web provider yet. Is that needed for it to display as an option at the shipping method option ? (this might be a simple answer at this point)

Maybe, but generally no. Depends if your ISP uses a proxy or not.

Stumpy74:

Anyway this is what I am seeing

The debug.jpg is too small for me to read.
The other image suggests that you don't have a delivery address (Can't quote unless tjhe module knows the destination).

Stumpy74:

The fact I get a server response time - is that a good thing ?

Maybe, but it depends on what the time actually is.. The module will always provide some kind of response time even if it can't connect to the servers.. in this case the time will be quite high.
However, if you are getting a negative response time it usually means a connectivity issue.

I really can't tell from the images you provided.

Also, a URL would be handy.

Cheers
Rod

28 Oct 2009, 4:30 AM
#322
stumpy74 avatar

stumpy74

New Zenner

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

Re: ozpost shipping module

mmm....yes I see the images drama

how about this

Debug

Shipping Method

I did Black out the Shipping address ( from the customer profile) on the left just for a bit of security

Thanks Rod

28 Oct 2009, 11:13 AM
#323
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Stumpy74:

how about this

The images didn't offer many clues, but the URL for them was very helpful. ;smile;

Stumpy74:

I did Black out the Shipping address ( from the customer profile) on the left just for a bit of security

Thanks Rod

Darn it. I really do need to improve my mind reading skills.

Anyway, your problem. Enable cURL. If that doesn't fix it leave it enabled and get back to me.

Cheers
Rod

ps. Leave the proxy settings blank unless told otherwise.

28 Oct 2009, 10:35 PM
#324
stumpy74 avatar

stumpy74

New Zenner

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

Re: ozpost shipping module

The images didn't offer many clues, but the URL for them was very helpful. ;smile;

the things we do for love...........

Yeah I enabled it under MyStore Rod, its also on in the ozpost module. Still no luck

29 Oct 2009, 12:27 AM
#325
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

Stumpy74:

the things we do for love...........

Yeah I enabled it under MyStore Rod, its also on in the ozpost module. Still no luck

I can now confirm that your store is contacting the servers ok and returning valid results.

I'm going to take a punt and suggest that your server is probably using PHP4.x.

The ozpost module requires PHP5 ... Almost every ISP will have this as an option these days.

Cheers
Rod

29 Oct 2009, 10:51 AM
#326
brindleybear avatar

brindleybear

New Zenner

Join Date:
Oct 2009
Posts:
3
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod,
I have been trawling through the forums for the last 2 sleepless nights:shocking:. I have installed ozpost and am having some difficulty. This is as much of the relevent information as I can give you.
If you have any ideas could you please let me know.
Here goes

**The problem
**
Shows “estimate shipping costs”

Add post code for Australia

Hit Update

Then the Shipping section disappears

Refresh page

Shipping section reappears

Available shipping methods and rates heading shows with no information in the table.
**
Other Information:**
Hide parcel rates if letter sized NO

Use cURL Yes

Weight is in grams

Ozpost and Free shipping are enabled- all other modules are disabled.
I have tried turning off Free shipping, reinstalled ozpost from scratch
And made sure that the template files are placed in the right folders ( I am not using Classic)

When I tried the debug mode – the information for the parcel size and weight appeared and there was a response from the server.

It's probaby my error but any ideas would be appreciated. And thanks for designing a shipping module for Australia.

https://www.inakaproject.com

29 Oct 2009, 11:13 AM
#327
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

brindleybear:

If you have any ideas could you please let me know.

What version of PHP is your server using?

ozpost requires php5

Cheers
Rod

29 Oct 2009, 11:24 AM
#328
brindleybear avatar

brindleybear

New Zenner

Join Date:
Oct 2009
Posts:
3
Plugin Contributions:
0

Re: ozpost shipping module

I had a look at this and it is php5 Fast CGI- whatever that means. Dreamhost hosting. Should I try the other setting of PHP5 CGI???

Thanks for getting back so fast!

29 Oct 2009, 11:34 AM
#329
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

brindleybear:

I had a look at this and it is php5 Fast CGI- whatever that means. Dreamhost hosting. Should I try the other setting of PHP5 CGI???

As a process of elimination, yes please. If it doesn't make any apparrent difference put it back as it was.

brindleybear:

Thanks for getting back so fast!

Just lucky timing on your part. :-)

Cheers
Rod

29 Oct 2009, 11:35 AM
#330
brindleybear avatar

brindleybear

New Zenner

Join Date:
Oct 2009
Posts:
3
Plugin Contributions:
0

Re: ozpost shipping module

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.
Where do you find the time?

29 Oct 2009, 11:43 AM
#331
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

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?

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

5 Nov 2009, 2:44 AM
#332
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

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:

// 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:

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...

  1. 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.

5 Nov 2009, 3:15 AM
#333
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

Re: ozpost shipping module

I've just spotted where the extra $1.00 comes from with the Registered articles. Sorry...

5 Nov 2009, 3:51 AM
#334
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

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:

<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):

$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';

5 Nov 2009, 3:57 PM
#335
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

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.

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.

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.

tpeck:

  1. 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.

tpeck:

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

Thanks. I'll grab them later.

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

5 Nov 2009, 4:09 PM
#336
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

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

9 Nov 2009, 4:58 AM
#337
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: ozpost shipping module

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.

10 Nov 2009, 7:11 AM
#338
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

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

10 Nov 2009, 2:58 PM
#339
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

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.

tpeck:

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

PDF would be a better format. :yes:

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.

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

11 Nov 2009, 1:42 AM
#340
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

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???