Redirect Users After Login Based on WooCommerce Product Purchase
Do you have multiple WooCommerce products and want to redirect your customers after they log in to your WordPress site to a particular page/course/material based on the product they’ve purchased? LoginWP’s integration with Woocommerce allows you to do just that and more.
In this article, you will learn how to redirect customers after login that purchase a particular product or a product from a specific category on your WooCommerce shop to a specific post/page on your site based on their purchase.
Enabling WooCommerce Integration
Make sure you have a Woocommerce plugin activated.
Go to LoginWP>>Redirections>>Integrations and scroll down to Woocommerce and enable it.
Creating Redirection Rule Based on Purchased Product
Go to LoginWP>>Redirections>> and click on “Add New”
Under rule conditions, select “Purchased Product” as the rule and the specific product as the value.
Enter the login and logout URLs for WooCommerce customers that purchase the selected product.
Click on Save Rule and that’s it.
Redirection Rule Based on Product Category Purchased From
Go to LoginWP>>Redirections>>Add New
Under rule condition, select “Purchased Product Category”
Enter the login and logout URLs for WooCommerce customers that purchase from the selected product category.
Click on Save Rule and that’s it.
When a buyer or customer purchases a product in the selected WooCommerce product category, they get redirected to the URL specified every time they log in and log out.
If you want to use any of the placeholders or merge tags in the login/logout field please visit Login Redirect Placeholders & Use Cases
That’s it