Change return to shop link in woocommerce cart page

If you want to change shop link to a custom products page or any other page then you can use following code snippet. Just change the page slug from “products” to your custom page slug and add this code to theme’s functions.php file.

add_filter( 'woocommerce_return_to_shop_redirect', "change_shop_link", 20 ); 
function change_shop_link(){
  return home_url().'/products/';
Need a helping hand in fixing your website issues?

If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.

Hire Us