Magento: How to update Category Name via install script -


how update category name via install script in magento?

install scripts part of application can use same models normal.

$category = mage::getmodel('catalog/category')->load($categoryid); // can alternatively use loadbyatrribute('name', $oldname)  $category->setname($newname)          ->save(); 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

sql - text truncated using perl DBI insert -

php - Pass object by reference or value -