Duration and price not showing for fixed departures

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #14426
    Zamfari
    Participant

    Zamsato (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/)?

    #14454
    wensolutions
    Keymaster

    Hello @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:

    http://prntscr.com/njvsrj

    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.

    #14456
    Zamfari
    Participant

    The 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.

    #14460
    wensolutions
    Keymaster

    Hello @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.

    http://prntscr.com/njwqgz

    Hope this clears the confusion.

    Thank you.

    #14463
    Zamfari
    Participant

    Ok. Are updates included or do we need to purchase them everytime you update the theme?

    #14465
    Zamfari
    Participant

    Found the updated version in Theme Palace and just installing it.

    #14467
    Zamfari
    Participant

    It 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.

    #14514
    Support Team
    Keymaster

    Hello @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.

    #14517
    Zamfari
    Participant

    The 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;
    }

    #14524
    Support Team
    Keymaster

    Hello @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.

    #14530
    Zamfari
    Participant

    Installed 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!!

    #14539
    Support Team
    Keymaster

    Hello @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.

    #14552
    Zamfari
    Participant

    The 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

    #14557
    Support Team
    Keymaster

    Hello @zamfari,

    Glad you found the workaround.

    Let us know if there are any issues further.

    Thank you.

    #15258

    Where can I find this feature in this plugin??? I’ve been searching it for hours and hours but still got no sign of it

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