MemberMouse is an easy to use WordPress membership plugin that allows you to sell products, subscriptions and memberships, setup a password protected member's area, offer 1-click upsells and downsells, manage customers, automate customer service, track critical retention metrics and more. No matter where you're starting from, MemberMouse has the power you need to maximize revenue and get your business running like a well-oiled machine.

The integration plugin can create an affiliate automatically, decline or approve them. It registers orders and supports order ID, per product tracking with SKU, Lifetime Commissions and coupons.

1.

Custom filed

Navigate to your WP MemberMouse> Checkout settings and create a new Custom Field. When creating it, you can name it the way you want, the checkbox for 'Show on My Account Page' should stay unchecked. The type of the field has to be set to ShortText.

When you are done, save your new custom field and then click the 'Checkout SmartTag' to find out the custom field ID - you will need it later.

Copy the SmartTag code and place it to your checkout page. The final change is to hide the field - add type='custom-hidden' attribute to it. This is an example of the result code:

[MM_Form_Field type='custom' id='4' isRequired='false' class='' type='custom-hidden']

As you can see, the field ID is 4 in our example.

2.

Order Form modification

After you placed the new custom field code to your order form, we need to make sure the hidden field is loaded with an affiliate tracking value automatically. The following code will do it:

<script type="text/javascript">
	document.write(unescape("%3Cscript id=%27pap_x2s6df8d%27 src=%27" + (("https:" == document.location.protocol) ? "https://" : "http://") + "URL_TO_PostAffiliatePro/scripts/trackjs.js%27 type=%27text/javascript%27%3E%3C/script%3E")); 
</script>
<script type="text/javascript">

PostAffTracker.track();
PostAffTracker.writeCookieToCustomField('mm_custom_field_N');
</script>

First of all, make sure the code _'mm_custom_fieldN' is set to your custom field number - following our example with ID 4, the code would be _mm_custom_field4.
Place the script to your checkout page, somewhere below the custom field code.

3.

Push notification setup

Navigate to your WP MemberMouse> Developer tools and create a new push notification - the plugin processes member notifications and payment notifications, so you can create a notification for each of these:

Member Added, Member Account Updated, Member Deleted, Payment Received, Rebill Payment Received, Refund Issued.

In case of the action, choose 'Call a custom script' and use this URL for it:

http://URL_TO_PostAffiliatePro/plugins/MemberMouse/membermouse.php

That's it. Save your work.

4.

Activate the plugin

The last step is to login to your merchant panel and activate the plugin. When activated, make sure you configure it and set at least the correct custom field ID. Otherwise the plugin won't work.

Do not forget to integrate your WordPress with the click tracking code.