我需要创建两个新的客户属性。我遵循的指南来自:http : //www.fontis.com.au/blog/magento/know-more-about-your-customers-adding-custom-signup-attributes
创建这些属性。我已经检查了数据库中的“ eav_attribute”表,并可以确认两个属性都存在。唯一的事情是我不知道如何创建复选框属性,因此我将两个属性都创建为“是/否”。
按照我在注册表格上如何显示字段的代码进行操作:
<li class="control">
<div class="input-box">
<label for="publisheroffer"><?php echo $this->__('Publisher Offer') ?><span class="required">*</span></label><br />
<input type="checkbox" name="publisheroffer" id="publisheroffer" value="<?php echo $this->htmlEscape($this->getFormData()->getPublisheroffer()) ?>" title="<?php echo $this->__('Publisher Offer') ?>" class="input-text" />
</div>
</li>
其中属性ID为“ publisheroffer”。创建帐户后,它可以很好地创建,但自定义属性字段不会更改。
如何在注册页面上将此属性显示为复选框,以及如何处理这些值。
感谢您提前提供的所有帮助。
Magento自定义注册字段模块是扩展magento用户注册,与其他模块(如marketplacestore.webkul.com/Magento-Extensions/…)配合
—
webkul 2014年