Discussion on Book Your Travel - Online Booking WordPress Theme

4031 comments found

Hi themeenergy, I have found some bug in one of theme files. It is in /themes/bookyourtravel/includes/post_types/accommodations.php Function list_accommodation_vacancy_dates.

When I click on the Book button when I book a room (on the hotel single page), the calendar doesn’t show available days (it is grey).

The calendar shows available days only if there are few Vacancies created in admin panel. Just create more than 6 vacancies and calendar doesn’t work.

I think it happens on PHP 5.2, but may be it works good on PHP5.3

So I solved it by make few changes in the function list_accommodation_vacancy_dates.

Here is new code:
$sql2 = "SELECT a.single_date 
FROM (
    SELECT curdate() + INTERVAL (a.a + (10 * b.a) + (100 * c.a)) DAY as single_date
    FROM (SELECT 0 as a union all SELECT 1 union all SELECT 2 union all SELECT 3 union all SELECT 4 union all SELECT 5 union all SELECT 6 union all SELECT 7 union all SELECT 8 union all SELECT 9) AS a
    cross join (SELECT 0 as a union all SELECT 1 union all SELECT 2 union all SELECT 3 union all SELECT 4 union all SELECT 5 union all SELECT 6 union all SELECT 7 union all SELECT 8 union all SELECT 9) AS b
    cross join (SELECT 0 as a union all SELECT 1 union all SELECT 2 union all SELECT 3 union all SELECT 4 union all SELECT 5 union all SELECT 6 union all SELECT 7 union all SELECT 8 union all SELECT 9) AS c
    HAVING";

    if (isset($end_date))
    $sql2 .= $wpdb->prepare(" single_date BETWEEN %s AND %s ", $current_date, $end_date);
    else
    $sql2 .= $wpdb->prepare(" single_date >= %s ", $current_date);

    $sql2 .= "                
    ) a, " . BOOKYOURTRAVEL_ACCOMMODATION_VACANCIES_TABLE . " vacancies 
    WHERE ";

$sql2 .= $wpdb->prepare(" 
    a.single_date 
    BETWEEN
        ( 
        SELECT MIN(start_date) start_date 
        FROM " . BOOKYOURTRAVEL_ACCOMMODATION_VACANCIES_TABLE . " 
        WHERE accommodation_id = %d ", $accommodation_id);

    if ($room_type_id > 0) 
    $sql2 .= $wpdb->prepare(" AND room_type_id=%d ", $room_type_id);

    $sql2 .= $wpdb->prepare(" 
    ) 
    AND
    ( 
    SELECT MAX(end_date) end_date 
    FROM " . BOOKYOURTRAVEL_ACCOMMODATION_VACANCIES_TABLE . " 
    WHERE accommodation_id = %d ", $accommodation_id);

    if ($room_type_id > 0) 
    $sql2 .= $wpdb->prepare(" AND room_type_id=%d ", $room_type_id);

    $sql2 .= ")";

    if ($month > 0)
    $sql2 .=  $wpdb->prepare(" AND MONTH(a.single_date) = %d ", $month);

    if ($year > 0)
    $sql2 .=  $wpdb->prepare(" AND YEAR(a.single_date) = %d ", $year);

    $sql2 .= " GROUP BY a.single_date ";

    $date_results = $wpdb->get_results($sql2);

Thank you for such wonderful theme! Tonny

themeenergy

Hi Tonny,

Can you give exact 6 vacancies that you create (date from, date to, room count etc) so we can attempt to replicate your issue as we are currently unable to see what you are seeing?

Thanks,

ThemeEnergy support

Price filters are not working at all from ” Refine Search Results ”. If you change the price for refining the search, it has not effect in the search results. I know you may update it in your upcoming versions and try to fix it but could you tell me for now , how to disable ” Refine Search Results ” Bar from Search Results page. I do not want to use this function as this function is not working properly. Kindly reply at earliest. Thanks

themeenergy

Hi there,

We are working on this fix.

In the mean time, to hide the refine search results widget, please open custom-search-results.php and comment out line 122:

<?php  /* get_sidebar('left-search'); */ ?>

Thanks

zbigb69 Purchased

Hello, how to not lose each time i update, all widgets and menus settings ? I use child theme, but when i update, i have a blank page, so i have to delete my child theme and then reupdate everything.

themeenergy

When you get a blank page please set WP_DEBUG to true in your wp-config.php and see if you get any php errors when you refresh the page. If so, please report the php error here so we can help you resolve it.

Thanks

Hello,

When is the estimate for flights?

Thanks!

themeenergy

Hi,

We have had issues to resolve so the flights feature has been further pushed back. We are working hard on improving all the current features and we want to wrap this up before releasing flights as we will feel releasing flights before current issues are resolved is not beneficial for anyone.

Thanks

Can we edit data type, or add custom ones? Eg. We dont need Cruise but we need Attractions

themeenergy

At the moment no, but we do have this in our plans for the future.

Our site is going to be built off a selection of hotels provided by hotel groups and we are also going to upload individual hotel details for standalone hotels.

1. Can hotel availability and details be created and managed through XML feeds that are automatically updated daily?

2. Can we provide XML feeds to other sites?

If this functionality isn’t included, then can we get this developed ourselves to incorporate into the theme?

themeenergy

Hi there,

1. No such feature is available. We do plan to integrate export features into our theme in the future, however we have not yet consider how best to implement this at the moment.

2. Xml feeds to other sites are also not available from our theme.

You’d have to custom code both things yourself.

uedot Purchased

Hi,

In spite of upgrading to BYT 5.32, the room prices are all same. How to overcome this issue? Pls guide me.

themeenergy

You can see this working on our demo. Are you sure you uploaded all the files? Are you using a child theme and are you sure all php files are upgraded in your child theme?

If you are still having problems, please send your WP/FTP login details to support@themeenergy.com and we will have a look and fix.

Thanks

hi, please tell me how to hide the my account and the currencies links in the header ribbon and only keep the language switcher.

themeenergy

Hi,

In your child theme (read our docs about why you should use a child theme), delete lines 93 to 128 of header.php

Thanks.

If there are 8 or more than 8 listing on any of the pages, it appears like 4 on the first row, 1 on the second and 3 on the third.. Why is it so?

Secondly, the theme is not designed properly for mobiles/tablets as it cuts down the pictures that appears to be weird.

Even you may have a look at your own demo site Nokia Lumia 920 Emulator: http://mobt.me/2sgy Ipad Mini: http://mobt.me/2sgq

Please provide support for the same.

The listing cuts down the word in between & use more info hyperlink which is which as well. Can you make use of dots instead of cutting the words down?

Has anybody found any useful YouTube training videos for the “Book Your Travel” theme? I’d like to see someone build their site using this theme.

Thanks in advance!

themeenergy

Hi there,

We will soon release training videos to help with building a site with our theme.

Thanks

I would like to use this theme however I need to enable hourly rates and booking hourly. I also need paypal adaptive payments enabled to immediately collect x% and pay the listing agent x% (for car rentals). WIll your theme do this by default or is custom work needed? If so, please let me know and I will contact you through your user page to obtain a quote.

by
by
by
by
by
by