–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
  • OptimizePress and pricing tables with PayPal links

OptimizePress and pricing tables with PayPal links

A plugin and theme for creating landing pages and membership sites, without having to know how to code.

OptimizePress (WordPress module) is the new way to create high converting landing pages, sales pages and membership portals.

If you use the the Pricing Table feature of OptmizePress and in those pricing tables you use payment links leading to PayPal (direct links leading to PayPal including the id of your hosted PayPal button), then follow the integration steps below.

In a file ‘wp-content/plugins/optimizePressPlugin/lib/assets/tpls/pricing_table/style_X.php‘ (X can be 1, 2 or 3) add this line:

$i=0;

right above the line of:

foreach($tabs as $tab){

And into:

<a href="<?php echo $tab['order_button_url']; ?>" class="css-button"><?php echo $tab['order_button_text']; ?></a>

right before the href tag add:

id="ptPayPalLink<?php echo $i++;?>" name="ptPayPalLink"

so that the code becomes like:

<a id="ptPayPalLink<?php echo $i++;?>" name="ptPayPalLink" href="<?php echo $tab['order_button_url']; ?>" class="css-button"><?php echo $tab['order_button_text']; ?></a>

Now, into “WP ADMIN > Optmizepress > Dashboard > Analytics and Tracking > Analytics and Tracking > Other tracking codes” add the following kod which is your Click tracking code along with the script that will append the cookie to all the payment links of the pricing table:

<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript"><!--
	PostAffTracker.setAccountId('default1');
	try {
	PostAffTracker.track();
	} catch (err) { }
//-->
</script>
<script type="text/javascript">
	var PayPalLinkCount = document.getElementsByName('ptPayPalLink').length;
	for (var i=0; i < PayPalLinkCount;i  ) {
		PostAffTracker.writeCookieToLink('ptPayPalLink' i, 'custom');
	}
</script>
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