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

ozpost shipping module

Views: 403,028

Results 281 to 300 of 2,251
04 Oct 2009, 23:57
#281
p1drobert avatar

p1drobert

New Zenner

Join Date:
May 2007
Location:
Melbourne, Australia
Posts:
88
Plugin Contributions:
0

ozpost shipping module

RodG:

It is code, so yes of course it is possible.

If you really meant to say is it possible for me to do this for you I'd have to say I wouldn't even consider wasting time even looking at it.

Hi Rod,
No, I meant something along the lines of "try adding something in line xx of ospost.php" I'm not an expert on PHP but I tend to teach myself enough to get by, or at least sometimes I do.

In a perfect world I guess it should be, but this isn't a perfect world and I'm an inherently lazy person, so rather than study how zencart itself handles session data I simply chose to use the garden variety session commands that are part of the PHP command syntax.

LOL. Thats generally my philosophy as well. I just do the bare minimum to get the job done and move onto something else. Lifes too short to be anal about technique.

I've already tried setting a path instruction in ozpost.php but an error comes up as the path has already been defined in zencart. I'll tinker around with it and try to figure something out. I'll post something if I work something out.

05 Oct 2009, 01:35
#282
jour avatar

jour

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod,

Our old ozpost shipping module stopped working last week, does the new module work with zen version v1.3.7?

Phil.

05 Oct 2009, 02:52
#283
peter_homann avatar

peter_homann

Zen Follower

Join Date:
Jun 2006
Location:
Melbourne, VIC
Posts:
106
Plugin Contributions:
0

Re: ozpost shipping module

Jour:

Hi Rod,

Our old ozpost shipping module stopped working last week, does the new module work with zen version v1.3.7?

Phil.

Yes it does. I use it with 1.3.7

Cheers,

Peter.

05 Oct 2009, 03:21
#284
jour avatar

jour

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: ozpost shipping module

Peter Homann:

Yes it does. I use it with 1.3.7

Cheers,

Peter.

Thanks!

06 Oct 2009, 04:04
#285
jour avatar

jour

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: ozpost shipping module

Thanks Rod!

Works well as auspost module did :D

http://www.jour.com.au

07 Oct 2009, 15:53
#286
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,016
Plugin Contributions:
2

Re: ozpost shipping module

Extracted from http://www.zen-cart.com/forum/showthread.php?p=790810#post790810

Re: Force Shipping Quote on certain categories?

I think I have resolved the problem of forcing a quote.

I am only using the Ozpost and Request for Quote (RFQ) shipping modules, with the solution lying within includes\modules\shipping\ozpost.php.

Within this file, to disable Ozpost and only display RFQ, immediately after (lines 67-68)
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) $this->enabled = ((MODULE_SHIPPING_OZPOST_STATUS == 'True') ? true : false);

insert
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','4') > 0)) {
$this->enabled = false;
}
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','5') > 0)) {
$this->enabled = false;
}
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','6') > 0)) {
$this->enabled = false;
}

For individual products, replace ('master_categories_id','6') with ('products_id','26') etc.

Further insight can be found at http://www.zen-cart.com/forum/showthread.php?t=91394.

To force quote on Ozpost server failures, in Admin > Modules > Shipping > Australia Post (ozpost) set
Cost on Error
from 25,99
to 0,0

Hope this helps.

08 Oct 2009, 02:26
#287
kellan4459 avatar

kellan4459

New Zenner

Join Date:
Dec 2008
Posts:
79
Plugin Contributions:
0

Re: ozpost shipping module

Is there a way I can have the following shipping options?

flat rate shipping for australian customers
and then a seperate rate for New Zealand customers
then also a flate rate for registered post
and then one for express

so four options all having a set price.

08 Oct 2009, 05:42
#288
poohbear avatar

poohbear

New Zenner

Join Date:
Jan 2008
Posts:
12
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rob,

Sorry to remind you, I've mentioned previously about a minor problem regarding the international and domestic letter rates coming up erroneously. is there a quick fix to that?

Thank you again for your help!

