/** * {@inheritdoc} */ public function getImage($product, $imageId, $attributes = array()) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getImage'); if (!$pluginInfo) { return parent::getImage($product, $imageId, $attributes); } else { return $this->___callPlugins('getImage', func_get_args(), $pluginInfo); } }
/** * Add rate votes * * @return $this */ protected function _beforeToHtml() { $this->getReviewsCollection()->load()->addRateVotes(); return parent::_beforeToHtml(); }