jtaylor Posted March 19, 2010 Share Posted March 19, 2010 Hello, We have recently upgraded our WHMCS version to the latest one - 4.2. We have been using JROX JAM affiliate system for quite a long period and it was communicating with WHMCS without any problems. However, since the update, we have stopped receiving results from WHMCS associated with the hook. Here is the code that we use: <? function actionhook_InvoicePaid($vars) { if (!empty($_COOKIE['jrox'])){ $result=mysql_query("SELECT * FROM tblorders WHERE invoiceid = '".$vars."' LIMIT 1"); $row = mysql_fetch_array($result); $JAMIntegrate = file_get_contents("http://www.domain.com/affiliates/sale.php?amount=".$row['amount']."&trans_id=".$vars."&custom_mid=".$_COOKIE['jrox']); } } add_hook("InvoicePaid",0,"actionhook_InvoicePaid",""); ?> We have not changed the location or anything in this code. I assume that in the new WHMCS there might be something different and we should change something in the code? If someone can help, it would be much appreciated! Thanks in advance! Regards, Jonathan 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.