将新字段添加到Magento 1.7注册表单中

问题描述 投票:0回答:2

有人会给我一步一步指导如何将自定义字段添加到适用于Magento 1.7的Magento注册表单。我遇到了很多,所有这些都支持旧版本或者太复杂了我的理解,因为我几乎是新手。

forms magento registration
2个回答
3
投票

您需要添加客户属性

所以你可以使用自己构建的自定义模块执行此操作,或者有一些模块可以为您提供像customer-attributes这样的功能

它可能只在后端或前端等等。它有很多功能

此功能已在企业版中,但对于社区版,您需要实现它,或使用自定义模块


1
投票

你可以在不花任何钱的情况下获得所需的东西...使用这个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>
© www.soinside.com 2019 - 2024. All rights reserved.