30 private $configuredPriceSelection;
52 $this->configuredPriceSelection = $configuredPriceSelection
54 ->get(ConfiguredPriceSelection::class);
62 $minimalPriceCalculator
76 $renderBlock = $this->getRenderBlock();
77 if ($renderBlock && $renderBlock->getItem() instanceof
ItemInterface) {
78 $price->setItem($renderBlock->getItem());
80 && $renderBlock->getParentBlock()
81 && $renderBlock->getParentBlock()->getItem() instanceof ItemInterface
83 $price->setItem($renderBlock->getParentBlock()->getItem());
85 return parent::_prepareLayout();
93 $price = $this->saleableItem->getPriceInfo()->getPrice($priceCode);
111 if (empty($this->configuredPriceSelection->getSelectionPriceList(
$configuredPrice))) {
113 return $this->
getSaleableItem()->getPriceInfo()->getPrice(FinalPrice::PRICE_CODE);
122 public function getConfiguredRegularPrice(): PriceInterface
126 if (empty($this->configuredPriceSelection->getSelectionPriceList(
$configuredPrice))) {
128 return $this->
getSaleableItem()->getPriceInfo()->getPrice(RegularPrice::PRICE_CODE);
141 if ($this->price->getPriceCode() == ConfiguredPriceInterface::CONFIGURED_PRICE_CODE) {
142 $displayRegularPrice = $this->getConfiguredRegularPrice()->getAmount()->getValue();
143 $displayFinalPrice = $this->getConfiguredPrice()->getAmount()->getValue();
145 return $displayFinalPrice < $displayRegularPrice;
148 return parent::hasSpecialPrice();
getData($key='', $index=null)
elseif(isset( $params[ 'redirect_parent']))