This integration method integrates your ProStore shopping cart with Post Affiliate Pro or Post Affiliate Pro.

1.

Add sale tracking code

In your store administration navigate to Store DesignPage Template Manager and find Checkout Order Confirmation template file. Edit it and insert this code to the bottom of the file:

<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('<ss:value source="$invoice.subTotal"/>');
	sale.setOrderID('<ss:value source="$invoice.invoiceNumber"/>');
	
	PostAffTracker.register();
</script>

Remember you have to use an SSL for your PAP or PAN installation as this shopping cart is behind the SSL. Otherwise the tracking will not work.


For advanced settings of the sale tracking you can find variables info in your admin panel.