Back to shop button

Hello
maybe is a woocommerce matter, but if I remove all products from cart the button “back to the shop” does not work
the site:
http://www.cacacecasa.com/Cacace-nuovo

thanks

Hi,

You can change the URL of the back to shop button by adding this code to functions.php ( you can add it anywhere below the first <?php and above the last ?> , just make sure to don’t break other functions ):

function wc_empty_cart_redirect_url() {
	return 'http://yourdomain.com/your-page/';
}
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );

The button is currently not linked, maybe because you haven’t installed the WooCommerce Shop page automatically or because you don’t have the Shop page selected as your Shop Page in WooCommerce Settings.

best Regards,
Csaba

The shop page seems to work

when I add a product to the cart the “continue shopping button” works well
please look at

If I empty the cart the “back to the shop button” do not work
please look at

Hi,

Yes, I understood, the code I gave you is for the back button, have you tried that code?

Best Regards,
Csaba

Now I did

it works, tahnks a lot!!!

Hi,

Great! You’re most welcome! If you need help with anything else, please, feel free to open a new topic.

Have a nice day!

Best Regards,
Csaba