getPriceType(Price\BundleOptionPrice::PRICE_CODE); $showRange = $bundleOptionPrice->getValue() != $bundleOptionPrice->getMaxValue(); if (!$showRange) { //Check the custom options, if any /** @var \Magento\Catalog\Pricing\Price\CustomOptionPrice $customOptionPrice */ $customOptionPrice = $this->getPriceType(CustomOptionPrice::PRICE_CODE); $showRange = $customOptionPrice->getCustomOptionRange(true) != $customOptionPrice->getCustomOptionRange(false); } return $showRange; } }