*Below is the original problem:
it seems that the international rates (specifically, letter rates) appear even though "oversea" shipping methods are all disabled. Is there any way around that as I would only require International Express for international.(Ps i'm using ozpost 1.02)
Any help would be appreciated. *

08 Oct 2009, 07:56
#289
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

kellan4459:

Is there a way I can have the following shipping options?

flat rate shipping for australian customers
and then a seperate rate for New Zealand customers
then also a flate rate for registered post
and then one for express

so four options all having a set price.

There are several shipping modules available that will suit your requirement. ozpost is not one of them.

Cheers
Rod

08 Oct 2009, 08:05
#290
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

poohbear:

Sorry to remind you, I've mentioned previously about a minor problem regarding the international and domestic letter rates coming up erroneously. is there a quick fix to that?

At the moment no. This problem can almost certainly be resolved by code changes at either the client or the server, and for consistancy (and accuracy) this is best done on the server.
I suspect in either case similar 'effort' would be required, so rather than looking for a 'quick fix' that is where I'll be heading.

Thanks for reminding me though..
I really do have it on my 'todo' list, but another reminder in another couple of weeks may not go astray.

Cheers
Rod

09 Oct 2009, 01:10
#291
shen avatar

shen

New Zenner

Join Date:
Nov 2007
Posts:
30
Plugin Contributions:
0

Re: ozpost shipping module

Hi all,

I was having the same "SimpleXMLElement on line 351" problem as some others here. I was wondering why I hadn't had any sales... Luckily a new customer emailed me, because I've been travelling and had no idea about the problem.

Setting CURL=yes in the ozpost module admin section fixed it.

Just posting here to keep track of further developments...

Shen
aum mani padme hum

09 Oct 2009, 02:33
#292
poohbear avatar

poohbear

New Zenner

Join Date:
Jan 2008
Posts:
12
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

At the moment no. This problem can almost certainly be resolved by code changes at either the client or the server, and for consistancy (and accuracy) this is best done on the server.
I suspect in either case similar 'effort' would be required, so rather than looking for a 'quick fix' that is where I'll be heading.

Thanks for reminding me though..
I really do have it on my 'todo' list, but another reminder in another couple of weeks may not go astray.

Cheers
Rod

No problems Rod, thanks for letting me know.

09 Oct 2009, 07:44
#293
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

poohbear:

it seems that the international rates (specifically, letter rates) appear even though "oversea" shipping methods are all disabled. Is there any way around that as I would only require International Express for international.(Ps i'm using ozpost 1.02)
Any help would be appreciated. [/I]

I've just taken a look at this and can't seem to replicate the problem.

Do you have a URL so that I can see for myself (and monitor the logs at the same time).

It is possible that this problem may have already been fixed in the copy of ozpost.php that you can find from the following link.

http://www.zen-cart.com/forum/attachment.php?attachmentid=6437&d=1252290889

Cheers
Rod

14 Oct 2009, 04:03
#294
cafman avatar

cafman

New Zenner

Join Date:
Jul 2009
Location:
Melbourne, Australia
Posts:
80
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod, I'm using the latest version of Zen Cart and the latest version of Ozpost. I've just run the Debug Error Logging Utility through my almost-finished shop and it gave me three error logs. Here they are:

[13-Oct-2009 20:03:34] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: Entity: line 1: parser error : Start tag expected, '<' not found in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:03:34] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: 326 in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:03:34] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: ^ in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:03:34] PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/html/shop/includes/modules/shipping/ozpost.php:345
Stack trace:
#0 /var/www/html/shop/includes/modules/shipping/ozpost.php(345): SimpleXMLElement->__construct('326??<?xml vers...')
#1 /var/www/html/shop/includes/classes/shipping.php(129): ozpost->quote('')
#2 /var/www/html/shop/includes/modules/pages/checkout_shipping/header_php.php(170): shipping->quote()
#3 /var/www/html/shop/index.php(36): require('/var/www/html/s...')
#4 {main}
thrown in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345

[13-Oct-2009 20:05:08] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: Entity: line 1: parser error : Start tag expected, '<' not found in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:05:08] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: 5c in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:05:08] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: ^ in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:05:08] PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/html/shop/includes/modules/shipping/ozpost.php:345
Stack trace:
#0 /var/www/html/shop/includes/modules/shipping/ozpost.php(345): SimpleXMLElement->__construct('5c??<?xml versi...')
#1 /var/www/html/shop/includes/classes/shipping.php(129): ozpost->quote('')
#2 /var/www/html/shop/includes/modules/shipping_estimator.php(134): shipping->quote()
#3 /var/www/html/shop/includes/templates/dreamy/popup_shipping_estimator/tpl_main_page.php(16): require('/var/www/html/s...')
#4 /var/www/html/shop/index.php(97): require('/var/www/html/s...')
#5 {main}
thrown in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345

