ecshop只帶的配送方式BUG
只要不是正式商業版的ECSHOP都會出現 配送方式配置出錯。提示
Warning: number_format() expects parameter 1 to be double, string given in D:/**/lib_common.php on line 959
Warning: number_format() expects parameter 1 to be double, string given in D:/**/lib_common.php on line 959
原因是配送插件里面的免費額度為0,ec本身的bug導致了$price的值為空值,直接調用number_format出現了錯誤。
修改:
將includes/lib_common.php 的957~959行:
else
{
$price = number_format($price, 2, '.', '');
}
修改為
else
{
if(!$price){
$price = 0;
}
$price = number_format
以上就是本文章的內容,希望對大家有所幫助。
新聞熱點
疑難解答