Australia Post shipping
UncleBuck:
Given that I am a new Mambo and phpShop user, how easy would it be to create a shipping module for Australia Post by using their site at http://drc.edeliver.com.au/
They give all the details as to what would need to be passed to their web application and what gets returned.
See http://drc.edeliver.com.au/#Software
Yak:
Bump ;D
This would be a nice inclusion for us Aussies :o
UncleBuck:
I know there is an osCommerce module that does this.
Does anyone know if an OC module could be easily converted for phpShop?
scotta:
I also looked into this a while ago. The Aust Post Delivery Rate Calculator would be a great tool to use as it has up to date shipping rates. At the time I had no idea how to go about it so I modified the Standard Shipping module to add a weight based component and then added a total of 250+ shipping rates to cover standard, express, os standard and os express.
I note that in the new pre-stable 1.2 release there is a Canadian Shipping module. If this uses a similar system to Aust Post then it may be a basis for a suitable hack.
Just need a good programmer out there to help us Australians out.
Scott
echidna:
I'm looking for this myself (and have posted elsewhere on the forum about it).
I've worked out how to use a php script to query the Australia Post Server but cannot yet get my head around feeding the 'real' variable from mambophpshop into the script.
What I've got so far looks like:
Code:
<?php
//set up the variables for Australia Post Query
$var_pickup = '2476';
$var_destination = '2001';
$var_country = 'AU';
$var_weight = '100';
$var_service = 'Standard';
$var_length = '100';
$var_width = '100';
$var_height = '100';
$var_quantity = '1';
// Collect variables into the query URI for Australia Post
$myfile=file('http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode='.$var_pickup.'&Destination_Postcode='.$var_destination.'&Country='.$var_country.'&Weight='.$var_weight.'&Service_Type='.$var_service.'&Length='.$var_length.'&Width='.$var_width.'&Height='.$var_height.'&Quantity='.$var_quantity);
// Get Australia Post charge value separate to 'charge='
$APchargeArray = split('=',$myfile[0]);
$APcharge = $APchargeArray[1];
// Get Australia Post Time separate to 'days='
$APtimeArray = split('=',$myfile[1]);
$APtime = $APtimeArray[1];
// error message
$APerrorArray = split('=',$myfile[2]);
$APerrorMessage = $APerrorArray[1];
?>
So there are the input variables, and the output variables for Australia Post queries are:$APcharge$APtime$APerrorMessage
$var_service could be hard coded into the script or be a choice made in the back end.
But I'm sure that the other variables are already in mambophpshop, so it *should* simply be a matter of
Code:
<?php $var_pickup = $mambophpshopShopPostcodeVariableName; ?>
Whatever '$mambophpshopShopPostcodeVariableName' actually is? And so on the same for all the other variables in and out of mambo-phpshop.
Hoping some of yall can help
; D
Navigation
[0] Message Index
[#] Next page