re
voila le code pour les explications c'est ici
bloggento.fr/afficher-les-sous-categorie...ombres-produit-/3000
$catcourante = Mage::registry('current_category');
// id
$collection = Mage::getModel('catalog/category')->getCategories($catcourante->getEntityId());
foreach($collection as $cat) {
if($cat->getIsActive()) {
$category = Mage::getModel('catalog/category')->load($cat->getEntityId());
// collection de produit visible et statut actif
$prodCollection = Mage::getResourceModel('catalog/product_collection')->addCategoryFilter($category);
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($prodCollection);
Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($prodCollection);
?><!--sortie Html -->
<a href="<?php echo $category->getUrl() ?>"><?php echo $category->getName() ?></a> (<?php echo $prodCollection->count() ?>)<br/>
<?php
}
}
?>