Exemplo n.º 1
0
 /**
  * Retrieve input type
  * Rewrite for define input type for Product Type attribute
  *
  * @return string
  */
 public function getInputType()
 {
     $attributeCode = $this->getAttribute();
     if ($attributeCode == 'type_id') {
         return 'select';
     }
     return parent::getInputType();
 }
Exemplo n.º 2
0
 /**
  * Retrieve input type
  * Rewrite for define input type for Product Type attribute
  *
  * @return string
  */
 public function getInputType()
 {
     $attributeCode = $this->getAttribute();
     if ($attributeCode == 'type_id') {
         return 'select';
     } else {
         if ($attributeCode == 'category_ids') {
             return 'grid';
         }
     }
     return parent::getInputType();
 }