Author Topic: Simple AustraliaPost Shipping Module  (Read 53496 times)

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #15 on: July 14, 2010, 01:36:48 am »
Hey Bruno,

sorry i have another little error.. on a different website: when the customer enters an international shipping address this this error displays:

Australia Post shipping calculator failed, reason: "robots" content

I have tested it for USA addresses and it seems to be OK but when testing with Dutch or UK addresses the above error comes up. Not sure about other international destinations but the products sold on the site will hopefully be sold globally so all international shipping needs to work.

Is there some setting that i've missed to stop this error? Any help would be much appreciated.

Many thanks as always   :)


joely

  • Beginner
  • *
  • Posts: 11
Re: Simple AustraliaPost Shipping Module
« Reply #16 on: July 14, 2010, 04:21:03 am »
Hi Bruno,

This is an awesome module - thanks heaps. I was just wondering on my checkout screen of my website where the user has the option to select either Australia Post Express or Australia Post Standard it displays the delivery time under these but for some reason they both say 1 day when it should say 3-5 days for standard postage.

How do I make it say 3-5 days for standard postage?

Also how accurate is this as a postage cost calculator? Does it pull the prices from the Australia Post website?

Thanks for your help, greatly appreciated, and great job!

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #17 on: July 14, 2010, 09:18:03 am »
Hi everyone,
@firefly: I never had this error. This is a message sent by Australia Post calculator, and the shipping methods only displays it. You can activate the debug mode by changing on line 47
Code: [Select]
$_debug = 1; it will output the different values, so you can post it here.

@joely: Which version are you using? I couldn't reproduce the error with the latest one (1.5.3). Same advice as Firefly, put on mode debug and post here the output.

Regards.

joely

  • Beginner
  • *
  • Posts: 11
Re: Simple AustraliaPost Shipping Module
« Reply #18 on: July 16, 2010, 02:50:20 am »
Hi Bruno, I am using version 1.5.3 and this is the output of my code:



Please select a Shipping Method!
Code: [Select]
------------- [DEBUG OUTPÜT] --------------

--------- 1kg Nitric Stack Matrix Lemon Lime Flavour ------------------
Weight in base: 1.0000 kg
Conversion: 1000 g
Total (x1): 1000g
Number of Boxes: 0
--------- END 1kg Nitric Stack Matrix Lemon Lime Flavour------------------

--------- 3kg Recovery Matrix Vanilla Flavour ------------------
Weight in base: 3.0000 kg
Conversion: 3000 g
Total (x1): 3000g
Number of Boxes: 0
--------- END 3kg Recovery Matrix Vanilla Flavour------------------

--------- TOTAL PARCEL VALUES ------------------
Weight : 4000 g
Length : 320 mm
Height : 50 mm
Width : 320 mm

------------- URL SEND TO CALCULATOR --------------
http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=4221&Destination_Postcode=4221&Country=AU&Weight=4000&Length=320&Width=320&Height=50&Quantity=1
------------- END URL --------------

------------- [DEBUG OUTPÜT] --------------
Australia Post Standard: $12.70 (4 kg)
  Delivery time (estimated by Australia Post): 1 days
Australia Post Express: $15.55 (4 kg)
  Delivery time (estimated by Australia Post): 1 days


you can see that both standard and express show 1 day as the delivery time.
Oh silly me that's probably because the business is in the same suburb as where it would be delivered to hey?

I have also noticed a different issue after doing seeing this output. In this order I have 2 products with the following dimensions:

1kg Nitric Stack Matrix Lemon Lime Flavour
Length - 32cm
Width - 32cm
Height - 27cm

3kg Recovery Matrix Vanilla Flavour
Length - 17cm
Width - 17cm
Height - 23cm

and as it shows the total parcel values:

--------- TOTAL PARCEL VALUES ------------------
Weight : 4000 g
Length : 320 mm
Height : 50 mm
Width : 320 mm

These are far too small to fit those 2 products in.
How can I fix this?


Cheers for your help, this is greatly appreciated,
Joel


thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #19 on: July 16, 2010, 09:22:34 am »
Hello,
So everything works fine?
About the parcel dimensions, I still need to improve the system. But it is not a real issue as it isn't linked with the prices. It needs to be sent to the eCalculator only to be sure the parcel isn't too small or too big. For now, if the products weight is over 20kg, the shipping price won't work as it is too big for one parcel.
In the next release, I will add this feature:
 * calculate the girth based on the products dimensions;
 * use more than one parcel if needed;
 * additionate all the parcel prices.

That's all I can say, if you have others ideas or features needed, please let me know:  http://bit.ly/b0rt1E

You can also find a Live eCalculator i have done based on this shipping method. As you know, you can find the shipping cost only when the customer checkout, with this module, you can display the cost in a module: http://bit.ly/ce9Urp

joely

  • Beginner
  • *
  • Posts: 11
