OpenCart 1.5.x. 如何编辑页脚链接和版权通知
May 25, 2012
登录到OpenCart管理面板. In your browser address bar type http://yourdomain.com/admin. 如果您已将openart安装在子文件夹下 “store” 例如,上面的URL将更改为 http://yourdomain.com/store/admin. 使用您的用户名和密码登录.
We will edit footer links and 版权通知.
The footer links and 版权通知 应该被编辑为 footer.tpl 文件,它位于 /目录/视图/主题/ themeXXX /模板/常见 folder
您应该使用任何PHP/代码编辑它 editor
First column is displaying 信息/内容 pages
你可以在OpenCart管理面板中编辑它们. Navigate to Catalog > Information. Here one can edit 信息/内容 pages.
第二,第三,第四和版权栏 中定义的链接是否显示 footer.tpl file
第二列代码:
Third column code:
第四栏代码:
版权栏目代码:
$text_contact, $text_return, $text_sitemap, $text_manufacturer, $ text_凭证,$text_affiliate, $text_special, $text_account, $text_order, $text_wishlist, $ text_listnewsletter $text_powered变量显示文本 footer 菜单并在语言文件中定义.
中显示的存储标题 footer 版权通知 可以通过管理面板更改: System->Settings->Your Store Name->General tab->Store Name
的语言文件 footer is called footer.php and is located in /目录/语言/英语/常见 folder
使用任何PHP/代码编辑该文件 editor
// Text
$_['text_information'] = '信息';
$_['text_service'] = '客户服务';
$_['text_extra'] = ' extra';
$_['text_contact'] = '通讯录';
$_['text_return'] = '返回';
$_['text_sitemap'] = '网站地图';
$_['text_manufacturer'] = 'Brands';
$_['text_voucher'] = '礼券';
$_['text_affiliate'] = ' affiliate';
$_['text_special'] = '特惠';
$_['text_account'] = '我的账户';
$_['text_order'] = '订单记录';
$_['text_wishlist'] = '愿望清单';
$_['text_newsletter'] = 'Newsletter';
$_['text_powered'] = 'Powered By OpenCart %s © %s';
?>
中使用的所有变量 footer.tpl with theirs values.
To change Contacts to Contact Us 应该编辑下面的代码行:
$_[' text_contact '] = '通讯录';
and change it to
$_[' text_contact '] = 'og体育';
中添加外部或内部链接 footer 要编辑的菜单 /目录/视图/主题/ themeXXX /模板/共同/footer.tpl file.
E.g. to add link to http://google.Com到第二列,我们应该找到第二列的代码 footer.tpl file
复制最后一行代码:
添加新行并粘贴我们复制的代码. 请编辑如下:
请随时查看下面的详细视频教程: