From 639d002db2916c1c2e95f9450bd6ad4ae3a2970d Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Sun, 15 Nov 2026 21:37:03 +0100 Subject: [PATCH] [BUGFIX] Use verdict() in IfBestSpecialPriceAvailableViewHelper for Fluid 4 Fluid 4 no longer calls evaluateCondition() of condition ViewHelpers, so the ViewHelper always evaluated to false on TYPO3 13. Resolves: #294 Co-Authored-By: Claude Opus 5.5 --- .../Product/IfBestSpecialPriceAvailableViewHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/ViewHelpers/Product/IfBestSpecialPriceAvailableViewHelper.php b/Classes/ViewHelpers/Product/IfBestSpecialPriceAvailableViewHelper.php index 2a357478..e7f88e3f 100644 --- a/Classes/ViewHelpers/Product/IfBestSpecialPriceAvailableViewHelper.php +++ b/Classes/ViewHelpers/Product/IfBestSpecialPriceAvailableViewHelper.php @@ -12,6 +12,7 @@ use Extcode\CartProducts\Domain\Model\Product\Product; use TYPO3\CMS\Core\Context\Context; use TYPO3\CMS\Core\Utility\GeneralUtility; +use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper; class IfBestSpecialPriceAvailableViewHelper extends AbstractConditionViewHelper @@ -30,7 +31,7 @@ public function initializeArguments(): void ); } - protected static function evaluateCondition(?array $arguments = null): bool + public static function verdict(array $arguments, RenderingContextInterface $renderingContext): bool { $product = $arguments['product']; $bestSpecialPrice = $product->getBestSpecialPrice(self::getFrontendUserGroupIds());