protected function _toHtml() { if (!$this->helper('customerprices')->isShowListBlock($this->getProduct()) && strpos($this->getTemplate(), '/addto') > 0) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if (!(!$this->helper('customerprices')->isEnabled() || (!$this->helper('customerprices')->isHidePrice() || $this->helper('customer')->isLoggedIn())) && strpos($this->getTemplate(), '/addto') > 0) { return ''; } return parent::_toHtml(); }
/** * Render block HTML * * @return string */ protected function _toHtml() { $html = parent::_toHtml(); if ($this->_helper()->getConfigValue('general', 'enabled')) { $html = $this->_insertRichSnippets($html); } return $html; }
protected function _tohtml() { if ($this->getFromXml() == 'yes' && !Mage::helper('prodfaqs')->isProductFaqsEnable()) { return parent::_toHtml(); } $this->setLinksforProduct(); $this->setTemplate("prodfaqs/ask.phtml"); return parent::_toHtml(); }
protected function _toHtml() { $localHtmlContent = "Yay! Overridden by " . get_class($this); $parentHtml = parent::_toHtml(); // It's the Fukken Magick I don't understand a bit // makes multiple calls to the method, and thus I compare against alias $htmlContent = 'product.info' == $this->_alias ? $localHtmlContent . $parentHtml : $parentHtml; return $htmlContent; }
protected function _toHtml() { if ($this->getProduct()) { foreach ($this->getChild() as $childBlock) { $childBlock->setProduct($this->getProduct()); } return parent::_toHtml(); } return ''; }
protected function _toHtml() { $productId = $this->getProductId(); if (!($product = Mage::registry('product'))) { $storeId = (int) Mage::app()->getStore()->getId(); $product = Mage::getModel('catalog/product')->setStoreId($storeId)->load($productId)->setStoreId($storeId); Mage::register('product', $product); } $this->assign('customerIsLogin', Mage::getSingleton('customer/session')->isLoggedIn()); $this->assign('reviewLink', Mage::getUrl('review/product/list', array('id' => $productId))); $this->assign('wishlistLink', Mage::getUrl('wishlist/index/add', array('product' => $productId))); $this->setChild('rating', $this->getLayout()->createBlock('rating/entity_detailed')->setEntityId($productId)); $this->setChild('reviewForm', $this->getLayout()->createBlock('review/form')); $this->setChild('reviewList', $this->getLayout()->createBlock('review/list', 'review_list')); $this->assign('reviewCount', $this->getLayout()->getBlock('review_list')->count()); return parent::_toHtml(); }
/** * Render block HTML * * @return string */ protected function _toHtml() { $this->getProduct()->setShortDescription(null); return parent::_toHtml(); }
protected function _toHtml() { if ($this->isAvailable()) { return parent::_toHtml(); } }
protected function _toHtml() { $result = parent::_toHtml(); $result = preg_replace('|\\<form action="([^"]*)" method="post" id="product_addtocart_form"\\>|Uis', '<form action="$1" method="post" id="product_addtocart_form" enctype="multipart/form-data">', $result); return $result; }