Magento设置添加的类别属性的顺序

时间:2013-04-26 00:55:41

标签: magento

如何在此安装脚本之后设置添加的类别属性的顺序

<?php
$installer = $this;
echo "installing";
$installer->startSetup();
$this->addAttribute('catalog_category', 'title_recipe', array(
'group'         => 'General Information',
'input'         => 'text',
'order'      => '999',
'type'          => 'text',
'label'         => 'Title Recipe',
'backend'       => '',
'visible'       => true,
'required'      => false,
'visible_on_front' => true,
'global'        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
));

$this->endSetup();

1 个答案:

答案 0 :(得分:0)

$this->addAttribute('catalog_category', 'title_recipe', array(
'group'         => 'General Information',
'input'         => 'text',
'position'      => 999,
'type'          => 'text',
'label'         => 'Title Recipe',
'backend'       => '',
'visible'       => true,
'required'      => false,
'visible_on_front' => true,
'global'        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
));
相关问题