Pinnacle Cart integration
An easy-to-use shopping cart software and can include multiple languages for your international customers.
This is integration method for Pinnacle Cart.
Edit template
Open file: ‘/content/skins/{your_skin}/completed.html‘. This file can be edited via File Manager > Skins Files in your shopping cartadministration panel.
Integration
Add following code at the end of this file:
<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_amount}');
sale.setOrderID('{$order_num}');
PostAffTracker.register();
</script>
New version of Pinnacle Cart
For new version of Pinnacle Cart (3.x) you have to follow these instructions.
The sale tracking code has to be placed to Marketing > Google Tools > Conversion Tracking section. Use this sale tracking code, paste it below the Google code which is already there, or replace it in case you do not use it:
<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=$items item="item" name=pap4}
var total = {$item.price|string_format:"%.2f"} * {$item.quantity};
var sale{$smarty.foreach.pap4.iteration} = PostAffTracker.createSale();
sale{$smarty.foreach.pap4.iteration}.setTotalCost(total);
sale{$smarty.foreach.pap4.iteration}.setOrderID('{$order_num}({$smarty.foreach.pap4.iteration})');
sale{$smarty.foreach.pap4.iteration}.setProductID('{if $item.attribute_sku != ''}{$item.attribute_sku|escape:"javascript"}{else}{$item.sku|escape:"javascript"}{/if}');
{/foreach}
PostAffTracker.register();
</script>
When you are done, activate Conversion Tracking Code.
You can also use these variables:
- {$item.product_name|escape:”javascript”} for product name
- {$item.catalog_name|escape:”javascript”} for category (or variation)
This is all that is required. Do not forget to integrate your site with the click tracking code as well.