Niklas Posted September 28, 2015 Share Posted September 28, 2015 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). 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 28, 2015 Share Posted September 28, 2015 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.