cluster Posted May 22, 2018 Share Posted May 22, 2018 if I include a custom dropdown filed on checkout, then if nothing is selected "None" will be displayed ... would it be possible somehow hide this "None" or set an option as selected by default? e.g. -- empty -- (or option 1 as default) option 1 option 2 option 3 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 22, 2018 Share Posted May 22, 2018 8 minutes ago, cluster said: if I include a custom dropdown filed on checkout, then if nothing is selected "None" will be displayed ... would it be possible somehow hide this "None" or set an option as selected by default? the quick way to hide "none" would be to tweak the checkout.tpl (and possibly the clientareadetails.tpl) templates... {$customfield.input|replace:'<option value="">None</option>':''} the cleaner way would be to use a hook to do a string replace on the $customfields array, either removing none (as per above) or selectively assigning other dropdown options as selected. 0 Quote Link to comment Share on other sites More sharing options...
cluster Posted May 22, 2018 Author Share Posted May 22, 2018 great, many thanks! 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.