{"id":12868,"date":"2021-04-29T20:12:47","date_gmt":"2021-04-30T01:12:47","guid":{"rendered":"https:\/\/launchflows.com\/?post_type=documentation&p=12868"},"modified":"2022-01-29T15:04:16","modified_gmt":"2022-01-29T21:04:16","slug":"how-to-redirect-back-to-checkout-after-login","status":"publish","type":"documentation","link":"https:\/\/launchflows.com\/documentation\/how-to-redirect-back-to-checkout-after-login\/","title":{"rendered":"Redirect To Checkout After Login"},"content":{"rendered":"

What Is Problem?<\/h3>\n

If you have a custom checkout page and a buyer needs to login, WooCommerce will redirect them to the global checkout page instead of your custom checkout page where they were intending to buy.<\/p>\n

Solution<\/h3>\n

Install the free Previous Page Redirect For WooCommerce<\/strong><\/a> plugin.<\/p>\n

This will remember the last (checkout) page the buyer was on and redirect them back there instead of the global checkout page.<\/p>\n

Alternate Code Solution<\/h3>\n

If you prefer, you can add this function to your child theme functions.php (or snippets plugin) to achieve similar result (don’t use with plugin!)
\n