In my Admin Panel under Customers --> Manage Customers --> click on a customer:
I want to remove "Billing Agreements and Recurring Profiles(beta)
app/code/local/Sean/CustomerNavigationLinks/etc/config.xml
<?xml version="1.0" ?>
<config>
<modules>
<Sean_CustomerNavigationLinks>
<version>0.0.1</version>
</Sean_CustomerNavigationLinks>
</modules>
<frontend>
<layout>
<updates>
<customernavigationlinks>
<file>sean_customernavigationlinks.xml</file>
</customernavigationlinks>
</updates>
</layout>
</frontend>
<global>
<blocks>
<customer>
<rewrite>
<account_navigation>Sean_CustomerNavigationLinks_Block_Account_Navigation</account_navigation>
</rewrite>
</customer>
</blocks>
<helpers>
<customernavigationlinks>
<class>Sean_CustomerNavigationLinks_Helper</class>
</customernavigationlinks>
</helpers>
</global>
</config>
app/code/Sean/CustomerNavigationLinks/Helper/Data.php :
<?php
class Sean_CustomerNavigationLinks_Helper_Data extends Mage_Core_Helper_Abstract
{
}
app/code/Sean/CustomerNavigationLinks/Block/Account :
<?php
class Sean_CustomerNavigationLinks_Block_Account_Navigation extends Mage_Customer_Block_Account_Navigation
{
public function removeLinkByName($name)
{
unset($this->_links[$name]);
return $this;
}
}
app/design/frontend/base/default/layout/sean_customernavigationlinks.xml
<?xml version="1.0" ?>
<layout>
<customer_account>
<reference name="customer_account_navigation">
<action method="removeLinkByName">
<name>billing_agreements</name>
</action>
<action method="removeLinkByName">
<name>recurring_profiles</name>
</action>
</reference>
</customer_account>
</layout>
app/etc/modules/Sean_CustomerNavigationLinks.xml
<?xml version="1.0" ?>
<config>
<modules>
<Sean_CustomerNavigationLinks>
<active>true</active>
<codePool>local</codePool>
</Sean_CustomerNavigationLinks>
</modules>
</config>
The tabs are still there I'm not sure if I'm missing anything.