Jump to content

Third Party Order Conversion - Affiliate Tracking - ClixGalore


duperhost

Recommended Posts

The old integration was to put this code in template :

 

{php}

$a = $this->get_template_vars('ordernumber');

$query = "SELECT * FROM tblorders WHERE ordernum=" . $a . ";";

$result = mysql_query ($query);

$data = mysql_fetch_array ($result);

$cost = $data['amount'];



$this->assign('amount',round($cost,2));

{/php}

<img src="https://www.clixGalore.com/AdvTransaction.aspx?SV={$amount}&OID={$ordernumber}&ADID=11111" width="1" height="1">

 

 

From this guide the template :

 

http://docs.whmcs.com/Order_Form_Templates

 

 

If I put the code inside $ispaid it means if the payment like 2checkout is pending payment for fraud checking it dose not record the sale.

 

{if $ispaid}
Enter any HTML code which needs to be displayed once a user has
completed the checkout  of their order here - for example
conversion tracking and affiliate tracking scripts
{/if}

 

 

After the payment is paid, It dose not record the sale as the customer dose not go to complete.tpl

 

so what should be doing now ?

Link to comment
Share on other sites

  • 2 months later...

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