amount[$this->getValue()])) { $price = $this->getValue(); if ($this->product->getPriceType() == Price::PRICE_TYPE_FIXED) { /** @var \Magento\Catalog\Pricing\Price\CustomOptionPrice $customOptionPrice */ $customOptionPrice = $this->priceInfo->getPrice(CustomOptionPrice::PRICE_CODE); $price += $customOptionPrice->getCustomOptionRange(true); } $this->amount[$this->getValue()] = $this->calculator->getMinRegularAmount($price, $this->product); } return $this->amount[$this->getValue()]; } /** * Returns max price * * @return \Magento\Framework\Pricing\Amount\AmountInterface */ public function getMaximalPrice() { if (null === $this->maximalPrice) { $price = $this->getValue(); if ($this->product->getPriceType() == Price::PRICE_TYPE_FIXED) { /** @var \Magento\Catalog\Pricing\Price\CustomOptionPrice $customOptionPrice */ $customOptionPrice = $this->priceInfo->getPrice(CustomOptionPrice::PRICE_CODE); $price += $customOptionPrice->getCustomOptionRange(false); } $this->maximalPrice = $this->calculator->getMaxRegularAmount($price, $this->product); } return $this->maximalPrice; } /** * Returns min price * * @return \Magento\Framework\Pricing\Amount\AmountInterface */ public function getMinimalPrice() { return $this->getAmount(); } }