LIMITED TIME OFFER: Use the promo code “SPRINGSAVINGS” during checkout to save 40% on all SwiftModders products! Activate Discount

How do I use the cookie consent popup?

Notice: The Cookie Consent Popup functionality will only work on approved SwiftModders WHMCS Themes. It will not affect default WHMCS or other third-party WHMCS themes.

As of version 1.1.0 of the SwiftModders WHMCS Theme Installer, you can turn on the Cookie Consent Popup for our WHMCS Themes. To take advantage of this functionality, please read through the following guide.

By default, the Cookie Consent Popup will be disabled for your theme. You will need to log in to your WHMCS Admin panel and navigate to “Addons” > “SwiftModders WHMCS Theme Installer.” Once the Theme Installer is loaded, select the “Configuration” option from the module menu.

Enabling the cookie consent bar in the SwiftModders WHMCS Theme Installer

Clicking the toggle for the “Enable Cookie Consent Popup” will activate the cookie consent message with the predefined settings above. Before enabling, it might be best to configure the various options here so your clients can see the messaging you want. Here are the options you can configure:

  • Cookie Message: This is the cookie message displayed to first-time users of your WHMCS installation. It is recommended that this message generally explain what you’re using cookies for and the agreement in place for new users. This message field will also support <a>, <strong>, <em>, and <br> tags for more flexibility.
  • Cookie Accept Label: By default, a button with the label “Accept” will be present for your users to click. You can change the English label in this field directly. Once clicked, the cookie consent popup will disappear. Please note that the popup will not return for users unless they clear their Local Storage or use another device.
  • Cookie Information URL: If you have a specific URL that houses your cookie/privacy policy information, you should enter it here.
  • Cookie Information Label: This will be the label for the Cookie Information URL button. If you leave this field blank, no button will be rendered.

The above options assume that you’re using English as your primary language and will only impact your users/clients with the English set as their language. If you wish to translate this for your users with different language needs, you will need to create a new language file in:

/yourwhmcsinstall/modules/addons/swiftmodders/lang/

You must name the language file to one of the supported languages in WHMCS. In the default “english.php” file, you will find the following variables:

// Cookie Message
$_ADDONLANG['cookieMessage'] = 'We use cookies to <strong>support</strong> and <strong>improve</strong> your experience on our website. By using this website you agree to our cookie policy.';
$_ADDONLANG['cookieAccept'] = 'Accept';
$_ADDONLANG['cookieUrlLabel'] = 'Learn More';

You will copy these variables into your created language file and translate them where appropriate.

Please read their language documentation for more information on how to edit languages in WHMCS.

Looking for something a little more custom?

Since 2007 we have been offering tech-focused businesses quality web development services catered to meet the needs of your business and customers. We offer a wide range of project options, flexible budgets, and quality coding standards. Hire us to take care of your web project needs.

Our services
Back to top

Get 15% OFF Your Next Order

Join the SwiftModders newsletter by entering your information below and get an exclusive discount code for your next order!

You can opt-out of our newsletter at any time by visiting our Privacy Policy page.
Close