| ZenCart 的 zen_currency_exists 函数是检验指定的货币代码的货币是否存在,如果存在返回该货币的货币代码,如果不存在,返回false 第一个参数就是指定货币的货币代码,比如美元就是usd 第二个参数是指是否返回默认货币,就是网站指定的默认货币,汇率为1的 函数原型代码 function zen_currency_exists($code, $getFirstDefault = false) { global $db; $code = zen_db_prepare_input($code); $currency_code = “select code from ” . TABLE_CURRENCIES . ” where code = ‘” . zen_db_input($code) . “‘ LIMIT 1″; $currency_first = “select code from ” . TABLE_CURRENCIES . ” order by value ASC LIMIT 1″; $currency = $db->Execute(($getFirstDefault == false) ? $currency_code : $currency_first); if ($currency->RecordCount()) { return strtoupper($currency->fields['code']); } else { return false; } }(责任编辑:最模板) | 



 Prestashop外贸数码电子商城
							人气:263
							Prestashop外贸数码电子商城
							人气:263
						 ecshop眼镜模板商城|眼镜网
							人气:2924
							ecshop眼镜模板商城|眼镜网
							人气:2924
						 ecshop绿盒子模板|童装用品
							人气:1488
							ecshop绿盒子模板|童装用品
							人气:1488
						 仿趣qu.cc成人用品ecshop模板
							人气:1154
							仿趣qu.cc成人用品ecshop模板
							人气:1154
						 免费ecshop响应式设计手机
							人气:16800
							免费ecshop响应式设计手机
							人气:16800
						 ecshop逛街模板程序源码
							人气:1359
							ecshop逛街模板程序源码
							人气:1359