dewdropz Posted May 20, 2017 Share Posted May 20, 2017 Hello i setup a custom client filed for tick box. i want automatic it's show tick . if anyone want to withdraw tick they will do uncheck. how i can do that? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 20, 2017 Share Posted May 20, 2017 the only way you could do that would be via a template edit or using an action hook... e.g in checkout.tpl, change... {$customfield.input} to... {if $customfield.id eq '9'}{$customfield.input|replace:' />':' checked />'}{else}{$customfield.input}{/if} you'll just need to adjust the code to get the id value of the customfield you want to enable - you can get that value by looking at the source code in the browser... <div class="form-group"> <label for="customfield9">Are you sure?</label> <input type="checkbox" name="customfield[9]" id="customfield9" checked /> </div> 0 Quote Link to comment Share on other sites More sharing options...
dewdropz Posted May 20, 2017 Author Share Posted May 20, 2017 thanks for reply . but <div class="form-group"> <label for="customfield9">Are you sure?</label> <input type="checkbox" name="customfield[9]" id="customfield9" checked /> </div> this code where i will imput? i have 2 client custom field . 1 is text box another is tick box. are you sure? are showing also in text box. i don't want that - - - Updated - - - sorry now i understand thanks a lot 0 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.