www.uburst.com www.uburst.com

"Affiliate Linking."

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Affiliate Linking."
Posted by Ralph on Apr-13-02 at 06:47 PM (EST)
I have what I think is an interesting question.

I would like to make individual CD-ROMS for my affiliates. Each affiliate will be given their on cd-rom with our generic product pages on them. The products are called from the applets located in the class directory on each cd-rom.
I would like my affiliates customers to shop their CD-ROMS offline, browsing and adding products to their cart. The webpages, class directory and applets etc are all on the cd.

My question is this. What do I need to do in order for the affiliate to get credited for the sale when the customer goes to complete the order process? How and where and what should I do to have the cookie set for the affiliate in this type of situation. I would prefer the cookie to be set at the latest possible point in the order / browsing process.

I hope i have explained in enough detail.

Thank you.

Bill

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Affiliate Linking., Bill Weiner, Apr-16-02, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Affiliate Linking."
Posted by Bill Weiner on Apr-16-02 at 05:17 AM (EST)
So it sounds like you'll be using uShop's standard CD-ROM option where:

1) All of the HTML pages/class files are on the CD-ROM (so that the customer can shop/add items via the CD-ROM)

2) And when the customer is ready to check out, the uShopOrderButton applet is used to transfer the customer online to the uShop CGI script to complete the order process.

Correct?

Well, when it come identifying each affiliate CD, there are a couple ways to handle that. Here is the easiest way:

STEP 1: Use any text editor (such as Word Pad) to open the "display_cart.html" page that will be located in the "classes" directory on the CD-ROM.

STEP 2: On the "display_cart.html" page, locate the following 5 lines of code:

var affiliateCookieValue = getCookie("affiliate");
if (affiliateCookieValue != null)
{
document.uShopJSI.setAffiliateId(affiliateCookieValue);
}

STEP 3: Change the above 5 lines of code to just this one line:

document.uShopJSI.setAffiliateId("Affiliate123");

(NOTE: The "Affiliate123" string would need to be modified on each CD to correspond to each affiliate's ID that you assigned them when creating the Affiliate Account via uShop's Control Panel.)

STEP 4: Repeat steps 1 - 3 for the "display_cart2.html" page ... which is also located in the classes directory.

STEP 5: Test it out!

These steps will ensure that the Affiliate ID is set immediately before the customer transfers to the server to complete the order process.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.