fix: apply booking url template code to ajax rendered price tables
This commit is contained in:
@@ -226,7 +226,8 @@ class AjaxTableController extends ActionController
|
|||||||
Product $product,
|
Product $product,
|
||||||
Hotel $hotel,
|
Hotel $hotel,
|
||||||
Date $date,
|
Date $date,
|
||||||
bool $singleDate = false
|
bool $singleDate = false,
|
||||||
|
string $bookingUrlTemplateCode = 'base'
|
||||||
): void {
|
): void {
|
||||||
$forcedConceptUids = GeneralUtility::trimExplode(',', $this->settings['forcedConceptUids'], true);
|
$forcedConceptUids = GeneralUtility::trimExplode(',', $this->settings['forcedConceptUids'], true);
|
||||||
$filterSettings = $this->filterService->getNormalizedFilterSettings([], $forcedConceptUids);
|
$filterSettings = $this->filterService->getNormalizedFilterSettings([], $forcedConceptUids);
|
||||||
@@ -236,7 +237,7 @@ class AjaxTableController extends ActionController
|
|||||||
'hotel' => $hotel,
|
'hotel' => $hotel,
|
||||||
'filterSettings' => $filterSettings,
|
'filterSettings' => $filterSettings,
|
||||||
'date' => $date,
|
'date' => $date,
|
||||||
'template' => $this->settings['bpnBookingUrlTemplateCode'],
|
'template' => $bookingUrlTemplateCode,
|
||||||
'paCode' => GeneralUtility::_GET('pa'),
|
'paCode' => GeneralUtility::_GET('pa'),
|
||||||
]);
|
]);
|
||||||
$hasSurchargeOrDiscount = $this->dateService->checkSurcharcheOrDiscount($priceTable);
|
$hasSurchargeOrDiscount = $this->dateService->checkSurcharcheOrDiscount($priceTable);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<h2>Buchungsoptionen</h2>
|
<h2>Buchungsoptionen</h2>
|
||||||
<div class="ajax-content-wrapper"
|
<div class="ajax-content-wrapper"
|
||||||
data-controller="ajax-content"
|
data-controller="ajax-content"
|
||||||
data-ajax-content-uri-value="{ep:uri.ajax(action: 'pricetableHtml', controller: 'AjaxTable', pageUid: settings.defaultAjaxUid, arguments: '{product: product, hotel: hotel}', format: 'html')}">
|
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')}">
|
||||||
<div class="ajax-content" data-ajax-content-target="container"></div>
|
<div class="ajax-content" data-ajax-content-target="container"></div>
|
||||||
<div data-ajax-content-target="trigger">
|
<div data-ajax-content-target="trigger">
|
||||||
<f:image src="EXT:ep_theme/Resources/Public/images/ajax-loader-white.gif" alt="Loading" title="Loading"/>
|
<f:image src="EXT:ep_theme/Resources/Public/images/ajax-loader-white.gif" alt="Loading" title="Loading"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user