Magento 如何在注册页面调出Address Information

app\design\frontend\base\default\layout\customer.xml 找到

<block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
<block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
<label>Form Fields Before</label>
</block>
</block>

改为

<block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
<action method="setShowAddressFields"><show>1</show></action>
<block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
<label>Form Fields Before</label>
</block>
</block>

你可能感兴趣的:(Magento)