If you have a large zones file you will run into a simple problem...
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'] . "'" );
Simple fix to it sending over an invalid state id of ML instead of MD.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']."'");





LinkBack URL
About LinkBacks






so endith the lesson

Bookmarks