Magento News

 

MAGENTO getting the descriptions from a sub category

Hi I’m new to magento and have been trying to set up a static block that displays a list of sub categories within a category. I’ve been succesfull a grabbing the sub-category images and names, but for some reason I can’t seem to get the descriptions to show.

Here’s the code can’t anyone explain why it won’t work and how I can fix it?

I’ve commented out a few lines because I was trying different things to get it to work.

$_helper =
$this->helper(‘catalog/output’);
$category = $this->getCurrentCategory();

getCurrentChildCategories();

?>

<?php foreach ($_categories as $_category): ?> <?php  echo

$this->htmlEscape($_category->getCategoryDescription());?>

        <?php if($_category->getIsActive()): ?>

            <div class="subcategory-image">

                        <a href="<?php echo $_category->getURL()

?>” title=”htmlEscape($_category->getName())
?>”>

                        </a>
                            <?php /* echo "Find this item->" */ ?>

                    </div> <div class="sub-category-container">
                    <h2><a href="<?php echo $_category->getURL()

?>” title=”htmlEscape($_category->getName())
?>”>htmlEscape($_category->getName())
?>

getURL() ?>”
class=”moreLink”>[MORE...]
getDescription() ?>–>

getDescription()):
?>

categoryAttribute($_category, $_description, ‘description’); ?>

–>

MAGENTO getting the descriptions from a sub category

Possibly Related Posts:


 

Leave a Reply