Jump to content
  • 0

ClientArea AddFunds Hooks


Ilias Papanikolaou

Question

Hello, Is there any way to change with php code to translate it into 2 languages in this section (Billing->Add Funds) in whmcs 

image.png.1dd9ac36819e82e0b0b97ae48a9a093f.png

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?

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.

Guest
Answer this question...

×   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