Advertisement
BeniSt

Category field in magento 1

Oct 26th, 2020
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2. $this->startSetup();
  3. $this->addAttribute( Mage_Catalog_Model_Category::ENTITY, 'extra_cms_block_head', array(
  4.     'group'                    => 'General Information',
  5.     'input'                    => 'textarea',
  6.     'type'                     => 'text',
  7.     'label'                    => 'Extra CMS-Block Head',
  8.     'backend'                  => '',
  9.     'visible'                  => true,
  10.     'wysiwyg_enabled'          => true,
  11.     'is_html_allowed_on_front' => true,
  12.     'required'                 => false,
  13.     'visible_on_front'         => true,
  14.     'global'                   => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
  15. ) );
  16.  
  17. $this->endSetup();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement