jasaru Posted August 13, 2010 Posted August 13, 2010 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.