Example #1
0
 /**
  * Prepare before to html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->getItemCount()) {
         return parent::_toHtml();
     }
     return '';
 }
Example #2
0
 /**
  * Retrieve block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->isEnabled()) {
         if (!$this->getLayout()) {
             return '';
         }
         foreach ($this->getLayout()->getChildBlocks($this->getNameInLayout()) as $child) {
             if ($child) {
                 $child->setItem($this->getItem());
             }
         }
         return parent::_toHtml();
     }
     return '';
 }
Example #3
0
 /**
  * Render block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setOptionList($this->getConfiguredOptions());
     return parent::_toHtml();
 }
Example #4
0
 /**
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->currentCustomer->getCustomerId()) {
         return parent::_toHtml();
     } else {
         return '';
     }
 }