/**
  * Initialize block's cache
  */
 protected function _construct()
 {
     parent::_construct();
     $this->addColumnCountLayoutDepend('empty', 6)->addColumnCountLayoutDepend('one_column', 5)->addColumnCountLayoutDepend('two_columns_left', 4)->addColumnCountLayoutDepend('two_columns_right', 4)->addColumnCountLayoutDepend('three_columns', 3);
     $this->addData(array('cache_lifetime' => 86400));
     $this->addCacheTag(Mage_Catalog_Model_Product::CACHE_TAG);
 }
Пример #2
0
 /**
  * _construct
  */
 public function _construct()
 {
     parent::_construct();
     $this->addPriceBlockType('simple', 'catalog/product_price', 'merchandiser/new/category/price.phtml');
     $this->addPriceBlockType('grouped', 'catalog/product_price', 'merchandiser/new/category/price-grouped.phtml');
     $this->addPriceBlockType('configurable', 'catalog/product_price', 'merchandiser/new/category/price-configurable.phtml');
 }
Пример #3
0
 protected function _construct()
 {
     if ($this->getConfig('enabled') != 1) {
         return false;
     }
     parent::_construct();
 }
Пример #4
0
 public function _construct()
 {
     parent::_construct();
     if ($numberProduct = Mage::getStoreConfig('sm_featured/general/number_product')) {
         $this->setProductsCount($numberProduct);
     }
 }
Пример #5
0
 protected function _construct()
 {
     parent::_construct();
     if (!self::$_helper && Mage::helper('core')->isModuleEnabled('AW_Blog')) {
         self::$_helper = Mage::helper('blog');
     }
     $this->setData('cache_tags', array(self::CACHE_GROUP, Mage_Core_Block_Template::CACHE_GROUP));
 }
 protected function _construct()
 {
     //Want to change/override this? No problem. Override this block, override the constructor,
     //OR, if using it as a widget, create a config so you can specify what template you want to use
     $this->setTemplate('doghouse/carousel/carousel.phtml');
     $this->setCacheLifetime(3600);
     return parent::_construct();
 }
Пример #7
0
 protected function _construct()
 {
     if ($this->getCacheLifeTime()) {
         $this->addData(array('cache_lifetime' => $this->getCacheLifeTime(), 'cache_tags' => array(Mage_Catalog_Model_Product::CACHE_TAG)));
     } else {
         $this->addData(array('cache_lifetime' => 7200, 'cache_tags' => array(Mage_Catalog_Model_Product::CACHE_TAG)));
     }
     parent::_construct();
 }
 public function _construct()
 {
     $this->setCategoryId(Mage::getStoreConfig('homepageproducts/general/category'));
     $this->setItemLimit(Mage::getStoreConfig('homepageproducts/general/items'));
     parent::_construct();
     $this->addData(array('cache_lifetime' => 43200));
     // 12 hours
     $this->addCacheTag(array(Mage_Catalog_Model_Product::CACHE_TAG));
 }
Пример #9
0
 protected function _construct()
 {
     if (!$this->hasData('template')) {
         $this->setData('template', 'alsobuy/product/alsobuy.phtml');
     }
     parent::_construct();
     $this->addData(array('cache_lifetime' => 86400));
     $this->addCacheTag(Mage_Catalog_Model_Product::CACHE_TAG);
     $this->addCacheTag(Mngr_AlsoBuy_Model_Indexer_Similarity::CACHE_TAG);
 }
Пример #10
0
 function _construct()
 {
     parent::_construct();
     $templates = Mage::getModel('thememanager/widget_view')->getTemplates();
     $template = $this->getTemplate();
     if (isset($templates[$template])) {
         $this->setTemplate($templates[$template]['phtml']);
         $this->products_collection = $this->getProductsCollection();
     }
 }
Пример #11
0
 protected function _construct()
 {
     parent::_construct();
     $cacheLifeTime = $this->getCacheLifeTime() ? $this->getCacheLifeTime() : 7200;
     $cacheTags = array(Mage_Catalog_Model_Product::CACHE_TAG, Mage_Cms_Model_Page::CACHE_TAG, 'em_bestsellerproducts');
     if ($this->ShowLabel() && Mage::helper('core')->isModuleEnabled('EM_Productlabels')) {
         $cacheTags[] = EM_Productlabels_Model_Productlabels::CACHE_TAG;
     }
     $this->addData(array('cache_lifetime' => $cacheLifeTime, 'cache_tags' => $cacheTags));
 }
