Do you want to redirect to woocommerce checkout directly when the user clicks on add to cart button? Then add the following hook in your theme’s functions.php file and save it.
It will redirect the user to checkout after clicking on add to cart button.
You can redirect on any page. As I used the wc_get_checkout_url()
function for the checkout page URL, so you can use any one.
Read the full article here to redirect checkout, change the button text, remove the success message, etc.
Good way of describing, and good post to get facts on the topic of my presentation subject, which i am going to convey in university.
Thanks, Jessika!
For more detail, you can check this link https://yourblogcoach.com/how-to-redirect-to-checkout-after-add-to-cart