/** * @return SaleableInterface */ public function getProduct() { if ($this->bundleProduct->getPriceType() == Price::PRICE_TYPE_DYNAMIC) { return parent::getProduct(); } else { return $this->bundleProduct; } }