Jump to content

Custom field label's translation & hooks


waverider

Recommended Posts

Hello,

 

1. Is it possible to translate custom fields names? (labels)

 

2. I've noticed a strange behaviour for hooks. I'm using WHMCS ver. 4.0.1 and I couldn't get a hook to work until I had deleted from server the file vatnumbervalidation.php (which I have enabled previously as commented in file).

 

I have a function added on same hook as the above file:

 

add_hook("ClientDetailsValidation", 99,"my_hook","");

 

From what I read, WHMCS supports multiple hooks on same event.

 

I assume that order number is the problem (99 above as example).

I tried everything: 0 as order number both in VAT validation and my hook, 0 in one file 1 in the other etc. Nothing worked. It was only "enabling" the VAT hook but not mines as well. Until I deleted the VAT file that contained the hook.

 

Now my hook works. But I need the VAT as well.

 

Thanks :)

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