Customers can be exported out of WooCommerce using the Import and export users and customers plugin. Once the plugin has been installed and activated, you can access the Export Users tool in wp-admin.
Tools > Import and export users and customers
In order to import memberships into Restrict Content Pro on your site, you will need to make sure that you have the plugin installed and activated on the site from wp-admin. To do that, go to:
Restrict > Tools > Import
Here’s an example message once memberships have been imported into the site:
Successfully processed 48/48 items. You may now leave the page.
Imports can also be triggered from a WP-CLI command example:
wp rcp batch --id=2
If you do not define a membership level to a user, then the following message will be displayed:
Skipping row #2 (user ID #69). Error code: missing_membership_level; Error message: Unable to determine membership level.
You can assign users to a membership level in the import screen if you do not have those set in the CSV file already.
After you have imported the existing customers from WooCommerce into Restrict Content Pro, you can check those in wp-admin from:
Restrict > Customers
WooCommerce shortcodes will need to be replaced with ones for Restrict Content Pro. The cart, checkout and my account pages will need to be deleted since they no longer apply when using the Restrict Content Pro plugin on the site.
The process to migrate data from WooCommerce to Restrict Content Pro plugins is a pretty straightforward one that can all be run from the WordPress dashboard.