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.

X-Cart

A complex, powerful shopping cart software that is available via a cloud-based hosted version or downloadable software.

Integartion plugin

Integration with X-Cart (ver. 5+) is easy with the original plugin that you can download for free from https://market.x-cart.com/addons/post-affiliate-pro-integration.html.

In case you do not want to use the integration plugin, you can integrate your store with sale tracking script placed into the order confirmation page. To do so you can follow the next integration steps.

Find the template file

Find and open file \var\run\skins\default\en\checkout\success\parts\invoice.tpl.php.

If you use a custom skin which has it’s own checkout\success\parts\invoice.tpl.php file then you have to integrate that one.

Order tracking

Put the following code to the end of the file:

  <!-- Post Affiliate Pro tracking snippet -->
<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 $this->getOrder()->getPaidTotal() ?>');
sale.setOrderID('<?php echo $this->getOrder()->getOrderNumber() ?>');
PostAffTracker.register();
</script>
  <!-- /Post Affiliate Pro tracking snippet -->

If you want to track email use this variable:

$this->getComplex('order.profile.login')

If you want to track currency use this variable:

$this->getOrder()->getCurrency()->code

Per product tracking

If you want to track your order per product, you have to use this code:

  <!-- Post Affiliate Pro tracking snippet -->
    <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();
      <?php
      $i = 1;
      foreach ($this->getOrder()->getItems() as $item) {
        echo "var sale$i = PostAffTracker.createSale();
        sale$i.setTotalCost(''".$item->getTotal()."'');
        sale$i.setOrderID('".$this->getOrder()->getOrderNumber()."($i)');
        sale$i.setProductID('".$item->getSku()."');
        $i++;
      }
      ?>
      PostAffTracker.register();
    </script>
  <!-- /Post Affiliate Pro tracking snippet -->

Please note the per product integration does not include any discounts. The price of each product is a basic one, multiplied with product quantity ordered.

Do not forget to integrate your pages with the click tracking code.

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