Josh123 Posted February 7, 2021 Share Posted February 7, 2021 Hi, Trying to figure something out and have used solutions online, but none of them work. Basically, we're trying to execute a JavaScript script depending on what product someone has. For example: Customer has top product > execute JavaScript script and show live chat option. Any ideas would be greatly appreciated 😀 Kind regards, Josh 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 9, 2021 Share Posted February 9, 2021 Depending on where you want to show that live chat option, you can use an output hook or another hook that can overwrite a template variable. https://developers.whmcs.com/hooks/hook-index/ In the hook would be a check if the client has the product and if so javascript is returned in the output or variable. 0 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.