Skip to content

Instantly share code, notes, and snippets.

@syphoxy
Last active August 29, 2015 14:01
Show Gist options
  • Save syphoxy/81baa0a9e00df88c1f5f to your computer and use it in GitHub Desktop.
Save syphoxy/81baa0a9e00df88c1f5f to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<config>
<modules>
<Acme_Module>
<active>true</active>
<codePool>local</codePool>
</Acme_Module>
</modules>
</config>
<?xml version="1.0"?>
<config>
<modules>
<Acme_Module>
<version>0.0.1</version>
</Acme_Module>
</modules>
<global>
<blocks>
<customer>
<rewrite>
<account_navigation>Acme_Module_Block_Account_Navigation</account_navigation>
</rewrite>
</customer>
</blocks>
</global>
</config>
<customer_account>
<reference name="customer_account_navigation">
<action method="removeLinkByName">
<name>recurring_profiles</name>
</action>
</reference>
</customer_account>
<?php
class Demac_Customer_Block_Account_Navigation
extends Mage_Customer_Block_Account_Navigation
{
public function removeLinkByName($name)
{
unset($this->_links[$name]);
return $this;
}
}
<customer_account>
<reference name="customer_account_navigation" >
<action method="addLink" translate="label">
<name>recurring_profiles</name>
<path>sales/recurring_profile/</path>
<label>Recurring Profiles</label>
</action>
</reference>
</customer_account>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment