Example #1
0
 public function _toHtml()
 {
     if (Mage::getStoreConfig('niveus_productvideo/settings/enable')) {
         return parent::_toHtml();
     } else {
         return '';
     }
 }
Example #2
0
 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;
 }
Example #4
0
 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');
         }
     }
 }
Example #5
0
 function _prepareLayout()
 {
     parent::_prepareLayout();
 }
Example #6
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
 }