Magento Forum

My account - left menu
 
rovidiu82
Jr. Member
 
Total Posts:  4
Joined:  2008-09-28
 

Hello.

Does anyone know it it is possible to add a new option to left menu from my account page(frontend area).
I want to add a new menu item after “My Orders” option.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
nico5
Sr. Member
 
Avatar
Total Posts:  214
Joined:  2008-02-19
France
 

In a layout file (app/design/frontend/THEME/SUBTHEME/layout/) you have to put these lines :

<customer_account>
        <!-- 
Mage_Tag -->
        <
reference name="customer_account_navigation">
            <
action method="addLink" translate="label" module="tag"><name>your link name</name><path>your path</path><label>Your label</label></action>
        </
reference>
</
customer_account>
 
Magento Community Magento Community
Magento Community
Magento Community
 
rovidiu82
Jr. Member
 
Total Posts:  4
Joined:  2008-09-28
 

I put in frontend/default/default/layout/ an xml file and still isn’t included. Can you help me with that?

<?xml version="1.0"?>
<layout version="0.1.0">
<customer_account>
<!-- Mage_Tag -->
<reference name="customer_account_navigation">
<action method="addLink" translate="label" module="tag"><name>mysubscriptions</name><path>mysubscriptions/</path><label>My Subscriptions</label></action>
</reference>
</customer_account
</layout>

 
Magento Community Magento Community
Magento Community
Magento Community
 
nico5
Sr. Member
 
Avatar
Total Posts:  214
Joined:  2008-02-19
France
 

Is your xml file attached to a module ?

If not, if you want to test your link,
try to put this code into an existing layout, for example newsletter.xml

<reference name="customer_account_navigation">
<
action method="addLink" translate="label" module="tag"><name>mysubscriptions</name><path>mysubscriptions/</path><label>My Subscriptions</label></action>
</
reference>
 
Magento Community Magento Community
Magento Community
Magento Community
 
rovidiu82
Jr. Member
 
Total Posts:  4
Joined:  2008-09-28
 

That was the problem. Now it works, thanks a lot for the tips.
Have a good day.

 
Magento Community Magento Community
Magento Community
Magento Community
 
rovidiu82
Jr. Member
 
Total Posts:  4
Joined:  2008-09-28
 

Now i have another question. Exists a possibility to change the order of menu items in left menu?
Now the menu item appears last in left menu, and i want to put to another position.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top