Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • Magento Display Category list with images

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    Comment on it
    <div class="productList mainwidth">
                <ul>
                <?php $&#95;helper = Mage::helper('catalog/category') ?>
                <?php $&#95;categories = $&#95;helper->getStoreCategories() ?>
                <?php $currentCategory = Mage::registry('current&#95;category') ?>
                    <?php if (count($&#95;categories) > 0): ?>
                    <?php foreach($&#95;categories as $&#95;category): 
                     $cat = Mage::getModel('catalog/category')->load($&#95;category->getId()); 
                    ?>
                    <li>
                        <div>
                        <img src="<?=$cat->getImageUrl()?>" alt="">
    
                             <a href="<?php echo $&#95;helper->getCategoryUrl($&#95;category) ?>"><?php echo $&#95;category->getName() ?></a>
                        </div>
                    </li>
                       <?php endforeach; ?>
                     <?php endif; ?>  
    
    Magento

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: