OptimizePress and pricing tables with PayPal links integration
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.
Adding special ID to the payment links of the pricing table
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>
Implementation of Click tracking code and of a script appending the cookie to the payment links
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>
Discover seamless payment processing with Paymate Express on Post Affiliate Pro. Perfect for online, eBay, and mobile payments with secure ecommerce facilities. Easily configure custom value separators and integrate with your existing scripts. Trusted by the best with a 4.8/5 rating. Visit now to streamline your payment solutions!
OptimizePress / OptimizeMember (WordPress module)
Discover seamless integration of OptimizePress and OptimizeMember with PayPal in WordPress using Post Affiliate Pro. Create high-converting landing pages and membership portals with ease. Enjoy exceptional support and user-friendly affiliate management. Start your free trial today!
Explore seamless integrations with Post Affiliate Pro to enhance your affiliate marketing strategies. Discover solutions for e-commerce, email marketing, payments, and more, with easy integrations for platforms like 1&1 E-Shop, 2Checkout, Abicart, and many others. Optimize your affiliate network with these powerful tools.