hostupon
02-24-10, 06:00 PM
Hi,
I'm using WHMCS 4.1.1 and iDevaffiliate 6.03 -
I am trying to integrate the code iDev provided in to /templates/orderforms/cart/complete.tpl
The code provided is:
{if $ispaid}
{php}
$orderid = $this->get_template_vars('orderid');
$result = select_query("tblorders","amount",array("id"=>$orderid));
$data = mysql_fetch_array($result);
$amount = $data["amount"];
$this->assign('amount',$amount);
{/php}
<img src="http://www.hostupon.com/idevaffiliate/sale.php?profile=33&idev_saleamt={$amount}&idev_ordernum={$orderid}&ip_address={$smarty.server.REMOTE_ADDR}" width="1" height="1" border="0" />
{/if}
When I tried a live sale, after payment a blank page appears. I'm kinda stuck here as I've tried a few different things but nothing has seemed to work. Any help at all would be much appreciated!
Thank you -
I'm using WHMCS 4.1.1 and iDevaffiliate 6.03 -
I am trying to integrate the code iDev provided in to /templates/orderforms/cart/complete.tpl
The code provided is:
{if $ispaid}
{php}
$orderid = $this->get_template_vars('orderid');
$result = select_query("tblorders","amount",array("id"=>$orderid));
$data = mysql_fetch_array($result);
$amount = $data["amount"];
$this->assign('amount',$amount);
{/php}
<img src="http://www.hostupon.com/idevaffiliate/sale.php?profile=33&idev_saleamt={$amount}&idev_ordernum={$orderid}&ip_address={$smarty.server.REMOTE_ADDR}" width="1" height="1" border="0" />
{/if}
When I tried a live sale, after payment a blank page appears. I'm kinda stuck here as I've tried a few different things but nothing has seemed to work. Any help at all would be much appreciated!
Thank you -