viktorsundberg Posted January 30, 2010 Share Posted January 30, 2010 I am starting an affiliate program and have to implemend a code on my confirmation page, which I believe would be order-confirmation.php?The original tracking code looks like this:img src="http://click.double.net/ls/?p=9999;d=sale;v=ORDER_VALUE;c=CLIENT_ID" width="0" height="0"I want to add the order value (without tax and shipping) in the "ORDER VALUE" and the order number in the "CLIENT_ID". How should I rewrite the code so I get the right variable and where should I place the code, in which file and where in that file? Link to comment Share on other sites More sharing options...
viktorsundberg Posted January 31, 2010 Author Share Posted January 31, 2010 I have now figured out that I should add something like:v=<?php echo $myOrderValueVARIABLE;?>But what is the variable name for the order value excl. tax in prestashop?And what is the variable for order number?Is there a list with all these variables somewhere? Link to comment Share on other sites More sharing options...
viktorsundberg Posted January 31, 2010 Author Share Posted January 31, 2010 Is it $orderTotal ?If, so, is that before or after tax?Also, would be great to find the one for order numbers... Link to comment Share on other sites More sharing options...
viktorsundberg Posted January 31, 2010 Author Share Posted January 31, 2010 I now believe my code should be:...and I now realize I have to implement the tracking in the template file, right? But how do I get the template file to understand the variables $orderTotal and $id_order?Can't anyone please help me with this? Link to comment Share on other sites More sharing options...
rodpac Posted January 5, 2011 Share Posted January 5, 2011 Just bumping this old one up to see if you had any luck getting any affiliate scrip to work...If anyone had any luck getting a similar script to work I would be very keen to hear form you Link to comment Share on other sites More sharing options...
presta-dyr Posted January 19, 2011 Share Posted January 19, 2011 Perhaps you can use the affilate tracking module I have made./Kjeld Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now