Esempio n. 1
0
 public function _prepareLayout()
 {
     parent::_prepareLayout();
     $pager = $this->getLayout()->createBlock('page/html_pager', 'transactions_pager')->setCollection($this->getCollection());
     $this->setChild('transactions_pager', $pager);
     return $this;
 }
Esempio n. 2
0
 /**
  * prepare product info.extrahint block information
  *
  * @return Magestore_RewardPoints_Block_Template
  */
 public function _prepareLayout()
 {
     if ($this->isEnable() && version_compare(Mage::getVersion(), '1.4.1.0', '<')) {
         $productInfo = $this->getLayout()->getBlock('product.info');
         $productInfo->setTemplate('rewardpoints/product/view.phtml');
         $extrahints = $this->getLayout()->createBlock('core/text_list', 'product.info.extrahint');
         $productInfo->setChild('extrahint', $extrahints);
     }
     return parent::_prepareLayout();
 }
Esempio n. 3
0
 /**
  * prepare block's layout
  *
  * @return Magestore_RewardPoints_Block_Name
  */
 public function _prepareLayout()
 {
     $helper = Mage::helper('rewardpoints/customer');
     if (!Mage::getStoreConfig('advanced/modules_disable_output/Magestore_RewardPoints') && $this->isEnable() && $helper->getCustomerId() && $helper->showOnToplink()) {
         $block = $this->getLayout()->getBlock('top.links');
         $accountUrl = Mage::helper('customer')->getAccountUrl();
         $nameBlock = Mage::getBlockSingleton('rewardpoints/name');
         $block->removeLinkByUrl($accountUrl);
         $block->addLink($this->__('My Account') . ' (' . $nameBlock->toHtml() . ')', $accountUrl, $this->__('My Account'), '', '', 10);
     }
     return parent::_prepareLayout();
 }
Esempio n. 4
0
 /**
  * prepare block's layout
  *
  * @return Magestore_RewardPoints_Block_Image
  */
 public function _prepareLayout()
 {
     $this->setTemplate('rewardpoints/image.phtml');
     return parent::_prepareLayout();
 }