- This topic has 7 replies, 2 voices, and was last updated 3 years, 10 months ago by
Support Team.
- AuthorPosts
- July 11, 2019 at 11:03 am #17867
privatejeep
ParticipantYour 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!
July 11, 2019 at 11:24 am #17870Support Team
KeymasterHello @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.
July 26, 2019 at 10:00 pm #18278privatejeep
ParticipantAfter 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!
July 29, 2019 at 6:43 am #18316Support Team
KeymasterHello @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.
July 30, 2019 at 11:21 am #18373privatejeep
ParticipantThe 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…
Link to trip page: https://www.privatejeep.com/itinerary/mogollon-rim/
July 30, 2019 at 11:45 am #18377Support Team
KeymasterHello @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.
July 30, 2019 at 11:56 am #18378privatejeep
ParticipantPERFECTION! THANK YOU!
July 30, 2019 at 12:07 pm #18380Support Team
KeymasterHello @privatejeep,
Glad we could help you.
If you have any issues further then kindly let us know.
Thank you.
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.