/** * Add content of template block below price html if defined in config * * @return string */ public function _toHtml() { $html = trim(parent::_toHtml()); if (empty($html) || !Mage::getStoreConfigFlag('catalog/price/display_block_below_price')) { return $html; } if ($this->getTemplate() != $this->_tierPriceDefaultTemplate) { $htmlObject = new Varien_Object(); $htmlObject->setParentHtml($html); $htmlTemplate = $this->getLayout()->createBlock('core/template')->setTemplate('germansetup/price_info.phtml')->setFormattedTaxRate($this->getFormattedTaxRate())->setIsIncludingTax($this->isIncludingTax())->setIsIncludingShippingCosts($this->isIncludingShippingCosts())->setIsShowShippingLink($this->isShowShippingLink())->toHtml(); $htmlObject->setHtml($htmlTemplate); Mage::dispatchEvent('germansetup_after_product_price', array('html_obj' => $htmlObject, 'block' => $this)); $html = $htmlObject->getPrefix(); $html .= $htmlObject->getParentHtml(); $html .= $htmlObject->getHtml(); $html .= $htmlObject->getSuffix(); } return $html; }