stormy Posted February 26, 2012 Share Posted February 26, 2012 Is it possible to execute a Javascript on a hook? I would like to pass some data whenever I lose a customer. If they use the cancelation form, it's easy: I can simply add the javascript to the form, and execute it on submit. How can I track customers that haven't paid and are terminated for non-payment? I think there's a hook for it, but can I execute javascript in the hook? Probably not. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted February 26, 2012 Share Posted February 26, 2012 I'm not sure I understand, why do you need javascript to do this? The entire purpose of the hooks are for backend processing in various sections of WHMCS, frontend processing can be done with the templates. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted February 27, 2012 Share Posted February 27, 2012 How can I track customers that haven't paid and are terminated for non-payment? They'll have a status of Terminated 0 Quote Link to comment Share on other sites More sharing options...
stormy Posted February 27, 2012 Author Share Posted February 27, 2012 Sorry my explanation is not so great I'm using a tracking/stats program which can accept this data, but the API is Javascript. So on account termination, I would like to pass data to this script via javascript. I don't think that can be done, though. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted February 27, 2012 Share Posted February 27, 2012 Ah, yeah, theres no way to really do that with javascript. You could possibly setup a page that contains the javascript, and write a hook to connect to that page using curl. 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.