Oxid Eshop integration
A powerful ecommerce solution.
The integration with Oxid Eshop is pretty easy. All you need to do is to integrate the shop thank you page.
Adding the sale tracking code
First, login to your FTP and navigate to out/theme_name/tpl/page/checkout/ where “theme_name” is a directory of theme you are using now.
You should see a file thankyou.tpl – that is the one we are going to modify. Find this line:
<div id="thankyouPage">
and paste the integration code above 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');
var sale = PostAffTracker.createSale();
sale.setTotalCost('[{$order->oxorder__oxtotalbrutsum->value}]');
sale.setOrderID('[{ $order->oxorder__oxordernr->value }]');
PostAffTracker.register();
</script>
A value that will be used for total cost in the code above, is cost of the product with VAT. If you want to use any other values, you can refer to these:
[{$order->oxorder__oxtotalnetsum->value}]
- VAT excluded
[{$order->oxorder__oxtotalbrutsum->value}]
- VAT included
[{$order->oxorder__oxartvatprice1->value}]
- VAT value
[{$order->oxorder__oxtotalordersum->value}]
- full order price
[{$order->oxorder__oxcurrency->value}]
- currency code (USD, EUR, …)
[{$order->oxorder__oxcurrate->value}]
- currency conversion rate
Do not forget about integrating your landing pages with the click tracking code.