public function getProduct() { if (Mage::registry('grouped-product-child-product')) { return Mage::registry('grouped-product-child-product'); } return parent::getProduct(); }
/** * Simply append the monthly fee information after the price block * * @return string */ protected function _toHtml() { $html = parent::_toHtml(); if (Mage::helper('svea_webpay')->shouldDisplayMonthlyFee($this)) { $html .= $this->getLayout()->createBlock('svea_webpay/frontend_catalog_product_price_monthlyfee')->setProduct($this->getProduct())->toHtml(); } return $html; }
/** * 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; } $html .= $this->getLayout()->createBlock('core/template')->setTemplate('germansetup/price_info.phtml')->setFormattedTaxRate($this->getFormattedTaxRate())->setIsIncludingTax($this->isIncludingTax())->setIsShowShippingLink($this->isShowShippingLink())->toHtml(); return $html; }
/** * Convert block to html string * * @return string */ protected function _toHtml() { if (!$this->getProduct() || $this->getProduct()->getCanShowPrice() === false) { return ''; } if (!$this->helper('customerprices')->isShowListBlock($this->getProduct())) { return 'You need to <a href="' . Mage::getUrl('customer/account/login') . '">login</a> to see product price<br/>'; } return parent::_toHtml(); }
/** * Convert block to html string * * @return string */ protected function _toHtml() { if (Mage::registry('current_product') == $this->getProduct()) { return '<div class="pricingppr">' . $this->getPriceBundle() . '</div>' . parent::_toHtml(); } else { $product = $this->getProduct(); $_isReservation = ITwebexperts_Payperrentals_Helper_Data::getAttributeCodeForId($product->getId(), 'is_reservation'); if ($_isReservation != ITwebexperts_Payperrentals_Model_Product_Isreservation::STATUS_DISABLED && $_isReservation !== false) { $priceHtml = $this->getLayout()->createBlock("payperrentals/bundle_catalog_product_price")->setTemplate('payperrentals/bundle/catalog/product/priceppr.phtml')->setProduct($product)->setPriceElementIdPrefix('bundle-price-')->setIdSuffix($this->getIdSuffix())->toHtml(); return $priceHtml; } return parent::_toHtml(); } }