UKHost4u Posted July 26, 2016 Share Posted July 26, 2016 Hello. We currently use two UK Affiliate Programs: Affiliate Window NetGains Both of these systems require us to track sales via WHMCS and send over some information include: Order Value, Invoice ID etc. Can anyone help with how they might have done something similar. I guess it should be fairly simple but WHMCS support didn't offer much insight into how to do this correctly. Thanks, Paul. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted July 26, 2016 Share Posted July 26, 2016 Paul, you need to use ActionHooks, these functions will run while WHMCS performing certain actions offering few information related to that specific action. in your case you need to use this specific ActionHook:ShoppingCartCheckoutCompletePage point, you need to create new PHP file inside /includes/hooks/ directory and put your function(s) code there, as a starting example <?php add_hook("ShoppingCartCheckoutCompletePage", 1, function($vars){ $invoiceid = $vars['invoiceid']; $ordervalue = $vars['amount']; // Now send it to affiliate system }); 0 Quote Link to comment Share on other sites More sharing options...
UKHost4u Posted July 26, 2016 Author Share Posted July 26, 2016 Hello. Thanks for this. I will try this method. Paul. 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.