문제

I am creating a module that slots in a new field in the category editor.

$installer->addAttribute('catalog_category', 'mapped_objects', array(
    'group'             => 'General Information',
    'type'              => 'text',
    'backend'           => '',
    'input_renderer'    => '',
    'label'             => 'Mapped Data',
    'class'             => '',
    'global'            => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
    'visible'           => true,
    'required'          => false,
    'user_defined'      => false,
    'searchable'        => false,
    'filterable'        => false,
    'comparable'        => false,
    'visible_on_front'  => false,
    'unique'            => false,
    'is_configurable'   => false,
    'order'             => 99999
));

The issue is that it would seem that some magento versions use 'General' and some 'General Information' for the Group name.

Can anyone pinpoint when this changed? (which versions are 'general' and which are 'general information')

TIA

도움이 되었습니까?

해결책

app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-0.7.57-0.7.58.php line 84

That will be the Mage_Catalog module's version. You can determine the magento version from it yourself.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top