Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Idea or Suggestion AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    Just a quick post to shom all you out there a mod i made to the base austpost.php file. As i noticed, standard 'out of the box' it only applies Delivery Time lookup data to parcels, and usues predefined numbers for satchel delivery times... this doesnt make sense as a 3kg satchel isn't going to be delivered any different to a 3kg parcel, and the same could be said for express...

    also there isnt a flat delivery time for satchels as opposed to parcels ... they both depend on sender's and reciever's codes ...

    so hopefully this gets noticed and integrated into the official release as it seems a very easy and obvious fix...

    backup b4 replace, the original is included too, as well as a patch generated by Winmerge,(though it is the first ive made, im not sure if it works, the patch that is...)

    you'll also see i removed the difference in delivery time for REG, COD, RPPi, as they too should be delivered no slower...

    INSTALL:

    the austpost.php goes in the folder \includes\modules\shipping


    Hayden Thring
    www.hthring.com
    24/06/08



    PHP Code:

    373
    ,422c373
    < if ($dest_country == "AU") {    // only AU
    // Prepaid stachels
    <     if ((in_array("500gm Satchels"$this->allowed_methods)) && ( $sweight 500 ) && ( $girth 430 ) && ( $var[2] < 320 )) {

    <     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPS_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    <     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    <     }

    <     
    $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    <     
    $shipping_austpost_method zen_image($this->icon_pps5$this->types['PPS5']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    <     
    $cost $costPrePaid500g MODULE_SHIPPING_AUSTPOST_PPS_HANDLING ;
    <     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    <     
    $methods[] = array( 'id' => "PPS5"'title' => $shipping_austpost_method'cost' => $cost) ;
    < }

    < else {

    <     if ((
    in_array("3kg Satchels"$this->allowed_methods))  && ( $sweight 3000 ) && ( $girth 600 )  && ( $var[2] < 370 )) {

    <     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPS_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    <     
    $austpost_addons =  MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    <     }

    <     
    $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    <     
    $shipping_austpost_method =  zen_image($this->icon_pps3$this->types['PPS3']) . $bignumber $days "</span>" zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    <     
    $cost $costPrePaid3k MODULE_SHIPPING_AUSTPOST_PPS_HANDLING ;
    <     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    <     
    $methods[] = array( 'id' => "PPS3"'title' => $shipping_austpost_method'cost' => $cost) ;
    <     }
    <     }

    ////
    <     if ((in_array("500gm Express Satchels"$this->allowed_methods)) && ( $sweight 500 ) && ( $girth 430 ) && ( $var[2] < 320 )) {

    <     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    <     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    <     }

    <     
    $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    <     
    $shipping_austpost_method =  zen_image($this->icon_ppse5$this->types['PPSE5']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    <     
    $cost $costPrePaidExp500g MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING ;
    <     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    <     
    $methods[] = array( 'id' => "PPSE5"'title' => $shipping_austpost_method'cost' => $cost) ;
    < }

    < else {

    // echo "$sweight $girth  $var[2]" ;

    <     if ((
    in_array("3kg Express Satchels"$this->allowed_methods))  && ( $sweight 3000 ) && ( $girth 600 )  && ( $var[2] < 370 )) {
    ---
    //hayden
    424,437c375
    <     if (MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    <     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    <     }

    <     
    $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    <     
    $shipping_austpost_method =  zen_image($this->icon_ppse3$this->types['PPSE3']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    <     
    $cost $costPrePaidExp3k MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING ;
    <     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    <     
    $methods[] = array( 'id' => "PPSE3"'title' => $shipping_austpost_method'cost' => $cost) ;
    <     }
    <     }
    ////

    < }
    ---
    //hayden
    475,477c413,415
    <     $shipping_austpost_rppi_method =  zen_image($this->icon_ins$this->types['RPPi']) . $bignumber . ($days 1) . "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_rppi_addons;
    <     
    $shipping_austpost_reg_method =   zen_image($this->icon_reg$this->types['REG'] ) . $bignumber . ($days 1) . "</span> " zen_image($this->icon_del,  MODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_reg_addons;
    <     
    $shipping_austpost_cod_method =   zen_image($this->icon_cod$this->types['COD'] ) . $bignumber . ($days 2) . "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_cod_addons;
    ---
    >     
    $shipping_austpost_rppi_method =  zen_image($this->icon_ins$this->types['RPPi']) . $bignumber . ($days ) . "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_rppi_addons;
    >     
    $shipping_austpost_reg_method =   zen_image($this->icon_reg$this->types['REG'] ) . $bignumber . ($days ) . "</span> " zen_image($this->icon_del,  MODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_reg_addons;
    >     
    $shipping_austpost_cod_method =   zen_image($this->icon_cod$this->types['COD'] ) . $bignumber . ($days ) . "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_cod_addons;
    483a422,455
    //hayden

    >     if ((
    in_array("500gm Satchels"$this->allowed_methods)) && ( $sweight 500 ) && ( $girth 430 ) && ( $var[2] < 320 )) {

    >     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPS_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    >     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    >     }

    >     
    $days $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    >     
    $shipping_austpost_method zen_image($this->icon_pps5$this->types['PPS5']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    >     
    $cost $costPrePaid500g MODULE_SHIPPING_AUSTPOST_PPS_HANDLING ;
    >     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    >     
    $methods[] = array( 'id' => "PPS5"'title' => $shipping_austpost_method'cost' => $cost) ;
    > }

    > else {

    >     if ((
    in_array("3kg Satchels"$this->allowed_methods))  && ( $sweight 3000 ) && ( $girth 600 )  && ( $var[2] < 370 )) {

    >     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPS_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    >     
    $austpost_addons =  MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    >     }

    >     
    $days $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    >     
    $shipping_austpost_method =  zen_image($this->icon_pps3$this->types['PPS3']) . $bignumber $days "</span>" zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    >     
    $cost $costPrePaid3k MODULE_SHIPPING_AUSTPOST_PPS_HANDLING ;
    >     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    >     
    $methods[] = array( 'id' => "PPS3"'title' => $shipping_austpost_method'cost' => $cost) ;
    >     }


    >     }


    501a474,510
    >     
    >     
    >     
    //hayden
    >     
    >     
    >     
    ////
    >     if ((in_array("500gm Express Satchels"$this->allowed_methods)) && ( $sweight 500 ) && ( $girth 430 ) && ( $var[2] < 320 )) {

    >     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    >     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    >     }

    >     
    $days $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    >     
    $shipping_austpost_method =  zen_image($this->icon_ppse5$this->types['PPSE5']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    >     
    $cost $costPrePaidExp500g MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING ;
    >     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    >     
    $methods[] = array( 'id' => "PPSE5"'title' => $shipping_austpost_method'cost' => $cost) ;
    > }

    > else {

    // echo "$sweight $girth  $var[2]" ;

    >     if ((
    in_array("3kg Express Satchels"$this->allowed_methods))  && ( $sweight 3000 ) && ( $girth 600 )  && ( $var[2] < 370 )) {

    >     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    >     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    >     }

    >     
    $days $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    >     
    $shipping_austpost_method =  zen_image($this->icon_ppse3$this->types['PPSE3']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    >     
    $cost $costPrePaidExp3k MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING ;
    >     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    >     
    $methods[] = array( 'id' => "PPSE3"'title' => $shipping_austpost_method'cost' => $cost) ;
    >     }
    >     }
    ///
    538a548,553


    >  
    // edited by hayden...



    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    Quote Originally Posted by hayden View Post
    you'll also see i removed the difference in delivery time for REG, COD, RPPi, as they too should be delivered no slower...
    In my very extensive experience, REG'd, COD's and insured parcels typically take a day longer to deliver than regular parcels, which is why that offset was added in the first place.

    Rgds
    Rod

  3. #3
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Default Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    Quote Originally Posted by RodG View Post
    In my very extensive experience, REG'd, COD's and insured parcels typically take a day longer to deliver than regular parcels, which is why that offset was added in the first place.

    Rgds
    Rod
    ok, you're prob right, i will revert that bit, correct my lost and attachment, thankyou.

  4. #4
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    red flag Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    i cant seem to edit the original post so here is the new one :


    Just a quick post to shom all you out there a mod i made to the base austpost.php file. As i noticed, standard 'out of the box' it only applies Delivery Time lookup data to parcels, and usues predefined numbers for satchel delivery times... this doesnt make sense as a 3kg satchel isn't going to be delivered any different to a 3kg parcel, and the same could be said for express...

    also there isnt a flat delivery time for satchels as opposed to parcels ... they both depend on sender's and reciever's codes ...

    so hopefully this gets noticed and integrated into the official release as it seems a very easy and obvious fix...

    backup b4 replace, the original is included too, as well as a patch generated by Winmerge,(though it is the first ive made, im not sure if it works, the patch that is...)


    INSTALL:

    the austpost.php goes in the folder \includes\modules\shipping


    Hayden Thring
    www.hthring.com
    24/06/08


    PHP Code:

    373
    ,422c373
    < if ($dest_country == "AU") {    // only AU
    // Prepaid stachels
    <     if ((in_array("500gm Satchels"$this->allowed_methods)) && ( $sweight 500 ) && ( $girth 430 ) && ( $var[2] < 320 )) {

    <     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPS_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    <     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    <     }

    <     
    $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    <     
    $shipping_austpost_method zen_image($this->icon_pps5$this->types['PPS5']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    <     
    $cost $costPrePaid500g MODULE_SHIPPING_AUSTPOST_PPS_HANDLING ;
    <     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    <     
    $methods[] = array( 'id' => "PPS5"'title' => $shipping_austpost_method'cost' => $cost) ;
    < }

    < else {

    <     if ((
    in_array("3kg Satchels"$this->allowed_methods))  && ( $sweight 3000 ) && ( $girth 600 )  && ( $var[2] < 370 )) {

    <     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPS_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    <     
    $austpost_addons =  MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    <     }

    <     
    $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    <     
    $shipping_austpost_method =  zen_image($this->icon_pps3$this->types['PPS3']) . $bignumber $days "</span>" zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    <     
    $cost $costPrePaid3k MODULE_SHIPPING_AUSTPOST_PPS_HANDLING ;
    <     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    <     
    $methods[] = array( 'id' => "PPS3"'title' => $shipping_austpost_method'cost' => $cost) ;
    <     }
    <     }

    ////
    <     if ((in_array("500gm Express Satchels"$this->allowed_methods)) && ( $sweight 500 ) && ( $girth 430 ) && ( $var[2] < 320 )) {

    <     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    <     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    <     }

    <     
    $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    <     
    $shipping_austpost_method =  zen_image($this->icon_ppse5$this->types['PPSE5']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    <     
    $cost $costPrePaidExp500g MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING ;
    <     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    <     
    $methods[] = array( 'id' => "PPSE5"'title' => $shipping_austpost_method'cost' => $cost) ;
    < }

    < else {

    // echo "$sweight $girth  $var[2]" ;

    <     if ((
    in_array("3kg Express Satchels"$this->allowed_methods))  && ( $sweight 3000 ) && ( $girth 600 )  && ( $var[2] < 370 )) {
    ---
    //hayden
    424,437c375
    <     if (MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    <     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    <     }

    <     
    $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    <     
    $shipping_austpost_method =  zen_image($this->icon_ppse3$this->types['PPSE3']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    <     
    $cost $costPrePaidExp3k MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING ;
    <     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    <     
    $methods[] = array( 'id' => "PPSE3"'title' => $shipping_austpost_method'cost' => $cost) ;
    <     }
    <     }
    ////

    < }
    ---
    //hayden
    483a422,455
    //hayden

    >     if ((
    in_array("500gm Satchels"$this->allowed_methods)) && ( $sweight 500 ) && ( $girth 430 ) && ( $var[2] < 320 )) {

    >     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPS_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    >     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    >     }

    >     
    $days $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    >     
    $shipping_austpost_method zen_image($this->icon_pps5$this->types['PPS5']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    >     
    $cost $costPrePaid500g MODULE_SHIPPING_AUSTPOST_PPS_HANDLING ;
    >     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    >     
    $methods[] = array( 'id' => "PPS5"'title' => $shipping_austpost_method'cost' => $cost) ;
    > }

    > else {

    >     if ((
    in_array("3kg Satchels"$this->allowed_methods))  && ( $sweight 3000 ) && ( $girth 600 )  && ( $var[2] < 370 )) {

    >     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPS_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    >     
    $austpost_addons =  MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    >     }

    >     
    $days $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    >     
    $shipping_austpost_method =  zen_image($this->icon_pps3$this->types['PPS3']) . $bignumber $days "</span>" zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    >     
    $cost $costPrePaid3k MODULE_SHIPPING_AUSTPOST_PPS_HANDLING ;
    >     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    >     
    $methods[] = array( 'id' => "PPS3"'title' => $shipping_austpost_method'cost' => $cost) ;
    >     }


    >     }


    501a474,510
    >     
    >     
    >     
    //hayden
    >     
    >     
    >     
    ////
    >     if ((in_array("500gm Express Satchels"$this->allowed_methods)) && ( $sweight 500 ) && ( $girth 430 ) && ( $var[2] < 320 )) {

    >     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    >     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    >     }

    >     
    $days $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    >     
    $shipping_austpost_method =  zen_image($this->icon_ppse5$this->types['PPSE5']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    >     
    $cost $costPrePaidExp500g MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING ;
    >     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    >     
    $methods[] = array( 'id' => "PPSE5"'title' => $shipping_austpost_method'cost' => $cost) ;
    > }

    > else {

    // echo "$sweight $girth  $var[2]" ;

    >     if ((
    in_array("3kg Express Satchels"$this->allowed_methods))  && ( $sweight 3000 ) && ( $girth 600 )  && ( $var[2] < 370 )) {

    >     if (
    MODULE_SHIPPING_AUSTPOST_HIDE_HANDLING !='Yes') { $handling_details " " $currencies->format(MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING $xchange) . " " .MODULE_SHIPPING_AUSTPOST_TEXT_HANDLING ;
    >     
    $austpost_addons MODULE_SHIPPING_AUSTPOST_TEXT_INCLUDE $handling_details " ";
    >     }

    >     
    $days $days MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    >     
    $shipping_austpost_method =  zen_image($this->icon_ppse3$this->types['PPSE3']) . $bignumber $days "</span> " zen_image($this->icon_delMODULE_SHIPPING_AUSTPOST_TEXT_SHIPPINGDAYS) . $austpost_addons;
    >     
    $cost $costPrePaidExp3k MODULE_SHIPPING_AUSTPOST_PPSE_HANDLING ;
    >     
    $cost adjust4tax($cost,$this->tax_class$order) ;
    >     
    $methods[] = array( 'id' => "PPSE3"'title' => $shipping_austpost_method'cost' => $cost) ;
    >     }
    >     }
    ///
    538a548,553


    >  
    // edited by hayden...



    Attached Files Attached Files

  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    Quote Originally Posted by hayden View Post
    it only applies Delivery Time lookup data to parcels, and usues predefined numbers for satchel delivery times... this doesnt make sense
    Unless I'm mistaken, it makes a whole lot more sense than what you have done.

    Quote Originally Posted by hayden View Post
    so hopefully this gets noticed and integrated into the official release as it seems a very easy and obvious fix...
    Appearances can be deceiving.

    Unless I'm mistaken (please correct me if I am), but the 'core' of your changes revolve around....

    Quote Originally Posted by hayden View Post
    < $days = 4 + MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    > $days = $days + MODULE_SHIPPING_AUSTPOST_DOFFSET ;
    I cannot seem to find where you are actually initialising the $days variable. How does this work?

    Cheers
    Rod

  6. #6
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Default Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    the $days variable comes from austpost lookup data , so my mod utilises that info currently collected and applied to the parcel and letter estimates, but for some reason not to satchels (rather opting for preset values independant of postcode which makes no sense and wastes the lookup data... )

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    Quote Originally Posted by hayden View Post
    the $days variable comes from austpost lookup data , so my mod utilises that info currently collected and applied to the parcel and letter estimates, but for some reason not to satchels (rather opting for preset values independant of postcode which makes no sense and wastes the lookup data... )
    I hate to tell you this Hayden, but if you take a closer look at the code you'll find that the $days variable doesn't come from the lookup data, at least not at the point in the code where you've made your assumption that it does.
    I'm actually surprised that it is giving you consistantly valid results at all (although I'm sure there will be an explanation as to why it does appear to do so).

    Cheers
    Rod.

  8. #8
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Default Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    Quote Originally Posted by RodG View Post
    I hate to tell you this Hayden, but if you take a closer look at the code you'll find that the $days variable doesn't come from the lookup data, at least not at the point in the code where you've made your assumption that it does.
    I'm actually surprised that it is giving you consistantly valid results at all (although I'm sure there will be an explanation as to why it does appear to do so).

    Cheers
    Rod.
    if you actually took the time to look a little closer you would see i moved the pre-paid satchel code block into the part of the php script where the $days value still contains the data recieved from the austpost servers ...

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    Quote Originally Posted by hayden View Post
    if you actually took the time to look a little closer you would see i moved the pre-paid satchel code block into the part of the php script where the $days value still contains the data recieved from the austpost servers ...
    "Time" is something I don't seem to have a lot of lately.
    I don't mean to make you beat your head against the wall. I just get a wee bit concerned when 'strangers' take my 'baby' out for a walk, especially when it has the potential to cause me support issues.

    It seems as though its in good hands though

    Cheers
    Rod

  10. #10
    Join Date
    May 2008
    Location
    South Australia
    Posts
    86
    Plugin Contributions
    1

    Default Re: AustPost Mod. - Delivery Time Lookup 4 Satchels Too

    It seems as though its in good hands though
    i'll take this as an acknowledgement of my improvement .. ?

    my 'baby'
    i was under the impression you'd just modded some else's proj,thus the 'improved' suffix ...

    out for a walk
    welcome to open source :)

    i will agree on the time issue, though one has to not let themselves become to much a victim to anothers constructs ;p

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Australian Postal Mod getting $0 postage for 300g 500g satchels
    By Natural Tone in forum Addon Shipping Modules
    Replies: 1
    Last Post: 19 Oct 2009, 08:50 AM
  2. Austpost mod
    By devinej1 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 30 Sep 2009, 10:22 AM
  3. Delivery time to customer mod
    By Toft in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 Aug 2009, 09:03 PM
  4. austpost improved module - estimated delivery
    By topaz07 in forum Addon Shipping Modules
    Replies: 3
    Last Post: 23 Jun 2008, 11:05 PM

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