Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
Expand Down
Loading