Is anybody using the Avantlink affiliate program? If so, how have you managed to write the script for their tracking needs with the shopsite variables and specifically, how did you do it for multiple item orders?
Here is what I have so far, but it is causing problems on the thank you page with the order confirmations:
<script type="text/javascript">
function init()
{
var oi = ss_sku[0] + "|" + ss_price[0] + "|" + ss_quantity[0];
var i = 1;
for (i = 1; i < number_products; i++) { oi += "~" + ss_sku[i] + "|" + ss_price[i] + "|" + ss_quantity[i]; }
document.write('<scr'+'ipt type="text/javascript" src="https://tracking.avantlink.com/avant_rfpc.php?mi=10337&ot=' + ss_subtotal + '&on=' + ss_ordernum + '&oi=' + oi + '"><\/scr'+'ipt>');
}
onload=init;
</script>
Here is the Avantlink script example:
<script type="text/javascript" src="https://tracking.avantlink.com/avant_rfpc.php?mi=[MERCHANT_ID]&ot=[ORDERTOTAL]&on=[ORDERNUMBER]&oi=[ORDERITEMS]"></script>
I need to replace shopsite variables and also need it to track multiple items. Any advice is appreciated.
Thanks