Woocommece | Change the “Return to shop” button URL in the cart page

July 3rd, 2018

Add this code in function.php in your theme folder :

/**
 * Changes the redirect URL for the Return To Shop button in the cart.
 *
 * @return string
 */
function wc_empty_cart_redirect_url() {
	return '/your-new-page/';
}
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );
Help-Desk