getTemplate() == null) { $this->setTemplate("ekomimeetsmage/product/name.phtml"); } return parent::_toHtml(); } /** * Returns the average of the product * * @return float */ public function getAverage() { if (Mage::registry('current_product') !== null) { $review = Mage::helper('ekomimeetsmage/review'); return $review->getAverageBySku(Mage::registry('current_product')->getSku()); } return 0; } }