Ultimate Source to Create WooCommerce Custom Redirects | WooCommerce is a very flexibility software. You can change anything what you want on it with ease. Today, I would highlight how you can make redirecting in WooCommerce.

For example, after user register on your WooCommerce, which one page you want to redirect them.

In this tutorial, we will recover

  1. User redirect after login
  2. User redirect after logout
  3. User redirect after register
  4. User redirect after adding an item to the cart
  5. User redirect after clicking ‘return to shop’ on the cart page
  6. User redirect after clicking ‘continue shopping’ after adding an item to the cart

Create WooCommerce Custom Redirects

Before we start, I would like you to read our the best hosting for WooCommerce. If you want to optimize your WooCommerce you must choose the best hosting.

#1. User redirect after login

How to do this?

Step 1 Copy the code below.

Step 2 Open your functions.php and paste the code into it.

Save the changes and test it.

#2. User redirect after logout

For this, there are much step you must to do. Follow the steps below.

Step 1 Go to >>> /wp-content/YOUR_THEME/woocommerce/myaccount/my-account.php

Step 2 Search wp_logout_url( get_permalink( wc_get_page_id( ‘myaccount’ ) ) ). Approximately around line 21, you will find the following line.

Step 3 Change it to this wp_logout_url( ‘https://www.minutesguide.com/?p=3316’ ). Please change your own URL.

Click save and test it

#3. User redirect after register

Step 1 Copy the code below.

Step 2 Open your functions.php and paste the code into it.

Click save and test it.

#4. User redirect after adding an item to the cart

Step 1 Copy the code below.

Step 2 Open your functions.php and paste the code into it.

Click save and test it.

#5. User redirect after clicking ‘return to shop’ on the cart page

Step 1 Copy the code below.

Step 2 Open your functions.php and paste the code into it.

Click save and test it.

#6. User redirect after clicking ‘continue shopping’ after adding an item to the cart

Step 1 Copy the code below.

Step 2 Open your functions.php and paste the code into it.

Click save and test it.

Conclusion

In this tutorial, you have learned about how to make redirect on WooCommerce for certain part of it. It very easy for you to follow. If any problem please leave a comment below.

If you like this article, then please FOLLOW to our Google+ and Facebook. Do not forget to check our services page for empowering your WordPress. If you find this post outdated or error, please contact us to fix it.