How to setup InSales  Affiliate Program



InSales platform is a software developing company a SaaS (Software as a Service) solution that provides a complete online/offline retail solution for Store Builder and Mobile POS. With customers feedback, InSales improves the functionality of software and services on going basis, so customers always have the latest version of the software. Instead of traditional CMS, in 2009 InSales comes out as a fully featured service to facilitates customers to work with all in one solution which includes everything.

Steps

Open you InSales admin panel Settings -> General -> JavaScript-Code and add following code.
<script async>
function hideIF() {    
    document.getElementById('IF').style.visibility = '';
}
function getSaleInfo() {
    document.getElementById('st_code').style.visibility = 'hidden';
    document.getElementById('st_code').innerHTML='<iframe src="YOUR-OSI-URL/sales/salejs/amount:{{order.total_price}}/transaction:{{order.number}}" alt="" id=IF width=50 height=50 border="0" frameborder="0" onload="hideIF()">';
}
window.onload = getSaleInfo;
</script>
<div id="st_code"></div>


Change ‘YOUR-OSI-URL’ with your OSI URL.