我的magento商店目前拥有我的客户帐户信息中心的默认布局。 仪表板中的一个部分是使用模板的联系信息
customer/account/info.phtml
如果客户想要编辑他们的联系信息,请访问:
www.site.com/customer/account/
(calls template customer/account/dashboard.phtml and customer/account/info.phtml)
到
www.site.com/customer/account/edit/
(calls template customer/form/edit.phtml)
有没有办法可以将实际的编辑表单移动到仪表板本身?
答案 0 :(得分:1)
如果您想在customer.xml和
中添加以下代码添加
<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>
答案 1 :(得分:0)
请参阅以下代码段
<customer_account_index translate="label">
<label>Customer My Account Dashboard</label>
<update handle="customer_account"/>
<!-- Mage_Customer -->
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
<reference name="my.account.wrapper">
<block type="customer/account_dashboard" name="customer_account_dashboard" template="customer/account/dashboard.phtml">
<block type="customer/account_dashboard_hello" name="customer_account_dashboard_hello" as="hello" template="customer/account/dashboard/hello.phtml"/>
<block type="core/template" name="customer_account_dashboard_top" as="top" />
<block type="customer/account_dashboard_info" name="customer_account_dashboard_info" as="info" template="customer/account/dashboard/info.phtml"/>
<block type="customer/account_dashboard_newsletter" name="customer_account_dashboard_newsletter" as="newsletter" template="customer/account/dashboard/newsletter.phtml"/>
<block type="customer/account_dashboard_address" name="customer_account_dashboard_address" as="address" template="customer/account/dashboard/address.phtml"/>
</block>
</reference>
<update handle="customer_account_edit" />
</customer_account_index>
<update handle="customer_account_edit" />
它将采用客户/帐户/编辑的布局