–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 / OptimizeMember (WordPress module)

OptimizePress / OptimizeMember (WordPress module)

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

The integration method integrates PayPal directly.

PayPal module integration

The first step is to modify the paypal module so each payment is integrated with the tracking cookie. Navigate to wp-content/plugins/optimizeMember/includes/classes/ and find the file sc-paypal-button-e.inc.php. Now open it and find the line (at the end) saying:
‘return $code‘;

Insert the following code above that line:

/* Post Affiliate Pro integration snippet */
$code = str_replace('name="notify_url"','name="notify_url" id="pap_ab78y5t4a"',$code);
$code .= '<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
  <script type="text/javascript">'."
  PostAffTracker.setAccountId('Account_ID');
  PostAffTracker.writeCookieToCustomField('pap_ab78y5t4a', '', 'pap_custom');
</script>";
/* /Post Affiliate Pro integration snippet */

Save your work and continue to the second step.

PayPal notification integration

To make PayPal communicate with your Post Affiliate Pro you have to add a special code to the file wp-content/plugins/optimizeMember/includes/classes/paypal-notify.inc.php.

Open the file and find this code:

if(!empty($_GET['optimizemember_paypal_notify']))
    c_ws_plugin__optimizemember_paypal_notify_in::paypal_notify();

Replace it with this code:

/* Post Affiliate Pro integration snippet */
if(!empty($_GET['optimizemember_paypal_notify'])) {
    /* Post Affiliate Pro integration snippet */
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "URL_TO_PostAffiliatePro/plugins/PayPal/paypal.php?pap_custom=".$_GET['pap_custom']);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
    curl_exec($ch);
    /* Post Affiliate Pro integration snippet */

    c_ws_plugin__optimizemember_paypal_notify_in::paypal_notify();
}
/* /Post Affiliate Pro integration snippet */

Save your work and that’s it. Your OptimizePress is now integrated.

Activate your PayPal plugin

The final step is to activate your PayPal plugin in your Post Affiliate Pro.

Do not forget to integrate your WordPress with the click tracking code. You can place the click tracking code directly into OptimizePress > Dashboard > Analytics and Tracking into the section Other Tracking Codes.

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