Пример #12
0
 protected function _construct()
 {
     parent::_construct();
     $cacheLifeTime = $this->getCacheLifeTime() ? $this->getCacheLifeTime() : 86400;
     $cacheTags = array(Mage_Catalog_Model_Product::CACHE_TAG, Mage_Cms_Model_Page::CACHE_TAG);
     if ($this->getShowFrontend('label') && Mage::helper('core')->isModuleEnabled('EM_Productlabels')) {
         $cacheTags[] = EM_Productlabels_Model_Productlabels::CACHE_TAG;
     }
     /* If get best seller product, add 'ft_bestseller' cache tag */
     if ($this->getData('type_filter') == 2) {
         $cacheTags[] = self::BEST_SELLER_CACHE_TAG;
     }
     $this->addData(array('cache_lifetime' => $cacheLifeTime, 'cache_tags' => $cacheTags));
 }
 /**
  * Internal constructor, that is called from real constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->addItemPriceBlockType('default', 'wishlist/render_item_price', 'wishlist/render/item/price.phtml');
 }
Пример #14
0
 protected function _construct()
 {
     parent::_construct();
     $this->setData('cache_tags', array(self::CACHE_GROUP, Mage_Core_Block_Template::CACHE_GROUP));
 }
Пример #15
0
 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('webshopapps_wsalogger/view.phtml');
     $this->setNotificationId($this->getRequest()->getParam('notification_id', false));
 }
Пример #16
0
 /**
  * Internal constructor, that is called from real constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->addItemPriceBlockType('default', 'Mage_Wishlist_Block_Render_Item_Price', 'render/item/price.phtml');
 }
Пример #17
0
 /**
  * Initialize block's cache
  */
 protected function _construct()
 {
     parent::_construct();
     $this->addColumnCountLayoutDepend('two_columns_left', 3)->addColumnCountLayoutDepend('two_columns_right', 3);
     $this->addData(array('cache_lifetime' => 86400, 'cache_tags' => array(Mage_Catalog_Model_Product::CACHE_TAG)));
 }
Пример #18
0
 protected function _construct()
 {
     parent::_construct();
 }
Пример #19
0
 protected function _construct()
 {
     parent::_construct();
     $this->setReviewId($this->getRequest()->getParam('id', false));
 }
Пример #20
0
 protected function _construct()
 {
     parent::_construct();
     $this->addData(array('cache_lifetime' => 86400, 'cache_tags' => array('ecommerceofficehomepage_home_toprated')));
 }
 protected function _construct()
 {
     parent::_construct();
     self::$productPrice = Mage::app()->getLayout()->createBlock('catalog/product_price');
 }
Пример #22
0
 /**
  * Internal constructor
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_initBlocks();
 }
 /**
  * Set a default template
  */
 protected function _construct()
 {
     $this->setTemplate('vinaikopp/productcategories/list.phtml');
     parent::_construct();
 }
Пример #24
0
 /**
  * Initialization
  */
 protected function _construct()
 {
     $this->_serializer = new Varien_Object();
     //$this->addData('type','computer');
     parent::_construct();
 }
Пример #25
0
 /**
  * Initialize block
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTagId(Mage::registry('tagId'));
 }
Пример #26
0
 /**
  * Initialization
  */
 protected function _construct()
 {
     $this->_serializer = new Varien_Object();
     $this->addData(array('cache_lifetime' => 86400, 'cache_tags' => array(Mage_Catalog_Model_Product::CACHE_TAG)));
     parent::_construct();
 }
Пример #27
0
 protected function _construct()
 {
     parent::_construct();
     $this->addData(array('cache_lifetime' => 300, 'cache_tags' => array(Mage_Catalog_Model_Product::CACHE_TAG)));
 }
Пример #28
0
 /**
  * Initialize block's cache
  */
 protected function _construct()
 {
     parent::_construct();
     $this->addColumnCountLayoutDepend('empty', 6)->addColumnCountLayoutDepend('one_column', 5)->addColumnCountLayoutDepend('two_columns_left', 4)->addColumnCountLayoutDepend('two_columns_right', 4)->addColumnCountLayoutDepend('three_columns', 3);
 }
 public function _construct()
 {
     $this->setTemplate('dailydeal/sidebar.phtml');
     return parent::_construct();
 }
Пример #30
0
 public function __construct()
 {
     parent::_construct();
     $this->setData('bestsellers', Mage::getStoreConfig('shoppersettings/catalog/bestsellers'));
 }