Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

Magento 2, Magento Development, Customization, Extension Development and Integration, Optimization, SEO and Responsive Design

Set page limit in magento


You need to add the following line

$_productCollection->clear()
                   ->setPageSize(100)
                   ->load();


your code looks like this

<?php
    $_productCollection=$this->getLoadedProductCollection();
    $_productCollection->clear()
                   ->setPageSize(100)
                   ->load();
    $_helper = $this->helper('catalog/output');
?>

Please support us, Like us on Facebook.

 

Copyright @ 2017 HKBlog.