diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateService.php index e6526cf9..470726cc 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateService.php @@ -274,7 +274,12 @@ class DateService implements SingletonInterface $nonBookableDateUids = $resolvedOptions['nonBookableDateUids']; foreach ($dateTableData as $row) { - $showBookingButton = $resolvedOptions['showBookingButton'] || !in_array($row['dateBusProId'], $nonBookableDateUids, false); + // Default booking button status is determined by the product + $showBookingButton = $resolvedOptions['showBookingButton']; + // Check if booking button is disabled for this date + if (true === in_array($row['dateBusProId'], $nonBookableDateUids, false)) { + $showBookingButton = false; + } $dateStart = new \DateTime($row['dateStart']); $dateEnd = new \DateTime($row['dateEnd']);