<?php$rootCategoryId = Mage::app()->getStore()->getRootCategoryId();$_category = Mage::getModel(‘catalog/category’) ->load($rootCategoryId);// You can then get all of the top level categories using:$_subcategories = $_category->getChildrenCategories();?>
# Mass UnexcludeUPDATE`catalog_product_entity_media_gallery_value` SET `disabled` = ‘0’ WHERE `disabled` = ‘1’;# Mass ExcludeUPDATE`catalog_product_entity_media_gallery_value` SET `disabled` = ‘1’ WHERE `disabled` =…
<?php// input is $_product and result is iterating child products$conf = Mage::getModel(‘catalog/product_type_configurable’) ->setProduct($_product);$col = $conf->getUsedProductCollection()->addAttributeToSelect(‘*’)->addFilterByRequiredOptions();foreach($col as $simple_product){ var_dump($simple_product->getId());}?>