Overlapping seasons with different rates

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1361032
    Chris Calitz
    Participant

    Hi,

    We have setup seasons for this year and next as follows.

    When we search in admin from 29th of December till say 2nd of January we can’t amend a booking to this as there are different rates from the 1st of Jan 2023. In the admin we get this error:

    Hi! 
    
    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. 
    
    In this case, WordPress caught an error with one of your plugins, Hotel Booking. 
    
    First, visit your website (https://www.tabisa.co.za/) and check for any visible issues. Next, visit the page where the error was caught (https://xxxxx/wp-admin/admin.php?page=mphb_edit_booking&booking_id=8834) and check for any visible issues. 
    
    Please contact your host for assistance with investigating this issue further. 
    
    If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further. 
    
    https://xxxxx/wp-login.php?action=enter_recovery_mode&rm_token=zTAAZ3YjaTt9R1amBuKcmI&rm_key=eatC8fstJllCix4bwgPaJC 
    
    To keep your site safe, this link will expire in 1 day (2022-09-28%2012:00:00%20BST). Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires. 
    
    When seeking help with this issue, you may be asked for some of the following information: 
    WordPress version 6.0.2 
    Active theme: Kamperen-child (version 1.0) 
    Current plugin: Hotel Booking (version 4.4.2) 
    PHP version 8.0.23 
    
    Error Details 
    ============= 
    An error of type E_ERROR was caused in line 313 of the file /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/includes/views/shortcodes/checkout-view.php. Error message: Uncaught Error: Call to a member function getOriginalId() on bool in /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/includes/views/shortcodes/checkout-view.php:313 
    Stack trace: 
    #0 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(307): MPHB\Views\Shortcodes\CheckoutView::renderRateChooser(Object(MPHB\Entities\ReservedRoom), 0, Object(MPHB\Entities\RoomType), Object(MPHB\Entities\Booking), Array) 
    #1 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) 
    #2 /home2/tabisaco/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) 
    #3 /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/includes/views/edit-booking/checkout-view.php(74): do_action('mphb_edit_booki...', Object(MPHB\Entities\ReservedRoom), 0, Object(MPHB\Entities\RoomType), Object(MPHB\Entities\Booking), Array) 
    #4 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(307): MPHB\Views\EditBooking\CheckoutView::renderAccommodations(Object(MPHB\Entities\Booking), Array) 
    #5 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) 
    #6 /home2/tabisaco/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) 
    #7 /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/includes/views/edit-booking/checkout-view.php(29): do_action('mphb_edit_booki...', Object(MPHB\Entities\Booking), Array) 
    #8 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(307): MPHB\Views\EditBooking\CheckoutView::renderBookingDetails(Object(MPHB\Entities\Booking), Array) 
    #9 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) 
    #10 /home2/tabisaco/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) 
    #11 /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/templates/edit-booking/checkout-form.php(25): do_action('mphb_edit_booki...', Object(MPHB\Entities\Booking), Array) 
    #12 /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/functions.php(35): require('/home2/tabisaco...') 
    #13 /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/functions.php(27): mphb_load_template('/home2/tabisaco...', Array) 
    #14 /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/includes/admin/menu-pages/edit-booking/checkout-control.php(171): mphb_get_template_part('edit-booking/ch...', Array) 
    #15 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(307): MPHB\Admin\MenuPages\EditBooking\CheckoutControl->display(Object(MPHB\Entities\Booking), Array) 
    #16 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) 
    #17 /home2/tabisaco/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) 
    #18 /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/includes/admin/menu-pages/edit-booking-menu-page.php(147): do_action('mphb_edit_booki...', Object(MPHB\Entities\Booking), Array) 
    #19 /home2/tabisaco/public_html/wp-content/plugins/motopress-hotel-booking/includes/admin/menu-pages/edit-booking-menu-page.php(129): MPHB\Admin\MenuPages\EditBookingMenuPage->renderValid() 
    #20 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(307): MPHB\Admin\MenuPages\EditBookingMenuPage->render('') 
    #21 /home2/tabisaco/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) 
    #22 /home2/tabisaco/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) 
    #23 /home2/tabisaco/public_html/wp-admin/admin.php(259): do_action('admin_page_mphb...') 
    #24 {main} 
    thrown

    The reason we have the weekend season is to enforce booking rules. We have more than 300 price variations on our campsites. We have large campsites but it depends on the amount of people who book it but we book them either in larger groups or exclusively for single person booking it. I know this is setup slightly different and the reason I did it this way is so I don’t have to enter the price variations for each season. If I had to do it in a way where our seasons would only be weekdays(Sunday – Thursday) and weekends(Friday – Saturday) it would amount to us needing to enter double the variations of min 600+ price variations. I have tested it extensively and it works perfectly as long as the booking doesn’t cross over 2 different seasons with different rates like in the example when our rates change from 2022 to 2023. Any help will be appreciated.

    Thanks.

    #1364016
    J. Davis
    Keymaster

    Hi Chris,

    You need to add all season prices to the same rate if you wish to let the guest make a booking through the dates of the different seasons. Please try adding all the season prices to a single rate and let me know if it is helpful.

    best regards,
    John Davis

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.