我在 OpenCart 1.5.6 中仅用于主页的自定义框内容显示条件下使用。&这工作正常。
我在header.tpl
文件中使用了这个。
<?php if (!isset($this->request->get['route']) || $this->request->get['route'] == 'common/home') {?>
/////////////////////////
/ /
/ /
/ /
/ Box Content /
/ /
/ /
/ /
/ /
/////////////////////////
<?php } ?>
但是,这在 OpenCart 2.0 中不起作用。
如何在 Opencart 2.0 中实现相同的目标?