Jump to content

How to add Mr. Mrs to my address


mawo

Recommended Posts

Hello everyone.
How to add Mr. Mrs to my address in 1.6.x
I added Mr. Mrs to my address, but the buttons are displayed, I can choose, after filling in the data only Mr. Mrs. doesn't sign up.
Do you have an idea?


Adding this code to AddressController.php
'genders' => Gender::getGenders(),


Adding this code to address.tpl
            <div class="clearfix">
                <label>{l s='Title'}</label>
                <br />
                {foreach from=$genders key=k item=gender}
                    <div class="radio-inline">
                        <label for="id_gender{$gender->id}" class="top">
                            <input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} />
                        {$gender->name}
                        </label>
                    </div>
                {/foreach}
            </div>

 

Edited by mawo (see edit history)
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...