If you have a
large zones file you will run into a simple problem...
Code:
$zone_query = tep_db_query("select zone_code from " . TABLE_ZONES . " where zone_name = '" . $order->delivery['state'] . "'" ); so what if your zone file contains say TWO "Maryland"'s (One in Liberia and one in the US)
Code:
$zone_query = tep_db_query("select zone_code from " . TABLE_ZONES . " where zone_name = '" . $order->delivery['state'] . "' and zone_country_id = '".$order->delivery['country']['id']."'"); Simple fix to it sending over an invalid state id of ML instead of MD.
__________________

so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB