drakeman
28th January 2008, 06:11 PM
First of all only since Version 7.31 Shopfactory is giving output to the Thank You page. Current version is V7.5 which was released only a few days ago. That was a bug fixing release.
The click tracking script I had to paste in the HEAD section of Index1.html with ftp. In the index page body it was not working.
So first publish the shop on the net (build in Shopfactory function) and then alter the Index1.html page with ftp software.
See below.
-----------------------Index1--------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html xmlns:sf lang="nl" dir="ltr" >
<head>
<meta http-equiv="Content-Type" content="text/html;">
<meta name="robots" content="index,follow">
<meta name="Description" content=" Leg de Druk op Gereedschappen; Niet op Mensen! Het succes van een netwerkmarketingteam hangt nauw samen met de dupliceerbaarheid van de werkmethode. Hoe meer de werkmethode afhankelijk is van menselijke inzet en talenten, des te moeilijker wordt de duplicatie. Het gebruik van goede gereedschappen kan de groei van elk netwerkmarketingteam enorm versnellen. Daarom vind je in deze toolshop een collectie van beproefde, succesvolle marketingtools die een gezonde groei van je team kunnen ondersteunen of zelfs kunnen dragen.">
<meta name="KeyWords" content="mangosteen, mangosteenjuice, XanGo, X-factor, J. Frederic Templeman, MD, Robert C. Stone, D.O., David Morton, PhD, 44 problemen 1 oplossing, Iedere 20 seconden, Het systeem, De wetenschap achter rijk worden, Gereedschap, Folders, Brochures, DVD, Multi Level marketing, MLM, Netwerkmarketing, Jan Somers, Corinne Vermeij, 90 dagen mangosteen aktieplan, promotie, promotiemateriaal">
<meta name="author" content="Biolance">
<meta name="resource-type" content="document">
<meta name="revisit-after" content="14 days">
<title>Tools Mangosteenplaza </title>
<script type="text/javascript">
var nametag={
get:function(t){if(t!='sig'&&!this.valid('sig'))return'';if(tf.name.indexOf('<'+t+'>')!=-1)return tf.name.replace(new RegExp('.*<'+t+'>(.*?)</'+t+'>.*'),'$1');else return '';},
add:function(t,v){if(this.valid('sig'))this.del(t) ;tf.name+=('<'+t+'>'+v+'</'+t+'>');},
del:function(t){var re=new RegExp('<'+t+'>.*?</'+t+'>');tf.name=tf.name.replace(re,'');},
valid:function(t){if(typeof(tf.wssig)!='undefined'&&this.get('sig')==''){tf.name+='<'+t+'>'+tf.wssig+'</'+t+'>';return true;}return(this.get('sig')==tf.wssig);}
};
</script>
<script type="text/javascript" src="contents/loader.js"></script>
<script id="pap_x2s6df8d" src="http://www.your_site/affiliate_directory/scripts/track.js" type="text/javascript">
</script>
<script type="text/javascript">
<!--
papTrack();
//-->
</script>
</head>
--------------------------------------------------------------------------------------------------------
For the sale tracking script; you can paste it in the Thank You page with the build in page function in Shopfactory "Add html code"
I added the following:
---------------------------------------------------------------------------------------------------------
<script language="JavaScript">
<!--
orderID=window.location.search.split("&")
var order=orderID[1]
var Ordernummer=(order.substring(8, [13]))
var Totaalprijs=orderID[4]
var totaal=(Totaalprijs.substring(16, [30]))
var totaaln=totaal.replace( ",","." )
var totaalbedrag=parseFloat(totaaln)
var tax=orderID[5]
var taxbedrag=(tax.substring(6, [25]))
var taxbedragn=taxbedrag.replace( ",","." )
BTW=parseFloat(taxbedragn)
var ship=orderID[6]
var shipping=(ship.substring(11, [25]))
var shippingn=shipping.replace( ",","." )
verzendkosten=parseFloat(shippingn)
combedrag=Math.round((totaalbedrag - BTW - verzendkosten)*100)/100
//-->
</script>
<script id="pap_x2s6df8d" src="http://www.your_site/affiliate_directory/scripts/sale.js" type="text/javascript"></script>
<script type="text/javascript"><!--
var TotalCost=combedrag;
var OrderID=Ordernummer;
var ProductID="Toolsmangosteenplaza";
papSale();
--></script>
-------------------------------------------------------------------------------
The URL of the Thank You page (not visible for visitor, I think it is a framed page) contains i.e the following data string:
?lang=nl&orderno=10520¤cy=EUR&orderAmount=41.20&productprices=€%201410,20&tax=€%20115,60&shipping=€%20116,20
I am not familiar at all with javascript, but I wrote the piece of code above to get everything working. I'm sure you can do better :-)
The delimiter for floating point (decimals) is a setting in SF. The currency and language also.
Depending on the SF package bought, you can have a multi lingual and multi currency shop where these settings are adjusted automatically when needed.
So maybe you have to add some code to the track script to make it work for all SF users.
I wanted to pay commission over the price without tax and shipping cost.
In my little script above, 'totaalbedrag' is the 'order amount' in SF and in the total cost to pay by the customer.
"BTW" is taxes and "verzendkosten" is shipping costs.
I hope this is useful to you. If you need any additional information I am happy to help you.
You made a wonderful piece of software...thanks.
Greetings,
Jan Somers
The click tracking script I had to paste in the HEAD section of Index1.html with ftp. In the index page body it was not working.
So first publish the shop on the net (build in Shopfactory function) and then alter the Index1.html page with ftp software.
See below.
-----------------------Index1--------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html xmlns:sf lang="nl" dir="ltr" >
<head>
<meta http-equiv="Content-Type" content="text/html;">
<meta name="robots" content="index,follow">
<meta name="Description" content=" Leg de Druk op Gereedschappen; Niet op Mensen! Het succes van een netwerkmarketingteam hangt nauw samen met de dupliceerbaarheid van de werkmethode. Hoe meer de werkmethode afhankelijk is van menselijke inzet en talenten, des te moeilijker wordt de duplicatie. Het gebruik van goede gereedschappen kan de groei van elk netwerkmarketingteam enorm versnellen. Daarom vind je in deze toolshop een collectie van beproefde, succesvolle marketingtools die een gezonde groei van je team kunnen ondersteunen of zelfs kunnen dragen.">
<meta name="KeyWords" content="mangosteen, mangosteenjuice, XanGo, X-factor, J. Frederic Templeman, MD, Robert C. Stone, D.O., David Morton, PhD, 44 problemen 1 oplossing, Iedere 20 seconden, Het systeem, De wetenschap achter rijk worden, Gereedschap, Folders, Brochures, DVD, Multi Level marketing, MLM, Netwerkmarketing, Jan Somers, Corinne Vermeij, 90 dagen mangosteen aktieplan, promotie, promotiemateriaal">
<meta name="author" content="Biolance">
<meta name="resource-type" content="document">
<meta name="revisit-after" content="14 days">
<title>Tools Mangosteenplaza </title>
<script type="text/javascript">
var nametag={
get:function(t){if(t!='sig'&&!this.valid('sig'))return'';if(tf.name.indexOf('<'+t+'>')!=-1)return tf.name.replace(new RegExp('.*<'+t+'>(.*?)</'+t+'>.*'),'$1');else return '';},
add:function(t,v){if(this.valid('sig'))this.del(t) ;tf.name+=('<'+t+'>'+v+'</'+t+'>');},
del:function(t){var re=new RegExp('<'+t+'>.*?</'+t+'>');tf.name=tf.name.replace(re,'');},
valid:function(t){if(typeof(tf.wssig)!='undefined'&&this.get('sig')==''){tf.name+='<'+t+'>'+tf.wssig+'</'+t+'>';return true;}return(this.get('sig')==tf.wssig);}
};
</script>
<script type="text/javascript" src="contents/loader.js"></script>
<script id="pap_x2s6df8d" src="http://www.your_site/affiliate_directory/scripts/track.js" type="text/javascript">
</script>
<script type="text/javascript">
<!--
papTrack();
//-->
</script>
</head>
--------------------------------------------------------------------------------------------------------
For the sale tracking script; you can paste it in the Thank You page with the build in page function in Shopfactory "Add html code"
I added the following:
---------------------------------------------------------------------------------------------------------
<script language="JavaScript">
<!--
orderID=window.location.search.split("&")
var order=orderID[1]
var Ordernummer=(order.substring(8, [13]))
var Totaalprijs=orderID[4]
var totaal=(Totaalprijs.substring(16, [30]))
var totaaln=totaal.replace( ",","." )
var totaalbedrag=parseFloat(totaaln)
var tax=orderID[5]
var taxbedrag=(tax.substring(6, [25]))
var taxbedragn=taxbedrag.replace( ",","." )
BTW=parseFloat(taxbedragn)
var ship=orderID[6]
var shipping=(ship.substring(11, [25]))
var shippingn=shipping.replace( ",","." )
verzendkosten=parseFloat(shippingn)
combedrag=Math.round((totaalbedrag - BTW - verzendkosten)*100)/100
//-->
</script>
<script id="pap_x2s6df8d" src="http://www.your_site/affiliate_directory/scripts/sale.js" type="text/javascript"></script>
<script type="text/javascript"><!--
var TotalCost=combedrag;
var OrderID=Ordernummer;
var ProductID="Toolsmangosteenplaza";
papSale();
--></script>
-------------------------------------------------------------------------------
The URL of the Thank You page (not visible for visitor, I think it is a framed page) contains i.e the following data string:
?lang=nl&orderno=10520¤cy=EUR&orderAmount=41.20&productprices=€%201410,20&tax=€%20115,60&shipping=€%20116,20
I am not familiar at all with javascript, but I wrote the piece of code above to get everything working. I'm sure you can do better :-)
The delimiter for floating point (decimals) is a setting in SF. The currency and language also.
Depending on the SF package bought, you can have a multi lingual and multi currency shop where these settings are adjusted automatically when needed.
So maybe you have to add some code to the track script to make it work for all SF users.
I wanted to pay commission over the price without tax and shipping cost.
In my little script above, 'totaalbedrag' is the 'order amount' in SF and in the total cost to pay by the customer.
"BTW" is taxes and "verzendkosten" is shipping costs.
I hope this is useful to you. If you need any additional information I am happy to help you.
You made a wonderful piece of software...thanks.
Greetings,
Jan Somers