Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Affiliate tracking code


jasaru

Recommended Posts

Posted

Hi all,

 

I am having a bit of trouble implementing an affiliate tracking code into my site.

 

the tracking code I have been given is:

 

<script type="text/javascript">

<!--

var value="$orders_total"; //Value of sale

var ref="$orders_id"; //Your unique reference

 

var mid="12345";

var goalid="1111";

//-->

</script>

<script type="text/javascript" src="https://aflite.co.uk/js/track.js"></script>

 

I have put this in my checkout_success.php file in the body_text section.

 

It registers with the affiliate website but returns a nil order value message.

 

I then entered the following in my checkout_process.php file and still the same thing.

 

// Begin affiliate Program - Sales Tracking

$orders_total=$currencies->format($cart->show_total()- $total_tax);

tep_session_register('orders_total');

$orders_id=$insert_id;

tep_session_register('orders_id');

// End affiliate Program - Sales Tracking

 

Can anyone help me on where im going wrong? im quite new to this.

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...