# How to access to checkout page when click "Booking Now" button

## Step 1: Setup Cart, Checkout page in WooCommerce Settings.

Go to WooComemrce >> Settings >> Advanced:

<figure><img src="https://2675257571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0juqzhwOKSRwbmy3GtPm%2Fuploads%2FzcaRfzJ6sFN6mluSFgE5%2FScreenshot%202024-10-18%20at%2014.21.48.png?alt=media&#x26;token=9f353169-4f60-4339-8bb1-fe833f5b7bd3" alt=""><figcaption></figcaption></figure>

## Step 2: Customize code in child theme

if you want to in Tour Detail page: When you click Booking button, the system will redirect to Checkout page.&#x20;

Please add bellow code to functions.php file in child theme

```
add_filter('woocommerce_add_to_cart_redirect', 'skip_cart_go_checkout');
function skip_cart_go_checkout() {
    return wc_get_checkout_url();
}
```

