Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change the WooCommerce 'return to shop' button link (with thanks to Nicola Mustone)
/**
* 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/';
}
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );
@nozola

This comment has been minimized.

Copy link

commented Feb 21, 2018

This is great, thanks!

@tara2

This comment has been minimized.

Copy link

commented Mar 9, 2018

Yes, have just used it now and it was great for me too - big thanks!!

@crossedeyedgoat

This comment has been minimized.

Copy link

commented Mar 20, 2018

Hey!!! It works. Thanx a million.

@jodyshop

This comment has been minimized.

Copy link

commented May 21, 2018

Awesome, Will try it on my Jodyshop.com shopping website :) Hope it works as expected!

@hurabg

This comment has been minimized.

Copy link

commented Jul 12, 2018

hi i am making a login for customer and want them to see only their company products. could anyone please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.