magento注册时,默认是只要填写简单的资料,即可,地址资料在支付或后期进行补充的,
但如果想在在magento注册时开启地址资料卦写功能,要如何操作呢,
其实在模板中是判断
$this->getShowAddressFields() 是否为真
两种办法:
1、xml设置
<customer_account_create>
<reference name="customer_form_register">
<action method="setShowAddressFields"><value>true</value></action>
</reference>
</customer_account_create>
在customer.xml或local.xml中增加上述资料即可
2、代码设置
在提供注册的模板中,植入
<?php $this->setShowAddressFields(true); ?>
即可实现。
(责任编辑:最模板) |

乐到家手机数码商城|ecs
人气:548
dedecms中英双语蓝简企业网
人气:676
ecshop仿本来生活网2014加团
人气:2274
英文球衣外贸网站|ecshop
人气:832
Prestashop英文医疗护理网站
人气:209
Puro英文综合商城网站mag
人气:169