CS-Cart is a shopping cart solution for building an eCommerce website of any size: from a small web store to a virtual shopping mall.

The integration is done by adding a custom tracking code to it's 'Thank you' page. You can track subtotal, product ID and order ID with it.

1.

Login

Login to your admin panel and navigate to Design> File editor. Now, use the left menu to open file Templates> Views> Checkout> Complete.tpl

2.

Edit the template

Place the sale tracking code to the very end of the file:

<!-- Post Affiliate Pro integration snippet -->
<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('{$order_info.subtotal}');
sale.setOrderID('{$order_info.order_id}');
sale.setProductID('{$product.product_code}');

PostAffTracker.register();
</script>
<!-- /Post Affiliate Pro integration snippet -->

Save your changes. You are done.


This is all that is required. Now, whenever there's a sale it will generate a commission for an affiliate.

Do not forget to integrate your site with the click tracking code to make it all working correctly.