rafaelstz
11/9/2014 - 1:11 AM

Remover links da barra lateral "Minha Conta" no Magento.Arquivo yourPackage/YourTemplate/customer/account/navigation.phtml

Remover links da barra lateral "Minha Conta" no Magento.Arquivo yourPackage/YourTemplate/customer/account/navigation.phtml

<?php $_count = count($_links); /* Add or Remove Account Left Navigation Links Here -*/
      unset($_links['account']); /* Account Info */     
      unset($_links['account_edit']); /* Account Info */            
      unset($_links['tags']); /* My Tags */
      unset($_links['invitations']); /* My Invitations */
      unset($_links['reviews']);  /* Reviews */
      unset($_links['wishlist']); /* Wishlist */
      unset($_links['newsletter']); /* Newsletter */
      unset($_links['orders']); /* My Orders */
      unset($_links['address_book']); /* Address */
      unset($_links['enterprise_customerbalance']); /* Store Credit */
      unset($_links['OAuth Customer Tokens']); /* My Applications */
      unset($_links['enterprise_reward']); /* Reward Points */
      unset($_links['giftregistry']); /* Gift Registry */
      unset($_links['downloadable_products']); /* My Downloadable Products */
      unset($_links['recurring_profiles']); /* Recurring Profiles */
      unset($_links['billing_agreements']); /* Billing Agreements */
      unset($_links['enterprise_giftcardaccount']); /* Gift Card Link */
?>
<!-- Remove My account sidebar links Magento -->
<customer_account>
      <reference name="left">
        <action method="unsetChild">
      		<name>customer_account_navigation</name>
        </action>
        <block type="customer/account_navigation" name="customer_account_navigation" 
        	before="-" template="customer/account/navigation.phtml">
          <action method="addLink" translate="label" module="customer">
            <name>account</name>
            <path>customer/account/</path>
            <label>Account Dashboard</label>
          </action>
          <action method="addLink" translate="label" module="customer">
            <name>account_edit</name>
            <path>customer/account/edit/</path>
            <label>Account Information</label>
          </action>
          <action method="addLink" translate="label" module="customer">
            <name>address_book</name>
            <path>customer/address/</path>
            <label>Address Book</label>
          </action>
          <action method="addLink" translate="label" module="customer">
            <name>orders</name>
            <path>sales/order/history/</path>
            <label>My Orders</label>
          </action>
    	</block>
  	</reference>
	</customer_account>

<!-- List of all names for navigation links in account dashboard -->
account
account_edit
address_book
orders
billing_agreements
recurring_profiles
reviews
tags
wishlist
OAuth Customer Tokens
newsletter
downloadable_products