Language switcher

#languages]

–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

Example:
europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

Integrations

Maximize the value of your existing affiliate marketing software and extend its possibilities with a wide range of integrations, plugins and apps. All built to improve the strong foundations of Post Affiliate Pro.

Supercart

A Czech ecommerce solution.

This is integration method with Supercart (supercart.cz).

Edit thank you page file

The first step is to find file template/default/order_finish.php and add this code, e.g. to the end of the file:

<?php echo tpl('system/pap_tracking.php', array('order' => $order)); ?>

Save your changes.

Create the tracking file

As you can see, we’ve pointed the template file to a custom file in previous step. Now we have to create it.

Create a file pap_tracking.php in template/system/ directory and add this content to 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');
<?php
// $order['total_price']
$i = 1;
foreach($order->order_products() as $product) {
  echo "var sale$i = PostAffTracker.createSale();";
  echo "sale$i.setTotalCost('".$product['price'] * $product['quantity']."');";
  echo "sale$i.setOrderID('".$order['id'].'('.$i.")');";
  echo "sale$i.setProductID('".($product['sku'] ? $product['sku'] : $product['id'])."');";
  $i++;
}
?>
PostAffTracker.register();
</script>

Save the file. In case you created it locally, please do not forget to upload it to template/system/. That’s it, your shop has just been integrated.

Do not forget to integrate you click tracking code – you can insert it to file template/default/footer.php

Back to Integrations Create account for FREE

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.

×

Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call