Default dates in Search engine for tours

Closed
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme April 01, 2019
Login to reply
mary lee
1 year ago

Thanks for sharing this interesting blog with us.My pleasure to being here on your blog..I wanna come beck here for new post from your site word puzzles

Дмитрий Корасев
1 year ago

A CV is a more objective document, which provides detailed information about your professional accomplishments. Unlike a executive resume, a CV isn't customized to specific job applications, and it only needs to be updated to reflect new qualifications and experience. CVs will be longer than a resume, as a person's career will be more extensive than their education and work history.

Nitzan Ginsberg
4 years ago

Thank you :)

Kelly R Support Agent
4 years ago

Hi,

Then please change the codes with following.

$date_from = empty( $_REQUEST['date_from'] ) || trav_sanitize_date( $_REQUEST['date_from'] ) == '' ? date( trav_get_date_format('php') ) : $_REQUEST['date_from'];

$date_to = empty( $_REQUEST['date_to'] ) || trav_sanitize_date( $_REQUEST['date_to'] ) == '' || trav_strtotime( $date_from ) > trav_strtotime( $_REQUEST['date_to'] ) ? date( trav_get_date_format('php'), trav_strtotime( $date_from ) + 86400 * 365 ) : $_REQUEST['date_to'];

Regards, C-Themes

Nitzan Ginsberg
4 years ago

Hello 

Thanks for your help,

Can you please advice what i need to replace for the "empty"  as i understand its the defult for that?

i am not programmer so it can be great if you can just let me know what i need to change if i want it will show mw the schdule dates from today and 1 year forward (And then it will show me all tours for 1 year forward )

$date_from = empty( $_REQUEST['date_from'] ) || trav_sanitize_date( $_REQUEST['date_from'] ) == '' ? date( trav_get_date_format('php') ) : $_REQUEST['date_from'];

$date_to = empty( $_REQUEST['date_to'] ) || trav_sanitize_date( $_REQUEST['date_to'] ) == '' || trav_strtotime( $date_from ) > trav_strtotime( $_REQUEST['date_to'] ) ? date( trav_get_date_format('php'), trav_strtotime( $date_from ) + 86400 * 30 ) : $_REQUEST['date_to'];

Thanks

Kelly R Support Agent
4 years ago

Hi,

As default, it shows between today and 30 days after today.

You can change it in /archive-tour.php file.

Please find following code and edit it.

$date_from = empty( $_REQUEST['date_from'] ) || trav_sanitize_date( $_REQUEST['date_from'] ) == '' ? date( trav_get_date_format('php') ) : $_REQUEST['date_from'];

$date_to = empty( $_REQUEST['date_to'] ) || trav_sanitize_date( $_REQUEST['date_to'] ) == '' || trav_strtotime( $date_from ) > trav_strtotime( $_REQUEST['date_to'] ) ? date( trav_get_date_format('php'), trav_strtotime( $date_from ) + 86400 * 30 ) : $_REQUEST['date_to'];

Regards, C-Themes

Nitzan Ginsberg
4 years ago

Hello there,

Is there any way to change the Default dates in Search engine for tours

Attached screenshot