0

すべての商品を取得したいのですが、表示される商品は 1 つだけです。どうすればよいですか? list.phtml の私のコードは次のとおりです。

<?php foreach ($_productCollection as $_product): ?>
<div class="product-panel">
    <div class="pro-content">
        <div class="product-1">
            <?php//Product Image ?>
                <div class="pro-img">
                     <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>">
                         <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image'); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
                     </a>    
                </div>
                <p class="text-2">
                    <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
                </p>
                <p class="p-price">
                    <?php echo $this->getPriceHtml($_product, true) ?>
                </p>
        </div>
    </div>
</div>
<?php endforeach ?>
4

0 に答える 0