How to setup SPBAS (Iono)  Affiliate Program



SPBAS (Solid PHP Business Automation Software) is a Perfect Solution for invoicing & billing, managing customers, help desk, knowledge base help, hosting & domain, easy software licensing, digital items delivery and email marketing campaigns.

The main objective of SPBAS is to facilitate a unified system that manage user interactions, emails, purchases and up to support and feedback options. It’s designed to automate whole business workflow in mind.

Steps

This integration method is tested with SPBAS (lono) version 2.6.

Open your SPBAS (lono) template file templates/iono/order/step-by-step/step-5.tpl.php. Add following code before “<?php switch($this->result): ?>” line.
<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:<?php echo $this->initial_total; ?>/transaction:<?php echo $this->invoice_id; ?>" 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.