Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Add ‘My Account’ link to any page
 
Dan Orsborne
Member
 
Total Posts:  72
Joined:  2007-09-20
 

Download the attached file and place it in this directory:

C:\Igentics\Projects\OCButcherPHP2\app\code\core\Mage\Customer\Block\Links.php

Then you can call this new code from the XML template using:

<block type="customer/links" name="account_link">
                <
action method="addAccountLink"></action>
            </
block>

for example

<!-- Mage_Checkout -->
        <
reference name="top.right.links">
            <
block type="checkout/links" name="checkout_cart_link">
                <
action method="addCartLink"></action>
            </
block>
            <
block type="checkout/links" name="checkout_link">
                <
action method="addCheckoutLink"></action>
            </
block>
            <
block type="customer/links" name="account_link">
                <
action method="addAccountLink"></action>
            </
block>
        </
reference>
File Attachments
Links.php  (File Size: 2KB - Downloads: 114)
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top