From d98efb1bc2541e731a22f6c1480e1c8f680ae19c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 27 Feb 2024 16:04:46 +0100 Subject: [PATCH] fix: apply booking url template code to ajax rendered price tables --- .../ep_products/Classes/Controller/AjaxTableController.php | 5 +++-- .../Resources/Private/Templates/Hotel/DetailEvent.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/AjaxTableController.php b/public/typo3conf/ext/ep_products/Classes/Controller/AjaxTableController.php index 3bbc1ddd..b650aef6 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/AjaxTableController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/AjaxTableController.php @@ -226,7 +226,8 @@ class AjaxTableController extends ActionController Product $product, Hotel $hotel, Date $date, - bool $singleDate = false + bool $singleDate = false, + string $bookingUrlTemplateCode = 'base' ): void { $forcedConceptUids = GeneralUtility::trimExplode(',', $this->settings['forcedConceptUids'], true); $filterSettings = $this->filterService->getNormalizedFilterSettings([], $forcedConceptUids); @@ -236,7 +237,7 @@ class AjaxTableController extends ActionController 'hotel' => $hotel, 'filterSettings' => $filterSettings, 'date' => $date, - 'template' => $this->settings['bpnBookingUrlTemplateCode'], + 'template' => $bookingUrlTemplateCode, 'paCode' => GeneralUtility::_GET('pa'), ]); $hasSurchargeOrDiscount = $this->dateService->checkSurcharcheOrDiscount($priceTable); diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Hotel/DetailEvent.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Hotel/DetailEvent.html index 6a8ee2f5..37c3b9af 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Hotel/DetailEvent.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Hotel/DetailEvent.html @@ -21,7 +21,7 @@

Buchungsoptionen

+ data-ajax-content-uri-value="{ep:uri.ajax(action: 'pricetableHtml', controller: 'AjaxTable', pageUid: settings.defaultAjaxUid, arguments: '{product: product, hotel: hotel, bookingUrlTemplateCode: settings.bookingUrlTemplateCode}', format: 'html')}">