CS-Cart integration
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.
Discover seamless integration of Post Affiliate Pro with RomanCart, a customizable hosted shopping cart system. Enhance your ecommerce site with marketing features and track sales effortlessly by inserting special data and tracking codes into RomanCart. Follow easy steps for both old and new versions, and ensure smooth online sales and marketing. Start optimizing your affiliate program today!
Discover seamless integration of OpenCart 3 with Post Affiliate Pro, enhancing your e-commerce capabilities. Track orders and commissions effectively with step-by-step customization guides for confirm and success actions. Elevate your affiliate marketing with user-friendly solutions and exceptional support. Start your free trial today!