✨
Romancy
  • Requirements for our theme
  • Global
    • Install Theme
      • 1: Download Theme
      • 2: Install Theme
      • 3: Import Demo Date
        • Automatic Import
        • Manual Import
  • Update Theme/Plugin
    • Automatic Update
    • Manual Update
  • Support Theme
  • Basic
    • Theme Options
      • Typography
      • Color
      • Layout
      • Header
      • Footer
      • Blog
      • Teamm
      • Site Identity
  • Update Header
  • Update Footer
  • Room
  • Setting
  • Manage Order
  • Check Room
  • Add field to Booking Form
  • Create Manual Order
  • Customize template
  • Edit Tab
  • Contact Form
  • Translate Words
  • Icons
  • How to access to checkout page when click "Booking Now" button
Powered by GitBook
On this page
  • Step 1: Setup Cart, Checkout page in WooCommerce Settings.
  • Step 2: Customize code in child theme

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

PreviousIcons

Last updated 6 months ago

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

Go to WooComemrce >> Settings >> Advanced:

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.

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();
}