コード例 #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();
 }
コード例 #2
0
ファイル: Attributes.php プロジェクト: jpbender/mage_virtual
 /**
  * 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();
 }