/** * Returns price based on the base price and all related price influencer * * @return string */ public function getNetPrice() { $basePrice = $this->product->getBasePrice(); $newPrice = $basePrice; $priceInfluencer = \Abra\Cadabra\Service\PriceInfluencerService::collectPriceInfluencerFromArticle($this); /** @var \Abra\Cadabra\Domain\Model\PriceInfluencer\PriceInfluencerInterface $influencer */ foreach ($priceInfluencer as $influencer) { $newPrice = $influencer->calculatePrice($newPrice); } return $this->numberFormat($newPrice); }