Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Posts
    16
    Plugin Contributions
    0

    Postcode space problem Auspost

    Can someone please help me. I have installed Auspost and when I put in a UK postcode with the space, like NN14 1AD I get an error. I have read previous posts that other people have had the same problem but I have not seen any answers as yet. The error looks like this. I think it has something to do with the Austpost module only needing the country not the postcode for working out overseas shipping rates.

    Warning: file(http://drc.edeliver.com.au/ratecalc...._Postcode=NN14 1AD&Country=GB&Weight=150&Service_Type=AIR&Height=100&Width=100&Length=100&Quant ity=1): failed to open stream: HTTP request failed! in /home/tiefunke/public_html/includes/modules/shipping/auspostair.php on line 81

    Warning: Invalid argument supplied for foreach() in /home/tiefunke/public_html/includes/modules/shipping/auspostair.php on line 82

    Warning: file(http://drc.edeliver.com.au/ratecalc...._Postcode=NN14 1AD&Country=GB&Weight=150&Service_Type=AIR&Height=100&Width=100&Length=100&Quant ity=1): failed to open stream: HTTP request failed! in /home/tiefunke/public_html/includes/modules/shipping/auspostairinsur.php on line 81

    Warning: Invalid argument supplied for foreach() in /home/tiefunke/public_html/includes/modules/shipping/auspostairinsur.php on line 82

  2. #2
    Join Date
    May 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: Postcode space problem Auspost

    That would be right. Just after I post this message I stumble across someone else (Access) who has found the answer (after weeks of looking!)

    In these files:

    /includes/modules/shipping/auspostsea.php
    /includes/modules/shipping/auspostair.php
    /includes/modules/shipping/ausposteconomy.php
    /includes/modules/shipping/austpostairinsur.php

    you need to change this line:

    $url="http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$topcode&Country=$d est_country&Weight=$sweight&Service_Type=AIR&Height=$sheight&Width=$swidth&Lengt h=$slength&Quantity=$shipping_num_boxes";

    for these lines:

    $trimmedtopcode = str_replace(" ", "", $topcode);

    $url="http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$trimmedtopcode&Cou ntry=$dest_country&Weight=$sweight&Service_Type=AIR&Height=$sheight&Width=$swidt h&Length=$slength&Quantity=$shipping_num_boxes";

    The code truncates the postcode.

    Thanks Access!!!!!!!!!!!!

 

 

Similar Threads

  1. Auspost Shipping Module with new AusPost API
    By Whiterabbizt in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 30 Apr 2012, 10:23 AM
  2. Auspost improved display problem.
    By viss in forum Addon Shipping Modules
    Replies: 3
    Last Post: 21 Feb 2008, 11:09 AM
  3. Problem after installing Auspost add-on
    By ozonlinesales in forum Addon Shipping Modules
    Replies: 3
    Last Post: 24 Nov 2007, 10:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR