Magento Forum

Category Attribute Module Delete
 
kla0005
Member
 
Total Posts:  43
Joined:  2011-10-05
 

Hey Guys,

I followed a guide how to construct a module that creates an extra attribute under categories.

But!
I want to edit the example, so I tried to change:

<?php
$this
->startSetup();
$this->addAttribute(
    
'catalog_category''toolbar_hidden_category', array(
        
'group'     => 'General',
        
'type'      => 'int',
        
'input'     => 'select',
        
'source'    => 'eav/entity_attribute_source_boolean',
        
'label'     => 'Produkt Kategori (Ej CMS)',
        
'required'  => false,
        
'visible'   => true,
        
'default'   => '0',
        
'global'    => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE
    
)
);
$this->endSetup();
?>

to:

<?php
$this
->startSetup();
$this->addAttribute(
    
'catalog_category''produkt_kategori_category', array(
        
'group'     => 'General',
        
'type'      => 'int',
        
'input'     => 'select',
        
'source'    => 'eav/entity_attribute_source_boolean',
        
'label'     => 'Produkt Kategori (Ej CMS)',
        
'required'  => false,
        
'visible'   => true,
        
'default'   => '0',
        
'global'    => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE
    
)
);
$this->addAttribute(
    
'catalog_category''category_icon_category', array(
        
'group'     => 'General',
        
'type'      => 'varchar',
        
'input'     => 'text',
        
'label'     => 'Kategori Icon Class',
        
'required'  => false,
        
'visible'   => true,
        
'default'   => '0',
        
'global'    => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE
    
)
);
$this->endSetup();
?>

But nothing happends?
I tried to delete the module, and paste it in again, but nothing happended.
I tried reindex my shop and all that stuff, and cache is disabled - So! WTF?

I might think its because Magento has registrered, f.eks. in Mage that this module has already been installed by somehow?
But Im’ not sure, and I dont know where to delete the remeber-data?

Is there anyone who can help me how to “flush” my Module, to run the SQL Setup again?

Thanks!
- Jonatan

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top