Jump to content

Hardcoded currency selector

Recommended Posts



After version 6.1 it seems the currency selector is hardcoded. I have removed *any* reference and currency selector/dropdown from all templates and orderforms as can be confirmed:


web/templates# grep -ir "choose currency" ../lang/

../lang/german.php:$_LANG['choosecurrency'] = "Choose Currency";

../lang/english.php:$_LANG['choosecurrency'] = "Choose Currency";


web/templates# grep -ir "choosecurrency" *

web/templates# grep -ir "choose currency" *



So there is no references left in any files to choosecurrency/choose currency, yet that lame ugly box shows up on the ordering page, meaning it must be hardcoded. So does anyone know how i can get rid of this ****************? And why the hell did they start hardcoding stuff like that, that's just stupid (as new changes usually are with WHMCS).

Share this post

Link to post
Share on other sites

i'm guessing you're talking about the currency sidebar ?


you could use an action hook to remove it - create a new file in includes/hooks, give it an appropriate filename, e.g currencysidebar.php and paste the following code into it...



use WHMCS\View\Menu\Item as MenuItem;

add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar)
   if (!is_null($secondarySidebar->getChild('Choose Currency'))) {
            $secondarySidebar->removeChild('Choose Currency');

the currency sidebar should now be removed.

  • Like 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

By using this site, you agree to our Terms of Use & Guidelines