WHMCS Mark Posted July 29, 2009 Share Posted July 29, 2009 Hi I have searched all the threads here and on JAM, and still can;t figure out why JAM doesn't want to behave with WHMS. I have used this in /includes/hooks with some obvious changes to send the info via email so I can see if the cookie stuff is working. <?php function actionhook_InvoicePaid() { $vars = func_get_args(); ob_start(); print_r($_GET); print_r($_POST); print_r($vars); $contents = ob_get_clean(); mail("email@xtra.co.nz","ifam 1",$contents); if (!empty($_COOKIE['jrox'])) { $result=mysql_query("SELECT * FROM tblorders WHERE invoiceid = '" . $vars["InvoiceID"] ."' LIMIT 1"); $row = mysql_fetch_array($result); $JAMIntegrate = file_get_contents("http://www.xxx.com/affiliates/sale.php?amount=".$row['amount']."&trans_id=".$vars["InvoiceID"]."&custom_mid=".$_COOKIE['jrox']); } } add_hook("InvoicePaid",0,"actionhook_InvoicePaid",""); ?> which spits back this to my email (credit card numbers changed) GET Array ( ) POST Array ( [action] => submit [invoiceid] => 25 [firstname] => xx [lastname] => xxan [address1] => 4080 Paradise Rd., #15-357 [address2] => [city] => Las Vegas [state] => NV [postcode] => 89169 [country] => US [phonenumber] => 12345678 [ccinfo] => new [cccvv2] => [cctype] => MasterCard [ccnumber] => xxx 5xxx xx xx [ccexpirymonth] => 11 [ccexpiryyear] => 10 [cccvv] => xxx ) Vars Array ( [0] => 25 ) COOKIE Array ( [jrox] => 1###1###0###0###Unknown [phpSESSID] => 9eab73f015438858d1454197595d3d00 [jam_protect] => 84cb37edf7612a1ed426efd5885c04c7 ) ROW This is as far as I have got, what I am trying to do is: JAM and WHMCS on same domain, affilate links to remote site, so have turned on append cookie to url in JAM and used the suggested php in the remote site header. Cookie works at that stage and JAM tracks the click - the user then clicks on a join now button on the remote site which redirects them back into WHMS cart i.e to purchase product - which is where I lose all the tracking. I complete the sale etc but no comissions are being recorded. Has anyone got WHMCS and JAM working together correctly? Thanks in advance for some advice Scott 0 Quote Link to comment Share on other sites More sharing options...
stardot Posted December 1, 2010 Share Posted December 1, 2010 I'm suprised this thread got no responses. I have not been able to get jrox + whmcs working either. It tracks the clicks, and signups. Then the sales data is all messed up! Has anyone gotten it working yet? Or should I write off JROX completely? 0 Quote Link to comment Share on other sites More sharing options...
altomarketing Posted December 7, 2010 Share Posted December 7, 2010 I think you should write jrox as it is theirs product, i have integrated jrox and whmcs and works fine. 0 Quote Link to comment Share on other sites More sharing options...
CritiKill Posted April 6, 2012 Share Posted April 6, 2012 Please could somebody assist, I am UNABLE to integrate JROX JAM with WHMCS. Any assistance will do. Thanks. 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.