Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Quick question: Does Aust Post Mod calculate OS deliveries?

Quick question: Does Aust Post Mod calculate OS deliveries?

Locked

Views: 4,583

Results 1 to 20 of 39
This thread is locked. New replies are disabled.
08 Aug 2007, 22:10
#1
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Quick question: Does Aust Post Mod calculate OS deliveries?

I assume adding this mod would calculate overseas postage as well as for the Australian states???

08 Aug 2007, 22:11
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Quick answer Yes

08 Aug 2007, 22:15
#3
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Thanks Kobra for your very quick response.

Also I tried installing the new 'improved' version and got an error. Do you know why this is?

Warning:  file() [function.file on line ]: URL file-access is disabled in the server configuration in /home2/myhost/public_html/mysite/includes/modules/shipping/austpost.php624

Warning: file(http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=3156&Destination_Postcode=&Country=AU&Weight=0.18&Service_Type=STANDARD&Height=25&Width=250&Length=290&Quantity=1) [function.file on line ]: failed to open stream: no suitable wrapper could be found in /home2/myhost/public_html/mysite/includes/modules/shipping/austpost.php624

Warning:  file() [function.file on line ]: URL file-access is disabled in the server configuration in /home2/myhost/public_html/mysite/includes/modules/shipping/austpost.php624

Warning: file(http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=3156&Destination_Postcode=&Country=AU&Weight=0.18&Service_Type=EXPRESS&Height=25&Width=250&Length=290&Quantity=1) [function.file on line ]: failed to open stream: no suitable wrapper could be found in /home2/myhost/public_html/mysite/includes/modules/shipping/austpost.php624 
08 Aug 2007, 22:24
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Having installed this from the downloads area myself (is this where you got yours?) I can only theorize that there is an issue with that file - try reloading this file

08 Aug 2007, 22:27
#5
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

ok
I will give it a go. Thanks:smile:

08 Aug 2007, 23:10
#6
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

I reinstalled the whole thing and the error code is not there now but when i do a calculation for postage and click update it throws my web page around and the calculation dont show. Can you take a look please?

http://www.aussiedog.com.au/index.php?main_page=shopping_cart

09 Aug 2007, 06:30
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Can you take a look please?
Created and account, place a test order and processed correctly and did not see any jumping around nor other anomolies.???

10 Aug 2007, 05:00
#8
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

That is really odd as my page throws the right side boxes underneath.
It also comes up with errors saying it cannot conect to the Aust post server:huh:

10 Aug 2007, 05:24
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

What platform are you on? PC or Mac and your OS & ver and browser.

11 Aug 2007, 06:08
#10
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

I am using Mozilla Firefox and using a PC:smile:

12 Aug 2007, 12:25
#11
rodg avatar

rodg

Deceased

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

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

G'day Blind1,

I've just taken a look at your site and am happy to tell you that you are not going crazy, you really do have a problem.

The bad news is, I can't really explain the symptoms I'm seeing. It appears to me that the shopping cart data isn't being correctly passed across to the australia post DRC server.

In order to confirm/refute this, I'm going to need you to edit
/includes/modules/shipping/auspost.php for me.

If you can locate line# 258 you'll see it currently reads
// echo $url

If you could remove the two "//" and resave the file it will/should echo on screen the exact data string that is being sent to the server.

