jxm28788
11-18-2005, 08:25 AM
Not sure if this is the most appropriate forum, but it looks about the closest as far as I can tell...
I'm creating an affiliate site, which is working fine except for one thing - I can't figure out how to get the 'add to basket' to work.
The code on the 'main' site looks like this -
<table border="0" cellspacing="0" cellpadding="5" align="right">
<form name="addToCart1"action="http://www.mainsite.com/basket/cartHandler.php" method="post">
<input type="hidden" name="action" value="addtocart">
<input type="hidden" name="addquant" value="1">
<input type="hidden" name="pid" value="1157">
<tr>
<td valign="middle" align="right" width="80%"><input type="hidden" name="item" value="2814">My Product <b>£19.95</b></td>
<td valign="bottom" align="right" width="20%"><input type="image" src="http://www.mysite.com/order_but.gif" border="0" height="22" width="80" alt="Order item" onmouseover="window.status='Place an order for this item';return true" onmouseout="window.status='';return true"></td>
</tr>
</form>
</table>
However, if I just copied that code onto my affiliate site it wouldn't register me as being the affiliate so I would make any money (doh!)
The code they have provided is to prefix their URL with "http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=xxxxx&merchantID=xxxxx&programmeID=xxxxx&mediaID=0&tracking=&url="
But if I change the code above to -
name="addToCart1"action="http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=xxxxx&merchantID=xxxxx&programmeID=xxxxx&mediaID=0&tracking=&url=http://www.mainsite.com/basket/cartHandler.php" method="post">
Then it does take me to the main site basket, but doesn't add the product to it - I assume because it's trying to post to the 'affiliatefuture' site not the mainsite.
How do I get around this...?
I'm creating an affiliate site, which is working fine except for one thing - I can't figure out how to get the 'add to basket' to work.
The code on the 'main' site looks like this -
<table border="0" cellspacing="0" cellpadding="5" align="right">
<form name="addToCart1"action="http://www.mainsite.com/basket/cartHandler.php" method="post">
<input type="hidden" name="action" value="addtocart">
<input type="hidden" name="addquant" value="1">
<input type="hidden" name="pid" value="1157">
<tr>
<td valign="middle" align="right" width="80%"><input type="hidden" name="item" value="2814">My Product <b>£19.95</b></td>
<td valign="bottom" align="right" width="20%"><input type="image" src="http://www.mysite.com/order_but.gif" border="0" height="22" width="80" alt="Order item" onmouseover="window.status='Place an order for this item';return true" onmouseout="window.status='';return true"></td>
</tr>
</form>
</table>
However, if I just copied that code onto my affiliate site it wouldn't register me as being the affiliate so I would make any money (doh!)
The code they have provided is to prefix their URL with "http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=xxxxx&merchantID=xxxxx&programmeID=xxxxx&mediaID=0&tracking=&url="
But if I change the code above to -
name="addToCart1"action="http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=xxxxx&merchantID=xxxxx&programmeID=xxxxx&mediaID=0&tracking=&url=http://www.mainsite.com/basket/cartHandler.php" method="post">
Then it does take me to the main site basket, but doesn't add the product to it - I assume because it's trying to post to the 'affiliatefuture' site not the mainsite.
How do I get around this...?