我创建了一个这样的属性......
$installer = $this;
$installer->startSetup();
/* $installer Services_Issue_Model_Mysql4_Setup */
$installer->addAttribute('catalog_product', 'alice_id', array(
'backend' => '',
'frontend' => '',
'type' => 'text',
'visible' => true,
'label' => 'Alice Id',
'note' => 'Alice Id.',
'input' => 'text',
'unique' => true,
'source' => '',
'global' => true,
'visible' => true,
'required' => true,
'user_defined' => true,
'default' => '',
'visible_on_front' => true,
'apply_to' => 'simple,configurable,default',
'group' => 'Special Attributes',
'used_in_product_listing' => true,
'frontend_class' => '',
'class' => '',
'is_html_allowed_on_front' => true,
'searchable' => true
));
$installer->endSetup();
现在我需要将它移动到产品信息页面中的另一个组。所以我试过这个没有任何成功。
$installer = $this;
$installer->startSetup();
/* $installer Services_Issue_Model_Mysql4_Setup */
$installer->updateAttribute('catalog_product', 'alice_id', 'note', 'Product SKU for Alice.com third-party cart & checkout.');
/* - move between groups not possible with updateAttribute - */
$installer->updateAttribute('catalog_product', 'alice_id', 'group', 'Additional Attributes');
$installer->endSetup();
谁能告诉我如何做到这一点?