0

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

<?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();
4

1 回答 1

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,
));
于 2013-04-29T22:19:58.250 回答