Jump to content

Hardcoded currency selector


Niklas

Recommended Posts

Hi,

 

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" *

web/templates#

 

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

Link to comment
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...

 

<?php

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated