Check-in/out times are always displayed in the product data tabs #314
Labels
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
type: bug
The issue is a confirmed bug.
Affected ticket(s)
5647172-zen
What I expected
If the check-in/out time isn't set under Bookings > Settings > Accommodation, it shouldn't be displayed in the product data tabs.
What happened instead
If the check-in/out time isn't set by the user, it defaults to 14:00.
Steps to reproduce the issue
Additional Info
From my amateur glance, it looks like the Arrival/Departure tab shouldn't be displayed if the check-in/out times are empty:
woocommerce-accommodation-bookings/includes/class-wc-accommodation-booking-product-tabs.php
Line 77 in 145f643
But
get_check_times
returns 14:00 if it's not set:woocommerce-accommodation-bookings/includes/class-wc-product-accommodation-booking.php
Line 343 in 145f643
The text was updated successfully, but these errors were encountered: