在opencart中如何获取我的模板联系我们页面
我需要显示我的模板联系我们页面,而不是默认的联系我们页面。如何获取我的模板联系我们页面的链接在opencart中如何获取我的模板联系我们页面,opencart,Opencart,我需要显示我的模板联系我们页面,而不是默认的联系我们页面。如何获取我的模板联系我们页面的链接 在目录->信息下,我找不到我的模板联系我们页面,但在我的模板文件夹中,我有一个信息文件夹中的联系我们页面(contact.tpl)。在目录/controller/information/contact.php中,您可以找到选择模板文件的代码,如下所示: //condition checks whether the current theme has got a template file for
在目录->信息下,我找不到我的模板联系我们页面,但在我的模板文件夹中,我有一个信息文件夹中的联系我们页面(contact.tpl)。在
目录/controller/information/contact.php
中,您可以找到选择模板文件的代码,如下所示:
//condition checks whether the current theme has got a template file for contact.
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/contact.tpl')) {
$this->template = $this->config->get('config_template') . '/template/information/contact.tpl';
} else { // fall back to default contact template if current theme doesn't have a template file for contact
$this->template = 'default/template/information/contact.tpl';
}
如果新主题的文件存在,请检查文件权限
祝你今天愉快 我通过更新联系人页面的布局,并附加我需要在联系人页面布局中显示的模块,获得了输出(左栏).您正在使用新主题吗?是的,但我无法获得带有侧栏的主题布局,就像我在其他信息页面@Sankar VDid中获得的一样。您是否检查您的主题是否有用于联系的模板
您的新主题文件夹/template/information/contact.tpl
-检查此文件是否存在!是的,我已经证实了它的存在。