–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

Example:
europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

CS-Cart

A secure and full-featured online shopping cart software with the complete set of powerful e-commerce options to create your own online store.

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.

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

Per order tracking code

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

<!-- Post Affiliate Pro integration snippet -->
<script id="pap_x2s6df8d" src="https://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.

Per product tracking code

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

<!-- Post Affiliate Pro integration snippet -->
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
{foreach from=$order_info.products item="product" key="key"}
var sale{$product@iteration} = PostAffTracker.createSale();
sale{$product@iteration}.setTotalCost('{$product.subtotal}');
sale{$product@iteration}.setOrderID('{$order_info.order_id}({$product@iteration})');
sale{$product@iteration}.setProductID('{$product.product}');
sale{$product@iteration}.setCurrency('{$order_info.secondary_currency}');
sale{$product@iteration}.setData1('{$order_info.email}');
{if $product@iteration < $order_info.products|@count}
sale{$product@iteration}.doNotDeleteCookies();
{/if}
{/foreach}
PostAffTracker.register();
</script>
<!-- /Post Affiliate Pro integration snippet -->

Save your changes. You are done.

If you wish to save Product SKU instead of product name you can use this line:

{$product.product_code}

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

The click tracking code can be found in your Merchant panel > Tools > Integration > Click Tracking.

From there just copy it, then login to your CS-cart admin panel, navigate to Design > Templates > Index.tpl and paste it to the very bottom.

That’s it.

Back to Integrations Create account for FREE

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.

×

Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call