To redirect the user to the checkout page once “Add To Cart” has been clicked on a product.
Add the below code your themes functions.php file
//Checkout redirect after add to cart function woo_redirect_to_checkout_add_cart() { return wc_get_checkout_url(); } add_filter( 'woocommerce_add_to_cart_redirect', 'woo_redirect_to_checkout_add_cart' );