Hi,
I have been provided some code to use for a shipping module. Which can be incorporated in Zen Carts. I am no coder and have no idea where to start.
This is the code i was given. Can someone help.
[FONT=Courier][FONT=Arial]These instructions are for web sites built using PHP scripting language versions 3 and 4.[/FONT]
[FONT=Arial]1 ACTIVATING THE DRC [/FONT]
[FONT=Arial]Send the following code to the DRC : [/FONT]
[FONT=Courier]$myfile=file('http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode='.$var_pickup.'&Destination_Postcode='.$var_destina tion.'&Country='.$var_country.'&Weight='.$var_weight.'&Service_Type='.$var_servi ce.'&Length='$var_length.'&Width='.$var_width.'&Height='.$var_height.'&Quantity= '.$var_quantity);[/FONT]
[FONT=Arial]Note[/FONT][FONT=Arial] : Code in the above must be built as a single line.[/FONT]
[FONT=Arial]Example of PHP query to obtain data for above code[/FONT]
$qs .= 'Height='.$HTTP_POST_VARS["Height"].'&';
$qs .= 'Length='.$HTTP_POST_VARS["Length"].'&';
$qs .= 'Width='.$HTTP_POST_VARS["Width"].'&';
$qs .= 'Weight='.$HTTP_POST_VARS["Weight"].'&';
$qs .= 'Pickup_Postcode='.$HTTP_POST_VARS["Pickup_Postcode"].'&';
$qs .= 'Destination_Postcode='.$HTTP_POST_VARS["Destination_Postcode"].'&';
$qs .= 'Country='.$HTTP_POST_VARS["Country"].'&';
$qs .= 'Service_Type='.$HTTP_POST_VARS["Service_Type"].'&';
[FONT=Courier New]$qs .= 'Quantity='.$HTTP_POST_VARS["Quantity"]; . [/FONT]
[/FONT]
[FONT=Courier][FONT=Times New Roman]I have also been provided with Country Codes which can also be used.[/FONT]
[FONT=Times New Roman]I.E. Australia --- AU[/FONT]
I had a go and copyed the above code into a new file called it aust_post.php and uploaded it to
**/catalog/includes/modules/shipping/
This was a stab in the dark and didnt work :)
Thanks to anyone that can help[/FONT]




