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...

How to sync server time

How to sync server time in CentOS & AlmaLinux

The NTP protocol synchronises the clocks of computers over a network. In this article, we will show you how to quickly sync the server time. Many systems-related tasks and processes require the correct timezone. For example, the cron daemon uses... 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.