Example #1
0
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!$this->getOptions()) {
         $this->setOptions($this->countryHelper->getCountries());
     }
     return parent::_toHtml();
 }
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_getTemplates() as $template) {
             $this->addOption($template['value'], $template['label']);
         }
     }
     return parent::_toHtml();
 }
Example #3
0
 /**
  * Render block HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (!$this->getOptions()) {
         $this->setOptions($this->ccTypeHelper->getCcTypes());
     }
     $this->setClass('cc-type-select');
     $this->setExtraParams('multiple="multiple"');
     return parent::_toHtml();
 }
Example #4
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_metaSources as $groupId => $groupLabel) {
             $this->addOption($groupId, addslashes($groupLabel));
         }
     }
     return parent::_toHtml();
 }
Example #5
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_getCountries() as $country) {
             if (isset($country['value']) && $country['value'] && isset($country['label']) && $country['label']) {
                 $this->addOption($country['value'], $country['label']);
             }
         }
     }
     return parent::_toHtml();
 }
Example #6
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_getCcTypes() as $country) {
             if (isset($country['value']) && $country['value'] && isset($country['label']) && $country['label']) {
                 $this->addOption($country['value'], $country['label']);
             }
         }
     }
     $this->setExtraParams('multiple="multiple" style="height:80px;"');
     return parent::_toHtml();
 }
 /**
  * Return output in one line.
  *
  * @return string
  */
 public function _toHtml()
 {
     return trim(preg_replace('/\\s+/', ' ', parent::_toHtml()));
 }
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         if ($this->_addGroupAllOption) {
             $this->addOption($this->groupManagement->getAllCustomersGroup()->getId(), __('ALL GROUPS'));
         }
         foreach ($this->_getCustomerGroups() as $groupId => $groupLabel) {
             $this->addOption($groupId, addslashes($groupLabel));
         }
     }
     return parent::_toHtml();
 }
 protected function _toHtml()
 {
     $this->setName($this->getInputName());
     $this->setClass('select');
     return trim(preg_replace('/\\s+/', ' ', parent::_toHtml()));
 }
Example #10
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         if ($this->_addGroupAllOption) {
             $this->addOption(\Magento\Customer\Service\V1\CustomerGroupServiceInterface::CUST_GROUP_ALL, __('ALL GROUPS'));
         }
         foreach ($this->_getCustomerGroups() as $groupId => $groupLabel) {
             $this->addOption($groupId, addslashes($groupLabel));
         }
     }
     return parent::_toHtml();
 }