public function _toHtml() { if (Mage::getStoreConfig('niveus_productvideo/settings/enable')) { return parent::_toHtml(); } else { return ''; } }
public function _construct() { $product = $this->getProduct(); $this->_cardType = $product->getAttributeText('wts_gc_type'); if ($this->getProduct()->getPrice() == 0) { $this->initPriceStatus(); } parent::_construct(); }
protected function _prepareLayout() { parent::_prepareLayout(); $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager'); $pager->setAvailableLimit(array(15 => 15, 30 => 30, 45 => 45, 'all' => 'all')); $pager->setCollection($this->getCollection()); $this->setChild('pager', $pager); $this->getCollection()->load(); return $this; }
protected function _prepareLayout() { parent::_prepareLayout(); if (Mage::helper('giftvoucher')->getInterfaceConfig('preview') && Mage::helper('giftvoucher')->getInterfaceConfig('enable')) { $media = $this->getLayout()->getBlock('product.info.media'); if ($media) { $media->setTemplate('giftvoucher/product/media.phtml'); } } }
function _prepareLayout() { parent::_prepareLayout(); }
protected function _prepareLayout() { parent::_prepareLayout(); }