assign('lang1', $_LANG1); require_once (ROOT_PATH . 'includes/lib_order.php'); $consignee = get_consignee($_SESSION['user_id']); /* 取得国家列表、商店所在国家、商店所在国家的省列表 */ $smarty->assign('country_list', get_regions()); $smarty->assign('shop_country', $_CFG['shop_country']); $smarty->assign('shop_province_list', get_regions(1,1)); if(empty($consignee['province'])) { $consignee['province'] = $GLOBALS['_CFG']['shop_province']; } if(empty($consignee['city'])) { $consignee['city'] = $GLOBALS['_CFG']['shop_city']; } $city_list = get_regions(2, $consignee['province']); $smarty->assign('city_list', $city_list); $district_list = get_regions(3, $consignee['city']); $smarty->assign('district_list', $district_list); $payment_list = available_payment_list(1, $cod_fee); $smarty->assign('payment_list', $payment_list); $smarty->assign('consignee', $consignee); /* 取得配送列表 */ $region = array(1, $consignee['province'], $consignee['city'], $consignee['district']); $shipping_list = available_shipping_list($region); $insure_disabled = true; $cod_disabled = true; ?>