How an affiliate links to your site

To allow for orders to be linked to affiliates, the affiliate must link to your site with a hyperlink or form specifying the following.

 

Shopaff.asp?affid=n

“n” needs to be replaced with the affiliate’s ID from your database.

 

Using a link like this, the customer will be redirected to the default page once VPCART notes the affiliate ID.

 

shopaff.asp?affid=n&id=yyyy

 

“n” needs to be replaced with the affiliate’s ID from your database.

 

“yyyy” needs to be replaced with the catalog ID of a product in your database.

 

Once VPCART has noted the affiliate ID, the customer will be redirected to a specific product with catalogid yyyy.

 

shopaff.asp?affid=n&directurl=http://www.vpcart.com/vpasp

“n” needs to be replaced with the affiliate’s ID from your database.

 

“http://www.vpcart.com/vpasp” needs to be replaced with a filename or URL.

 

Once VPCART has noted the affiliate ID, the customer will be redirected to the file or site identified as the directurl.

 

If the affiliate does not exist, VPCART goes to your home page and no error is shown.

 

If the affiliate exists, the login count and login date is updated in their affiliate record.

 

Each affiliate can have a unique page on your site and VPCART will automatically link to that page. If no page is specified in the directurlfield in the affiliates table or in the querystring, then VPCART sends the customer to your home page.