diff --git a/public/typo3conf/ext/ep_theme/Classes/ViewHelpers/Uri/ProductViewHelper.php b/public/typo3conf/ext/ep_theme/Classes/ViewHelpers/Uri/ProductViewHelper.php index 04b18f6b..2b982058 100644 --- a/public/typo3conf/ext/ep_theme/Classes/ViewHelpers/Uri/ProductViewHelper.php +++ b/public/typo3conf/ext/ep_theme/Classes/ViewHelpers/Uri/ProductViewHelper.php @@ -48,6 +48,7 @@ class ProductViewHelper extends AbstractViewHelper $this->registerArgument('dateFrom', 'string', 'Date to limit table on detail page by (Y-m-d)'); $this->registerArgument('dateTo', 'string', 'Date to limit table on detail page by (Y-m-d)'); $this->registerArgument('forceHotelUid', 'bool', 'Whether to force link a hotel'); + $this->registerArgument('dayTrip', 'bool', 'Whether product is a daytrip'); $this->registerArgument('slug', 'string', 'Slug to append to resulting uri'); } @@ -73,7 +74,7 @@ class ProductViewHelper extends AbstractViewHelper 'product' => is_array($product) ? $product['uid'] : $product, 'hotel' => is_array($hotel) ? $hotel['uid'] : $hotel, ]; - } elseif ($arguments['dateFrom'] || $arguments['dateTo']) { + } elseif (false === (bool)$arguments['dayTrip'] && ($arguments['dateFrom'] || $arguments['dateTo'])) { $linkArguments = [ 'dateFrom' => $arguments['dateFrom'], 'dateTo' => $arguments['dateTo'], diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html index 74da2d26..e55589bc 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html @@ -11,7 +11,7 @@
- -