<?php
/** @var $this Mage_Eav_Model_Entity_Setup */
$this->startSetup();
/** Remove existing atribute */
$this->removeAttribute('catalog_category', 'size_chart');
/** Add new atribute */
$this->addAttribute('catalog_category', 'short_description', array(
'group' => 'General Information',
'input' => 'textarea',
'type' => 'text',
'label' => 'Short Description',
//'source' => 'categoryattributes/source_sizechart',
'backend' => '',
'visible' => 1,
'required' => 0,
'user_defined' => 1,
'note' => 'Category Short Description will be shown in bottom 3 boxes of other category pages',
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));
/** Update existing atribute */
$categoryEntityTypeId = $this->getEntityTypeId('catalog_category');
$this->updateAttribute($categoryEntityTypeId, 'short_description', 'is_wysiwyg_enabled', 0);
$this->updateAttribute($categoryEntityTypeId, 'short_description', 'is_html_allowed_on_front', 0);
$this->endSetup();
?>
http://www.atwix.com/magento/add-category-attribute/
Thanks. very helpful..
ReplyDeleteHow to create a "date" type custom attribute with datepicker in category ?
ReplyDeleteMy email: vivek@devrepublic.nl
Helpful! thanks alot.
ReplyDeleteIn this post is very good. Keep more share your updates. Website Designing Company Bangalore | Website Designing Bangalore
ReplyDeletevery informative post...i have a learned some important information in PHP...thank you for sharing the great information..
ReplyDeleteBest website developers in bangalore
Outsource magento ecommerce services india
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThank you for sharing excellent information. Your website is very cool. Fully useful your blog post... Online Shopping Sites In Ahmedabad
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI am very glad when I read this blog post
ReplyDeleteThanks for sharing valuable information.
Keep on posting...
cloud server india
domain name reseller
web hosting india
Nice blog. Thank you for sharing.
ReplyDeleteMagento 2 support company
Thanks for blog posting. Its a Important topic to read..Great Job!, Keep it up..
ReplyDeletedesign software
invoicing automation
slot siteleri
ReplyDeletekralbet
betpark
tipobet
betmatik
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
WYH2A