Learn how to automate student enrollment in LearnDash and add users in WordPress using Pabbly Connect and ThriveCart with this step-by-step guide. Discover hidden automation capabilities within your existing tools. This guide shows you how to connect your essential applications and permanently eliminate redundant manual processes.
Watch Step By Step Video Tutorial Below
1. Setting Up Pabbly Connect for Integration
To automate the process of enrolling students in LearnDash and adding them as WordPress users, you need to start by accessing Pabbly Connect. First, log in to your Pabbly Connect account. If you don’t have an account, you can create one using the link provided in the description.
Once logged in, navigate to the dashboard and click on the ‘Create Workflow’ button. Name your workflow, for example, ‘Create User in WordPress and Student in LearnDash on ThriveCart Sale,’ and click on the ‘Create’ button. This workflow will manage the automation between ThriveCart, WordPress, and LearnDash.
2. Triggering Event in ThriveCart
The next step in your automation involves setting up the trigger in Pabbly Connect. Choose ThriveCart as your trigger application and select ‘Product Purchase’ as the trigger event. This means that every time a product is sold through your ThriveCart checkout page, it will trigger the workflow.
- Select ‘Add New Connection’ and enter your ThriveCart API key, which you can find in your ThriveCart account settings under API and Webhooks.
- After connecting, choose the products you want to track sales for, such as ‘PHP for Beginners’ and ‘Advanced Node.js Course’.
- Click ‘Save and Send Test Request’ to ensure the connection is working properly.
Once you receive a response, it indicates that Pabbly Connect is successfully capturing the data from ThriveCart whenever a purchase is made.
3. Checking User Existence in WordPress
After setting up the trigger, the next step is to check if the user already exists in your WordPress site. In this step, select WordPress as the action application and choose ‘Search User’ as the action event. This will help determine if the purchaser is already a registered user. using Pabbly Connect
Connect to your WordPress account by entering your username, password, and the base URL. Use the URL of your WordPress site, omitting any additional paths. You will map the email of the customer who purchased the course from ThriveCart to search for their user account in WordPress.
- If the user exists, the workflow will proceed to enroll them in LearnDash.
- If the user does not exist, you will create a new user in WordPress.
After executing this step, you will know whether to create a new user or enroll an existing user in LearnDash.
4. Routing User Actions in Pabbly Connect
With the information on whether the user exists or not, you can set up routing in Pabbly Connect. Use the router function to create two routes: one for existing users and another for new users. This allows you to handle each case appropriately based on the user’s status.
For the existing user route, select ‘Enroll into Course’ in LearnDash as the action. Connect to LearnDash using the same WordPress credentials and map the user ID from the previous step to enroll them in the respective course.
For new users, you will create a user in WordPress by mapping their details from the ThriveCart data. After creating the user, you will also enroll them in the appropriate course in LearnDash.
This structured approach ensures that all users are handled correctly based on their existing status in your WordPress site.
5. Sending Email Notifications
The final step in your automation process involves sending email notifications to users. Use the Gmail integration in Pabbly Connect to send a welcome email to new users. Set the action event to ‘Send Email’ and connect your Gmail account.
In the email setup, map the recipient’s email address from the ThriveCart data and include the username and password in the email body. This will provide users with the necessary credentials to log into their new accounts.
Create a subject line such as ‘Congratulations, you are now a website user!’ In the email body, thank them for their purchase and provide their login credentials.
This step ensures that all users are informed about their new accounts, enhancing their experience and engagement with your courses.
Conclusion
By following these steps, you can effectively automate the process of enrolling students in LearnDash and adding them as users in WordPress using Pabbly Connect. This integration not only saves time but also improves productivity by reducing manual tasks.
Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.
- Check out Pabbly Connect – Automate your business workflows effortlessly!
- Sign Up Free – Start your journey with ease!
- 10,000+ Video Tutorials – Learn step by step!
- Join Pabbly Facebook Group – Connect with 21,000+ like minded people!