Shopp (WordPress shopping cart module)

A flexible WordPress ecommerce plugin.

The integration method integrated the "thank you" page in Shopp.


Adding the code

Navigate to /wp-content/themes/_your_theme_/shopp/ where "_your_theme_" is name of your theme used by WP and open thanks.php for edit. The javascript tracking code with appropriate variables is below:

<!--PAP sale tracking code starts here-->
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php shopp('purchase','total'); ?>');
sale.setOrderID('<?php shopp('purchase','id'); ?>');

<!--PAP sale tracking code ends here--->

This is all what you have to do... Do not forget about click tracking code as well.