[ic] Advanced affiliate issue

Mike Heins interchange-users@lists.akopia.com
Mon Aug 6 22:04:00 2001


Quoting Jason Timm (jason@itchoices.com):
> Hi all,
> 
> We are using the affiliate functions extensively.  We run a single catalog
> that is the core of an affiliate program with 30+ affiliates and growing
> quickly.  Each affiliate has their own look and feel capability (and static
> pages) but all use the same databases (products, shipping, etc.) as well as
> the same common pages.
> 
> Currently, each domain is mapped to the same directory on the server (main
> document root).  So, when an affiliate goes to www.theirdomain.com, they get
> forwarded to their entry point within IC.  But, from then on it seems like
> IC uses the SERVER_NAME variable to pre-pend all future URLs and paths.
> This means that after the first click to their site, the URL changes to
> http://www.mydomain.com/cgi-bin/catalog/sites/their_affiliate_id/page.html.
> While this still has their affiliate id in it, it no longer looks like their
> URL.

> Does anyone have any ideas on how to make IC use a value from the
> affiliate table instead of the SERVER_NAME variable?  In other words, make
> the URL stay the same from beginning to end while using the same catalog?

Well, you can just set VendURL to be /cgi-bin/catalog without the
http://whatever stuff. That works -- I can't remember whether you get
a warning or not.

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

"Laughter is inner jogging." -- Norman Cousins