OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Problems with AusPost Calculations
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Shipping Modules
Pages: 1, 2, 3, 4
lordofcb
I have installed the latest AusPost shipping module and have encountered problems with the method of calculation. For within Australia there are no problems, since I sell many larger and smaller size packages, I enter the weight for the product as the cubing weight I find for it using the Australia Post Postage Calculator and the results all work. However, according the the Australia Post site, International parcels go on weight alone with no cubing applied. So, the rates for international air module come out way too high.

Additionally, I am not sure if anyone else has installed this module for International Air, but I had to change all the fields in the english defines since they had Post_Air and the catalog/include files all used PostAir in the lines. The titles appears as field names in the module after installation until I changed these lines.
Coopco
QUOTE (lordofcb @ Feb 27 2007, 02:15 AM) *
I have installed the latest AusPost shipping module and have encountered problems with the method of calculation. For within Australia there are no problems, since I sell many larger and smaller size packages, I enter the weight for the product as the cubing weight I find for it using the Australia Post Postage Calculator and the results all work. However, according the the Australia Post site, International parcels go on weight alone with no cubing applied. So, the rates for international air module come out way too high.

Additionally, I am not sure if anyone else has installed this module for International Air, but I had to change all the fields in the english defines since they had Post_Air and the catalog/include files all used PostAir in the lines. The titles appears as field names in the module after installation until I changed these lines.

Australian Shipping Module http://www.oscommerce.com/community/contributions,648

or

Australia Post Shipping http://www.oscommerce.com/community/contributions,4610
lordofcb
The first one, 648.. auspost_v2.0.2_1 We sell a lot of odd shaped packages, where when we bring them to the post office they apply cubing rule to some and not to others, so to be safe we always use their only postage calculator to enter all product dimensions for each product and weight to get their cubing weight. But, I found when trying to use their international air entry on australia post site calculator, there is no entry for dimensions, just for weight. So, for all products shipping within Australia it works perfectly (most of our customers in aus anyways), but if someone does order from overseas, they get zapped for double postage or more since we have put within Australia cubing weight as the item weight for shipping purchases.
Coopco
QUOTE (lordofcb @ Feb 28 2007, 02:30 AM) *
The first one, 648.. auspost_v2.0.2_1 We sell a lot of odd shaped packages, where when we bring them to the post office they apply cubing rule to some and not to others, so to be safe we always use their only postage calculator to enter all product dimensions for each product and weight to get their cubing weight. But, I found when trying to use their international air entry on australia post site calculator, there is no entry for dimensions, just for weight. So, for all products shipping within Australia it works perfectly (most of our customers in aus anyways), but if someone does order from overseas, they get zapped for double postage or more since we have put within Australia cubing weight as the item weight for shipping purchases.

Don't know what you sell, but you set the dimensions of the packaging that you use in the aust post module.
lordofcb
QUOTE (Coopco @ Feb 28 2007, 09:18 PM) *
Don't know what you sell, but you set the dimensions of the packaging that you use in the aust post module.


We sell many dolls that come in widely varying package sizes. The way I understand it, the setting in the module will apply to all packages and is at set to 100x100x100mm. I tried entering a few other actual dimensions but kept getting errors returned, so i set back to 100x100x100. I did not think there was anyway to actually input the dimensions for various products, is there? Thanks for your reply.
Coopco
QUOTE (lordofcb @ Mar 1 2007, 02:34 AM) *
We sell many dolls that come in widely varying package sizes. The way I understand it, the setting in the module will apply to all packages and is at set to 100x100x100mm. I tried entering a few other actual dimensions but kept getting errors returned, so i set back to 100x100x100. I did not think there was anyway to actually input the dimensions for various products, is there? Thanks for your reply.


I did not think there was anyway to actually input the dimensions for various products, is there? Not that I know of.

Does the PO actually charge for cubic weight on international parcels?

OK, I do not understand why the PAC no longer takes dimensions on international parcels, while it does on domestic parcels. It used to. It would be best to leave the dimensions in for when they change it back. The Sept 2006 PO Guide does not mention cubic weight for international parcels, but it does for domestic parcels.

My Australia POST International Parcel Post - AIR settings are thus:

Enable auspostair
True

Insurance
100:7.50,200:9.50,300:11.50,400:13.50,500:15.50,600:17.50

Dispatch Postcode
3196

Handling Fee
5.00

Parcel Height
370

Parcel Width
405

Parcel Depth
75

Shipping Zone
World Zones

Tax Class
--none--

