khime Posted August 8, 2005 Posted August 8, 2005 I've started a trial using adwatcher to help monitor which advertising program leads to a completed sale. According to them I need to put a code on my checkout_success.php which registers a sale to adwatcher in the form: <img src="http://xxx.xxx.com/tracker.php?tp=s&amount=0.00" style="width:1px;height:1px;border:0px;" /> I need to change the "amount=0.00" to the sales total variable instead which will be different for each order. Anybody have any idea which variable to be used in order foe this code to work? Also has anybody got any comments (good or bad) about using adwatcher?
Guest Posted August 9, 2005 Posted August 9, 2005 You need to post the $total_cost variable from checkout_process.php - there is a redirect to checkout success.... use this. Matti
khime Posted August 10, 2005 Author Posted August 10, 2005 Hi, thanks for replying I'm not sure what exactly you mean by your reply as I am a beginner in web coding. I've opened up the checkout_process.php and I can see the redirect at the end: tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); but I dont know what this has to do in relation to my original query. Referring back to the code I need to insert in order to register the sale amount to adwatcher: <img src="http://xxx.xxx.com/tracker.php?tp=s&amount=0.00"'>http://xxx.xxx.com/tracker.php?tp=s&amount=0.00" style="width:1px;height:1px;border:0px;" /> So in order to transmit the total cost of the sale to the adwatcher site would I change the code to: <img src="http://xxx.xxx.com/tracker.php?tp=s&amount=$total_cost" style="width:1px;height:1px;border:0px;" /> then add to checkout_process.php? Thanks Simon You need to post the $total_cost variable from checkout_process.php - there is a redirect to checkout success.... use this. Matti <{POST_SNAPBACK}>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.