Integration with Mambo-ChargePlus is made by placing sale tracking script into the confirmation page.

1.

Find mambocharge_plus_thankyou.php file

Find and open file /components/com_mambocharge_plus/mambocharge_plus_thankyou.php.

2.

Integration

Put the following code into the very bottom of this file.

<?php
 $aff_subtotal = $_POST['amount3'];
 $aff_orderid = $_POST['invoice'];
 ?>
<script type="text/javascript">
var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php echo $aff_subtotal ?>');
sale.setOrderID('<?php echo $aff_orderid ?>');

PostAffTracker.register();
</script>

3.

Finished

It is now integrated. Every time customer enters the order confirmationpage the tracking code is called and it will register a sale forreferring affiliate.