dewdropz Posted October 1, 2018 Share Posted October 1, 2018 Hello, i want to give auto check here http://prntscr.com/l0orza i mean when it will show enable when anyone want to uncheck then click other wise default show check. anyone can help? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 1, 2018 Share Posted October 1, 2018 the quick way would be to edit checkout/tpl and change... {$customfield.input} to... {$customfield.input|replace:'type="checkbox"':'type="checkbox" checked'} that would auto-tick all customfield checkboxes... if you only wanted to tick the SMS checkbox, then I would wrap the above in an if statement using the customfield ID for that specific field. {if $customfield.id eq '14'}{$customfield.input|replace:'type="checkbox"':'type="checkbox" checked'}{else}{$customfield.input}{/if} and then change '14' for the ID of your customfield. the other way would be to use a ClientAreaPageCart action hook, manipulate the $customfields array to make the above changes and then return the array to the cart. 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.