Home > php教程 > php手册 > ecshop发票不能使用出现flow.php on line 723等报错

ecshop发票不能使用出现flow.php on line 723等报错

WBOY
Release: 2016-06-06 19:48:15
Original
1239 people have browsed it

最模板给客户ecshop网站做编码转换出现个问题,网站在点结算页面出现Warning: Invalid argument supplied for foreach flow.php on line 723报错 找到723行代码是: foreach ($_CFG['invoice_type']['type'] as $key = $type) { if (!empty($type)) { $inv_t

最模板给客户ecshop网站做编码转换出现个问题,网站在点结算页面出现Warning: Invalid argument supplied for foreach flow.php on line 723报错

找到723行代码是:

 foreach ($_CFG['invoice_type']['type'] as $key => $type) 

      { 

          if (!empty($type)) 

          { 

              $inv_type_list[$type] = $type . ' [' . floatval($_CFG['invoice_type']['rate'][$key]) . '%]'; 

          } 

      } 

直接 给foreach 前加//  可以结束掉此行代码,网页不显示错误, 也可以把

foreach ($_CFG['invoice_type']['type'] as $key => $type) 

改成

foreach ((array) $_CFG['invoice_type']['type'] as $key => $type) 

网页显示为正常。但是发票那不可输入内容。

后面最模板排查到问题,还是因为ECSHOP 发票类型及税率为空才出现。

所以最模板总结此处发票若出问题,请按照以下设置:

1、是否能开发票 选择能  

2、发票内容  这个一定要填写 否则 在结算页面不会出现发票的信息及选择

3、发票类型及税率:  这个也要填写,不然会出现本文的报错

还有什么不明白,最模板欢迎大家留言,最模板会跟进答复!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template