本博客基于Opencart2.1.0.1源码,架设在阿里云香港机房!  技术交流QQ群:103164069
  • opencart头部显示邮箱
vim catalog/controller/common/header.php  //大致87行
找到$data['telephone'] = $this->config->get('config_telephone');这一行的下面添加
$data['email'] = $this->config->get('config_email');//这个是从数据库中取出已经设置的邮箱

vim catalog/view/theme/default/template/common/header.tpl  //大致在48行
       <div id="top-links" class="nav pull-right">\n
         <ul class="list-inline">\n
           <li><a href="<?php echo $contact; ?>"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md"><?php echo $telephone; ?></span></li>\n
           <li><i class="fa fa-envelope"></i><a href="mailto:<?php echo $email ?>"><span class="hidden-xs hidden-sm hidden-md"><?php echo $email ?></span></a></li>

Write a review

Please login or register to review
浏览次数:1206

opencart头部显示邮箱

  • Product Code: opencart头部显示邮箱
  • Availability: In Stock
  • ¥0.00