Jump to content

WHMCS Hook To Execute Javascript


Sam0101

Recommended Posts

Hi Community,

I have been trying to figure something out for a while now and am at the end of the road. We have a block of JavaScript which we wish to execute on any page where the user has got a certain product active. If they don't have the certain product, nothing should happen, but if they do, I want the JavaScript to execute.

I was thinking that a hook might be the best way to accomplish this, but I am unsure of how to make this work?

Any suggestions or ideas would be massively appreciated.

Many thanks,

Sam  

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.

×
×
  • 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