Tạo link mới trên menu bar

Last modified by xlim5 on Thu, February 12, 2009 20:39
Source|Old Revisions  |  Back To Group

Bạn sửa file top.phtml theo đường dẫn app/design/frontend/default/default/template/catalog/navigation/

  <div class="header-nav-container">
        <div class="header-nav">
            <h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
            <ul id="nav">
            <!-- Link mới -->
            <!-- HOME BUTTON HACK -->
          $_anyActive = false; 
          foreach ($this->getStoreCategories() as $_category) { 
              $_anyActive = $_anyActive || $this->isCategoryActive($_category); 
          <li class="<?php echo !$_anyActive ? 'active' : '' ?>">
              <a href="<?php echo $this->getUrl('')?>"><?php echo $this->__('Home') ?></a>
      <!-- HOME BUTTON HACK -->
            <?php foreach ($this->getStoreCategories(10) as $_category):?>
           <?php echo $this->drawItem($_category) ?>
            <?php endforeach ?>
        <?php echo $this->getChildHtml('topLeftLinks') ?>


Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs