Exemplo n.º 1
0
 /**
  * Retrieve value by option
  * Rewrite for Retrieve options by Product Type attribute
  *
  * @param mixed $option
  * @return string
  */
 public function getValueOption($option = null)
 {
     if (!$this->getData('value_option') && $this->getAttribute() == 'type_id') {
         $options = Mage::getSingleton('catalog/product_type')->getAllOption();
         $this->setData('value_option', $options);
     }
     return parent::getValueOption($option);
 }