ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Changing idAffiliate= to something else
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing idAffiliate= to something else

 Post Reply Post Reply
Author
Message
rivaldog View Drop Down
Newbie
Newbie


Joined: 26-May-2008
Location: Kansas City
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote rivaldog Quote  Post ReplyReply Direct Link To This Post Topic: Changing idAffiliate= to something else
    Posted: 31-October-2012 at 10:52am
Hi,
Where would I change the affiliate id string that needs to go in a tracking URL? 

I don't want the tracking URL to read: www.whatev.com/store/pc/etc...&idaffiliate=5

I would like it to read: www.whatev.com/store/pc/etc...&opid=5

So basically, I need to know what file to change so that Productcart will track an affiliate from URLs using {&opid} instead of {&idaffiliate}.

thank you
Doug


Edited by rivaldog - 31-October-2012 at 10:55am
Rivaldog
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 31-October-2012 at 3:06pm
Hi Doug,

In /pc/pcStartSession.asp find the following:
pcInt_IdAffiliate = request.querystring("idAffiliate")

Change that to:
pcInt_IdAffiliate = request.querystring("opid")
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 31-October-2012 at 4:08pm
I'm not so sure there isn't a bit more, such as changing how the affiliate code session variable is managed.  It would take some testing and review.
Back to Top
rivaldog View Drop Down
Newbie
Newbie


Joined: 26-May-2008
Location: Kansas City
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote rivaldog Quote  Post ReplyReply Direct Link To This Post Posted: 31-October-2012 at 5:02pm
ok... thank you - I will try changing the pcStartSession.asp file and running a test.  Can't hurt to try :-)  will post result here.  thx again
Rivaldog
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 31-October-2012 at 5:09pm
The session variable will store the value for pcInt_IdAffiliate

However, there is another bit to this: if affiliates will be logging in to get URLs to post on their sites. The query string for them would need to be changed.
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 31-October-2012 at 5:14pm
In /pc/AffGenLinks.asp find 3 instances of this exact string:
idaffiliate="

Change them to:
opid="
Back to Top
rivaldog View Drop Down
Newbie
Newbie


Joined: 26-May-2008
Location: Kansas City
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote rivaldog Quote  Post ReplyReply Direct Link To This Post Posted: 01-November-2012 at 12:01pm
Hi - Just updating the thread with my results.  I made the three changes in  /pc/AffGenLinks.asp and the one change in /pc/pcStartSession.asp and ran a test. Everything appears to be working perfectly.  We sent ourselves a link from an existing affiliate, ordered the product and after completing the order, the affiliate's account was updated with their commission and the affiliate was sent an email notification of the order.  Very nice!! 

Thank you for your help Sean!
Rivaldog
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 01-November-2012 at 12:57pm
My pleasure.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.051 seconds.