Try the Demo

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: 100)
 Signature 

http://www.igentics.com

Igentics are Internet Engineers, we like to look at things from a different angle. The end result being a fully integrated system encompassing the whole supply chain from supplier to end user, incorporating all legacy systems and data. This increases profits and reduces cost.

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