Skip to content

Instantly share code, notes, and snippets.

@dangtrinhtran
Last active October 14, 2015 07:34
Show Gist options
  • Select an option

  • Save dangtrinhtran/56bb5403e0e6169064fb to your computer and use it in GitHub Desktop.

Select an option

Save dangtrinhtran/56bb5403e0e6169064fb to your computer and use it in GitHub Desktop.
Customer Account in Magento: Set Customer Account Link Active (even on sub pages)
To manually specify which tab that you would like highlighted in the customer
account section, you will need to specify the setActive method with reference
to the customer_account_navigation block.
<?xml version="1.0"?>
<layout version="0.1.0">
<dealers_orders_orderdetails>
<!--HERE-->
<reference name="customer_account_navigation">
<action method="setActive"><path>dealers/orders/</path></action>
</reference>
</dealers_orders_orderdetails>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment