Send "Continue Shopping" to the Shop Page
Points the "Continue shopping" and "Return to shop" links to the main shop page instead of the last viewed product or the homepage.
Opens WPIDE on
Code
$wpide_shop_url = function () {
return wc_get_page_permalink( 'shop' );
};
add_filter( 'woocommerce_continue_shopping_redirect', $wpide_shop_url );
add_filter( 'woocommerce_return_to_shop_redirect', $wpide_shop_url );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.