Oxid Eshop

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="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
	var sale = PostAffTracker.createSale();
	sale.setOrderID('[{ $order->oxorder__oxordernr->value }]');

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.