Please add a product to the cart, do the 'update' thing and send me a copy of the text string you see (it'll start with "http://drc.edeliver.com.au") but it'll be a much longer string that spans several lines.

Hopefully this information will give me a clue as to exactly what is (or isn't) causing your problem.

Alternatively, I suggest a complete uninstall and reinstall of the module because something really isn't quite right.

Cheers
Rod

12 Aug 2007, 23:30
#12
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

I will do that now thanks for the help.
I have reinstalled but with no luck.
Be back soon
:smile:

13 Aug 2007, 03:40
#14
rodg avatar

rodg

Deceased

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

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Hi Blind1,

http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=3156
&Destination_Postcode=&Country=AU&Weight=280
&Service_Type=STANDARD&Height=25&Width=250&Length=290
&Quantity=1

As you can hopefully see, for some reason or other, there is no destination postcode being passed on to the server.

I've created an account in your store for further testing and have discovered that this particular problem goes away when logged in. However, the a couple of items I added to the cart didn't have any weight attributes, which produced a different error. When using the Austpost module all items MUST have the weights set.

SO, to see this module work as it should, you need to first log in and then add a few items to your cart (ensuring the items have weights).

This then leaves the question of WHY is it losing the destination post code when NOT logged in. Unfortunately I don't have an answer (yet)

I WILL suggest that you try DELETING
/includes/templates/CUSTOM/templates/tpl_modules_shipping_estimator.php

This will cause the zencart default module to be used. If this takes care of the errors we'll know that there is something amiss in this part of things.
If the exact same problem exists we'll have to start looking elsewhere.

Another thing you can try is to replace the original file
/includes/templates/template_default/templates/tpl_shipping_estimator.phpwith the one from the austpost zip file. PLEASE BACKUP THE ORIGINAL FILE FIRST. Restore it if it doesn't have the desired effect.

Cheers
Rod

13 Aug 2007, 05:39
#15
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Hi Rod I tried both deletinmg the file and replacing it with original with no difference. i still get the error.

13 Aug 2007, 08:42
#16
rodg avatar

rodg

Deceased

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

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Hi Blind1,

Hi Rod I tried both deletinmg the file and replacing it with
original with no difference. i still get the error.

So, did you put the modified file back then? If not, then you have put something in the wrong place because your store is still using the modified
tpl_shipping_estimator.php

I suggest you re-replace it from the origianl zen-cart distribution file and then see what happens.

Cheers
Rod

13 Aug 2007, 11:08
#17
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

To make sure this time i renamed the old file and uploaded the original tpl_shipping_estimator.php file from the template_default folder and put it into the Custom folder but I still get the same result.

13 Aug 2007, 11:41
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

blind1:

Warning: file() [function.file on line ]: URL file-access is disabled in the server configuration in /home2/myhost/public_html/mysite/includes/modules/shipping/austpost.php624

Warning: file(http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=3156&Destination_Postcode=&Country=AU&Weight=0.18&Service_Type=STANDARD&Height=25&Width=250&Length=290&Quantity=1) [function.file on line ]:** failed to open stream: no suitable wrapper could be found** in /home2/myhost/public_html/mysite/includes/modules/shipping/austpost.php624

This is a PHP configuration problem on your server.
It appears your server administrator is paranoid about security, and has blocked external access using the PHP file() function.

Options:

  • force the allow_url_fopen parameter to on
  • change the code to use fsockopen() instead ... but that may reveal that the socket wrapper may also be blocked
  • get server administrator to relax the security for you
  • find another host who can do security protection in other less restrictive ways
  • rewrite the auspost module to use CURL instead of fopen()
13 Aug 2007, 11:49
#19
blind1 avatar

blind1

Zen Follower

Join Date:
Dec 2006
Location:
Victoria, Australia
Posts:
351
Plugin Contributions:
0

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Thanks for that quick response from the other thread and for all your help tonight. I don’t understand php enough to know how to execute any of those options. Maybe I will contact the host again. I asked them to look at it three days ago and nothing has been done:no:

13 Aug 2007, 12:00
#20
rodg avatar

rodg

Deceased

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

Re: Quick question: Does Aust Post Mod calculate OS deliveries?

Hi Blind1,

Good news :-)

To make sure this time i renamed the old file and
uploaded the original tpl_shipping_estimator.php file
from the template_default folder and put it into the
Custom folder but I still get the same result.

Actually, you are NOT getting the same result. Take another look, you'll see that now you have the old template in place there is an additional dropdown box for the STATE (that's how I know which template is being used).

You can ignore the state box, but if you now enter a destination postcode you'll find it will return a valid result (ensure your test item has a weight).

Now that it has a valid response, if you re-add those two // that I asked you to comment out of austpost.php you'll find your RH sidebar no longer drops to the bottom of the screen.

You can now either leave the original tpl_shipping_estimator in place if you like, OR, if you can try re-installing the tpl_shipping_estimator that came with the Austpost module. There are two main differences between them.

  1. The original module will always produce an error the 1st time any given user uses it (as you will be able to observe for yourself now). The one supplied with the austpost module aborts before this error is produced, thus forcing the user to enter a postcode before it goes for a quote.
  2. The tpl file that comes with the Austpost mosule has the 'state' option removed, since it isn't actually used by the module.

IOW, the differences are rather minor. Cosmetic rather than functional.

Bottom line. The problem you are having is definetly related to the tpl_shipping_estimator.php code. I'm guessing you may have a corrupted copy from the autpost module.

Cheers
Rod