NETQUOTEVAR for Product Name???
I would like to pass the product name in the order to my affiliate program... is this possible?
If it is could someone please give me an example? Whatever the Netquotevar, it would have to be transferred into the javascript code I currently have (PASTED BELOW) to make it work with my current script.
Thank you
=========CODE I CURRENTLY HAVE=============
<script>testPrice = "NETQUOTEVAR:SUBTOTAL";
var i;
var SecondAmp = 0;
var FullPrice = "";
for (i = 0; i < testPrice.length; i++)
{
// Search through string and append unfiltered values to returnString.
var c = testPrice.charAt(i);
if (c == "&")
{
if(i != 0)
{
SecondAmp = i;
}
}
}
var FirstPrice = testPrice.substring(6,SecondAmp);
var SecondPrice = testPrice.substring(SecondAmp + 5, SecondAmp + 7);
// create the fullprice
FullPrice = FirstPrice + "." + SecondPrice;
// we always send a constant product description, but this could easily be
var ProductDesc = "Affiliate Sale ";
ProductDesc = ProductDesc + "£" + FullPrice;
// then dynamically create an image which quietly sends off our info
document.write("<img src='http://www.assoctrac.com/5300/track/sale/?desc_1="
+ ProductDesc + "&price_1=" + FullPrice + "&qty_1=1&commit=1 '>"); </script>
I would like to pass the product name in the order to my affiliate program... is this possible?
If it is could someone please give me an example? Whatever the Netquotevar, it would have to be transferred into the javascript code I currently have (PASTED BELOW) to make it work with my current script.
Thank you
=========CODE I CURRENTLY HAVE=============
<script>testPrice = "NETQUOTEVAR:SUBTOTAL";
var i;
var SecondAmp = 0;
var FullPrice = "";
for (i = 0; i < testPrice.length; i++)
{
// Search through string and append unfiltered values to returnString.
var c = testPrice.charAt(i);
if (c == "&")
{
if(i != 0)
{
SecondAmp = i;
}
}
}
var FirstPrice = testPrice.substring(6,SecondAmp);
var SecondPrice = testPrice.substring(SecondAmp + 5, SecondAmp + 7);
// create the fullprice
FullPrice = FirstPrice + "." + SecondPrice;
// we always send a constant product description, but this could easily be
var ProductDesc = "Affiliate Sale ";
ProductDesc = ProductDesc + "£" + FullPrice;
// then dynamically create an image which quietly sends off our info
document.write("<img src='http://www.assoctrac.com/5300/track/sale/?desc_1="
+ ProductDesc + "&price_1=" + FullPrice + "&qty_1=1&commit=1 '>"); </script>
Comment