Forums / General Questions / Adding a Cookie to Category and Product Pages for affiliates

Adding a Cookie to Category and Product Pages for affiliates

Locked

Views: 1,030

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
20 Apr 2010, 11:22 AM
#1
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Adding a Cookie to Category and Product Pages for affiliates

Hi guys, i'm going to explain what we're planning to do as i think it maybe helpful to others.

what im trying to achieve:
we're going to be taking on another new affiliate network and we need to have tracking cookies to prevent duplicate commissions going to both networks. We've added a 'click append' to both affiliate networks (this can usually be added in the admin of your affiliate network or requested). e.g. source=affiliate1. so i'm picking this value up in a cookie and storing this. When at checkout we check to see is this cookie exists and then if it does we check the value and then use the appropiate affiliate conversion code.

What i need guidance with:
Which files do i need to edit in order to create my cookie on product and category pages?

Andy.

oh dear gurrrddddd.

20 Apr 2010, 11:59 AM
#2
janekbar5 avatar

janekbar5

New Zenner

Join Date:
Jul 2006
Posts:
16
Plugin Contributions:
0

Re: Adding a Cookie to Category and Product Pages for affiliates

Hi
Im trying to add cookie for similar purpose (tracking efficiency of adwords and other mediums like affiliates. However I'd like to attach extra column to orders to know from which source it has come. So Im following this thred http://www.zen-cart.com/forum/showthread.php?t=88550 but insted od delivery date I want to put cookie.
I'm bit worry if cookie will work during the session???

20 Apr 2010, 12:33 PM
#3
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Re: Adding a Cookie to Category and Product Pages for affiliates

Hello,
well the cookie i'm creating shouldn't affect any session as its picking up from an external link through and only be stored once they initially join the site.

I'm looking for someone who can point in the right direction as to the correct files i should be modifying to do this?

Andy.

oh dear gurrrddddd.

20 Apr 2010, 2:40 PM
#4
janekbar5 avatar

janekbar5

New Zenner

Join Date:
Jul 2006
Posts:
16
Plugin Contributions:
0

Re: Adding a Cookie to Category and Product Pages for affiliates

you have to concider session as the user when make purchase must log in (session) and you must be able to store cookie while user is logged in and to save it in database after order is placed (this is tha way what i'm going to do)

20 Apr 2010, 2:47 PM
#5
andy_gs avatar

andy_gs

Zen Follower

Join Date:
Jun 2008
Posts:
187
Plugin Contributions:
0

Re: Adding a Cookie to Category and Product Pages for affiliates

Ok ill wait for one of the zen people to guide me to which files i need to edit

Andy.

oh dear gurrrddddd.