The old integration was to put this code in template :
Code:{php} $a = $this->get_template_vars('ordernumber'); $query = "SELECT * FROM tblorders WHERE ordernum=" . $a . ";"; $result = mysql_query ($query); $data = mysql_fetch_array ($result); $cost = $data['amount']; $this->assign('amount',round($cost,2)); {/php} <img src="https://www.clixGalore.com/AdvTransaction.aspx?SV={$amount}&OID={$ordernumber}&ADID=11111" width="1" height="1">
From this guide the template :
Code:http://docs.whmcs.com/Order_Form_Templates
If I put the code inside $ispaid it means if the payment like 2checkout is pending payment for fraud checking it dose not record the sale.
Code:{if $ispaid} Enter any HTML code which needs to be displayed once a user has completed the checkout of their order here - for example conversion tracking and affiliate tracking scripts {/if}
After the payment is paid, It dose not record the sale as the customer dose not go to complete.tpl
so what should be doing now ?

Reply With Quote