Drumrocker365 Posted May 26, 2014 Share Posted May 26, 2014 Hello, I was just wondering how you can get a PHP script to execute after a service has been purchased? I'm new to PHP programming and I'm not sure how WHMCS does this type of stuff. Thanks, Christian 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted May 26, 2014 Share Posted May 26, 2014 You want to check Action Hooks at http://docs.whmcs.com/Hooks 0 Quote Link to comment Share on other sites More sharing options...
Drumrocker365 Posted May 26, 2014 Author Share Posted May 26, 2014 So I created my PHP hook and all, but I'm a little confused as to how I assign it to a specific product? 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted May 26, 2014 Share Posted May 26, 2014 What exactly are you trying to do? It's hard to point you in the right direction, without knowing a little more details. 0 Quote Link to comment Share on other sites More sharing options...
Drumrocker365 Posted May 26, 2014 Author Share Posted May 26, 2014 I'm just trying to learn this stuff. Eventually, my overall goal is to run a subscription site which will run a PHP script to create the user an account to my sure upon purchase. 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted May 27, 2014 Share Posted May 27, 2014 So, it sounds like you would need to create a provisioning module (also called a product or server module). This type of module contains functions (create, suspend, terminate, etc) that get called for provisioning a service (a web site, a server, an account on external system, etc). Below is a link to the developer resources for WHMCS. It explains the different types of modules, hooks, templates, etc. http://docs.whmcs.com/Developer_Resources 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.