• Resolved lucasln1

    (@lucasln1)


    Hi , Im using this snippet but my “continue shopping” button still redirecting for cart page , already tried all redirect snippets but none of them works aswell.

    /**
    * Redirect the Continue Shopping URL
    */
    function custom_continue_shopping_redirect_url ( $url ) {
    $url = “https://mysite.com”; // Add your link here
    return $url;
    }
    add_filter(‘woocommerce_continue_shopping_redirect’, ‘custom_continue_shopping_redirect_url’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • – did you check that you have not changed your permalink setting at some time, if so, your link may not be what you think it is. Navigate to the page you want to redirect to and grab its link.
    – try adding a priority parameter to ensure your hook runs after any other code that is changing the redirect.

    add_filter( 'woocommerce_continue_shopping_redirect', 'my_continue_shopping_redirect', PHP_INT_MAX );
    function my_continue_shopping_redirect() {
      return 'https://mysite.com/shop/';
    }
    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    We haven’t heard from you in a while so I assume the above reply helped.

    I will be closing this thread now, however, feel free to create a new thread and link to this one if you have further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change “Continue Shopping ” redirect Not Working’ is closed to new replies.