Home Integration Methods Simple Paypal Shopping cart (Word Press module)

Simple Paypal Shopping cart (Word Press module)

WordPress Simple Paypal Shopping Cart allows you to add an 'Add to Cart' button for your product on any posts or pages. This simple shopping cart plugin lets you sell products and services directly from your own wordpress site and turns your WP blog into an ecommerce site.

The integration is possible by direct integration of the PayPal gateway within the module. You are able to track the same as you can with standard PayPal integration.
1
Button integration
The first step is to edit file wp-content/plugins/wordpress-simple-paypal-shopping-cart/includes/wspsc-cart-functions.php where the shopping cart button is generated. Find this line:
$urls .= '<input type="hidden" name="notify_url" value="' . $notify . '"/>';
and replace it with this code:
// $urls .= '<input type="hidden" name="notify_url" value="' . $notify . '"/>';
$urls .= '<input type="hidden" name="notify_url" value="' . $notify . '" id="pap_ab78y5t4a" />'; // Post Affiliate Pro integration snippet

Now find line:
return $output;
and add the following code above the line:
That's it, save your work.
2
Resend the PayPal notification to your Post Affiliate Pro
The last step is to edit file wp-content/plugins/wordpress-simple-paypal-shopping-cart/paypal.php where IPN notification is being processed.

Find function wpc_handle_paypal_ipn() and add the following code to the function start:
Save your work and you are done. Make sure the PayPal plugin is active and configured in your Post Affiliate Pro. From now, it will track all the paypal payments.
Do not forget to integrate your site with the click tracking code to make it all working.