eCommerce Templates integration
An ecommerce software integrated into shopping cart software templates or design your own online store.
Integration with eCommerce Templates is made by placing sale tracking script into the confirmation page.
Locate file ‘thanks.php‘
Find and open file ‘thanks.php‘.
Locate integration place
Find the following line which already exists in the file:
<?php include "vsadmin/inc/incthanks.php" ?>
Integration
Put following code right after this line:
<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('<?php echo $ordGrandTotal ?>');
sale.setOrderID('<?php echo $ordID ?>');
PostAffTracker.register();
</script>
Finished
It is now integrated. Every time customer enters the order confirmationpage the tracking code is called and it will register a sale forreferring affiliate.
If you want to calculate commissions from price without shipping tax, then instead of variable $ordGrandTotal use this variable: $ordTotal.