When building a membership or community site you may want to ask your users for payment for joining the site. This is possible when combining WP User Manager, WooCommerce and the WooCommerce addon.
Prerequisites
First you need to have the following plugins installed:
- WP User Manager
- WooCommerce
- WooCommerce addon for WP User Manager
You then need to have one or more payment gateways configured in WooCommerce.
Next, you need to have created one or more Virtual WooCommerce products that will be used for purchasing at registration.
Registration Form Settings
If the registration form should only have one product to purchase, select that product in the ‘Registration Product’ dropdown:
Registration
With a specific product selected for the form, when a user comes to register it shows that product name and price underneath the registration form fields:
The next step of the registration form is where the user enters their payment information to complete the payment:
Once the payment information has been entered and the user has clicked ‘Complete Registration’, their registration is complete and they are shown the details of what they have purchased:
Completing Payment Later
If a user attempts to register but doesn’t complete the checkout step of the registration form, they will have access to complete the payment later through the ‘subscribe’ tab on their account page (https://yoursite.com/account/subscribe):
The Subscribe tab name and slug can be customized with the ‘wpum_woo_subscribe_account_tab_name’ and ‘wpum_woo_subscribe_account_tab_slug’ filters respectively.
Restricting Access
Content Restriction Integration
If you are using the Content Restriction addon you can restrict specific posts, pages and custom post types to users that have completed payment using the ‘Restrict by Subscription’ checkbox in the ‘WP User Manager – Content Restriction’ meta box.
Subscriptions Integration
If you are using the WooCommerce Subscriptions plugin, you can get users to purchase a subscription product at registration, which allows you to collect recurring payments for membership to your site.
Get Started with the Best WordPress Membership Plugin Today
Connect, Manage and Build your Membership Site