VQCache文件中的OpenCart PHP错误
我们刚刚重新设计了一个运行在OpenCart上的客户电子商务网站。我们正在试图追踪错误日志中看到的错误,但到目前为止我们一直没有发现: PHP注意:未定义索引:在第360行的…/vqmod/vqcache/vq2-catalog\u view\u theme\u margaretha\u template\u common\u header.tpl中路由 该行代码为:VQCache文件中的OpenCart PHP错误,php,opencart,vqmod,Php,Opencart,Vqmod,我们刚刚重新设计了一个运行在OpenCart上的客户电子商务网站。我们正在试图追踪错误日志中看到的错误,但到目前为止我们一直没有发现: PHP注意:未定义索引:在第360行的…/vqmod/vqcache/vq2-catalog\u view\u theme\u margaretha\u template\u common\u header.tpl中路由 该行代码为: <?php if ($this->request->get['route'] != 'common/home'
<?php if ($this->request->get['route'] != 'common/home') { ?>
<div id="free-shipping">
<p>Free shipping on all orders!</p>
</div>
<?php } ?>
所有订单均免费送货
我不确定这为什么会抛出错误。有什么想法吗?按如下方式更改您的if条件:
<?php if (isset($this->request->get['route']) && $this->request->get['route'] != 'common/home') { ?>
<div id="free-shipping">
<p>Free shipping on all orders!</p>
</div>
<?php } ?>
所有订单均免费送货
代码可能位于主题文件夹的common/header.tpl
或某些vqmod xml文件中(编辑文件/vqmod/vqcache/vq2-catalog\u view\u theme\u margaretha\u template\u common\u header.tpl
不会进行任何更改)
祝你今天愉快