✨
Romancy
  • Global
    • Install Theme
  • Update Theme/Plugin
    • Automatically Update
    • Manually Update
  • Support Theme
  • Basic
  • Header Settings
  • Footer Settings
  • Create A Page
  • Typography
  • Color
  • Blog
  • Team
  • Contact Form
  • Translate Words
  • Icons
  • Header Footer Elements
  • Romancy Elements in Elementor
  • How to access to checkout page when click "Booking Now" button
  • Main Features
    • Global Setting
    • Room Feature
    • Manage Order
    • Create Manual Order
    • Add field to Booking Form
    • Edit Tab
    • Customize template
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

PreviousRomancy Elements in ElementorNextGlobal Setting

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