Ilias Papanikolaou Posted January 4 Share Posted January 4 Hello, Is there any way to change with php code to translate it into 2 languages in this section (Billing->Add Funds) in whmcs The code below helped me change the options in the invoice. Is there any way to change it? function custom_bank_gateway_text($vars) { global $details; global $_LANG; if ($vars['status'] == 'Unpaid' && $vars['paymentmethod'] == 'Bank Transfer') { return array("paymentbutton" => "Hello User!"); } } add_hook('ClientAreaPageViewInvoice', 5, 'custom_bank_gateway_text'); I added this line of code at the bottom: add_hook('ClientAreaPageAddFunds', 5, 'custom_bank_gateway_text'); but it didnt work.Any Solutions? 1 Quote Link to comment Share on other sites More sharing options...
0 Md Mahfuz Reham Posted January 7 Share Posted January 7 In this module, Credit Manager, the client can see the balance in the client area as the option -- it is not implemented by default six templates. If there is a credit then the client sees it https://github.com/mahfuzreham/Credit-Manager-Whmcs 0 Quote Link to comment Share on other sites More sharing options...
0 Ilias Papanikolaou Posted January 19 Author Share Posted January 19 Hello, it seems you didnt quite understand the problem that i am trying to solve. I am looking for a hook that lets me change the options that i showed above, in the 2nd language that i want to add. Any Solutions? 0 Quote Link to comment Share on other sites More sharing options...
Question
Ilias Papanikolaou
Hello, Is there any way to change with php code to translate it into 2 languages in this section (Billing->Add Funds) in whmcs
The code below helped me change the options in the invoice. Is there any way to change it?
I added this line of code at the bottom:
add_hook('ClientAreaPageAddFunds', 5, 'custom_bank_gateway_text');
but it didnt work.Any Solutions?
Link to comment
Share on other sites
2 answers to this question
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.