我想显示我已经安装的扩展,在产品列表工具栏和产品之间,这是用
完成的< reference name="product_list" >...
但我想显示扩展也,如果没有产品,所以只有文本的类别。我该怎么做呢?如果什么?
Under…< reference name="product_list" >...
你会看到一个<block>
标签,它会指定这是哪个块,进入块类并在那里输入if语句
你试过这种方法吗?
<?php
$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper('catalog/output');
?>
<?php
echo $this->getLayout()->createBlock('core/template')->setTemplate('goodtest/test.phtml')->toHtml();
?>
<?php if(!$_productCollection->count()): ?>
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
<?php else: ?>..........