How to limit the number of products on home page in Magento
Check your products count and limit to how many products to display on home page.You will have to check to list.phtml file make below changes. Suppose you want to show 4 coloumns and 12 products on the home page.
<?php $_collectionSize = $_productCollection->count() ?>
<?php $_columnCount = $this->getColumnCount(); $_columnCount=4; ?>
<?php $count = 0;?>
<?php $i=0; foreach ($_productCollection as $_product): $count++; ?>
<?php if($count <= 12): ?>
and add <?php endif ?>
before foreach end at the around line 91
Leave a Reply
Want to join the discussion?Feel free to contribute!