开发者

Magento - custom Account/Registration Fields

I followed this tutorial: http://www.magento.cc/custom-accountregistration-fields.html

to add fields in the registration form of a customer under Magento, I succeed to run the example with a checkbox in the frontend and the backend.

I had at the backend a text field开发者_如何转开发 with 0 or 1 as value, but I would like to have also a checkbox as in the frontend.

Anyone know what changes to do for this?

Thank you.


In that tutorial where it creates the attributes (Register.html) provide the following settings for your checkbox value.

$settings = array (
    'type' => 'bool',
    'input' => 'checkbox',
    'is_required'=> 0
);

The tutorial suggests a very unconventional method of setting up. In future you might find it easier to follow a tutorial for making a module to do it, it's a little longer but much more reliable. Or try a module creator to do the groundwork for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