php - Magento attribute file upload -
is possible attribute file upload (not image)? tryed this:
<?php $installer = $this; $installer->startsetup(); $attribute = array( 'type' => 'file', 'label'=> 'catalog pdf', 'input' => 'file', 'global' => mage_catalog_model_resource_eav_attribute::scope_global, 'visible' => true, 'required' => false, 'user_defined' => true, 'default' => "", 'group' => "general information" ); $installer->addattribute('catalog_category', 'catalog_pdf', $attribute); $installer->endsetup();
it's showing file upload in category, wrong because after installation subcategories not showing (ajax problem), , in frontend categories view "there has been error processing request"
file upload attribute type not present. so, sql run on setup creating issue
try like: 'type' => 'varchar', 'input' => 'image'
this makes input type file upload process in default image processing 'backend_model' => 'xxx'
here can specify processed
Comments
Post a Comment