/** * 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(); }
/** * 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(); }