Skip to content

Instantly share code, notes, and snippets.

@bobbyshaw
Last active August 29, 2015 14:16
Show Gist options
  • Save bobbyshaw/4b773368cdf4c0ad21dc to your computer and use it in GitHub Desktop.
Save bobbyshaw/4b773368cdf4c0ad21dc to your computer and use it in GitHub Desktop.
Remove Function For Customer Account Navigation Links in Magento
<layout>
<customer_account_index>
<reference name="customer_account_navigation">
<action method="removeLink"><name>account</name></action>
</reference>
</customer_account_index>
</layout>
<?php
class Meanbee_Core_Block_Customer_Account_Navigation extends Mage_Customer_Block_Account_Navigation {
public function removeLink($name) {
if (isset($this->_links[$name])) {
unset($this->_links[$name]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment