Home Integration Methods 3DCart

3DCart

Shopping Carts from 3dCart are complete e-commerce storefront solutions for your new or existing web site. Easily build, edit, and maintain your online shop, and collect orders without any programming or HTML knowledge!
This integration integrates template for 3DCart's thank you page.
1
Add sale tracking code
Go to Settings > Design > Template editor, click on Edit next to "checkout-step4.html" and add following code at the very end:
If you need to add more information in sale tracking code, please refer to this guide on 3DCart: http://www.3dcart.com/guide/
2
Latest versions
In latest versions 3DCart allows you to use subtotal variable, so you can avoid using the javascript function to fix the total cost... This would be the final tracking code:
Tip: 3DCart allows to refresh thank you page. You might want to set up the Fraud Protection on sales with same order id.

This is outdated I believe...

2 months ago Per Thulin
[invoicenum] is incorrect (but might still work). Should be [invoice-prefix][invoice-number]
[total] should be replaced with [total_noformat] which needs no correctTotalCost() processing.
www.yoursite.com/affiliate/ refers to your PostAffiliate site root.
"http" should be removed if you use https, so as to work with both schemes without mixing. If same domain, just remove the domain too.
This is my tracking code:

<script id="pap_x2s6df8d" src="//MYACCOUNT.postaffiliatepro.com/scripts/salejs.php" type="text/javascript"> </script>
<script type="text/javascript">
var sale = PostAffTracker.createSale();
sale.setTotalCost('[total_noformat]');
sale.setOrderID('[invoice-prefix][invoice-number]');
PostAffTracker.register();
</script>