PDA

View Full Version : Clicks registering sales are not (Paypal)


bobby
11th April 2006, 12:22 PM
So I have an affililate with a text linking to my site, with the link something like this:

www.mysite.com

In mysite.com on every single page I have this code:

<?php
if($_GET['a_aid'] != '')

print "http://www.mysite.com/affiliates/scripts/t2.php?a_aid=".$_GET[";



?>

So it is reading the querystring to see if there is a referrer, which there is.

When buying a product I have this passed to paypal:

<input type=text name="notify_url" value="http://www.mysite.com/affiliates/scripts/paypal.php">
<input type=text name="custom" value="<?=$_COOKIE['POSTAff2Cookie']?>">

I set these as text boxes rather than hidden, just to see if it was filled with the correct values - which it is.

One silly question, the cookie: do I have to set this myself, and if so, where? If I don't have to set it myself them I am very confused as to why this is not working.

Any suggestions or things to try?

Thank you.

SteveD
12th April 2006, 07:58 PM
Cookies are set automaticaly by calling the script t2.php or t.php, so you don't need to set it by your self. Check your integration with PayPal button,
whether you have both fields (notify_url and custom) in the PayPal's button
form included. I mean between the <form>...</form> tags.