Ejemplo n.º 1
0
 /**
  * Render the block if needed
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_isAfterPaymentSave()) {
         $this->setTemplate('hss/js.phtml');
         return parent::_toHtml();
     }
     if (!$this->_shouldRender) {
         return '';
     }
     return parent::_toHtml();
 }
Ejemplo n.º 2
0
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->_eventManager->dispatch('payment_form_block_to_html_before', ['block' => $this]);
     return parent::_toHtml();
 }
Ejemplo n.º 3
0
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setChild('cards', $this->getCardsBlock());
     $this->setChild('method_form_block', $this->getMethodFormBlock());
     return parent::_toHtml();
 }