Sort order of display.
11

So you can see that I use one size of package.
lordofcb
QUOTE (Coopco @ Mar 1 2007, 05:45 PM) *
I did not think there was anyway to actually input the dimensions for various products, is there? Not that I know of.

Does the PO actually charge for cubic weight on international parcels?

OK, I do not understand why the PAC no longer takes dimensions on international parcels, while it does on domestic parcels. It used to. It would be best to leave the dimensions in for when they change it back. The Sept 2006 PO Guide does not mention cubic weight for international parcels, but it does for domestic parcels.

My Australia POST International Parcel Post - AIR settings are thus:

Enable auspostair
True

Insurance
100:7.50,200:9.50,300:11.50,400:13.50,500:15.50,600:17.50

Dispatch Postcode
3196

Handling Fee
5.00

Parcel Height
370

Parcel Width
405

Parcel Depth
75

Shipping Zone
World Zones

Tax Class
--none--

Sort order of display.
11

So you can see that I use one size of package.

Thanks for your reply. I can see this is going to be a real problem for us until maybe I figure out a way to modify things to actually enter an actual product weight for international and a cubic weight to use for posting within australia. The ultimate would be to have product dimensions per product in the database somehow. I will have to do some further checking to see what Australia Post actually charges for these international shipments. I am sure they must factor product size in somehow. For example, they wouldn't post a feather for me in a 2meterx2meterx2meter box for the weight of the feather+the box, would take up too much space in the air cargo.
Coopco
QUOTE (lordofcb @ Mar 2 2007, 02:05 AM) *
Thanks for your reply. I can see this is going to be a real problem for us until maybe I figure out a way to modify things to actually enter an actual product weight for international and a cubic weight to use for posting within australia. The ultimate would be to have product dimensions per product in the database somehow. I will have to do some further checking to see what Australia Post actually charges for these international shipments. I am sure they must factor product size in somehow. For example, they wouldn't post a feather for me in a 2meterx2meterx2meter box for the weight of the feather+the box, would take up too much space in the air cargo.

That would be an interesting experiment.

They also discontinued the economy air option in sept 06.
surilox
QUOTE (lordofcb @ Feb 27 2007, 02:15 AM) *
I have installed the latest AusPost shipping module and have encountered problems with the method of calculation. For within Australia there are no problems, since I sell many larger and smaller size packages, I enter the weight for the product as the cubing weight I find for it using the Australia Post Postage Calculator and the results all work. However, according the the Australia Post site, International parcels go on weight alone with no cubing applied. So, the rates for international air module come out way too high.

Additionally, I am not sure if anyone else has installed this module for International Air, but I had to change all the fields in the english defines since they had Post_Air and the catalog/include files all used PostAir in the lines. The titles appears as field names in the module after installation until I changed these lines.


I have just installed the auspost module.
Can you supply details of the changes you made to get rid of the title names?

I tried to change some of the code relating to the title and descriptions, [read "hard-code" ] as I could not find these fields in the database 'configuration' table, but this is not the best way to do things.

We will also be selling outside Australia, so are interested in correcting the airmail charges.

Coopco, note that Auspost are changing their charges as of 5 March 2007
lordofcb
QUOTE (surilox @ Mar 4 2007, 09:11 PM) *
I have just installed the auspost module.
Can you supply details of the changes you made to get rid of the title names?

I tried to change some of the code relating to the title and descriptions, [read "hard-code" ] as I could not find these fields in the database 'configuration' table, but this is not the best way to do things.

We will also be selling outside Australia, so are interested in correcting the airmail charges.

Coopco, note that Auspost are changing their charges as of 5 March 2007

Hi sorry, was away today, which titles do you mean? I will be happy to help out all I can.
surilox
QUOTE (lordofcb @ Mar 5 2007, 02:03 AM) *
Hi sorry, was away today, which titles do you mean? I will be happy to help out all I can.


In admin Where the list of shipping modules is:-
Modules Sort Order Action
MODULE_SHIPPING_AUSPOST_TEXT_TITLE 0
MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE Info
AusPost Economy 1 Info
MODULE_SHIPPING_AUSPOST_EXPRESS_TEXT_TITLE 2 Info


This is part of the detail:-
MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE
[buttons]Remove Module Edit[/buttons]

MODULE_SHIPPING_AUSPOSTAIR_TEXT_DESCRIPTION

Enable auspostair
True
.....

