WooCommerce: Redirect Return To Shop To Custom Shop

This is for anyone who makes custom shop pages for WooCommerce websites.

There is a ‘Return To Shop’ button the Cart and Checkout pages when are no products in your cart.

Instead of using display:none; try using this function instead! You can link to whatever page you’d like.

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

For more information on how to do this, explore this article: Change The “Return to Shop” Button URL in the Cart Page.

See our featured website design work

Check out some of the beautiful websites we’ve built for over 2,000 clients.

We offer WordPress support & maintenance

Shake the stress of ongoing maintenance with plans supported by our team of WordPress experts.

Related articles