donglin8467 2014-11-12 17:53 采纳率: 0%
浏览 142
已采纳

如何在opencart中删除最常查看的页面中的警告? [关闭]

how to remove warring in opencart most view page?

everything work fine only show this below notice please help me how to remove.

http://www.a1dealshop.com/about-us

Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49 Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49Notice: Undefined index: stock_status in /home/adealsho/public_html/vqmod/vqcache/vq2-catalog_controller_module_mostview.php on line 49

  • 写回答

1条回答 默认 最新

  • douxing8939 2014-11-13 02:00
    关注

    The function isset() checks to see if the variable is set and not null. http://php.net/manual/en/function.isset.php. Since it is in your controller file it should look something like this:

    if (isset($this->request->post['stock_status'])) { $this->data['stock_status'] = $this->request->post['stock_status']; } else { $this->data['stock_status'] = ''; } (your basically sending it to view).

    Note: It is hard to say because I am not looking at your code, also if your are going to be messing with code avoid core files and change files in VQmod->VQcache.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 有人会SIRIUS 5.8.0这个软件吗
  • ¥30 comsol仿真等离激元
  • ¥15 静电纺丝煅烧后如何得到柔性纤维
  • ¥15 (标签-react native|关键词-镜像源)
  • ¥100 照片生成3D人脸视频
  • ¥15 伪装视频时长问题修改MP4的时长问题,
  • ¥15 JETSON NANO
  • ¥15 VS开发qt时如何在paintgl函数中用pushbutton控制切换纹理
  • ¥20 关于 openpyxl 处理excel文件地问题
  • ¥15 MS中不知道高分子的构型怎么构建模型