Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

My Account links
 
katiek648
Member
 
Total Posts:  33
Joined:  2008-04-10
 

I am not using Tags.

How do I remove the “My Tags” link in the “My Account” navigation? I checked /customer/account/navigation.phtml, but I can’t see how it is pulling those links. Any help would be appreciated!

<div class="box account-nav">
    <
div class="head">
        <
h3><!--<?php echo $this->__('My Account'); ?>--></h3>
    </
div>
            <
ul>
                
<?php $_links $this->getLinks(); ?>
                <?php $_index 
1?>
                <?php $_count 
count($_links); ?>
                <?php 
foreach ($_links as $_link): ?>
                    <?php $_last 
= ($_index++ >= $_count); ?>
                    <?php 
if ($this->isActive($_link)): ?>
                        
<li class="on<?php echo ($_last ? ' last' : '') ?>"><?php echo $_link->getLabel() ?></li>
                    
<?php else: ?>
                        
<li<?php echo ($_last ' class="last"' ''?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
                    
<?php endif; ?>
                <?php 
endforeach; ?>
            
</ul>
</
div>
 
Magento Community Magento Community
Magento Community
Magento Community
 
Tweakmag
Guru
 
Avatar
Total Posts:  307
Joined:  2007-08-31
London, UK
 

Here is the quick way (but not the best - because you will have to do it each time you upgrade).
open app/design/frontend/default/default/layout/tag.xml

Change this:

<customer_account>
        <!-- 
Mage_Tag -->
        <
reference name="customer_account_navigation">
            <
action method="addLink" translate="label" module="tag"><name>tags</name><path>tag/customer/</path><label>My Tags</label></action>
        </
reference>
    </
customer_account>

to:

<!--<customer_account>
        <!-- 
Mage_Tag -->
        <
reference name="customer_account_navigation">
            <
action method="addLink" translate="label" module="tag"><name>tags</name><path>tag/customer/</path><label>My Tags</label></action>
        </
reference>
    </
customer_account>-->

Cheers
Adam

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top