I have hardcoded the title for Economy in ausposteconomy.php, which is why it is different in the list above.
CODE
$this->code = 'ausposteconomy';
$this->title = MODULE_SHIPPING_AUSPOST_ECONOMY_TEXT_TITLE;
// $this->title = 'Australia Post Regular';
// $this->description = MODULE_SHIPPING_AUSPOST_ECONOMY_TEXT_DESCRIPTION;
$this->description = 'Australia Post Regular';
lordofcb
QUOTE (surilox @ Mar 5 2007, 07:33 AM) *
In admin Where the list of shipping modules is:-
Modules Sort Order Action
MODULE_SHIPPING_AUSPOST_TEXT_TITLE 0
MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE Info
AusPost Economy 1 Info
MODULE_SHIPPING_AUSPOST_EXPRESS_TEXT_TITLE 2 Info
This is part of the detail:-
MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE
[buttons]Remove Module Edit[/buttons]

MODULE_SHIPPING_AUSPOSTAIR_TEXT_DESCRIPTION

Enable auspostair
True
.....

I have hardcoded the title for Economy in ausposteconomy.php, which is why it is different in the list above.
CODE
$this->code = 'ausposteconomy';
$this->title = MODULE_SHIPPING_AUSPOST_ECONOMY_TEXT_TITLE;
// $this->title = 'Australia Post Regular';
// $this->description = MODULE_SHIPPING_AUSPOST_ECONOMY_TEXT_DESCRIPTION;
$this->description = 'Australia Post Regular';


I fixed the error in the way the module names displayed for australia post air by fixing a typo in the contribution..
The problem in the contribution is just a typo between the modules.

in includes\modules\shipping\auspostair they use
$this->title = MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE;

while in includes\languages\english\modules\shipping\auspostair they use

define('MODULE_SHIPPING_AUSPOST_AIR_TEXT_TITLE', 'AusPOST International Parcel Post - AIR');

I just went thru the english one and deleted the _ out of each ot make them all AUSPOSTAIR and the title displayed correctly after that.
Coopco
QUOTE (surilox @ Mar 4 2007, 11:11 PM) *
Coopco, note that Auspost are changing their charges as of 5 March 2007


Thanks for the tip. Here we go again.

Hope you guys are aware of

From http://www.edeliver.com.au/templates/ifs/i...ate_Calculation

Rate Calculation
Developed for online Merchants, the delivery rate calculator (DRC) can be integrated into a Merchant web site allowing the applicable delivery charge to be automatically estimated. Calculations are based on standard card rates (for the following Parcels services : Regular and Express Post parcels within Australia and international Air, Economy and Sea parcels) and incorporate merchants' product catalogue information such as product package dimensions, weight, and the destination and source postcode. An indication of delivery time within the delivery network is also available. The calculator will maintain a permanent link to Australia Post's delivery rate database, ensuring delivery rate estimates are always up-to-date.

To become a registered user of the DRC Click here to view the terms for use then, if you agree, click on the "I agree" button and technical instructions on its use and integration will be forwarded to you.

Click here goes to

https://www.edeliver.com.au/templates/ifs/IFS_DRC_Terms.htm
surilox
QUOTE (lordofcb @ Mar 5 2007, 12:57 PM) *
I fixed the error in the way the module names displayed for australia post air by fixing a typo in the contribution..
The problem in the contribution is just a typo between the modules.

in includes\modules\shipping\auspostair they use
$this->title = MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE;

while in includes\languages\english\modules\shipping\auspostair they use

define('MODULE_SHIPPING_AUSPOST_AIR_TEXT_TITLE', 'AusPOST International Parcel Post - AIR');

I just went thru the english one and deleted the _ out of each of make them all AUSPOSTAIR and the title displayed correctly after that.


Thanks for the reply.
I tried your changes - no effect! Actually it would be more consistent with the other modules & the DB to change AUSPOSTAIR to AUSPOST_AIR in includes\modules\shipping\auspostair.php.

