✨
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
  • Destination
    • Settings
    • Create Destination Category
    • Create Destination
    • Destination Elements
  • Tour
    • Create Tour
    • Create Category
    • Custom Taxonomy
    • Custom Checkout Field
    • Create Manual Order
    • Manage Order
    • Check Tour
    • Build Product template in Elementor
    • Deposit Feature
    • Insurance Feature
    • 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

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 );
PreviousHow to create Multiple CurrencyNextHow to setup Tax in product

Last updated 10 months ago