I am using sts template system. It is working fine with other addons but when I am trying to use idevaffiliate code it is unable to proceed. Idevaffiliate is affiliate system which captures the order id and total sell amount and sends the variables to idevaffiliate system from oscommerce and then calculate commissions according to the data. But I am unable to use this.
The idev code is implemented in checkout_success.php file. It looks like below:-
///////////IDEV AFFILIATE CODE STARTS/////////////
$idevtotal = tep_db_query("SELECT value FROM " . TABLE_ORDERS_TOTAL . " WHERE orders_id = '" . (int)$orders['orders_id'] . "' AND class = 'ot_subtotal'");
$idevtotal = tep_db_fetch_array($idevtotal);
$idev_saleamt = (number_format($idevtotal['value'],2));
$idev_ordernum = $orders['orders_id'];
print "<img border=\"0\" src=\"http://www.salesvideos.com/refer/sale.php?profile=5&idev_saleamt=$idev_saleamt&idev_ordernum=$idev_ordernum\" width=\"1\" height=\"1\">";
//////////IDEV AFFILIATE CODE ENDS/////////////
Please help me why it is not working with sts_template. It is working with default oscommerce setup.
Please help its very urgent.