–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.

Freeway

A free online store software that makes selling your services easy and quick.

Integration with Freeway is made by placing sale tracking script into the confirmation page. To obtain the values of OrderID and TotalSale, snippet connects to Freeway database and retrieves the values from there.

Edit template

Find and open file ‘/templates/content/checkout_success.tpl.php‘.

Locate right place for integration

Inside the file find this line:

<?php if(AFFILIATE_COMMISSION_JUNCTION=='true'){

Add integration code

Insert the following code just above that line:

<?php
   //--------------------------------------------------------------------------
   // STAT - PAP Integration code
   //--------------------------------------------------------------------------
   // Get order id
   $sql = "select orders_id from ".TABLE_ORDERS.
          " where customers_id='".(int)$customer_id.
          "' order by date_purchased desc limit 1";
   $pap_orders_query = tep_db_query($sql);
   $pap_orders = tep_db_fetch_array($pap_orders_query);
   $pap_order_id = $pap_orders['orders_id'];

   // Get total amount of order
   $sql = "select value from ".TABLE_ORDERS_TOTAL.
          " where orders_id='".(int)$pap_order_id.
          "' and class='ot_subtotal'";
   $pap_orders_total_query = tep_db_query($sql);
   $pap_orders_total = tep_db_fetch_array($pap_orders_total_query);
   $pap_total_value = $pap_orders_total['value'];

   // Draw invisible image to register sale
   if($pap_total_value != "" && $pap_order_id != "")
   {
      print '<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('$pap_total_value');
             sale.setOrderID('$pap_order_id');

             PostAffTracker.register();
             </script>";
             }
   //--------------------------------------------------------------------------
   // END - PAP Integration code
   //--------------------------------------------------------------------------
?>

Integration is finished

It is now integrated. Every time customer enters the order confirmation page the tracking code is called and it will register a sale for referring affiliate.

Back to Integrations Create account for FREE
Would you like to improve your affiliate software even more? Check out the AspDotNetStorefront integration for Post Affiliate Pro.

AspDotNetStorefront

The article discusses the PostAffiliate Pro software, which is designed for tracking business sales through affiliate marketing. The software is available for free and offers a range of features and integrations, including support for AspDotNetStorefront. The article includes instructions for integrating the software with a website to track commissions per order and supports lifetime commissions. The article also provides contact information for sales support and customer reviews of the software.

Would you like to improve your affiliate software even more? Check out the SoEasyPay integration for Post Affiliate Pro.

SoEasyPay

Would you like to improve your affiliate software even more? Check out the SoEasyPay integration for Post Affiliate Pro.

Learn about the Montway Auto Transport Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

Montway Auto Transport Affiliate Program

Learn about the Montway Auto Transport Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

Would you like to improve your affiliate software even more? Check out the Webware.io integration for Post Affiliate Pro.

Webware.io

Would you like to improve your affiliate software even more? Check out the Webware.io integration for Post Affiliate Pro.

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