Ejemplo n.º 1
0
 protected function _isAvailableAttribute($type, $attribute)
 {
     if (parent::_isAvailableAttribute($type, $attribute)) {
         // @todo for this and editability, put allowed models rather than excluded ones ?
         $excludedModels = array('catalog/product_attribute_backend_media', 'catalog/product_attribute_backend_recurring', 'catalog/product_attribute_backend_tierprice');
         if ($attribute->getFrontend()->getInputType() != 'gallery' && !in_array($attribute->getBackendModel(), $excludedModels)) {
             return true;
         }
     }
     return false;
 }