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 -->
            <?php 
          $_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>
          </li>
      <!-- HOME BUTTON HACK -->
            <?php foreach ($this->getStoreCategories(10) as $_category):?>
           <?php echo $this->drawItem($_category) ?>
            <?php endforeach ?>
            </ul>
        </div>
        <?php echo $this->getChildHtml('topLeftLinks') ?>
    </div>



 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs