Broken Date Feature

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17867
    privatejeep
    Participant

    Your latest update has yet again broken the ability to have a simple trip date on the bookings tab! Now all my trips have both arrival and departure dates. This is a huge error!

    Link to a trip on my site: https://www.privatejeep.com/itinerary/promontory-butte/

    The date needs to be a simple select of departure date ONLY! How can this be fixed ASAP! Yet again with one of your updates my entire travel site booking is a mess!

    Need assistance ASAP please!

    #17870
    Support Team
    Keymaster

    Hello @privatejeep,

    Recently we have made some fixes and enhancement in the pricing option i.e. in both single and multiple options so we have displayed both start and end date in trip duration.

    But there is nothing to worry about as we have added the fitter using which you will be able to remove the end date.

    For this go to your child theme fucntions.php file and add below given code.

    function wp_travel_remove_dates (){
    	return false;
    }
    add_filter('wp_travel_booking_show_end_date','wp_travel_remove_dates');

    Now you won’t have any problem in future updates as well regarding this.

    Hope this helps.

    PS: We would like to apologize for the trouble.

    Thank you.

    #18278
    privatejeep
    Participant

    After using your code the date field now says “Arrival Date”. This is WRONG! The field needs to say “Departure Date”. It is the departure date that my clients need to pick.

    Need that to be changed asap please. THANKS!

    #18316
    Support Team
    Keymaster

    Hello @privatejeep,

    Please add below-given code in your child theme’s functions.php file.

    function wp_travel_change_string($localized_strings){
    	$localized_strings ['bookings']['start_date'] = 'Arrival Date';
    	return $localized_strings;
    }
    add_filter('wp_travel_strings','wp_travel_change_string');

    Hope this helps.

    Thank you.

    #18373
    privatejeep
    Participant

    The title is fixed but the text INSIDE the field stills says “Arrival date”. I need the text inside the field to say “Departure Date” as well.

    Here is a screenshot of the problem…

    Booking Date Field

    Link to trip page: https://www.privatejeep.com/itinerary/mogollon-rim/

    #18377
    Support Team
    Keymaster

    Hello @privatejeep,

    Please replace above given code with the code given below:

    function wp_travel_change_string($localized_strings){
    	$localized_strings ['bookings']['start_date'] = 'Departure Date';
    	$localized_strings ['bookings']['arrival_date'] = 'Departure Date';
    	return $localized_strings;
    }
    add_filter('wp_travel_strings','wp_travel_change_string');

    Hope this helps.

    Thank you.

    #18378
    privatejeep
    Participant

    PERFECTION! THANK YOU!

    #18380
    Support Team
    Keymaster

    Hello @privatejeep,

    Glad we could help you.

    If you have any issues further then kindly let us know.

    Thank you.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.