0

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

1

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>
  • Thank you very much... magento is having very nice features...i am new in magento.. may I add you in any social sites like facebook or tweeter?? Once again thank you very much... – MagentoBoy Aug 23 '13 at 9:32
  • You can find me on twitter although I don't tweet that much about Magento. Take a look at @philwinkle's mageoverflow list for some nice references twitter.com/philwinkle/lists/mageoverflow-com – Sander Mangel Aug 23 '13 at 9:36
  • thanks :) .. I just wanted to be in touch with you. I am so new in programming :) – MagentoBoy Aug 23 '13 at 9:46
  • 1
    Ah no problem, you can find me by name – Sander Mangel Aug 23 '13 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.