/**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     $this->addOption('product_view', 'Product View');
     $this->addOption('product_list', 'Product List');
     $this->addOption('category_view', 'Category View');
     return parent::_toHtml();
 }
Exemplo n.º 2
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         $this->addOption('fixed', $this->__('Fixed Amount'));
         $this->addOption('percentage', $this->__('Percent'));
     }
     return parent::_toHtml();
 }
Exemplo n.º 3
0
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_getAttributes() as $id => $label) {
             $this->addOption($id, $label);
         }
     }
     return Mage_Core_Block_Html_Select::_toHtml();
 }
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_getCarrierCodes() as $code => $label) {
             $this->addOption($code, addslashes($label));
         }
     }
     return parent::_toHtml();
 }
Exemplo n.º 5
0
 public function _toHtml()
 {
     $options = Mage::getSingleton('adminhtml/system_config_source_cms_page')->toOptionArray();
     $this->addOption('', $this->_helper->__('--Use Default CMS Page--'));
     foreach ($options as $option) {
         $this->addOption($option['value'], $option['label']);
     }
     return parent::_toHtml();
 }
Exemplo n.º 6
0
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_getOptions() as $groupId => $groupLabel) {
             $this->addOption($groupId, addslashes($groupLabel));
         }
     }
     return parent::_toHtml();
 }
Exemplo n.º 7
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_getAttributes() as $id => $label) {
             $htmlLabel = htmlspecialchars($label, ENT_QUOTES);
             $this->addOption($id, $htmlLabel);
         }
     }
     return parent::_toHtml();
 }
Exemplo n.º 8
0
 public function _toHtml()
 {
     if (!$this->getOptions() && $this->_getSourceModelName()) {
         $options = Mage::getModel($this->_getSourceModelName())->toOptionArray();
         foreach ($options as $option) {
             $this->addOption($option['value'], $option['label']);
         }
     }
     return parent::_toHtml();
 }
Exemplo n.º 9
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();
 }
Exemplo n.º 10
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();
 }
Exemplo n.º 11
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         if ($this->_addGroupAllOption) {
             $this->addOption(Mage_Customer_Model_Group::CUST_GROUP_ALL, Mage::helper('customer')->__('ALL GROUPS'));
         }
         foreach ($this->_getCustomerGroups() as $groupId => $groupLabel) {
             $this->addOption($groupId, addslashes($groupLabel));
         }
     }
     return parent::_toHtml();
 }
Exemplo n.º 12
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         if ($this->_addCcAllOption) {
             $this->addOption('ALL', $this->__('ALL Credit Cards'));
         }
         foreach ($this->_getCreditCards() as $code => $label) {
             $this->addOption($code, $label);
         }
     }
     return parent::_toHtml();
 }
 /**
  * Render block HTML
  * @return string
  */
 public function _toHtml()
 {
     $this->_grids = array('products' => 'Mage_Adminhtml_Block_Catalog_Product_Grid');
     $productAttributes = array(array('label' => Mage::helper('adminhtml')->__('Category'), 'value' => $this->_getGridAndColumnValue('products', 'category')), array('label' => Mage::helper('adminhtml')->__('Short Description'), 'value' => $this->_getGridAndColumnValue('products', 'short_description')), array('label' => Mage::helper('adminhtml')->__('Weight'), 'value' => $this->_getGridAndColumnValue('products', 'weight')), array('label' => Mage::helper('adminhtml')->__('Special Price'), 'value' => $this->_getGridAndColumnValue('products', 'special_price')), array('label' => Mage::helper('adminhtml')->__('Tax Class Id'), 'value' => $this->_getGridAndColumnValue('products', 'tax_class_id')));
     $systemProductAttributes = array('name', 'sku', 'status', 'visibility', 'category_ids', 'required_options', 'has_options', 'media_gallery', 'gallery', 'options_container');
     $attributes = Mage::getModel('catalog/product')->getAttributes();
     foreach ($attributes as $attribute) {
         if ($attribute->getAttributeId() && !in_array($attribute->getAttributeCode(), $systemProductAttributes)) {
             $productAttributes[] = array('label' => ucwords(str_replace('_', ' ', $attribute->getAttributeCode())), 'value' => $this->_getGridAndColumnValue('products', $attribute->getAttributeCode()));
         }
     }
     usort($productAttributes, function ($a, $b) {
         return strcmp($a['label'], $b['label']);
     });
     $this->setOptions(array(array('label' => Mage::helper('adminhtml')->__('Products'), 'value' => $productAttributes)));
     return parent::_toHtml();
 }
Exemplo n.º 14
0
 public function _toHtml()
 {
     return trim(preg_replace('/\\s+/', ' ', parent::_toHtml()));
 }
Exemplo n.º 15
0
 protected function _toHtml()
 {
     $this->addOption('gteq', $this->__('Maior ou igual que'));
     $this->addOption('gt', $this->__('Maior que'));
     return parent::_toHtml();
 }
Exemplo n.º 16
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     //Mage::log($this->getData('column'));
     return parent::_toHtml();
 }