Search code examples
magentodashboard

Magento - Move Customer Edit Form into Account Dashboard


My magento store currently has the default layout for my customer account dashboard. One of the sections in the dashboard is the contact information which uses the template

customer/account/info.phtml

If a customer wants to edit their contact information they go from:

www.site.com/customer/account/
(calls template customer/account/dashboard.phtml and customer/account/info.phtml)

to

www.site.com/customer/account/edit/
(calls template customer/form/edit.phtml)

Is there a way i can move the actual edit form into the dashboard itself?


Solution

  • if you want add below code in customer.xml and

    add

          <customer_account translate="label">
    ........
            <reference name="content">
    
      <!-- add below .... -->
              <block type="customer/form_edit" name="you_customer_edit" 
        template="customer/form/edit.phtml"/>
    <!--- end of -->
            </reference>