/** * Prepare before to html * * @return string */ protected function _toHtml() { if ($this->getItemCount()) { return parent::_toHtml(); } return ''; }
/** * 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 ''; }
/** * Render block html * * @return string */ protected function _toHtml() { $this->setOptionList($this->getConfiguredOptions()); return parent::_toHtml(); }
/** * @return string */ protected function _toHtml() { if ($this->currentCustomer->getCustomerId()) { return parent::_toHtml(); } else { return ''; } }