如何在客户注册表格中添加地址字段? [英] how to add the address fields in the customer registration form?

查看:85
本文介绍了如何在客户注册表格中添加地址字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用magento 1.6.我想在客户注册表单上显示地址字段. 我从register.phtml中删除了以下几行,但是没有用.

I am using magento 1.6. And I want to display the address fields on the customer registration form. I remove the following lines from the register.phtml but it did not work.

<?php if($this->getShowAddressFields()): ?>
<?php endif; ?>

那我该怎么办?

推荐答案

如果您使用的是magento 1.6或更高版本,只需在customer/form/register.phtml

IF you are using magento 1.6 or above, and simply commenting following in customers/form/register.phtml

<?php if($this->getShowAddressFields()): ?>
<?php endif; ?>

不起作用,则可能您已激活了持久购物车.在这种情况下,您需要在persistent/customer/form/register.phtml中注释相同的行,它将对您有用. 不要忘了在同一页末尾的脚本中为区域更新程序注释上面相同的代码.

is not working then possibly you have active the persistent cart. In that case you need to comment the same lines in persistent/customer/form/register.phtml and it will work for you. Don't forget to comment the same above code from the script on the end of the same page, which is for Region Updater.

这篇关于如何在客户注册表格中添加地址字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