Defult value in booking fields

Closed
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme February 15, 2019
Login to reply
Kelly R Support Agent
4 years ago
Resolved.
Jesus sanchez
4 years ago

Resolve thanks

Kelly R Support Agent
5 years ago

Hi,

Please put following code in top of /single-accommodation.php file.

if ( empty( $_GET['adults'] ) ) {
    $_GET['adults'] = 2;
}

And about tour, it is difficult to set adults as 2 persons by default. It is difficult to change calculate price feature

Regards, C-Themes

Jesus sanchez
5 years ago
i have to do the same for Hotels, default value have to be 2 guests
Jesus sanchez
5 years ago

I make the change , but the field dont make the calculation by default

Kelly R Support Agent
5 years ago

Hi,

In /inc/frontend/tour/templates.php file, you can find trav_tour_get_single_schedule_html function.

In it, please find following code.

$adults = 1;

Please replace it with following.

$adults = 2;

Regards, C-Themes

Kelly R Support Agent
5 years ago

Please give me page url for it.

Then I will guide you how to change the files.

Regards, C-Themes

Jesus sanchez
5 years ago

I need 2 persons in adults fields by default in the booking reservations , how i do it?