On my category pages I want to display the product description under the product if it belongs to a specific category. This is what I've tried:
<?php
$catdesc=true;
$categoryId = $_product->getCategoryId();
$category = Mage::getModel('catalog/product')->load($categoryId);
if($category->getCatdesc()==428){
$catdesc=true;
break;
}
?>
<?php if($catdesc): ?>
<span><?php echo $_product->getDescription(); ?></span>
<?php endif; ?>
It get's the product description alright, however for any product- whether it belongs to the specific category or not. Any ideas what I'm doing wrong?