Patrick's Programming Blog

Change Continue Shopping Link in WooCommerce

If you have the “Redirect to the cart page after successful addition” setting active when you add a product to the cart you should be taken to the cart page.

Continue Shopping Link

Continue Shopping -link-on-cart-page

When you're on that page you'll probably notice a little button that say's “Continue Shopping”. Now by default this button takes you back to the product you were on. You can, of course, change this to any destination you want with a filter.

In this case I want to change the location from the original product to the main shop page. You can find that page with the really useful wc_get_page_id function.

Exit mobile version