Custom Redirect after purchase in Woocommerce

Solved 1st:

If you want to redirect a customer to a different page rather than the Thank you page, like for example, the My account page, you can do that adding this code in the file functions.php located in wp-content/themes/your-theme-name/:



Solved 2nd:

You could modify the “Thank you” page template to include a simple redirect via javascript. The page is titled “Order Received” by default. The template file itself is in the woocommerce plugin directory unless your theme has a set of checkout page templates.

Look in your theme directory for this file:

Ankush chhabra

My name is Ankush Chhabra and I’m a 28 years old web developer and blogger.I have 5 years of experience in this field.