VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 Affiliate Programs Started- Howard need help.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP New User

199 Posts

Posted - August 06 2004 :  03:25:20  Show Profile  Visit ProductivePC's Homepage  Reply with Quote

Hello Howard (or anyone else)

We are starting an affiliate program and need to add some code to the thank you page. There is a couple of things we need that I don't know. Below is from the affiate website.

In addition, order-amount-here in the per sale code needs to be replaced with the sale amount and order-id-here needs to be replaced with the order number (although the latter is not required). This is how the sale amount is passed to our system for tracking and crediting the affiliate.

What variable hosts and displays the total order amount on the thank you page?

What variable hosts and displays the Order ID variable on the thank you page?



Edited by - ProductivePC on August 06 2004 09:31:37

VP-ASP New User

169 Posts

Posted - August 09 2004 :  02:28:07  Show Profile  Reply with Quote
I take it you mean you have joined an affiliate network, and you need to put the sales code in shopthanks.asp??

ifso we have done this:

somwhere about line 93'is after:

DisplayOrderNumber myconn ' Display the order number
sql = "select * from orders where orderid=" & clng(ordernumber)
Set rsorder = myconn.Execute(SQL)
affiliateid=rsorder("oaffid") ' get affilaite

you can add your code

obviously this will change from network to network, an example here:

<script language="javascript"
<script language="javascript">

merchantID = 235
payoutCodes = ""
offlineCode = ""

orderValue = <%response.write rsorder("orderamount")%>
orderRef = <%response.write rsorder("orderid")%>

AFProcessSaleV2(merchantID, orderValue, orderRef, payoutCodes, offlineCode)


NOTE: it is important to close, and reopen the asp tags

Quality Printer Consumables
Go to Top of Page

VP-ASP New User

74 Posts

Posted - August 14 2004 :  20:51:41  Show Profile  Visit Rockdale's Homepage  Reply with Quote
How do you get involved with an affiliate program? Can someone descibe in more detail how the affliate feature can be used?

Michael Kelley
Go to Top of Page

VP-ASP New User

169 Posts

Posted - August 15 2004 :  10:16:04  Show Profile  Reply with Quote
I think the 'Affiliate Program' refered to in the first post, is an outside affiliate managment company, NOT using the inbuilt vpasp affiliate tracking

in this case you sign up with an affiliate management company in you country, add the tracking code to the site, then the affiliate company sends you visitors you pay the managment company, they pay the affiliates, this is a way to get many more affiliates and is easier to manage that this inbuilt system

Quality Printer Consumables
Go to Top of Page

Starting Member

11 Posts

Posted - March 13 2005 :  11:08:57  Show Profile  Reply with Quote
No. No.. What this guy is asking is for the sale amount VARIABLE. He has an Affiliate Program on his server to track his sales commissions. Inorder for the sales commission to be calculated he needs to tell his CODE what the Order Amount variable is so it can calculate the commission. He puts his Affiliate Tracking code on his confirmation page and it passes the ORder Amount variable to his commission calculating page so it will enter it in his database. I am trying to do the same thing so if any one knows the Order Amount Variable used in VPASP please let me know. I think it is [orderamount] but that has not been working for me.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000