PDA

View Full Version : iDevAffiliate With WHMCS 4.1.1



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 -

quasiknowsitall
02-28-10, 08:15 AM
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?

hostupon
02-28-10, 05:09 PM
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

solokron
02-28-10, 07:10 PM
{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