1

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?

asked Aug 20, 2014 at 16:00

2 Answers 2

2

create or edit the file local.xml from your respected theme layout folder (app/design/frontend/your package/your theme/layout/) and add the following code in it

<customer_account_index translate="label">
 <reference name="customer_account_dashboard">
 <block type="customer/form_edit" name="customer_edit" as="customeredit" template="customer/form/edit.phtml"/>
 </reference>
</customer_account_index>

now edit the file at app/design/frontend/your package/your theme/template/customer/account/dashboard.phtml and add the following line wherever suites you best

<?php echo $this->getChildHtml('customeredit') ?>

not tested but hope it will work

answered Aug 20, 2014 at 16:51
1

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

Or create local.xml under app/design/frontend/yourpackage/yourtemplate/layout/

<?xml version="1.0"?>
<layout version="0.1.0">
<customer_account>
 <reference name="content">
 <block type="customer/form_edit" name="you_customer_edit" template="customer/form/edit.phtml" after="my.account.wrapper" />
 </reference>
</<customer_account>
</layout>
answered Aug 20, 2014 at 16:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.