0
votes

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.

1

1 Answers

1
votes

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.