ecshop中下定单出现错误。好像是选了配送方式的问题!Warning: number_format() expects parameter 1 to be double, string given in .....includes\lib_common.php on line 959
解决方法:
将includes\lib_common.php 的957~959行:
else
{
$price = number_format($price, 2, '.', '');
}
修改为
else
{
if(!$price){
$price = 0;
}
$price = number_format($price, 2, '.', '');
}
即可。原因是配送插件里面的免费额度为0,ec本身的bug导致了$price的值为空值,直接调用number_format出现了错误。
| [在线统计:目前正有 90 位朋友选择ecshop模板] 2005-2012 北京OK模板之家 版权所有. 北京市公安局海淀分局备案编号:1101084689 京ICP备09046109号 |