Hostmag Posted April 28, 2016 Share Posted April 28, 2016 Hello I added some client custom fields that are displayed on register and checkout pages. The code from clientregister.tpl that displays custom fields is: {if $customfields} {foreach from=$customfields key=num item=customfield} <div class="form-group"> <label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label> <div class="control"> {$customfield.input} {$customfield.description} </div> </div> {/foreach} The custom fields are displayed subducted. How can i change the piece of code so these fields are displayed like in a table (for example: 2 columns and 3 row - taking into account that I added 6 custom fields). Thank you 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted April 28, 2016 Share Posted April 28, 2016 this will display two fields per row <div class="row"> {foreach from=$customfields key=num item=customfield} <div class="col-xs-6"> <div class="form-group"> <label class="control-label" for="customfield{$customfield.id}">{$customfield.n ame}</label> <div class="control"> {$customfield.input} {$customfield.description} </div> </div> </div> {/foreach} </div> 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.