However I still get the field name instead of the values for ALL the modules, not just Auspost.
I cannot find where it is failing to pick it up. [ doesn't help any to be testing on a remote server does it? dry.gif ]

I s'pose I could always start from scratch again, since our own product data has not been loaded crying.gif
lordofcb
QUOTE (surilox @ Mar 5 2007, 04:33 PM) *
Thanks for the reply.
I tried your changes - no effect! Actually it would be more consistent with the other modules & the DB to change AUSPOSTAIR to AUSPOST_AIR in includes\modules\shipping\auspostair.php.

However I still get the field name instead of the values for ALL the modules, not just Auspost.
I cannot find where it is failing to pick it up. [ doesn't help any to be testing on a remote server does it? dry.gif ]

I s'pose I could always start from scratch again, since our own product data has not been loaded crying.gif

Hi again,
Yes, I would say it would be easier to start again or go back thru the instructions step by step to insure all files in right locations etc. I really had no problems at all getting this contribution installed and working other than that slight typo I fixed for that one title. Also thanks to Coopco for the DRC information as well.
Coopco
QUOTE (lordofcb @ Mar 5 2007, 06:51 PM) *
Hi again,
Yes, I would say it would be easier to start again or go back thru the instructions step by step to insure all files in right locations etc. I really had no problems at all getting this contribution installed and working other than that slight typo I fixed for that one title. Also thanks to Coopco for the DRC information as well.

catalog\includes\languages\english\modules\shipping\auspostair.php

<?php
/*
$Id: auspostair.php,v 2.0.2 2003/10/15

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_TITLE', 'AusPOST International Parcel Post - AIR');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_DESCRIPTION', 'AusPOST International Parcel Post - AIR');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_UNITS', 'kg(s)');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_BOXES', 'boxes');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_INCLUDE', 'incl');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_HANDLING', 'handling');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_INSURANCE', 'insurance');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_SHIPPINGDAYS', 'days Estimated Delivery Time*');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_WAY', 'Delivery to');
define('MODULE_SHIPPING_AUSPOSTAIR_TEXT_ERROR', '<font color="#FF0000">ERROR:</font></b> The delivery rate for this option cannot be determined at this time<br>If you prefer to use this option as your shipping method, please contact the store owner.');
?>
surilox
Thanks. I have reinstalled twice now, and got most of working,

I found another typo - missing return - in catalog\includes\modules\auspostair.php line 81:
// End calculating Insurance $url ="http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$topcode&Country=$dest_country&Weight=$sweight&Service_Type=AIR&Height=$sheight&Width=$swidth&Length=$slength&Quantity=$shipping_num_boxes";

should be:
// End calculating Insurance
$url ="http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$topcode&Country=$dest_country&Weight=$sweight&Service_Type=AIR&Height=$sheight&Width=$swidth&Length=$slength&Quantity=$shipping_num_boxes";


Now just for the overseas rates (sea & air) which are a little high.
lordofcb
thanks for the extra tip on line 81. As for the DRC disclaimer, I find it to be laughable, I think I will write a modified condensed version which would read:
By providing you with a semi-reasonable if hardly ever accurate estimate for shipping, which you could actually get online or at the post office for free, we absolve ourselves of any and all liability for breakage, mis-handling by incompetents, theft, fire, rain, wind or act of God and lay all liability on the seller of the product being shipped. You have no choice but to press YES to agree, so please do so at once.
surilox
QUOTE (lordofcb @ Mar 6 2007, 01:03 AM) *
thanks for the extra tip on line 81. As for the DRC disclaimer, I find it to be laughable, I think I will write a modified condensed version which would read:
By providing you with a semi-reasonable if hardly ever accurate estimate for shipping, which you could actually get online or at the post office for free, we absolve ourselves of any and all liability for breakage, mis-handling by incompetents, theft, fire, rain, wind or act of God and lay all liability on the seller of the product being shipped. You have no choice but to press YES to agree, so please do so at once.


or else... LOVL

The shipping rates are correct from the DRC!!!
The high amount is due to the 3kg "allowance" on top of the product weight.
eg
SEA mail to europe for package of 500g plus 3kg packaging is $42.15. Less gst is $38.32 plus $5 P&H plus $7.50 INS is $50.82
voila!

Now the questions -
Where is the 3kg in the code?
Is the postage GST-free if paid from outside AU? or just the product?
Is Insurance GST-free if paid from outside AU?
Auspost offer varying insurance limits (now called Extra Cover [by an ex-Healthfund employee? rolleyes.gif ] ) depending on destination - how does the DRC cope or show this?
Registered post International is no longer available for parcels. [i.e. also no automatic insurance]
Do we need a package module eg size of cartons, and number of product per carton?
lordofcb
QUOTE (surilox @ Mar 6 2007, 11:59 AM) *
or else... LOVL

The shipping rates are correct from the DRC!!!
The high amount is due to the 3kg "allowance" on top of the product weight.
eg
SEA mail to europe for package of 500g plus 3kg packaging is $42.15. Less gst is $38.32 plus $5 P&H plus $7.50 INS is $50.82
voila!

Now the questions -
Where is the 3kg in the code?
Is the postage GST-free if paid from outside AU? or just the product?
Is Insurance GST-free if paid from outside AU?
Auspost offer varying insurance limits (now called Extra Cover [by an ex-Healthfund employee? rolleyes.gif ] ) depending on destination - how does the DRC cope or show this?
Registered post International is no longer available for parcels. [i.e. also no automatic insurance]
Do we need a package module eg size of cartons, and number of product per carton?

I am still looking out how big a deal it might be to add product dimensions into the products database and modify the code in product info and admin routines to handle it. If I can get that info in for each product, the DRC call should work perfectly instead of defaulting all package sizes to 100x100x100cm
Coopco
QUOTE (surilox @ Mar 6 2007, 12:53 AM) *
Thanks. I have reinstalled twice now, and got most of working,

I found another typo - missing return - in catalog\includes\modules\auspostair.php line 81:
// End calculating Insurance $url ="http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$topcode&Country=$dest_country&Weight=$sweight&Service_Type=AIR&Height=$sheight&Width=$swidth&Length=$slength&Quantity=$shipping_num_boxes";

should be:
// End calculating Insurance
$url ="http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$topcode&Country=$dest_country&Weight=$sweight&Service_Type=AIR&Height=$sheight&Width=$swidth&Length=$slength&Quantity=$shipping_num_boxes";
Now just for the overseas rates (sea & air) which are a little high.

Oh, the error was introduced in Australia Post 2.02c
I installed the earlier one.
Coopco
QUOTE (lordofcb @ Mar 6 2007, 02:07 PM) *
I am still looking out how big a deal it might be to add product dimensions into the products database and modify the code in product info and admin routines to handle it. If I can get that info in for each product, the DRC call should work perfectly instead of defaulting all package sizes to 100x100x100cm

It looks to me that the problem is in this area

function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable auspostair', 'MODULE_SHIPPING_AUSPOSTAIR_STATUS', 'True', 'Do you want to offer auspostair?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Dispatch Postcode', 'MODULE_SHIPPING_AUSPOSTAIR_SPCODE', '2000', 'Dispatch Postcode?', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Insurance', 'MODULE_SHIPPING_AUSPOSTAIR_INS_STATUS', 'True', 'Do you want to include insurance?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insurance Base Cost', 'MODULE_SHIPPING_AUSPOSTAIR_INS_BASE', '7.50', 'Cost for the first unit of insurance.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insurance Addition Cost', 'MODULE_SHIPPING_AUSPOSTAIR_INS_ADD', '2.00', 'Cost for each addition unit of insurance over Base Cost', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insurance Unit Size', 'MODULE_SHIPPING_AUSPOSTAIR_INS_UNIT', '100', 'Insurance units are based on these increments - (size in Dollars).', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Maximum Weight (kg)', 'MODULE_SHIPPING_AUSPOSTAIR_MAX_WEIGHT', '20', 'Maximum weight allowed by AustPost (in kg). A packaging allowance of <b>3 kg</b> is allowed. EG. 20 - 3 = 17. 17 becomes cutoff point for use.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Handling Fee', 'MODULE_SHIPPING_AUSPOSTAIR_HANDLING', '5.00', 'Handling Fee for this shipping method', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Height (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SHEIGHT', '100', 'Parcel Height (in mm)', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Width (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SWIDTH', '100', 'Parcel Width (in mm)', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Depth (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SDEPTH', '100', 'Parcel Depth (in mm)', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_AUSPOSTAIR_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_AUSPOSTAIR_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display', 'MODULE_SHIPPING_AUSPOSTAIR_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
Coopco
QUOTE (Coopco @ Mar 6 2007, 06:28 PM) *
It looks to me that the problem is in this area

function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable auspostair', 'MODULE_SHIPPING_AUSPOSTAIR_STATUS', 'True', 'Do you want to offer auspostair?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Dispatch Postcode', 'MODULE_SHIPPING_AUSPOSTAIR_SPCODE', '2000', 'Dispatch Postcode?', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Insurance', 'MODULE_SHIPPING_AUSPOSTAIR_INS_STATUS', 'True', 'Do you want to include insurance?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insurance Base Cost', 'MODULE_SHIPPING_AUSPOSTAIR_INS_BASE', '7.50', 'Cost for the first unit of insurance.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insurance Addition Cost', 'MODULE_SHIPPING_AUSPOSTAIR_INS_ADD', '2.00', 'Cost for each addition unit of insurance over Base Cost', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Insurance Unit Size', 'MODULE_SHIPPING_AUSPOSTAIR_INS_UNIT', '100', 'Insurance units are based on these increments - (size in Dollars).', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Maximum Weight (kg)', 'MODULE_SHIPPING_AUSPOSTAIR_MAX_WEIGHT', '20', 'Maximum weight allowed by AustPost (in kg). A packaging allowance of <b>3 kg</b> is allowed. EG. 20 - 3 = 17. 17 becomes cutoff point for use.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Handling Fee', 'MODULE_SHIPPING_AUSPOSTAIR_HANDLING', '5.00', 'Handling Fee for this shipping method', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Height (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SHEIGHT', '100', 'Parcel Height (in mm)', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Width (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SWIDTH', '100', 'Parcel Width (in mm)', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Parcel Depth (mm)', 'MODULE_SHIPPING_AUSPOSTAIR_SDEPTH', '100', 'Parcel Depth (in mm)', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_AUSPOSTAIR_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_AUSPOSTAIR_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display', 'MODULE_SHIPPING_AUSPOSTAIR_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");

You can change the defaults in the file, or you should be able to do it in admin (if that feature still exists in this version).
lordofcb
thanks for the tips, I will continue looking into it. Seems to be working ok I just pass the cubic weight of the item for all shipping within Australia, it is just the overseas stuff that fails when using cubic weight, so I may just remove that option and maybe try another method for international shipping zones.
mackieco
DRC link problems???

Hi,

I was wondering if anyone has been experiencing problems with the auspost modules in the last 24 hours? I was working on my site yesterday and was checking products out of my store with no problems then today all of a sudden I am experiencing a major problem when checking out. It takes a long time for the Delivery information screen to load and when it does finally I have the following errors on the top of the screen:

CODE
Warning: file(http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=4032&Destination_Postcode=4105&Country=AU&Weight=210&Service_Type=STANDARD&Height=100&Width=100&Length=100&Quantity=1) [function.file]: failed to open stream: Connection timed out in /home/inmy/public_html/includes/modules/shipping/auspost.php on line 80

Warning: Invalid argument supplied for foreach() in /home/inmy/public_html/includes/modules/shipping/auspost.php on line 81

Warning: file(http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=4032&Destination_Postcode=4105&Country=AU&Weight=210&Service_Type=EXPRESS&Height=100&Width=100&Length=100&Quantity=1) [function.file]: failed to open stream: Connection timed out in /home/inmy/public_html/includes/modules/shipping/auspostexpress.php on line 81

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


I have looked in the two files where these errors are occuring and it is where the drc url appears. Also when the page finally loads each auspost option has the following error: "ERROR: The delivery rate for this option cannot be determined at this time
If you prefer to use this option as your shipping method, please contact the store owner."

I have not made any changes to these modules in the last 24 hours so why this is suddenly happening I dont know. Is it possible that the drc site is down or under maintenance or the url for the rate calculator has changed?

Any ideas?
Jan Zonjee
QUOTE (mackieco @ May 19 2007, 03:12 PM) *
I have not made any changes to these modules in the last 24 hours so why this is suddenly happening I dont know. Is it possible that the drc site is down or under maintenance or the url for the rate calculator has changed?

Yes, their server is down:
CODE
curl -v http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=4032&Destination_Postcode=4105&Country=AU&Weight=210&Service_Type=STANDARD&Height=100&Width=100&Length=100&Quantity=1
[1] 1043
[2] 1044
[3] 1045
[4] 1046
[5] 1047
[6] 1048
[7] 1049
[8] 1050
* About to connect() to drc.edeliver.com.au port 80
*   Trying 155.144.24.25... * Operation timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
mackieco
Thanks for the confirmation. Good to know I havent done anything wrong here. How did you find out it was down?
Jan Zonjee
QUOTE (mackieco @ May 19 2007, 04:36 PM) *
How did you find out it was down?

First pasted that url in a browser and nothing happened. Checked again with curl in a terminal window (standard on Mac and Linux) and indeed the problem was that the host cannot be reached (could also be a problem with my internet connection but that is pretty unlikely as I don't experience any problems and you also had the problem with the same site).
Coopco
QUOTE (JanZ @ May 20 2007, 12:42 AM) *
First pasted that url in a browser and nothing happened. Checked again with curl in a terminal window (standard on Mac and Linux) and indeed the problem was that the host cannot be reached (could also be a problem with my internet connection but that is pretty unlikely as I don't experience any problems and you also had the problem with the same site).

Yes, it is down again. I found out whan I was testing a new contrib.
Who knows what they are doing this time. It is not the usual error response that I get.
I have had to disable the aust post modules and just have my zone rates in.
mackieco
QUOTE (Coopco @ May 19 2007, 04:10 PM) *
Yes, it is down again. I found out whan I was testing a new contrib.
Who knows what they are doing this time. It is not the usual error response that I get.
I have had to disable the aust post modules and just have my zone rates in.


I wonder if there is anyway to have warning from Auspost if they ever have site maintenance etc in the future. As long as they are down then customers can't checkout and will be presented with all of the errors which would most definitley scar them off. I know I would be.
Coopco
QUOTE (mackieco @ May 20 2007, 01:37 AM) *
I wonder if there is anyway to have warning from Auspost if they ever have site maintenance etc in the future. As long as they are down then customers can't checkout and will be presented with all of the errors which would most definitley scar them off. I know I would be.

Well, if you read and abide by their conditions of use of the drc, you will find that they take the same responsibility for the use of the drc as they do for items that are posted (ie none).

It would not be hard for them to have a register of interested users that would like notifications of the unavailabilty of their service so that they can be notified.

I will be looking for an alternative carrier.

If any carrier would like to email me, I will check out their service.
Coopco
QUOTE (Coopco @ Mar 1 2007, 06:45 PM) *
I did not think there was anyway to actually input the dimensions for various products, is there? Not that I know of.

Does the PO actually charge for cubic weight on international parcels?

OK, I do not understand why the PAC no longer takes dimensions on international parcels, while it does on domestic parcels. It used to. It would be best to leave the dimensions in for when they change it back. The Sept 2006 PO Guide does not mention cubic weight for international parcels, but it does for domestic parcels.

My Australia POST International Parcel Post - AIR settings are thus:

Enable auspostair
True

Insurance
100:7.50,200:9.50,300:11.50,400:13.50,500:15.50,600:17.50

Dispatch Postcode
3196

Handling Fee
5.00

Parcel Height
370

Parcel Width
405

Parcel Depth
75

Shipping Zone
World Zones

Tax Class
--none--

Sort order of display.
11

So you can see that I use one size of package.

Stupid me. I have only just realised that I must use the Tax Class as Australian GST, which in turn affects the handling fee. I do not know why I did not pick this up earlier.
mackieco
Changing the delivery times??

Does anyone know how I can change the estimated delivery time on the Order Confirmation screen? I presume this time is calculated by the drc site depending on the postcodes of dispatch Vs delivery addresses. My client wants it to state something like: 'Items will arrive within 10 business days'. Anyone know how I can do this?

Thanks in advance.
Coopco
QUOTE (mackieco @ May 27 2007, 02:10 AM) *
Changing the delivery times??

Does anyone know how I can change the estimated delivery time on the Order Confirmation screen? I presume this time is calculated by the drc site depending on the postcodes of dispatch Vs delivery addresses. My client wants it to state something like: 'Items will arrive within 10 business days'. Anyone know how I can do this?

Thanks in advance.

I believe that the time is taken from the drc, but you edit the correspoding file in includes/laguages/englsh/modules/shipping to say

define('MODULE_SHIPPING_AUSPOST_TEXT_SHIPPINGDAYS', 'days Estimated Delivery Transit Time* but items will arrive within 10 business days.');

or something along those lines should work.
mackieco
Thanks, that worked well. Cheers.
Sanity
The minimum charge seems to be $6 any idea how to make it a fixed amount of $12 rather than using the handling charge? cheers
Coopco
QUOTE (Sanity @ Jun 18 2007, 04:09 PM) *
The minimum charge seems to be $6 any idea how to make it a fixed amount of $12 rather than using the handling charge? cheers

Use a flat rate table.
Sanity
QUOTE (Coopco @ Jun 18 2007, 10:41 AM) *
Use a flat rate table.

No Good, i still need the flexibility. I found the other version (epsat.php) which does how ever many levels of pricing and then disappears from site at a certain weight point, cheers.
toptiara
I don't see a fix for the 3kg added weight issue, unless I'm going blind (may be happening in my old age!)

Did anybody managed to get around this? I'd like to keep using the online calculator if possible, but as our parcels are very light (under 300 grams each) and the minimum charge using the calculator is 30+ $, I currently cannot do so. Real costs for shipping are more like $10 for a single parcel to the UK for example.

Thanks
Coopco
QUOTE (toptiara @ Jun 20 2007, 11:42 PM) *
I don't see a fix for the 3kg added weight issue, unless I'm going blind (may be happening in my old age!)

Did anybody managed to get around this? I'd like to keep using the online calculator if possible, but as our parcels are very light (under 300 grams each) and the minimum charge using the calculator is 30+ $, I currently cannot do so. Real costs for shipping are more like $10 for a single parcel to the UK for example.

Thanks

Did you look in admin configuration shipping/packaging and find a tare weight of 3 kgs set?
toptiara
QUOTE (Coopco @ Jun 21 2007, 11:41 AM) *
Did you look in admin configuration shipping/packaging and find a tare weight of 3 kgs set?



You are a star! Exactly where the problem was.

I have made a couple of changes to this contribution and posted it. I included some detail about the tare weight in the new install details, so hopefully will make other people's lives a little easier smile.gif
Coopco
QUOTE (toptiara @ Jul 1 2007, 04:38 PM) *
You are a star! Exactly where the problem was.

I have made a couple of changes to this contribution and posted it. I included some detail about the tare weight in the new install details, so hopefully will make other people's lives a little easier smile.gif

Fantastic, will check it out shortly. I am in the middle of getting another contrib installed.
Coopco
QUOTE (toptiara @ Jul 1 2007, 04:38 PM) *
You are a star! Exactly where the problem was.

I have made a couple of changes to this contribution and posted it. I included some detail about the tare weight in the new install details, so hopefully will make other people's lives a little easier smile.gif

Well I tried your new changes. It is fantastic and highly recommended.

If updating your site (as opposed to a fresh install), after you copy the new files (and you need to copy all of them), in admin, you need to remove then install the existing ones, then do your edits to package sizes etc).
toptiara
QUOTE (Coopco @ Jul 3 2007, 01:59 PM) *
Well I tried your new changes. It is fantastic and highly recommended.

If updating your site (as opposed to a fresh install), after you copy the new files (and you need to copy all of them), in admin, you need to remove then install the existing ones, then do your edits to package sizes etc).


blush.gif

Thank you so much for the compliment! You totally made my day smile.gif
pingpongrob
Hi, Can any one help me with the austpost shipping module that I have just installed.

I install the latest version from toptaira, to solve the problem with UK based postcodes, but now I get this error message.

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2DG >= t_postcode and LE5 2DG <= t_postcode' at line 4

SELECT * FROM tnt_zones WHERE LE5 2DG >= t_postcode and LE5 2DG <= t_postcode

[TEP STOP]


I'm have no idea whats causing the problem.

Thanks in advance.
Coopco
QUOTE (pingpongrob @ Jul 8 2007, 11:37 PM) *
Hi, Can any one help me with the austpost shipping module that I have just installed.

I install the latest version from toptaira, to solve the problem with UK based postcodes, but now I get this error message.

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2DG >= t_postcode and LE5 2DG <= t_postcode' at line 4

SELECT * FROM tnt_zones WHERE LE5 2DG >= t_postcode and LE5 2DG <= t_postcode

[TEP STOP]


I'm have no idea whats causing the problem.

Thanks in advance.

Fresh install or update?

Mine was an update, so I did not use the sql file.

In the sql, you could try changing
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
to
) TYPE=MyISAM;

I don't know what I am doing, but it is worth a try. Something to do with the MySQL version?
pingpongrob
Mine was an update as well.

Have you tried doing a UK based sale, just to see if you also have the problem.
Coopco
QUOTE (pingpongrob @ Jul 9 2007, 12:23 AM) *
Mine was an update as well.

Have you tried doing a UK based sale, just to see if you also have the problem.

Ok, just tried one to the confirmation page using SL7 2JT (I know this one is valid) as the post code. No problems encountered.
Coopco
QUOTE (Coopco @ Jul 9 2007, 12:30 AM) *
Ok, just tried one to the confirmation page using SL7 2JT (I know this one is valid) as the post code. No problems encountered.

I tried it without the insurance option being enabled in either airmail option. Maybe try disabling the insuredauspostair.php being enabled and see what you get by having only the auspostair.php the only option for international.
pingpongrob
Same Problem, Here is the error

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2JT >= t_postcode and SL7 2JT <= t_postcode' at line 4

SELECT * FROM tnt_zones WHERE SL7 2JT >= t_postcode and SL7 2JT <= t_postcode

[TEP STOP]


its only when I select the international UK post code.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.