/** * Render customer info as hidden meta data if the customer is logged in, * the module is enabled for the current store. * * @return string */ protected function _toHtml() { if (!$this->helper('customer')->isLoggedIn() || !$this->helper('nosto_tagging')->isModuleEnabled() || !Mage::helper('nosto_tagging/account')->existsAndIsConnected()) { return ''; } return parent::_toHtml(); }
protected function _toHtml() { if (Mage::helper('fieldsmanager')->getStoredDatafor('enable')) { $this->setTemplate("fieldsmanager/customer/edit.phtml"); } return parent::_toHtml(); }
/** * Prepare layout * * @return Mage_Oauth_Block_Customer_Token_List */ protected function _prepareLayout() { /** @var $toolbar Mage_Page_Block_Html_Pager */ $toolbar = $this->getLayout()->createBlock('page/html_pager', 'customer_token.toolbar'); $toolbar->setCollection($this->_collection); $this->setChild('toolbar', $toolbar); parent::_prepareLayout(); return $this; }
public function getData($key = '', $index = null) { $_indexes = array('title', 'uid', 'status_text', 'department', 'created_time', 'filename', 'file_url', 'customer_name', 'order'); if (in_array($key, $_indexes)) { $method = 'get' . $this->_camelize($key, ''); return call_user_func(array($this->getTicket(), $method)); } return parent::getData($key, $index); }
/** * Render customer info as hidden meta data if the customer is logged in, * the module is enabled for the current store. * * @return string */ protected function _toHtml() { /** @var Nosto_Tagging_Helper_Account $helper */ $helper = Mage::helper('nosto_tagging/account'); /** @noinspection PhpUndefinedMethodInspection */ if (!Mage::helper('nosto_tagging')->isModuleEnabled() || !$helper->existsAndIsConnected() || !$this->helper('customer')->isLoggedIn()) { return ''; } return parent::_toHtml(); }
/** * Set the right template depending on the debit type * * @return void */ protected function _construct() { parent::_construct(); /* @var $helper Itabs_Debit_Helper_Data */ $helper = Mage::helper('debit'); if ($helper->getDebitType() == Itabs_Debit_Helper_Data::DEBIT_TYPE_SEPA) { $this->setTemplate('debit/sepa/account/data.phtml'); } else { $this->setTemplate('debit/account/data.phtml'); } }
protected function _prepareLayout() { parent::_prepareLayout(); $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager'); $grid_per_page_values = explode(",", Mage::getStoreConfig('catalog/frontend/grid_per_page_values')); $arr_perpage = array(); foreach ($grid_per_page_values as $value) { $arr_perpage[$value] = $value; } $pager->setAvailableLimit($arr_perpage); $pager->setCollection($this->getCollection()); $this->setChild('pager', $pager); $this->getCollection()->load(); return $this; }
protected function _prepareLayout() { parent::_prepareLayout(); $pager = $this->getLayout()->createBlock('page/html_pager', 'custom.pager'); $grid_per_page_values = explode(",", Mage::helper('marketplace')->getCatatlogGridPerPageValues()); $arr_perpage = array(); foreach ($grid_per_page_values as $value) { $arr_perpage[$value] = $value; } $pager->setAvailableLimit($arr_perpage); $pager->setCollection($this->getCollection()); $this->setChild('pager', $pager); $this->getCollection()->load(); return $this; }
public function __construct() { parent::__construct(); $this->setTemplate('customer/form/newsletter.phtml'); }
protected function _beforeToHtml() { $this->_getCollection()->load()->addReviewSummary(); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->_getCollection()->orderBy('created_time DESC')->load(); return parent::_beforeToHtml(); }
/** * @return Mage_Core_Block_Abstract */ protected function _prepareLayout() { return parent::_prepareLayout(); }
/** * Instantiate pagination * * @return Enterprise_GiftRegistry_Block_Customer_List */ protected function _prepareLayout() { $pager = $this->getLayout()->createBlock('page/html_pager', 'giftregistry.list.pager')->setCollection($this->getEntityCollection())->setIsOutputRequired(false); $this->setChild('pager', $pager); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->getLayout()->getBlock('head')->setTitle(Mage::helper('customer')->__('Address Book')); return parent::_prepareLayout(); }
public function __construct() { Mage_Customer_Block_Account_Dashboard::__construct(); $this->setTemplate('advancednewsletter/customer/subscriptions.phtml'); }
public function _prepareLayout() { return parent::_prepareLayout(); }
/** * Initializes toolbar * * @access protected * @return Mage_Core_Block_Abstract * @author Ultimate Module Creator */ protected function _prepareLayout() { $toolbar = $this->getLayout()->createBlock('page/html_pager', 'customer_popup_comments.toolbar')->setCollection($this->getCollection()); $this->setChild('toolbar', $toolbar); return parent::_prepareLayout(); }
protected function _construct() { parent::_construct(); $this->_mainModel = Mage::getModel('aitcheckoutfields/aitcheckoutfields'); }
function __construct() { parent::__construct(); $this->setTemplate('braintree/creditcard/index.phtml'); $this->braintree = Mage::getModel('braintree/paymentmethod'); }