lynaritic Posted August 7, 2023 Share Posted August 7, 2023 My business does not sell domains as we a SaaS provider and use WHMCS to help facilitate that. Under the client details and contacts page, there are email preferences (image attached) I would like to hide the preference regarding domains as its not required. Can any advise how to do that please? 0 Quote Link to comment Share on other sites More sharing options...
Solution leemahoney3 Posted August 8, 2023 Solution Share Posted August 8, 2023 Hi there, Depending on your template, the change is fairly straightforward. If using six: templates/six/clientareadetails.tpl lines 139 - 145 change from {foreach $emailPreferences as $emailType => $value} <label> <input type="hidden" name="email_preferences[{$emailType}]" value="0"> <input type="checkbox" name="email_preferences[{$emailType}]" id="{$emailType}Emails" value="1"{if $value} checked="checked"{/if} /> {lang key="emailPreferences."|cat:$emailType} </label>{if !($value@last)}<br />{/if} {/foreach} to {foreach $emailPreferences as $emailType => $value} {if $emailType neq 'domain'} <label> <input type="hidden" name="email_preferences[{$emailType}]" value="0"> <input type="checkbox" name="email_preferences[{$emailType}]" id="{$emailType}Emails" value="1"{if $value} checked="checked"{/if} /> {lang key="emailPreferences."|cat:$emailType} </label>{if !($value@last)}<br />{/if} {/if} {/foreach} Same change will need to be made in account-contacts-manage.tpl (lines 103 to 109) and account-contacts-new.tpl (lines 108 to 114) If using twenty-one theme, same files however the lines change: clientareadetails.tpl - lines 149 to 155 account-contacts-manage.tpl - lines 112 to 118 account-contacts-new.tpl - lines 117 to 123 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.