bigsean Posted February 24, 2010 Share Posted February 24, 2010 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 - 0 Quote Link to comment Share on other sites More sharing options...
quasiknowsitall Posted February 28, 2010 Share Posted February 28, 2010 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 am thinking about buying this software also, did you manage to get your complete order page working correct with idevaffiliate? 0 Quote Link to comment Share on other sites More sharing options...
bigsean Posted February 28, 2010 Author Share Posted February 28, 2010 Hi Yes with Matt's help I added the following to the complete.tpl file: {if $ispaid} <img src="http://www.website.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} The above is what we used. cheers 0 Quote Link to comment Share on other sites More sharing options...
solokron Posted February 28, 2010 Share Posted February 28, 2010 {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} Is not needed? Hi Yes with Matt's help I added the following to the complete.tpl file: {if $ispaid} <img src="http://www.website.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} The above is what we used. cheers 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.