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

Mambo-phpShop

Integration with mambo-phpShop is made by placing sale tracking script into the order confirmation page.

Edit template

Open and edit the temlate file that displays order confirmation page. It is the file:

/mambo/administrator/components/com_phpshop/classes/ps_checkout.php

Locate integration place

Find the following code which should already exist in the file:

if (AFFILIATE_ENABLE == '1') { $ps_affiliate->register_sale($order_id); }

Integration

Copy/Paste the following code into the file, under the code found above:

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('$order_subtotal');
sale.setOrderID('$order_id');

PostAffTracker.register();
</script>";


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

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