Magento – Editing the user dashboard existing pages without changing the core template file

magento-1.7template

How to edit a existing page of user dashboard in magento without changing the core template file. I want to add few more information on "My Account page" which is the home page of the user dashboard, if the user is a business user. I want to add one more block below the user information.

Thanks in advance 🙂

Best Answer

The main block holding the 'widgets' in the customer account section is customer_account_board, so if you want to add a block there you would have to reference that one

<customer_account_index>
    <reference name="customer_account_dashboard">
        [...]
    </reference>
</customer_account_index>

Build this would require you to edit frontend/base/default/template/customer/account/dashboard.phtml to add a getChildHtml for your section.

To not be required to edit the file you could add your block under reference name content , under this reference all blocks will be included automatically.

<customer_account_index>
    <reference name="conten">
        <block type="your/block" name="your_block" after="customer_account_dashboard" template="your/block.phtml"/>
    </reference>
</customer_account_index>
Related Topic