May 18, 2016 11:56 am
image_round

Magento add hidden Product attribute

Magento add hidden Product attribute

$setup->addAttribute('catalog_product', 'seller_name', array(
  'group'     	=> 'Meta Information',
  'input'         => 'hidden',
    'type' 			=> 'text',
    'label'         => 'Seller Name',
  'backend'       => '',
  'visible'       => 0,
  'required'		=> 0,
  'user_defined' => 1,
  'searchable' => 1,
  'filterable' => 0,
  'comparable'	=> 0,
  'visible_on_front' => 1,
  'visible_in_advanced_search'  => 0,
  'is_html_allowed_on_front' => 0,
    'global'        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));

 

Magento add hidden Product attribute

Magento add hidden Product attribute

$setup->addAttribute('catalog_product', 'seller_name', array(
  'group'     	=> 'Meta Information',
  'input'         => 'hidden',
    'type' 			=> 'text',
    'label'         => 'Seller Name',
  'backend'       => '',
  'visible'       => 0,
  'required'		=> 0,
  'user_defined' => 1,
  'searchable' => 1,
  'filterable' => 0,
  'comparable'	=> 0,
  'visible_on_front' => 1,
  'visible_in_advanced_search'  => 0,
  'is_html_allowed_on_front' => 0,
    'global'        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));