mawo Posted February 14, 2024 Share Posted February 14, 2024 (edited) 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 February 14, 2024 by mawo (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now