title: Change URL of “View Cart” button on WooCommerce Pages other than Cart and Checkout
body: <p>I am applying the below code to change the URL of “View Cart” button on the Shop page.</p>
  <pre><code>// Change View Cart Button URL from /cart to /checkout
  add_filter( 'woocommerce_add_to_cart_redirect', 'cart_to_checkout' );
   
  function cart_to_checkout( $url ) {
      return wc_get_checkout_url();
  }
  </code></pre>
  <p>What is the filter that I need to use to achieve the same for “View Cart” button in the “Woocommerce error message” on the Single Product Page?</p>
  <p>Woocommerce error message” appears something like this: “The maximum allowed quantity for ‘Product X’ is 3 (you currently have 3 in your cart). “View Cart”</p>
  <p>So, I need to change the URL of the “View Cart” button in the above message.</p>
  <p>And also, all the View Cart buttons must point to Checkout Page and not Cart Page.</p>
  <p>Thanks!</p>