From a3ea0127c59401657cd09b7368528c22a5396c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 30 Jun 2023 13:07:15 +0200 Subject: [PATCH] Fix: Show non-bookable infobox also without accessing dates tables --- .../ext/ep_products/Classes/Controller/ProductController.php | 3 ++- .../ep_theme/Resources/Private/Templates/Product/Detail.html | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/ProductController.php b/public/typo3conf/ext/ep_products/Classes/Controller/ProductController.php index ddff8bd4..7cadff03 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/ProductController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/ProductController.php @@ -177,6 +177,7 @@ class ProductController extends ActionController $isProductWithNoInfoConcept = ($concept !== null) && \in_array($concept->getUid(), $noInfoConceptUids); $groupInquiryFormConceptUids = GeneralUtility::trimExplode(',', $this->settings['groupInquiryFormConceptUids'], true); $isProductWithGroupInquiryForm = ($concept !== null) && \in_array($concept->getUid(), $groupInquiryFormConceptUids); + $nonBookableInfo = $product->getNonBookableInfo(); // Assemble backlink $backlinkUrl = GeneralUtility::_GET('ref'); @@ -194,6 +195,7 @@ class ProductController extends ActionController 'dateTo' => $dateTo, 'referringUrl' => $backlinkUrl, 'backlinkLabel' => $backLinkLabel, + 'nonBookableInfo' => $nonBookableInfo, ]); } @@ -246,5 +248,4 @@ class ProductController extends ActionController $this->view->assign('dateTo', $dateTo); $this->view->assign('nonBookableInfo', $nonBookableInfo); } - } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html index a21a70b9..9ea1ecc5 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html @@ -128,6 +128,11 @@
+ +
+ {nonBookableInfo.text -> f:format.html()} +
+