- This topic has 21 replies, 5 voices, and was last updated 3 years, 6 months ago by
wensolutions.
- AuthorPosts
- May 3, 2019 at 6:52 am #14426
Zamfari
ParticipantZamsato (https://www.zamsato.com/) has a number of safaris with fixed departures. So far we’re able to show the length and the price of the trip on the frontpage by deactivating “Fixed departures” under single price and activating “Fixed departures” under multiple pricing. Since your latest update this isn’t possible anymore. How can we show the length and the “From price” on frontpage and the scheduled departures on the trip page (i.e. https://www.zamsato.com/itinerary/pizi-safari/)?
May 3, 2019 at 10:59 am #14454wensolutions
KeymasterHello @zamfari,
When we test for the issue in our side we were unable to find such issue as you can see in the screenshot below:
Also, we tested your site in the latest version of the theme we found that you do not have the latest version of the theme. So please update to the latest version of the theme and verify the issue.
Thank you.
May 3, 2019 at 11:28 am #14456Zamfari
ParticipantThe duration is only showing when “Single Pricing” is used. We have different seasons and used “Multiple Pricing” with “Fixed departures”. As soon as this is used it overwrites the duration.
What is the actual version? I thought that I’m using a Child Theme based on Travel Base Pro 1.0.1.
May 3, 2019 at 12:24 pm #14460wensolutions
KeymasterHello @zamfari,
The actual version is 1.0.3 as you can see in the product page of the theme as well.
https://themepalace.com/downloads/travel-base-pro/
The duration can also be used in case of multiple pricing.
Hope this clears the confusion.
Thank you.
May 3, 2019 at 3:31 pm #14463Zamfari
ParticipantOk. Are updates included or do we need to purchase them everytime you update the theme?
May 3, 2019 at 3:47 pm #14465Zamfari
ParticipantFound the updated version in Theme Palace and just installing it.
May 3, 2019 at 4:32 pm #14467Zamfari
ParticipantIt has not cleared the confusion.
On the frontpage I always like to display the duration of the trip regardless if it has a fixed departure or not. As it is right now it is only showing the duration for trip without a fixed departure. To explain it further we use the Pizi Safari. I could choose under Single Price the option “No fixed departure” and than I was able to add the days and nights for the duration. Under Multiple Price I chosed “Fixed departure” entered the departure dates and on frontpage it showed duration in days and nights and on trippage it showed the departure dates.
This functionality isn’t there anymore and I’m trying to find out how to get it back.
May 6, 2019 at 6:02 am #14514Support Team
KeymasterHello @zamfari,
We would like to apologize for the trouble but when we inspected your site we found that you have not updated to the latest version of the theme.
So we request you to update to the latest version as the feature you mentioned works absolutely fine in the latest version of the theme.
Thank you.
May 6, 2019 at 6:28 am #14517Zamfari
ParticipantThe site is running on WP Travel Pro 1.0.3
In my opinion the duration of a trip should be always shown no matter if it has a fixed departure or not. If someone is looking for a 7day, 10 day or xxx day trip this information should be available on the first page. When checking for the details than it can show the departure dates or the client can choose his/her preferred dates.
I found the function in /inc/wp-travel.php and “if ( ‘yes’ === $fixed_departure ) :” is responsible for the glitch. To change it to my needs what do I have to do? How do I call it from function.php from the child theme?
/**
* Add html for Keywords.
*
* @param int $post_id ID of current post.
*/
function travel_base_pro_trip_duration( $post_id ) {
if ( ! $post_id ) {
return;
}
$start_date = get_post_meta( $post_id, ‘wp_travel_start_date’, true );
$end_date = get_post_meta( $post_id, ‘wp_travel_end_date’, true );$fixed_departure = get_post_meta( $post_id, ‘wp_travel_fixed_departure’, true );
$fixed_departure = ( $fixed_departure ) ? $fixed_departure : ‘yes’;
$fixed_departure = apply_filters( ‘wp_travel_fixed_departure_defalut’, $fixed_departure );$trip_duration = get_post_meta( $post_id, ‘wp_travel_trip_duration’, true );
$trip_duration = ( $trip_duration ) ? $trip_duration : 0;
$trip_duration_night = get_post_meta( $post_id, ‘wp_travel_trip_duration_night’, true );
$trip_duration_night = ( $trip_duration_night ) ? $trip_duration_night : 0;==> if ( ‘yes’ === $fixed_departure ) :
if ( $start_date && $end_date ) :
$date_format = get_option( ‘date_format’ );
if ( ! $date_format ) :
$date_format = ‘jS M, Y’;
endif;
printf( ‘%s – %s’, date( $date_format, strtotime( $start_date ) ), date( $date_format, strtotime( $end_date ) ) );
endif;
else :
if ( $trip_duration || $trip_duration_night ) :
printf( __( ‘%1$s Day(s) %2$s Night(s)’, ‘travel-base-pro’ ), $trip_duration, $trip_duration_night );
endif;
endif;
}May 6, 2019 at 11:56 am #14524Support Team
KeymasterHello @zamfari,
We mean the latest version of the theme “Travel Base Pro”. You have an older version of the theme so please update to the latest version of the theme.
Let us know if that fixes the issue or not?
Thank you.
May 6, 2019 at 2:32 pm #14530Zamfari
ParticipantInstalled is Version: 1.0.3 and in themepalace download is this the latest version. Instead of only telling me that I run an older version you should actually specify what the latest version is!!
May 7, 2019 at 3:26 am #14539Support Team
KeymasterHello @zamfari,
We would like to apologize for that but we had mentioned updating the version of the theme.
Has the problem solved with the latest version of the theme?
Hoping to hear from you soon.
Thank you.
May 7, 2019 at 9:24 am #14552Zamfari
ParticipantThe problem is the same. No change to the older version of the theme. I change the function to suit my needs and will run it thhis way. Sunny greetings from Livingstone / Zambia Daniel Schreiner
May 7, 2019 at 12:10 pm #14557Support Team
KeymasterMay 22, 2019 at 9:37 pm #15258anil.rai01041998@gmail.com
ParticipantWhere can I find this feature in this plugin??? I’ve been searching it for hours and hours but still got no sign of it
- AuthorPosts
- The forum ‘WP Travel Pro’ is closed to new topics and replies.