页面部分未在MegaShop主题中编辑

时间:2018-02-07 18:31:41

标签: php opencart

我正在使用 MegaShop主题进行OpenCart,现在正尝试编辑它的页脚部分。但不幸的是,我无法在其中添加额外的链接并尝试以下操作:以下是查看页脚MegaShop Theme的链接

首先从 / catalog / language / english / common 打开此文件footer.php,并添加额外链接和现有链接:

//Default links in the theme
$_['text_extra'] = 'Make Money with Us';
$_['text_contact'] = 'Careers';

//New links given
$_['text_become_a_partner'] = 'Become a Partner';
$_['text_become_an_affiliate_advertise_with_us'] = 'Become an Affiliate -
Advertise With Us';

然后从 / catalog / controller / common 检查此文件footer.php,并按如下所示进行以下操作:

$data['text_extra'] = $this->language->get('text_extra');
$data['text_become_a_partner'] = $this->language->get('text_become_a_partner'); //Added this to the file

$this->load->model('catalog/information');

然后同样把最后一行放在footer.tpl - / catalog / view / theme / megashop / template / common

<div class="col-md-2 col-sm-4">
  <h5 class="box-heading"><span><?php echo $text_extra; ?></span></h5>
    <ul class="list-unstyled">
       <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
       <li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
       <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
       <li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>
       //Added the below line
       <li><a href="<?php echo $become_a_partner; ?>"><?php echo $text_become_a_partner; ?></a></li>
    </ul>
</div>

但我没有看到页脚部分或更新中的任何更改。是否有任何我想要获取新添加的链接?

N.B :以同样的方式,我想编辑页脚的关于我们部分,如电子邮件和其他相关内容。但是不能在文件中更新任何选项,特别是在这个文件中: footer.tpl - / catalog / view / theme / megashop / template / common

0 个答案:

没有答案