Jump to content


Photo

shipping table option


  • Please log in to reply
No replies to this topic

#1 fazzfarrell

fazzfarrell
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts

Posted 10 October 2006 - 01:29 PM

I have crated my shipping formula as below that works
<?php
// IntelliCART MX - Calculate Zone Shipping (Single)-(post)-(true)
if (isset($HTTP_POST_VARS["IMX_CalcZoneShip1"])) {
include_once(IMX_DIR . "/../Connections/jag.php");
$IMX_SHIPCALC = new zoneCalc();
$IMX_SHIPCALC->zoneTable = "dhl_zoneid";
$IMX_SHIPCALC->zoneNumberColumn = "zone_number";
$IMX_SHIPCALC->zoneCountryColumn = "zone_country";
$IMX_SHIPCALC->priceTable = "dhl_pricing";
$IMX_SHIPCALC->priceZoneColumn = "zone_price";
$IMX_SHIPCALC->priceWeightColumn = "zone_weight";
$IMX_SHIPCALC->priceAmountColumn = "zone_price";
$IMX_SHIPCALC->destination = "UK";
$IMX_SHIPCALC->weight = $HTTP_SESSION_VARS["icJag"]->col("TotalWeight");
$IMX_SHIPCALC->conn = &$jag;
$IMX_SHIPCALC->dbName = $database_jag;
$HTTP_SESSION_VARS["icJag"]->shippingPrice = $IMX_SHIPCALC->calculate();
}
?>

it is picking up the delivery destination from $IMX_SHIPCALC->destination = "UK";

but I want to be able to use a drop down menu to choose the country, I have a table with the relevant countrys in it, which works I have tested it by changing 'UK' to 'USA' etc

anyone help!

thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users