Author Ralph on 04-13-2002 at 18:47 (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.
|Messages In This Discussion|
| 1. RE: Affiliate Linking.|
Author Bill Weiner on 04-16-2002 at 05:17 (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.
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)
STEP 3: Change the above 5 lines of code to just this one line:
(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.