View all posts

Disable Currency in WHMCS

In order to force a particular currency in WHMCS, we can create a hook file.

First, create a hook file like so:


With the following code:

if($_SESSION['currency'] != '1') {
	$_SESSION['currency'] = '1';

From now on, users cannot change their currency from currency ID 1 (it should always be your default currency) – even if currency selectors are present or currency=x is included in the URL.

Related Articles...

Install LAMP

How to install LAMP Stack on Ubuntu 20.04

What is LAMP? The LAMP acronym stands for Linux, Apache, MariaDB/MySQL, and PHP, all of which are free and open source. It is the most commonly used software stack for dynamic websites and web applications. The operating system is Linux, the... Read more

This website uses cookies

We use cookies for the analysis of our visitor data, to improve our website, and to give you a great website experience. For more information about the cookies we use, please see our cookie policy.