Jump to content

iDevAffiliate With WHMCS 4.1.1


bigsean

Recommended Posts

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 -

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

{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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated