Jump to content

jamieaus

Retired Forum Member
  • Posts

    14
  • Joined

  • Last visited

Everything posted by jamieaus

  1. Hi Guys, I have been contemplating developing an OpenERP module for WHMCS. A google search has me believing that this has already been done. I have found the a WHMCS OpenERP module developed by Nima ghorbani (http://www.tashilgostar.com) has anyone tested this and can confirm that it works? I have not looked through the code as yet but will be doing this before using the software. Thanks Jamie.
  2. Hi Guys, I am currently trying to add a hook to get both of these affiliate programs working with WHMCS, The code I am using is as follows. <? function actionhook_InvoicePaid($vars) { $result=mysql_query("SELECT amount FROM tblinvoiceitems WHERE type='HOSTING' AND invoiceid=$invoiceid"); $row = mysql_fetch_array($result); if (!empty($_COOKIE['jrox'])){ $JAMIntegrate = file_get_contents("http://www.mydomain.com.au/jamaffiliates/sale.php?amount=".$row['amount']."&trans_id=".$vars."&custom_mid=".$_COOKIE['jrox']); } else{ #clixgalore Affiliate program $method['image']="<img src='https://www.clixGalore.com/AdvTransaction.aspx?AdID=*****&SV={$row['amount']}&OID={$row['invoice_id']} '"; $method['image'].="height='0' width='0' border='0'>"; #Build Tracking image for Clix Galore $buffer.=$method['image']; $buffer.='<br />'; } # Email for troubleshooting hook remove later $to = me@mdomain.com.au"; $from = "sales@mydomain.com.au"; $from_header = "From: $from"; $subject = "WHMCS Troubleshooting affiliate script"; $message = "The following has been recorded by WHMCS hook jam.php \n\n Invoice ID: $row[invoice_id]"; mail($to, $subject, $message, $from_header); add_hook("InvoicePaid",0,"actionhook_InvoicePaid",""); } ?> When I try and complete a Clixgalore transaction after I log onto WHMCS I am presented with a blank page, this file is saved in the /includes/hooks directory as jam.php If anyone has any ideas on what I have done wrong please advise your help will be much appreciated. Thanks Jamie.
  3. Matt Thanks, I am placing the code in the hooks folder but this gives me somewhere to start, Thanks Jamie.
  4. Matt Any chance you could post the code for others to use. Thanks Jamie.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated