fatBuzz of Fatbuzz Development Team
12/18/2017 - 10:46 AM

WooCommerce change 'Back to Shop' url

Add back-to-shop.php to the themes functions.php, update as required. Update line 7 to go to a specific page. Delete line 8 if using this method.

Alternatively, delete line 7 and direct users back to the home page.

 * Changes the redirect URL for the Return To Shop button in the cart.
 * @return string
function wc_empty_cart_redirect_url() {
	return 'http://yourdomain.com/your-page/';
	return get_site_url();
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );