Overview
Few customers use Kayako Classic for internal communications only, or they don't want to ask the end-users for privacy policy acceptance. Privacy policy check can be completely disabled in Kayako Classic via Template editions.
The article details the process to disable privacy policy checks.
Process
To disable the privacy policy checks, implement the steps detailed below:
-
In the Header template, Comment the code:
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#000"
},
"button": {
"background": "#f1d600"
}
},
"content": {
"header": 'Cookie Consent',
"message":'<{$_language[cookiepolicytext]|escape}>',
"link":'<{$_language[cookiepolicyurl]|escape}>',
"href":'<{$_registrationPolicyURL}>',
"close":'❌',
"dismiss":'<{$_language[cookiepolicyagreement]|escape}>',
},
"cookie": {
"name": "SWIFT_cookieconsent"
},
onStatusChange: function(status) {
if (this.hasConsented) {
document.cookie = "SWIFT_cookieconsenturl="+window.location.href;
<{if isset($_userIsLoggedIn) && $_userIsLoggedIn == 'true'}>
$.ajax({
type: "POST",
url: "<{$_baseName}><{$_templateGroupPrefix}>/Base/User/UpdateCookieConsentAJAX",
});
<{/if}>
}
}
})});
</script> - In the Header template, replace the following line of code:
<label> <input name="registrationconsent" type="checkbox"/> <{$_language[regpolicytext]}> <a href="<{$_registrationPolicyURL}>" target="_blank"> <{$_language[regpolicyurl]}> </a></label>
With:
<div id="divCheckbox" style="display: none;">
<label> <input name="registrationconsent" type="checkbox" checked/> <{$_language[regpolicytext]}> <a href="<{$_registrationPolicyURL}>" target="_blank"> <{$_language[regpolicyurl]}> </a></label>
<br />
</div> -
In the Footer template, comment out the following code:
<script type="text/javascript">
$(function() {
$('#i-agree-consent').on('click', function(e) {
e.preventDefault();
document.cookie = "SWIFT_prconsenturl="+window.location.href;
$.ajax({
type: "POST",
url: "<{$_baseName}><{$_templateGroupPrefix}>/Base/User/UpdateProcessingConsentAJAX",
data: $('form.processconsentform').serialize(),
success: function(response) {
jQuery("#checkoffscreen").dialog("destroy");
}
});
return false;
});
});
</script>
<!-- BEGIN MODAL FOR YET TO BE CAPTURED CONSENT LOGGEDIN USER -->
<div style="display:none" id="checkoffscreen" class="innerwrapper">
<form enctype="multipart/form-data" name="processconsentform" autocomplete="off">
<div>
<p><{$_language[regpolicytext]}> <a href="<{$_registrationPolicyURL}>" target="_blank"> <{$_language[regpolicyurl]}> </a></p>
<input name ="processconsent" type="hidden" value="I Agree">
</div>
<div>
<input id="i-agree-consent" type="submit" class="rebuttonwide2" value="<{$_language[cookiepolicyagreement]}>">
</div>
</form>
</div> -
In the registerform template, replace the below line of code:
<label> <input name="registrationconsent" type="checkbox"/> <{$_language[regpolicytext]}> <a href="<{$_registrationPolicyURL}>" target="_blank"> <{$_language[regpolicyurl]}> </a></label>
with:
<div id="divCheckbox" style="display: none;">
<label> <input name="registrationconsent" type="checkbox" checked/> <{$_language[regpolicytext]}> <a href="<{$_registrationPolicyURL}>" target="_blank"> <{$_language[regpolicyurl]}> </a></label>
<br />
</div> -
. In the submitticketform, replace the line of code:
<label> <input name="registrationconsent" type="checkbox"/> <{$_language[regpolicytext]}> <a href="<{$_registrationPolicyURL}>" target="_blank"> <{$_language[regpolicyurl]}> </a></label>
with:
<div id="divCheckbox" style="display: none;">
<label> <input name="registrationconsent" type="checkbox" checked/> <{$_language[regpolicytext]}> <a href="<{$_registrationPolicyURL}>" target="_blank"> <{$_language[regpolicyurl]}> </a></label>
<br />
</div>