Print Page | Close Window

Changing idAffiliate= to something else

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=5334
Printed Date: 06-July-2025 at 9:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing idAffiliate= to something else
Posted By: rivaldog
Subject: Changing idAffiliate= to something else
Date 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


-------------
Rivaldog



Replies:
Posted By: Guests
Date 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")


Posted By: Greg Dinger
Date 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.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: rivaldog
Date 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


Posted By: Guests
Date 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.


Posted By: Guests
Date Posted: 31-October-2012 at 5:14pm
In /pc/AffGenLinks.asp find 3 instances of this exact string:
idaffiliate="

Change them to:
opid="


Posted By: rivaldog
Date 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


Posted By: Guests
Date Posted: 01-November-2012 at 12:57pm
My pleasure.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net