我没有从儿童类别中获得所有图像,请帮助我。
潘卡伊
<table id="t2">
<tr>
<?php foreach ($this->getCurrentCategory()->getChildrenCategories() as $_subcat): ?>
<td>
<div class="product_2">
<?php if($_imgUrl): ?>
<div class="product_img2"><a href="<?php echo $_subcat->getUrl() ?>"><img src="<?php echo $_category->getImageUrl() ?>" alt="<?php echo Mage::helper('catalog/output')->categoryAttribute($_subcat, $_subcat->getName(), 'name') ?>" /></a></div><p class="text-1"><a href="<?php echo $_subcat->getUrl() ?>"><?php echo Mage::helper('catalog/output')->categoryAttribute($_subcat, $_subcat->getName(), 'name') ?></a></p>
</div>
</td>
<?php endif; ?>
<?php endforeach ?>
</tr>
</table>