有人会给我一步一步指导如何将自定义字段添加到适用于Magento 1.7的Magento注册表单。我遇到了很多,所有这些都支持旧版本或者太复杂了我的理解,因为我几乎是新手。
您需要添加客户属性
所以你可以使用自己构建的自定义模块执行此操作,或者有一些模块可以为您提供像customer-attributes这样的功能
它可能只在后端或前端等等。它有很多功能
此功能已在企业版中,但对于社区版,您需要实现它,或使用自定义模块
你可以在不花任何钱的情况下获得所需的东西...使用这个extension然后输入你的regiter.phtml和edit.phtml这样的东西:
<li class="control">
<div class="input-box">
<input type="text" name="attribute-name" title="<?php echo $this->__('your pretty label') ?>" id="attribute-name" value="<?= $this->getCustomer()->getAttributeName()); ?>" class="input" />
</div>
<label for="attribute-name"><?php echo $this->__("your pretty label") ?></label>
</li>