View Full Version : referrer wish list
Andy Warner
06-Jan-2003, 07:56 PM
allow a 14 day (or whatever) cookie to be set so any orders within 14 days get attributed to the last referrer. other software does this (?) and my referrers want it from me too!!!
Allow referrer cookies to be set from other scripts, not just the referrer one ( i covered this one before I think)
Andy
Darren
07-Jan-2003, 01:05 PM
Hello Andy
I am speaking to our development team about this one.
Will keep you posted.
Darren
08-Jan-2003, 08:16 AM
Hello there.
Have not forgotten you, still working...
Darren
08-Jan-2003, 09:50 AM
Hello there.
It has been suggested that you may want to try editing the referrer.pl script.
Iit is strongly advised that you create a snapshot before editing any code. It would also be advisable to back up the script before beginning (although a set of replacement .pl files is kept in the Actinic Original folder).
Please also note that this has not been tested, hence the need to make sure you have backed-up
Browse to the site1 folder on your computer and open referrer.pl with notepad and search for print "Set-Cookie: ACTINIC_SOURCE="
You will need to change the lines:
print "Set-Cookie: ACTINIC_SOURCE="
$sCookie . "; PATH=/;\r\n";
to:
my $later = $now + 14 * 24 * 3600;
@later = gmtime($later);
$day = $days[$later[6]];
$month = $months[$later[4]];
my $sLater = sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT", $day,
$later[3], $month, $later[5]+1900, $later[2], $later[1], $later[0]);
print "Set-Cookie: ACTINIC_SOURCE=" .
$sCookie . "; EXPIRES=" .
$sLater . "; PATH=/;\r\n";
Then save the changes and refresh the site.
I hope this helps.
Andy Warner
09-Jan-2003, 04:20 PM
I cant seem to get this one to work. can the boyz in dev confirm its correct?????
appreciate your efforts guys n gals
andy:cool:
Darren
13-Jan-2003, 09:25 AM
Sorry to hear that, checking for you....
Andy Warner
13-Jan-2003, 03:39 PM
sorted, I think:
add @later and $sLater to name package :
my (@expires, $day, $month, $now, $later, @now, $sNow, $sLater, @later);
Ok, now its a runner!
thanks guys
andy
:D
antrixx
30-Dec-2003, 01:24 AM
--------------------
add @later and $sLater to name package :
my (@expires, $day, $month, $now, $later, @now, $sNow, $sLater, @later);
--------------------
Hiya,
Where and what exactly do you add to the referrer.pl script to make it work with cookies for a set length of time? I've added the stuff from Darren's post, but I'm not sure what the last post needed added to get it to work? Can you post *exactly* what else to add, and where exactly to add it?
Regards,
David.
Andy Warner
30-Dec-2003, 08:29 AM
WOW! ITS A LOOOONG TIME AGO.....
Right, the referrer pearl code is in referrer.pl file.
open in a text editor such as notepad and do a find for the following line:
my (@expires, $day, $month, $now, $later, @now, $sNow);
and replace it with
my (@expires, $day, $month, $now, $later, @now, $sNow, $sLater, @later);
simply put, the guys didnt add a couple of strings when they tweeked the code. no big deal, as it was done as a favour and isnt supported.
remember the code might have changed in referrer.pl since then! so this is not guaranteed to work.
Happy coding and a fruitfull new year to you all.
andy warner
www.legendgames.co.uk
(looking for referrers by the way!)
antrixx
30-Dec-2003, 06:25 PM
Many thanks! It worked a treat.
I know it was a long time since the thread was created, but I thought I'd ask anyway within the thread instead of creating a new one, as I'd done a search before asking and this thread came up :)
Regards,
David.
dave_finlayson
26-Oct-2004, 01:59 PM
This could well be the longest thread ever!
Just wondering if anyone is using this successfully in v7. I have tried but cant seem to get it to work, as soon as a customer exits the browser the referrer information is lost!
Anyone any experience here?
Dave
Andy Warner
26-Oct-2004, 06:29 PM
Just a message to say I have implemented a version of referrer.pl (v6) that goes to a specific item in the catalog. See other posts on the other referrer thread for details
dave.... sounds like you have a problem with the cookie code having a short expiry limit??? so its expiring 'before' its set, or at the same time???
dave_finlayson
26-Oct-2004, 07:03 PM
Andy,
My apologies, after trying again (or trying the same thing again actually) I have it working, must have done something wrong the first time!!
Am I correct in saying that this part of the cookie will last until the customer places an order after which it is cleared out? Or is it supposed to keep the referrer info regardless of how many orders the customer places within the 14 days?
Cheers Andy
Dave
Nadeem
28-Oct-2004, 08:10 AM
Hi Dave
Am I correct in saying that this part of the cookie will last until the customer places an order
This is correct. The referrer code only last until you complete an order.
Kind Regards
Nadeem R
adder
07-Jul-2008, 10:33 AM
Ok, let me puff the dust off this old post.
What would you suggest if my version of Actinic (8.5) doesn't have these lines of code in referrer.pl any more? Is there another way round it?
Thanks.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.