This integration method was tested for Iono v2.6

1.

Edit template

Open file: templates/iono/order/step-by-step/step-5.tpl.php

2.

Integration

Find line "<?php switch($this->result): ?>" and add following code before this line:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php echo $this->initial_total; ?>');
sale.setOrderID('<?php echo $this->invoice_id; ?>');

PostAffTracker.register();
</script>


This is all that is required. Now whenever there's sale, the saletracking script sale.php is called, and it will generate commission forthe affiliate.