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? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -