2017-02-21 3 views
1

Ich habe diesen statischen Header toplink mit 4 Links: Mein Konto, Mein Warenkorb, Kasse, Login.Wie ändert man Header Toplinks Namen in Magento 1?

Ich möchte die Namen und die Ahrefs dieser 4 Links ändern, wie kann ich das tun?

Das ist meine header.phtml Datei:

<div class="header-container"> 

<div class="topbar"> 
    <?php echo $this->getChildHtml('topLinks') ?> 
    <?php echo $this->getChildHtml('topSearch') ?> 
</div> 

<div class="header"> 
    <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getSkinUrl('images/logo.png'); ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a> 

    <?php echo $this->getChildHtml('topMenu') ?> 
    <?php echo $this->getChildHtml('topCart'); ?> 

    <?php if(Mage::getModel('cms/block')->load('header-notice')->getIsActive() == "1") { ?> 

     <div class="notice"> 
      <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('header-notice')->toHtml(); ?> 
     </div> 

    <?php } ?> 

    <?php //echo $this->getChildHtml('topContainer'); ?>   
</div> 

Und das ist meine links.phtml Datei

<?php $_links = $this->getLinks(); ?> 
<?php if(count($_links)>0): ?> 
<ul class="links"<?php if($this->getName()): ?> id="<?php echo $this->getName() ?>"<?php endif;?>> 
    <?php foreach($_links as $_link): ?> 
     <?php if ($_link instanceof Mage_Core_Block_Abstract):?> 
      <?php echo $_link->toHtml() ?> 
     <?php else: ?> 
      <li<?php if($_link->getIsFirst()||$_link->getIsLast()): ?> class="<?php if($_link->getIsFirst()): ?>first<?php endif; ?><?php if($_link->getIsLast()): ?> last<?php endif; ?>"<?php endif; ?> <?php echo $_link->getLiParams() ?>><?php echo $_link->getBeforeText() ?><a href="<?php echo $_link->getUrl() ?>" title="<?php echo $_link->getTitle() ?>" <?php echo $_link->getAParams() ?>><?php echo $_link->getLabel() ?></a><?php echo $_link->getAfterText() ?></li> 
     <?php endif;?> 
    <?php endforeach; ?> 
</ul> 
<?php endif; ?> 
+0

https://www.templatemonster.com/help/magento-how-to-edit-header-links-2.html#gref – bxN5

Antwort

0

Es ist sehr einfach Top-Links Titel und Links zu ändern.

  1. Für myaccount, Login, registrieren Änderung in Customer.xml
  2. Zum Warenkorb Änderung in checkout.xml

Pfad für diese Dateien, wenn Sie RWD Thema verwenden: app \ Design \ Frontend \ rwd \ Standard \ Layout

Das ist alles !!!

Verwandte Themen