B-219 Sec-55 Noida, India
+918010221733

Move a category programmatically

The solution was quite simple, this one doesn’t mess up the paths. However it feels like this method is slower.

$categoryId = 2269;
$parentId = 2268;

$category = Mage::getModel(‘catalog/category’)->load($categoryId);
$category->move($parentId, null);

(Visited 37 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.