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

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Simple AustraliaPost Shipping Module
« on: May 06, 2010, 12:08:57 pm »
This module allows you to calculate shipping fees with Australia Post for inside deliveries (as VirtueMart default one) but also for outside Australia shipping.

WHAT IT DOES:
  • Calculate outside Australia fees;
  • Convert backend unit (pounds, inches, kilograms) in correct calculator units (milimeters, grams);
  • Define the parcel weight based on cart products;
  • Customer can choose between STANDARD or EXPRESS price as well as between AIR or SEA mailing;
  • A lot more backend options.

WHERE DO I FIND IT:
On Joomla Forge http://forge.joomla.org/gf/project/simplevmaddons/
Download the version 1.5.2 directly http://forge.joomla.org/gf/download/frsrelease/11291/50098/Virtuemart_SimpleAustPostShipping_1.5.2.zip
Any trouble? http://forge.joomla.org/gf/project/simplevmaddons/tracker/

Let me know if you like it or not.

nesta

  • Beginner
  • *
  • Posts: 1
Re: Simple AustraliaPost Shipping Module
« Reply #1 on: May 07, 2010, 06:23:18 am »
Thanks very much for the module Bruno. It installed in seconds but when functional a debug message is displayed above the rates.
------------- [DEBUG OUTPÜT] --------------

--------- Sullivans Cove Double Cask 150ml ------------------
Weight in base: 0.5000 kg
Conversion: 500 g
Total (x4): 2000g
--------- END Sullivans Cove Double Cask 150ml------------------

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

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

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

Australia Post Standard: $9 (2 kg)
Australia Post Express: $12 (2 kg)


I have display error messages off yet the above message is still displayed. Be great to have this problem solved as a great module.

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #2 on: May 07, 2010, 08:01:45 am »
Hello,
Did you put the variable $_debug = 0 at the line 46?
It should works.

Thanks for using my extension. Let me know your opinion about it.

wsfsb

  • Beginner
  • *
  • Posts: 5
Re: Simple AustraliaPost Shipping Module
« Reply #3 on: May 17, 2010, 03:30:18 am »
G'day Bruno,

Nice work.

I noticed it still needs URL file access to call the Auspost site.  Many servers using PHP 5.2 onwards have allow_url_fopen and allow_url_include off as default to prevent attacks.

Couldnt get it to work with our server config.

Jason

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #4 on: June 30, 2010, 02:31:39 am »
Hi,

This is a nice module, however, it has suddenly stopped working for me. It is just not showing up at the frontend cart shipping options. i have tried other shipping modules and they are all working fine. the Simple Aust Post module is selected in the admin configuration and has been activated in the shipping module list. But it's just stopped showing up for no apparent reason.

I am using Joomla 1.5.18 and Virtuemart 1.1.14. Any clues as to why this has happened?

Many thanks

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #5 on: July 01, 2010, 19:55:53 pm »
Which version do you use for this shipping method?
You can see which one is it when editing one of the file.
Let me know if you still have this problem and we will try to find a solution together.

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #6 on: July 01, 2010, 23:39:12 pm »
Hi Bruno,

Thanks for your reply. The version is 1.5.2 , there is still a problem with it (not showing at frontend) and we are having to use the normal Aust Post shipping module for the time being

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #7 on: July 01, 2010, 23:55:29 pm »
Try to install the latest release version 1.5.3, you can download it by using the following link: http://bit.ly/ag3QKr

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #8 on: July 06, 2010, 10:30:28 am »
Hi Bruno,

I have just downloaded and installed the 1.5.3 version. it does show up now and calculates the postage but I receive this error:

Warning: Division by zero in /home/bibbat/public_html/administrator/components/com_virtuemart/classes/shipping/simpleauspost.php  on line 97

any reason for this?

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 #9 on: July 06, 2010, 10:49:34 am »
Hello,

Edit your file and on line 97 replace these lines:
Code: [Select]
//Calculate the number of Boxes needed for this product so we can add to the height
if ((int)($cart[$i]["quantity"]) > ((int)(($dboi->f("product_packaging")>>16)&0xFFFF))) {
    $numboxes = ceil(($cart[$i]["quantity"]) / (($dboi->f("product_packaging")>>16)&0xFFFF));
} else {
    $numboxes = 1;
}

by those ones:
Code: [Select]
//Calculate the number of Boxes needed for this product so we can add to the height
$numboxes = 1;
if (($dboi->f("product_packaging"))
{
        if ((int)($cart[$i]["quantity"]) > ((int)(($dboi->f("product_packaging")>>16)&0xFFFF))) {
          $numboxes = ceil(($cart[$i]["quantity"]) / (($dboi->f("product_packaging")>>16)&0xFFFF));
        }
}

Let me know if it is working!

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #10 on: July 06, 2010, 11:02:34 am »
Hi

I'm afraid it's still 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 #11 on: July 06, 2010, 11:08:03 am »
try by using
Code: [Select]
if (($dboi->f("product_packaging") > 0) instead of
Code: [Select]
if (($dboi->f("product_packaging"))

firefly

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

Just tried that code adjustment, unfortunately now it comes without any CSS styling, and no shipping methods. With this error

Parse error: syntax error, unexpected '{' in /home/bibbat/public_html/administrator/components/com_virtuemart/classes/shipping/simpleauspost.php on line 99

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #13 on: July 10, 2010, 09:06:43 am »
I wasn't awake enough when I gave you the code. Replace the previous line by this one:
Code: [Select]
if ($dboi->f("product_packaging") > 0)Sorry for this mistake.

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #14 on: July 12, 2010, 09:19:54 am »
That seems to be working now.

Thank you!

excellent little module.