[13-Oct-2009 20:05:14] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: Entity: line 1: parser error : Start tag expected, '<' not found in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:05:14] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: 49 in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:05:14] PHP Warning: SimpleXMLElement::__construct() [<a href='function.SimpleXMLElement---construct'>function.SimpleXMLElement---construct</a>]: ^ in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345
[13-Oct-2009 20:05:14] PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/html/shop/includes/modules/shipping/ozpost.php:345
Stack trace:
#0 /var/www/html/shop/includes/modules/shipping/ozpost.php(345): SimpleXMLElement->__construct('49??<?xml versi...')
#1 /var/www/html/shop/includes/classes/shipping.php(129): ozpost->quote('')
#2 /var/www/html/shop/includes/modules/shipping_estimator.php(134): shipping->quote()
#3 /var/www/html/shop/includes/templates/dreamy/popup_shipping_estimator/tpl_main_page.php(16): require('/var/www/html/s...')
#4 /var/www/html/shop/index.php(97): require('/var/www/html/s...')
#5 {main}
thrown in /var/www/html/shop/includes/modules/shipping/ozpost.php on line 345

I have no idea how to decode let alone fix these problems and was hoping you could shed some light?
I've not done anything at all to change the Ozpost module. All I've done is install it. BTW 'dreamy' is the name of my custom template.

Ta! Cafman

14 Oct 2009, 04:49
#295
cafman avatar

cafman

New Zenner

Join Date:
Jul 2009
Location:
Melbourne, Australia
Posts:
80
Plugin Contributions:
0

Re: ozpost shipping module

Good news!

It's fixed.

Before I posted my original question I tried to find a fix on these forums but couldn't figure out what search term to use, since there were so many terms in the DeBug error reports.
After I posted, I simply ploughed through every 'ozpost' message I could find here, until I came across someone who had similar probs. Your advice, Rod, was to enable 'curl' in the admin panel, which I did, and now all is well.

Love OzPost again. :D
Caf

14 Oct 2009, 05:29
#296
p1drobert avatar

p1drobert

New Zenner

Join Date:
May 2007
Location:
Melbourne, Australia
Posts:
88
Plugin Contributions:
0

Re: ozpost shipping module

Hmmmm,

I'm also getting the SimpleXMLElement error too, but enabling curl doesn't fix it.

I've been running the ozpost module for my old zencart 1.3.7 installation, in an effort to figure out why the ozpost module doesn't work properly with my newer zencart 1.3.8 installation.
The zencart 1.3.7 version worked fine until I enabled SSL then the SimpleXMLElement error came up. This puzzled me because with 1.3.8 the problem with ozpost is that I get a blank screen at checkout, but only if I enable SSL, otherwise it works fine.

Another piece of the puzzle I guess.

14 Oct 2009, 22:28
#297
poohbear avatar

poohbear

New Zenner

Join Date:
Jan 2008
Posts:
12
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

I've just taken a look at this and can't seem to replicate the problem.

Do you have a URL so that I can see for myself (and monitor the logs at the same time).

It is possible that this problem may have already been fixed in the copy of ozpost.php that you can find from the following link.

http://www.zen-cart.com/forum/attachment.php?attachmentid=6437&d=1252290889

Cheers
Rod

Hi Rod,

Ok i've just tried updating using the new ozpost.php you have posted but it's still the same, Letters are still coming up in international orders despite having them disabled (they are enabled for domestic letters though).

I've pm the link, can you advise which logs i should look at? thanks again for your help!

15 Oct 2009, 13:34
#298
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

poohbear:

Hi Rod,

Ok i've just tried updating using the new ozpost.php you have posted but it's still the same, Letters are still coming up in international orders despite having them disabled (they are enabled for domestic letters though).

I've pm the link, can you advise which logs i should look at? thanks again for your help!

Attached to this message is an updated ozpost.php file.

download, unzip, replace /includes/modules/shipping/ozpost.php with this copy.
Log onto admin, click unistall and then reinstall. (This is important).

This should take care of your problem.

Please advise either way.

Cheers
Rod

15 Oct 2009, 14:11
#299
nukebiz avatar

nukebiz

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Re: ozpost shipping module

hmm, interesting quirk with the the SimpleXMLElement error (using v1.0.4).

If my store name is a single word, I get the error, but if I have a two word store name, I don't get the error
i.e. the space eliminates the problem :dontgetit

15 Oct 2009, 14:47
#300
rodg avatar

rodg

Deceased

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

Re: ozpost shipping module

RodG:

Attached to this message is an updated ozpost.php file.

download, unzip, replace /includes/modules/shipping/ozpost.php with this copy.
Log onto admin, click unistall and then reinstall. (This is important).

This should take care of your problem.

Please advise either way.

Cheers
Rod

Ooop. Wrong file was arrached. Use this one instead <sigh>

Tired and late/