title: Woocommerce Add To Cart redirect to Checkout not working
body: <p>I'm trying to redirect people who click on the add to cart button to the checkout page directly. The add to cart button only is adding the product to cart but not redirecting at all.</p>
  
  <p>I've tried to put the WooCommerce setting on auto
  <a href="https://gyazo.com/d5357f81ccb48723ea72125a3368dd81" rel="nofollow noreferrer">https://gyazo.com/d5357f81ccb48723ea72125a3368dd81</a></p>
  
  <p>I'm using the Theme Sartre on my website but another website with the same theme is working well so i'm confused.</p>
  
  <p>The only bit of code i've added is <a href="https://gyazo.com/6d13ed2ebc037b8576dcb911a1328241" rel="nofollow noreferrer">https://gyazo.com/6d13ed2ebc037b8576dcb911a1328241</a> in the function.php file of my theme.</p>
  
  <p>My website doesn't seem to show any error while i'm pressing Add to Cart 
  <a href="https://chase-lab.com/" rel="nofollow noreferrer">https://chase-lab.com/</a></p>
  
  <p>I'm using the latest version of woocommerce Version 3.6.1</p>
  
  <p>Thanks for your help</p>