Hi, I have a specific page for my store that is not the default woocomerce, I would like to be able to link to that page when I click the return to store button, I have been looking online and I have found a code that has worked for me in others web but not in this one.
the code is the following.
/ **
* Changes the redirect URL for the Return To Shop button in the cart.
*
* @return string
* /
function wc_empty_cart_redirect_url () {
return ‘https://www.cuentosenlacabeza.com/nuestra-libreria/’;
}
add_filter (‘woocommerce_return_to_shop_redirect’, ‘wc_empty_cart_redirect_url’);
I have put it in the functions.php of my child theme.
If you could help me