Jump to content

How to add fields in customer registration form ?


Vvitty

Recommended Posts

Hello,

 

I need to add a radio button into customer registration. I've already added it into authentication.tpl, but how could I load it by data (and put them into database then)? I solved it long time ago for PS1.2, but with PS1.5.6, I got lost a bit :)

 

It is used for my information to understood in which model scales my customers are interested in, so I would add a column id_scale into ps_customers.

Thanks for help!

 

That's what I added to authentication.tpl (inspired by gender setting), it shows the label in the registration form but obviously not any buttons...

 

        <p class="radio required">
            <span>{l s='Preffered scale'}</span>
            {foreach from=$scales key=k item=scale}
                <input type="radio" name="id_scale" id="id_scale{$scale->id}" value="{$scale->id}" {if isset($smarty.post.id_scale) && $smarty.post.id_scale == $scale->id}checked="checked"{/if} />
                <label for="id_scale{$scale->id}" class="top">{$scale->name}</label>
            {/foreach}
        </p>

Link to comment
Share on other sites

Ok, now I could see additional information in the customer list of BO, I could correctly register customer, but still missing a radio button. How can I load preset values for radio buttons from the database? Like the one from ps_gender, just from ps_scales or any other created.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...