I purchased an affiliate script so I can start an affiliate program on our website. Uploaded files in /affiliates, and I have already setup the MySQL database. The last step is to add a few lines of code on our site so it can start tracking the affiliate's users. I am not sure how I would do this, please help me if you can. If you feel my question is too stupid to answer, then no hard feelings.
This is what I need to add on my site before any HTML output..
require_once('easy_affiliate.class.php');
require_once('easy_affiliate.class.php'); // add this line if you havent already included this file
$easy_affiliate->markBuy($id_user, $id_order, $price, $is_paid);
?>
The file "easy_affiliate_class.php" is in the /affiliates folder so I would need to link to it somehow. The first line of code should be on all pages and the next one is meant for the checkout pages, after the order is saved in our database.
Happy Thanksgiving!