Re: Simple AustraliaPost Shipping Module
« Reply #20 on: July 18, 2010, 11:29:01 am »
Ok cheers mate.
So basically it is correct according to weight and that's all that matters as long as the parcel isn't too big or too small.
Loving your work,
cheers for the guidance, greatly appreciated.

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #21 on: July 19, 2010, 00:02:12 am »
Hi Bruno

thanks for the reply. here is the debug output
Code: [Select]
------------- [DEBUG OUTPÜT] --------------

--------- Large Engine Mount Kit ------------------
Weight in base: 36.0000 grams
Conversion: 36.0000 g
Total (x1): 36g
Number of Boxes: 1
--------- END Large Engine Mount Kit------------------

--------- TOTAL PARCEL VALUES ------------------
Weight : 36 g
Length : 250 mm
Height : 60 mm
Width : 150 mm

------------- URL SEND TO CALCULATOR --------------
http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=2484&Destination_Postcode=RG12 7NE&Country=GB&Weight=36&Length=250&Width=150&Height=60&Quantity=1
------------- END URL --------------

------------- [DEBUG OUTPÜT] --------------

Australia Post shipping calculator failed, reason: "robots" content

Australia Post shipping calculator failed, reason: "robots" content

So i am a bit lost as to what to do about it, as mentioned before this error doesn't happen with Australia or US destinations. Do Australia Post have a list of error codes and reasons?

Many thanks

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #22 on: July 19, 2010, 00:46:46 am »
Hi Bruno

I think i may have found the problem... UK postcodes are usually 8 digits long but have a space in the middle so like "xxx xxx" - i removed the space and it works.
Dutch postcodes also have a space and i'm sure there any many more international destinations that do. So I is there a 'workaround' for this i do i just need to adjust the text to say 'no spaces'

Thank you!

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #23 on: July 19, 2010, 08:26:55 am »
Hi firefly,

When I saw your debug output, I thought it was the postcode with blank spaces. What you can do, it is add the following codes just before the
Code: [Select]
switch($Order_Service_Type) around lines 190 :
Code: [Select]
$uri = str_replace(' ', '', $uri);It will remove all the spaces before sending the url to the calculator.
Let me know how it will works after that.

Regards.

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #24 on: July 19, 2010, 09:48:52 am »
That worked! many thanks! ;D

costicanu

  • Beginner
  • *
  • Posts: 10
Re: Simple AustraliaPost Shipping Module
« Reply #25 on: August 16, 2010, 19:06:32 pm »
Hi, i'm using joomla Joomla 1.5.20, and  virtuemart  1.1.5. I copied your files into administrator\components\com_virtuemart\classes\shipping.

The default australian virtuemart module is working, but this one is not.

Errors:
Notice: Undefined offset: 1 in C:\wamp\www\joomla\administrator\components\com_virtuemart\classes\shipping\simpleauspost.php on line 246

Notice: Undefined offset: 1 in C:\wamp\www\joomla\administrator\components\com_virtuemart\classes\shipping\simpleauspost.php on line 249

Notice: Undefined offset: 1 in C:\wamp\www\joomla\administrator\components\com_virtuemart\classes\shipping\simpleauspost.php on line 250

Notice: Undefined offset: 2 in C:\wamp\www\joomla\administrator\components\com_virtuemart\classes\shipping\simpleauspost.php on line 253

Notice: Undefined offset: 1 in C:\wamp\www\joomla\administrator\components\com_virtuemart\classes\shipping\simpleauspost.php on line 254

Australia Post shipping calculator failed, reason:



If you want to see, those are the details about the shop:
http://92.114.126.122/joomla
username: admin
pwd: administrator
No registration required for buying products. I tried to buy a hammer, but is not working.

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #26 on: August 16, 2010, 23:59:28 pm »
Hi costicanu,

Which version do you use of the simple australiapost shipping method do you use?
I will look to your problem as soon as possible and I will keep you posted.

Regards,

Bruno

costicanu

  • Beginner
  • *
  • Posts: 10
Re: Simple AustraliaPost Shipping Module
« Reply #27 on: August 17, 2010, 17:56:23 pm »
Thank you for your reply thebeardman.
In readme file of Australia module says: @version 1.5.3

nichola

  • Beginner
  • *
  • Posts: 13
Re: Simple AustraliaPost Shipping Module
« Reply #28 on: September 16, 2010, 10:49:35 am »
I am getting this error on the module:

Warning: urlencode() expects parameter 1 to be string, array given in /home/fireandl/public_html/modules/mod_simple_australiapost_ecalculator/helper.php on line 534

thank you

nichola

  • Beginner
  • *
  • Posts: 13
Re: Simple AustraliaPost Shipping Module
« Reply #29 on: September 17, 2010, 08:26:40 am »
I am getting this error on the module:

Warning: urlencode() expects parameter 1 to be string, array given in /home/fireandl/public_html/modules/mod_simple_australiapost_ecalculator/helper.php on line 534

thank you

[please i am desperate for help with this]