protected function _construct() { if ($this->getConfig('enabled') != 1) { return false; } parent::_construct(); }
protected function _construct() { $this->setTemplate('arioem/part/selector.phtml'); // here we need to let Magento independent ARI API gateway know what's the current customer cost Mage::getSingleton('customer/session')->unsCustomerCostPercent()->setCustomerCostPercent(Mage::helper('arioem')->getCustomerCostPercent()); return parent::_construct(); }
protected function _construct() { parent::_construct(); $this->setData('show_amounts', true); $this->setData('use_container', true); $this->setTemplate('page/html/pager.phtml'); }
protected function _construct() { parent::_construct(); $this->clientGoogle = Mage::getSingleton('sociallogin/google_client'); $this->clientFacebook = Mage::getSingleton('sociallogin/facebook_client'); $this->clientTwitter = Mage::getSingleton('sociallogin/twitter_client'); $this->clientLinkedin = Mage::getSingleton('sociallogin/linkedin_client'); if (!$this->_googleEnabled() && !$this->_facebookEnabled() && !$this->_twitterEnabled() && !$this->_linkedinEnabled()) { return; } if ($this->_googleEnabled()) { $this->numEnabled++; } if ($this->_facebookEnabled()) { $this->numEnabled++; } if ($this->_twitterEnabled()) { $this->numEnabled++; } if ($this->_linkedinEnabled()) { $this->numEnabled++; } Mage::register('ced_sociallogin_button_text', $this->__('Login')); $this->setTemplate('ced/sociallogin/checkout.phtml'); }
protected function _construct() { parent::_construct(); $this->setHelper(); $this->setUniqueId(); $this->setTemplate('emerchantpay/redirect/checkout.phtml'); }
protected function _construct() { parent::_construct(); $this->_controller = 'customer'; $this->_blockGroup = 'rewards'; $this->setTemplate('rewards/customer/transfers/reference.phtml'); }
public function _construct() { parent::_construct(); $this->setTemplate('rma/return/history.phtml'); $returns = Mage::getResourceModel('enterprise_rma/rma_grid_collection')->addFieldToSelect('*')->addFieldToFilter('customer_id', Mage::getSingleton('customer/session')->getCustomer()->getId())->setOrder('date_requested', 'desc'); $this->setReturns($returns); }
protected function _construct() { $path = 'magicproduct/identifier/' . $this->getIdentifier(); $data = unserialize(Mage::getStoreConfig($path)); $this->addData($data); parent::_construct(); }
protected function _construct() { parent::_construct(); $account = Mage::getSingleton('affiliateplus/session')->getAccount(); $collection = Mage::getResourceModel('affiliatepluswidget/widget_collection')->addFieldToFilter('account_id', $account->getId()); $this->setCollection($collection); }
protected function _construct() { parent::_construct(); $this->addData(array('cache_lifetime' => false)); // 12 hours $this->addCacheTag(array(Mage_Catalog_Model_Category::CACHE_TAG, Mage_Catalog_Model_Category::CACHE_TAG . '_' . $this->getParentCategoryId())); }
protected function _construct() { parent::_construct(); if ($this->getRequest()->getControllerName() == 'quoteproducts') { $this->_edcType = 'quote_products'; } }
protected function _construct() { parent::_construct(); $this->setTemplate('rewards/product/predictpoints.phtml'); //@nelkaake Wednesday March 10, 2010 10:04:42 PM : New caching functionality $this->setCacheLifetime(86400); }
/** * initialize * * @access public * @author Ultimate Module Creator */ public function _construct() { parent::_construct(); $posts = Mage::getResourceModel('tech_blog/post_collection')->addStoreFilter(Mage::app()->getStore())->addFieldToFilter('status', 1); $posts->setOrder('title', 'asc'); $this->setPosts($posts); }
protected function _construct() { $type = $this->getRequest()->getParam('type'); $this->file = Mage::getModel('devel/file_' . $type, $this->getRequest()->getParam($type)); parent::_construct(); $this->setTemplate('devel/filesystem/edit.phtml'); }
protected function _construct() { parent::_construct(); $accountId = Mage::getSingleton('affiliateplus/session')->getAccount()->getId(); $allTierIds = Mage::helper('affiliatepluslevel')->getAllTierIds($accountId, Mage::app()->getStore()->getId()); if (count($allTierIds)) { $allTierIdsString = implode(',', $allTierIds); } else { $allTierIdsString = 0; } $tierTable = Mage::getModel('core/resource')->getTableName('affiliatepluslevel_tier'); $collection = Mage::getModel('affiliateplus/account')->getCollection()->setStoreId(Mage::app()->getStore()->getId())->setOrder('created_time', 'DESC'); $collection->getSelect()->joinLeft($tierTable, "{$tierTable}.tier_id = main_table.account_id", array('level' => 'level', 'toptier_id' => 'toptier_id'))->where("account_id IN ({$allTierIdsString})"); $request = $this->getRequest(); if ($request->getParam('joined') == 'desc') { $collection->getSelect()->order('created_time DESC'); } elseif ($request->getParam('joined') == 'asc') { $collection->getSelect()->order('created_time ASC'); } elseif ($request->getParam('level') == 'desc') { $collection->getSelect()->order('level DESC'); } elseif ($request->getParam('level') == 'asc') { $collection->getSelect()->order('level ASC'); } else { $collection->getSelect()->order('account_id DESC'); } $this->setCollection($collection); }
protected function _construct() { parent::_construct(); if ($this->hasData('edc_type')) { $this->_edc_type = $this->getData('edc_type'); } }
protected function _construct() { parent::_construct(); $this->setData('show_amounts', true); $this->setData('use_container', true); $this->setTemplate('salesperson/product/list/toolbar/pager.phtml'); }
/** * Sets the unique ID and default data for this instance */ public function _construct() { $this->_uniqueId = self::$_count++; $defaults = array('types' => array('large', 'medium', 'small'), 'type_name' => self::DEFAULT_TYPE_NAME, 'badge_name' => self::DEFAULT_BADGE_NAME, 'default_type' => self::DEFAULT_TYPE, 'extension' => self::DEFAULT_EXTENSION, 'link_url' => $this->getUrl(self::DEFAULT_LINK_URL), 'link_alt' => self::DEFAULT_LINK_ALT, 'link_title' => self::DEFAULT_LINK_TITLE); $this->setData(array_merge($defaults, $this->getData())); parent::_construct(); }
protected function _construct() { parent::_construct(); $account = Mage::getSingleton('affiliateplus/session')->getAccount(); $collection = Mage::getModel('affiliateplus/action')->getCollection(); if ($this->_getHelper()->getSharingConfig('balance') == 'store') { $collection->addFieldToFilter('store_id', Mage::app()->getStore()->getId()); } $collection->addFieldToFilter('account_id', $account->getId())->setCustomGroupSql(true); $collection->getSelect()->columns(array('total_clicks' => 'COUNT(action_id)', 'unique_clicks' => 'SUM(is_unique)')); $request = $this->getRequest(); if ($request->getParam('click') == 'desc') { $collection->getSelect()->order('total_clicks DESC'); } elseif ($request->getParam('click') == 'asc') { $collection->getSelect()->order('total_clicks ASC'); } elseif ($request->getParam('unique') == 'desc') { $collection->getSelect()->order('unique_clicks DESC'); } elseif ($request->getParam('unique') == 'asc') { $collection->getSelect()->order('unique_clicks ASC'); } else { $collection->getSelect()->order('action_id DESC'); } $collection->getSelect()->group(array('referer', 'landing_page', 'store_id')); Mage::dispatchEvent('affiliateplus_prepare_referers_collection', array('collection' => $collection)); $this->setCollection($collection); }
protected function _construct() { parent::_construct(); $this->setData('show_amounts', true); $this->setData('use_container', true); $this->setTemplate('magenthemes/filter/filter_pager.phtml'); }
protected function _construct() { parent::_construct(); $this->clientGoogle = Mage::getSingleton('inchoo_socialconnect/google_oauth2_client'); $this->clientFacebook = Mage::getSingleton('inchoo_socialconnect/facebook_oauth2_client'); $this->clientTwitter = Mage::getSingleton('inchoo_socialconnect/twitter_oauth_client'); $this->clientLinkedin = Mage::getSingleton('inchoo_socialconnect/linkedin_oauth2_client'); if (!$this->_googleEnabled() && !$this->_facebookEnabled() && !$this->_twitterEnabled() && !$this->_linkedinEnabled()) { return; } if ($this->_googleEnabled()) { $this->numEnabled++; } if ($this->_facebookEnabled()) { $this->numEnabled++; } if ($this->_twitterEnabled()) { $this->numEnabled++; } if ($this->_linkedinEnabled()) { $this->numEnabled++; } Mage::register('inchoo_socialconnect_button_text', $this->__('Register'), true); $this->setTemplate('inchoo/socialconnect/register.phtml'); }
protected function _construct() { parent::_construct(); if ($this->horizontalShareEnable() == "1" || $this->verticalShareEnable() == "1") { $this->setTemplate('sociallogin/socialshare.phtml'); } }
public function _construct() { parent::_construct(); $this->enabled = intval(Mage::getStoreConfig('payment/ipcpaygate/invipay_widgets_basketinfo')) && Mage::getStoreConfig('payment/ipcpaygate/active'); $this->dueDateDays = Mage::getStoreConfig('payment/ipcpaygate/invipay_base_duedate'); $this->setTemplate('ipcpaygate/widgets/basketinfo.phtml'); }
protected function _construct() { parent::_construct(); $this->setData('customer', Mage::getSingleton('customer/session')->getCustomer()); $this->setData('website', Mage::app()->getWebsite()); $this->addData(Mage::getModel('points/summary')->loadByCustomer($this->getCustomer())->getData()); }
protected function _construct() { parent::_construct(); $this->setTemplate('aw_kbase/list/sorter.phtml'); self::$_dirVarName = AW_Kbase_Helper_Url::URL_PARAM_NAME_SORT_DIR; self::$_orderVarName = AW_Kbase_Helper_Url::URL_PARAM_NAME_SORT; }
protected function _construct() { parent::_construct(); $this->addData(array('cache_lifetime' => 3600)); // 1 hour $this->addCacheTag(array(Mage_Catalog_Model_Category::CACHE_TAG)); }
protected function _construct() { parent::_construct(); $customer = Mage::getSingleton('customer/session')->getCustomer(); $collection = Mage::getModel('customerreward/transaction')->getCollection()->addFieldToFilter('customer_id', $customer->getId())->setOrder('create_at', 'DESC'); $this->setCollection($collection); }
public function _construct() { if (!$this->hasTemplate()) { $this->setTemplate('justtom/widget/video.phtml'); } parent::_construct(); }
public function _construct() { parent::_construct(); $this->enabled = intval(Mage::getStoreConfig('payment/ipcpaygate/invipay_widgets_footericon')) && intval(Mage::getStoreConfig('payment/ipcpaygate/active')); $this->text = Mage::getStoreConfig('payment/ipcpaygate/title'); $this->setTemplate('ipcpaygate/widgets/footericon.phtml'); }
protected function _construct() { $this->_loadData(); $this->setStores(array()); $this->setLanguages(array()); return parent::_construct(); }