✨
tripgo
  • Global
    • Install Theme
  • Update Theme/Plugin
    • Automatic Update
    • Manual Update
  • Support Theme
  • Basic
    • Header Settings
    • Footer Settings
    • Create A Page
    • Typography
    • Color
    • Blog
    • ReviewX
    • WooCommerce
    • Additional CSS
    • Header Footer Elements
    • Tripgo Elements in Elementor
  • Tripgo Menu
    • Home
    • Products
      • Create a Tour
      • Deposit
      • Insurance
      • Tour Template
    • Categories
    • Destinations
      • Create Destination
      • Create Destination Category
      • Destination Elements
      • Settings
    • Custom Taxonomies
    • Manage Booking
    • Create New Booking
    • Booking Calendar
    • Check Product
    • Custom Checkout Field
    • Settings
    • Tour Elements in Elementors
  • Event
    • Create Event
    • Create Event Categories
    • Create Tags
    • Event Settings
    • Event Elements in Elementor
  • Other Settings
    • Google Map
    • Mega Menu
    • Mailchimp
    • Contact Form
    • Translation
    • Icons
  • FAQs
    • Create Cart and Checkout Page
    • How to access to checkout page when click "Booking Now" button
    • How to create Multiple Currency
    • How to change check-out in Booking Form
    • How to setup Tax in product
    • Enable Register User Form
    • Hide Scroll To Page
Powered by GitBook
On this page
  1. FAQs

How to change check-out in Booking Form

PreviousHow to create Multiple CurrencyNextHow to setup Tax in product

Last updated 1 year ago

CtrlK

Example:

Rental Day: 3 day. When the customer choose Check-in on 12 July 2024, so the check-out will display 14 July 2024.

You can add bellow code to functions.php file in child theme

add_filter( 'ovabrw_calculate_checkout_by_days', function( $checkout_date, $checkin_date, $numberof_days ) {
    if ( $numberof_days > 0 ) $numberof_days -= 1;
    $checkout_date = $checkin_date + absint( $numberof_days )*24*60*60;

    return $checkout_date;
}, 10, 3 );