How to Skip Cart Page in WooCommerce?

This guide is to help you skip the Cart Page in WooCommerce Checkout. Once clicking Book Now, the customer will be redirected to Checkout Page, skip the Cart page. To do this, you have to insert into functions.php of your child-theme

					//hook single detail to checkout woocommerce

function st_cart_link_woocommerce($cart_link){

$st_is_woocommerce_checkout = apply_filters('st_is_woocommerce_checkout', false);

if ($st_is_woocommerce_checkout) {

$url = wc_get_checkout_url();

if ($url) {

$cart_link = $url;



return $cart_link;