The Goal:
Change the page to where people are directed to when they go to your default SHOP page (ie: Continue Shopping button)..

Requirements:

  • HTML
  • PHP
  • functions.php
  • WooCommerce

Before

After

Functions

Add this code to your functions.php page

[cc lang=”php”]
// Change the default shop page but keep the content
function wc_empty_cart_redirect_url() {
return ‘http://solonutrition.com/shop-solo/’;
}
add_filter( ‘woocommerce_return_to_shop_redirect’, ‘wc_empty_cart_redirect_url’ );
[/cc]
Share This