This integration method was tested for SquirrelCart v2.4.3

1.

Open template

Open file: themes/{your_theme}/thanks_for_order.tpl.php

2.

Integration

Add following code at the end of the file:

<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 $SC['order']['product_total'] ?>');
sale.setOrderID('<?php echo $SC['order']['number'] ?>');

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.