Jump to content

Edit History

mawo

mawo

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>

 

mawo

mawo

Hello everyone.
How to add Mr. Mrs to my address in 1.6.x
I added Mr. Mrs do 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>

 

×
×
  • Create New...