Jump to content

Recommended Posts

Hi,

 

We've recently signed up as a merchant with Affiliate Future and are struggling with integrating the tracking code. Does anybody know the correct integration codes (ORDER_REF, ORDER_VALUE)? ie: the order value before shipping code, and the order ID code/invoice number code?

 

We know the tracking code goes into order-confirmation.tpl and have tried various codes like {$totalProducts} and {$id_order} etc but none seem to be logging sales.

 

Does anyone know the correct configuration? Plus if there's any 3rd party code/module to be added also?

 

 

thanks in advance

Link to comment
Share on other sites

I've solved this problem for any other merchants with Affiliate Future who are stuck with implementing the tracking code:

 

The whole affiliate future tracking code script should be added to the bottom of order-confirmation.tpl, with the following order value and ID values to be set:

 

var orderValue = 'ORDER_VALUE';

var orderRef = 'ORDER_REF';

 

should be set as follows with each value in inverted commas:

 

var orderValue = '{$product_total}';

var orderRef = '{$id_order}';

Link to comment
Share on other sites

  • 2 months later...

Hi

 

Did this code work with all payment gateways i.e. paypal, sagepay?

 

Should the code within the order-confirmation.tpl look like this:

 

{capture name=path}{l s='Order confirmation'}{/capture}

{include file="$tpl_dir./breadcrumb.tpl"}

 

<h1>{l s='Order confirmation'}</h1>

 

{assign var='current_step' value='payment'}

{include file="$tpl_dir./order-steps.tpl"}

 

{include file="$tpl_dir./errors.tpl"}

 

{$HOOK_ORDER_CONFIRMATION}

{$HOOK_PAYMENT_RETURN}

 

<br />

{if $is_guest}

<p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent to your e-mail.'}</p>

<a href="{$link->getPageLink('guest-tracking.php', true)}?id_order={$id_order}" title="{l s='Follow my order'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Follow my order'}" class="icon" /></a>

<a href="{$link->getPageLink('guest-tracking.php', true)}?id_order={$id_order}" title="{l s='Follow my order'}">{l s='Follow my order'}</a>

{else}

<a href="{$link->getPageLink('history.php', true)}" title="{l s='Back to orders'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Back to orders'}" class="icon" /></a>

<a href="{$link->getPageLink('history.php', true)}" title="{l s='Back to orders'}">{l s='Back to orders'}</a>

{/if}

<!-- Affiliate Future Tracking code -->

{literal}

<script language="javascript" src="https://scripts.affiliatefuture.com/AFFunctions.js"></script>

<script language="javascript">

 

var merchantID = my merchant id here;

var orderValue = '{$product_total}';

var orderRef = '{$id_order}';

var payoutCodes = '';

var offlineCode = '';

 

AFProcessSaleV2(merchantID, orderValue, orderRef,payoutCodes,offlineCode);

</script>

{/literal}

<!-- End Affiliate Future Tracking code -->

 

As we do not seem to be able to get the tracking code to work? Did you have any other issues that you had to overcome before the code worked.

 

Really having issues so a reply would be much appreciated.

 

Nick

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...