Magento 1.9 - How does pagination work on category pages












0















On a category page when I choose to display 12 products per page it still shows all products from that category. Where does this actually get applied to the category product collection?



I'm using Magento 1.9.3.0 with SUPEE-9767 installed.



Here's the code that i'm using to list all products on category pages. and it worked fine before. I don't know what I did wrong.



app/design/frontend/mytheme/default/template/catalog/product/list.pthml



<?php
/**
* Product list template
*
* @see Mage_Catalog_Block_Product_List
*/
?>
<?php
$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper('catalog/output');
?>
<?php if(!$_productCollection->count()): ?>
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
<?php else: ?>
<div class="category-products">
<?php echo $this->getToolbarHtml() ?>
<?php // List mode ?>
<?php if($this->getMode()!='grid'): ?>
<?php $_iterator = 0; ?>
<ol class="products-list" id="products-list">
<?php foreach ($_productCollection as $_product): ?>
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
<?php // Product Image ?>
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(275); ?>" width="275" height="275" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
<ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>
</ul>
</div>
</div>
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>

<?php else: ?>

<?php // Grid Mode ?>

<?php $_collectionSize = $_productCollection->count() ?>
<?php $_columnCount = 4;//$this->getColumnCount(); ?>
<?php $i=0; foreach ($_productCollection as $_product): ?>
<?php if ($i++%$_columnCount==0): ?>
<ul class="products-grid">
<?php endif ?>
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(275); ?>" width="275" height="275" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
<p><?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?></p>

<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
<?php endif; ?>

<?php
$has_category=0;
$categoryIds = $_product->getCategoryIds();
if(count($categoryIds) ){
foreach($categoryIds as $catid) :
$_category = Mage::getModel('catalog/category')->load($catid);
if(strpos(strtolower($_category->getName()), 'hynder') !== false) :
$has_category=1;
endif;
endforeach;
}
?>
<?php
if($_product->getTypeId()=="grouped" && $has_category) :
$_associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);
$ogPrice = 0;
$ogStandardPrice = 0;
$hasSpecialPrice = false;
foreach($_associatedProducts as $_associatedProduct) :
foreach ($_associatedProduct->getTypeInstance(true)->getUsedProducts ( null, $_associatedProduct) as $simple) :
$simpleproduct=Mage::getModel('catalog/product')->load($simple->getId());
$standardProductPrice = $simpleproduct->getPrice();
$productPrice = $simpleproduct->getFinalPrice();

if ($productPrice < $standardProductPrice) {
$hasSpecialPrice = true;
$standardPrice = $standardProductPrice;
if ($ogStandardPrice >= $standardPrice) {
$ogStandardPrice = $standardPrice;
}
}

//if ($ogPrice >= $productPrice) {
if ($ogPrice==0)
$ogPrice = $productPrice;
elseif ($ogPrice >= $productPrice)
$ogPrice = $productPrice;
endforeach;
endforeach;
?>

<?php if ($hasSpecialPrice): ?>
<div class="price-box">
<p class="old-price">
<span class="price-label"><?php echo $this->__('From: ') ?></span>
<span class="price" id="old-price-<?php echo $_product->getId(); ?>"><?php echo Mage::helper('core')->currency($ogStandardPrice,true,false); ?></span>
</p>

<p class="special-price">
<span class="price-label"><?php echo $this->__('From: ') ?></span>
<span class="price" id="product-price-<?php echo $_product->getId(); ?>"><?php echo Mage::helper('core')->currency($ogPrice,true,false); ?></span>
</p>
</div>
<?php else: ?>
<div class="price-box">
<span class="regular-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo $this->__('From: ') ?><?php echo Mage::helper('core')->currency($ogPrice,true,false); ?></span>
</span>
</div>
<?php endif; ?>

<?php elseif($_product->getTypeId()=="grouped") : ?>
<?php
$_associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);
$ogPrice = 0;
$ogQty = 0;
$ogTotalPrice = 0;
$ogStandardPrice = 0;
foreach($_associatedProducts as $_associatedProduct) :
$ogQty = $_associatedProduct->getQty();
$ogStandardPrice += ($_associatedProduct->getPrice() * $ogQty);
$ogPrice = $_associatedProduct->getFinalPrice();
$ogTotalPrice += ($ogPrice * $ogQty);
endforeach;
?>

<div class="price-box">
<?php if ($ogTotalPrice < $ogStandardPrice) : ?>
<p class="old-price">
<span class="price" id="old-price-<?php echo $_product->getId(); ?>">
<?php echo Mage::helper('core')->currency($ogStandardPrice,true,false); ?>
</span>
</p>
<span class="special-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo Mage::helper('core')->currency($ogTotalPrice,true,false); ?></span>
</span>
<?php else: ?>
<span class="regular-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo Mage::helper('core')->currency($ogTotalPrice,true,false); ?></span>
</span>
<?php endif; ?>
</div>
<?php else: ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php endif;?>

<label class="btn" for="modal-1"><img src="<?php echo $this->getSkinUrl('images/van-icon.png');?>" alt="delivery" /></label>

</li>
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
</ul>
<?php endif ?>
<?php endforeach ?>
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
<?php endif; ?>

</div>
<?php endif; ?>









share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Are you using custom collection to list category products ?

    – Ahsan Horani
    Jul 20 '17 at 10:55











  • i'm using getLoadedProductCollection() to list category products. For your info, pagination worked before. I actually think it's after I installed SUPEE-9767, then it stopped working.

    – Magento Learner
    Jul 20 '17 at 11:00











  • just try to revert SUPEE-9767 and see if the same happens

    – Ahsan Horani
    Jul 20 '17 at 11:12











  • Ok, it wasn't SUPEE-9767 caused the issue. something else that I couldn't find out.

    – Magento Learner
    Jul 20 '17 at 13:20











  • where you are setlimit in your code check. i fell that code was changed

    – Rama Chandran M
    Jul 20 '17 at 16:25
















0















On a category page when I choose to display 12 products per page it still shows all products from that category. Where does this actually get applied to the category product collection?



I'm using Magento 1.9.3.0 with SUPEE-9767 installed.



Here's the code that i'm using to list all products on category pages. and it worked fine before. I don't know what I did wrong.



app/design/frontend/mytheme/default/template/catalog/product/list.pthml



<?php
/**
* Product list template
*
* @see Mage_Catalog_Block_Product_List
*/
?>
<?php
$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper('catalog/output');
?>
<?php if(!$_productCollection->count()): ?>
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
<?php else: ?>
<div class="category-products">
<?php echo $this->getToolbarHtml() ?>
<?php // List mode ?>
<?php if($this->getMode()!='grid'): ?>
<?php $_iterator = 0; ?>
<ol class="products-list" id="products-list">
<?php foreach ($_productCollection as $_product): ?>
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
<?php // Product Image ?>
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(275); ?>" width="275" height="275" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
<ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>
</ul>
</div>
</div>
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>

<?php else: ?>

<?php // Grid Mode ?>

<?php $_collectionSize = $_productCollection->count() ?>
<?php $_columnCount = 4;//$this->getColumnCount(); ?>
<?php $i=0; foreach ($_productCollection as $_product): ?>
<?php if ($i++%$_columnCount==0): ?>
<ul class="products-grid">
<?php endif ?>
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(275); ?>" width="275" height="275" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
<p><?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?></p>

<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
<?php endif; ?>

<?php
$has_category=0;
$categoryIds = $_product->getCategoryIds();
if(count($categoryIds) ){
foreach($categoryIds as $catid) :
$_category = Mage::getModel('catalog/category')->load($catid);
if(strpos(strtolower($_category->getName()), 'hynder') !== false) :
$has_category=1;
endif;
endforeach;
}
?>
<?php
if($_product->getTypeId()=="grouped" && $has_category) :
$_associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);
$ogPrice = 0;
$ogStandardPrice = 0;
$hasSpecialPrice = false;
foreach($_associatedProducts as $_associatedProduct) :
foreach ($_associatedProduct->getTypeInstance(true)->getUsedProducts ( null, $_associatedProduct) as $simple) :
$simpleproduct=Mage::getModel('catalog/product')->load($simple->getId());
$standardProductPrice = $simpleproduct->getPrice();
$productPrice = $simpleproduct->getFinalPrice();

if ($productPrice < $standardProductPrice) {
$hasSpecialPrice = true;
$standardPrice = $standardProductPrice;
if ($ogStandardPrice >= $standardPrice) {
$ogStandardPrice = $standardPrice;
}
}

//if ($ogPrice >= $productPrice) {
if ($ogPrice==0)
$ogPrice = $productPrice;
elseif ($ogPrice >= $productPrice)
$ogPrice = $productPrice;
endforeach;
endforeach;
?>

<?php if ($hasSpecialPrice): ?>
<div class="price-box">
<p class="old-price">
<span class="price-label"><?php echo $this->__('From: ') ?></span>
<span class="price" id="old-price-<?php echo $_product->getId(); ?>"><?php echo Mage::helper('core')->currency($ogStandardPrice,true,false); ?></span>
</p>

<p class="special-price">
<span class="price-label"><?php echo $this->__('From: ') ?></span>
<span class="price" id="product-price-<?php echo $_product->getId(); ?>"><?php echo Mage::helper('core')->currency($ogPrice,true,false); ?></span>
</p>
</div>
<?php else: ?>
<div class="price-box">
<span class="regular-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo $this->__('From: ') ?><?php echo Mage::helper('core')->currency($ogPrice,true,false); ?></span>
</span>
</div>
<?php endif; ?>

<?php elseif($_product->getTypeId()=="grouped") : ?>
<?php
$_associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);
$ogPrice = 0;
$ogQty = 0;
$ogTotalPrice = 0;
$ogStandardPrice = 0;
foreach($_associatedProducts as $_associatedProduct) :
$ogQty = $_associatedProduct->getQty();
$ogStandardPrice += ($_associatedProduct->getPrice() * $ogQty);
$ogPrice = $_associatedProduct->getFinalPrice();
$ogTotalPrice += ($ogPrice * $ogQty);
endforeach;
?>

<div class="price-box">
<?php if ($ogTotalPrice < $ogStandardPrice) : ?>
<p class="old-price">
<span class="price" id="old-price-<?php echo $_product->getId(); ?>">
<?php echo Mage::helper('core')->currency($ogStandardPrice,true,false); ?>
</span>
</p>
<span class="special-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo Mage::helper('core')->currency($ogTotalPrice,true,false); ?></span>
</span>
<?php else: ?>
<span class="regular-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo Mage::helper('core')->currency($ogTotalPrice,true,false); ?></span>
</span>
<?php endif; ?>
</div>
<?php else: ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php endif;?>

<label class="btn" for="modal-1"><img src="<?php echo $this->getSkinUrl('images/van-icon.png');?>" alt="delivery" /></label>

</li>
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
</ul>
<?php endif ?>
<?php endforeach ?>
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
<?php endif; ?>

</div>
<?php endif; ?>









share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Are you using custom collection to list category products ?

    – Ahsan Horani
    Jul 20 '17 at 10:55











  • i'm using getLoadedProductCollection() to list category products. For your info, pagination worked before. I actually think it's after I installed SUPEE-9767, then it stopped working.

    – Magento Learner
    Jul 20 '17 at 11:00











  • just try to revert SUPEE-9767 and see if the same happens

    – Ahsan Horani
    Jul 20 '17 at 11:12











  • Ok, it wasn't SUPEE-9767 caused the issue. something else that I couldn't find out.

    – Magento Learner
    Jul 20 '17 at 13:20











  • where you are setlimit in your code check. i fell that code was changed

    – Rama Chandran M
    Jul 20 '17 at 16:25














0












0








0








On a category page when I choose to display 12 products per page it still shows all products from that category. Where does this actually get applied to the category product collection?



I'm using Magento 1.9.3.0 with SUPEE-9767 installed.



Here's the code that i'm using to list all products on category pages. and it worked fine before. I don't know what I did wrong.



app/design/frontend/mytheme/default/template/catalog/product/list.pthml



<?php
/**
* Product list template
*
* @see Mage_Catalog_Block_Product_List
*/
?>
<?php
$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper('catalog/output');
?>
<?php if(!$_productCollection->count()): ?>
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
<?php else: ?>
<div class="category-products">
<?php echo $this->getToolbarHtml() ?>
<?php // List mode ?>
<?php if($this->getMode()!='grid'): ?>
<?php $_iterator = 0; ?>
<ol class="products-list" id="products-list">
<?php foreach ($_productCollection as $_product): ?>
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
<?php // Product Image ?>
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(275); ?>" width="275" height="275" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
<ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>
</ul>
</div>
</div>
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>

<?php else: ?>

<?php // Grid Mode ?>

<?php $_collectionSize = $_productCollection->count() ?>
<?php $_columnCount = 4;//$this->getColumnCount(); ?>
<?php $i=0; foreach ($_productCollection as $_product): ?>
<?php if ($i++%$_columnCount==0): ?>
<ul class="products-grid">
<?php endif ?>
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(275); ?>" width="275" height="275" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
<p><?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?></p>

<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
<?php endif; ?>

<?php
$has_category=0;
$categoryIds = $_product->getCategoryIds();
if(count($categoryIds) ){
foreach($categoryIds as $catid) :
$_category = Mage::getModel('catalog/category')->load($catid);
if(strpos(strtolower($_category->getName()), 'hynder') !== false) :
$has_category=1;
endif;
endforeach;
}
?>
<?php
if($_product->getTypeId()=="grouped" && $has_category) :
$_associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);
$ogPrice = 0;
$ogStandardPrice = 0;
$hasSpecialPrice = false;
foreach($_associatedProducts as $_associatedProduct) :
foreach ($_associatedProduct->getTypeInstance(true)->getUsedProducts ( null, $_associatedProduct) as $simple) :
$simpleproduct=Mage::getModel('catalog/product')->load($simple->getId());
$standardProductPrice = $simpleproduct->getPrice();
$productPrice = $simpleproduct->getFinalPrice();

if ($productPrice < $standardProductPrice) {
$hasSpecialPrice = true;
$standardPrice = $standardProductPrice;
if ($ogStandardPrice >= $standardPrice) {
$ogStandardPrice = $standardPrice;
}
}

//if ($ogPrice >= $productPrice) {
if ($ogPrice==0)
$ogPrice = $productPrice;
elseif ($ogPrice >= $productPrice)
$ogPrice = $productPrice;
endforeach;
endforeach;
?>

<?php if ($hasSpecialPrice): ?>
<div class="price-box">
<p class="old-price">
<span class="price-label"><?php echo $this->__('From: ') ?></span>
<span class="price" id="old-price-<?php echo $_product->getId(); ?>"><?php echo Mage::helper('core')->currency($ogStandardPrice,true,false); ?></span>
</p>

<p class="special-price">
<span class="price-label"><?php echo $this->__('From: ') ?></span>
<span class="price" id="product-price-<?php echo $_product->getId(); ?>"><?php echo Mage::helper('core')->currency($ogPrice,true,false); ?></span>
</p>
</div>
<?php else: ?>
<div class="price-box">
<span class="regular-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo $this->__('From: ') ?><?php echo Mage::helper('core')->currency($ogPrice,true,false); ?></span>
</span>
</div>
<?php endif; ?>

<?php elseif($_product->getTypeId()=="grouped") : ?>
<?php
$_associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);
$ogPrice = 0;
$ogQty = 0;
$ogTotalPrice = 0;
$ogStandardPrice = 0;
foreach($_associatedProducts as $_associatedProduct) :
$ogQty = $_associatedProduct->getQty();
$ogStandardPrice += ($_associatedProduct->getPrice() * $ogQty);
$ogPrice = $_associatedProduct->getFinalPrice();
$ogTotalPrice += ($ogPrice * $ogQty);
endforeach;
?>

<div class="price-box">
<?php if ($ogTotalPrice < $ogStandardPrice) : ?>
<p class="old-price">
<span class="price" id="old-price-<?php echo $_product->getId(); ?>">
<?php echo Mage::helper('core')->currency($ogStandardPrice,true,false); ?>
</span>
</p>
<span class="special-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo Mage::helper('core')->currency($ogTotalPrice,true,false); ?></span>
</span>
<?php else: ?>
<span class="regular-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo Mage::helper('core')->currency($ogTotalPrice,true,false); ?></span>
</span>
<?php endif; ?>
</div>
<?php else: ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php endif;?>

<label class="btn" for="modal-1"><img src="<?php echo $this->getSkinUrl('images/van-icon.png');?>" alt="delivery" /></label>

</li>
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
</ul>
<?php endif ?>
<?php endforeach ?>
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
<?php endif; ?>

</div>
<?php endif; ?>









share|improve this question
















On a category page when I choose to display 12 products per page it still shows all products from that category. Where does this actually get applied to the category product collection?



I'm using Magento 1.9.3.0 with SUPEE-9767 installed.



Here's the code that i'm using to list all products on category pages. and it worked fine before. I don't know what I did wrong.



app/design/frontend/mytheme/default/template/catalog/product/list.pthml



<?php
/**
* Product list template
*
* @see Mage_Catalog_Block_Product_List
*/
?>
<?php
$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper('catalog/output');
?>
<?php if(!$_productCollection->count()): ?>
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
<?php else: ?>
<div class="category-products">
<?php echo $this->getToolbarHtml() ?>
<?php // List mode ?>
<?php if($this->getMode()!='grid'): ?>
<?php $_iterator = 0; ?>
<ol class="products-list" id="products-list">
<?php foreach ($_productCollection as $_product): ?>
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
<?php // Product Image ?>
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(275); ?>" width="275" height="275" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<?php // Product description ?>
<div class="product-shop">
<div class="f-fix">
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product) ?>
<?php endif; ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php if($_product->isSaleable()): ?>
<p><button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
<?php else: ?>
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
<?php endif; ?>
<div class="desc std">
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
</div>
<ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>
</ul>
</div>
</div>
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>

<?php else: ?>

<?php // Grid Mode ?>

<?php $_collectionSize = $_productCollection->count() ?>
<?php $_columnCount = 4;//$this->getColumnCount(); ?>
<?php $i=0; foreach ($_productCollection as $_product): ?>
<?php if ($i++%$_columnCount==0): ?>
<ul class="products-grid">
<?php endif ?>
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(275); ?>" width="275" height="275" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
<p><?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?></p>

<?php if($_product->getRatingSummary()): ?>
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
<?php endif; ?>

<?php
$has_category=0;
$categoryIds = $_product->getCategoryIds();
if(count($categoryIds) ){
foreach($categoryIds as $catid) :
$_category = Mage::getModel('catalog/category')->load($catid);
if(strpos(strtolower($_category->getName()), 'hynder') !== false) :
$has_category=1;
endif;
endforeach;
}
?>
<?php
if($_product->getTypeId()=="grouped" && $has_category) :
$_associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);
$ogPrice = 0;
$ogStandardPrice = 0;
$hasSpecialPrice = false;
foreach($_associatedProducts as $_associatedProduct) :
foreach ($_associatedProduct->getTypeInstance(true)->getUsedProducts ( null, $_associatedProduct) as $simple) :
$simpleproduct=Mage::getModel('catalog/product')->load($simple->getId());
$standardProductPrice = $simpleproduct->getPrice();
$productPrice = $simpleproduct->getFinalPrice();

if ($productPrice < $standardProductPrice) {
$hasSpecialPrice = true;
$standardPrice = $standardProductPrice;
if ($ogStandardPrice >= $standardPrice) {
$ogStandardPrice = $standardPrice;
}
}

//if ($ogPrice >= $productPrice) {
if ($ogPrice==0)
$ogPrice = $productPrice;
elseif ($ogPrice >= $productPrice)
$ogPrice = $productPrice;
endforeach;
endforeach;
?>

<?php if ($hasSpecialPrice): ?>
<div class="price-box">
<p class="old-price">
<span class="price-label"><?php echo $this->__('From: ') ?></span>
<span class="price" id="old-price-<?php echo $_product->getId(); ?>"><?php echo Mage::helper('core')->currency($ogStandardPrice,true,false); ?></span>
</p>

<p class="special-price">
<span class="price-label"><?php echo $this->__('From: ') ?></span>
<span class="price" id="product-price-<?php echo $_product->getId(); ?>"><?php echo Mage::helper('core')->currency($ogPrice,true,false); ?></span>
</p>
</div>
<?php else: ?>
<div class="price-box">
<span class="regular-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo $this->__('From: ') ?><?php echo Mage::helper('core')->currency($ogPrice,true,false); ?></span>
</span>
</div>
<?php endif; ?>

<?php elseif($_product->getTypeId()=="grouped") : ?>
<?php
$_associatedProducts = $_product->getTypeInstance(true)->getAssociatedProducts($_product);
$ogPrice = 0;
$ogQty = 0;
$ogTotalPrice = 0;
$ogStandardPrice = 0;
foreach($_associatedProducts as $_associatedProduct) :
$ogQty = $_associatedProduct->getQty();
$ogStandardPrice += ($_associatedProduct->getPrice() * $ogQty);
$ogPrice = $_associatedProduct->getFinalPrice();
$ogTotalPrice += ($ogPrice * $ogQty);
endforeach;
?>

<div class="price-box">
<?php if ($ogTotalPrice < $ogStandardPrice) : ?>
<p class="old-price">
<span class="price" id="old-price-<?php echo $_product->getId(); ?>">
<?php echo Mage::helper('core')->currency($ogStandardPrice,true,false); ?>
</span>
</p>
<span class="special-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo Mage::helper('core')->currency($ogTotalPrice,true,false); ?></span>
</span>
<?php else: ?>
<span class="regular-price" id="product-price-<?php echo $_product->getId(); ?>">
<span class="price"><?php echo Mage::helper('core')->currency($ogTotalPrice,true,false); ?></span>
</span>
<?php endif; ?>
</div>
<?php else: ?>
<?php echo $this->getPriceHtml($_product, true) ?>
<?php endif;?>

<label class="btn" for="modal-1"><img src="<?php echo $this->getSkinUrl('images/van-icon.png');?>" alt="delivery" /></label>

</li>
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
</ul>
<?php endif ?>
<?php endforeach ?>
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
<?php endif; ?>

</div>
<?php endif; ?>






magento-1.9 category pagination






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 24 '17 at 7:08







Magento Learner

















asked Jul 20 '17 at 5:44









Magento LearnerMagento Learner

697826




697826





bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Are you using custom collection to list category products ?

    – Ahsan Horani
    Jul 20 '17 at 10:55











  • i'm using getLoadedProductCollection() to list category products. For your info, pagination worked before. I actually think it's after I installed SUPEE-9767, then it stopped working.

    – Magento Learner
    Jul 20 '17 at 11:00











  • just try to revert SUPEE-9767 and see if the same happens

    – Ahsan Horani
    Jul 20 '17 at 11:12











  • Ok, it wasn't SUPEE-9767 caused the issue. something else that I couldn't find out.

    – Magento Learner
    Jul 20 '17 at 13:20











  • where you are setlimit in your code check. i fell that code was changed

    – Rama Chandran M
    Jul 20 '17 at 16:25



















  • Are you using custom collection to list category products ?

    – Ahsan Horani
    Jul 20 '17 at 10:55











  • i'm using getLoadedProductCollection() to list category products. For your info, pagination worked before. I actually think it's after I installed SUPEE-9767, then it stopped working.

    – Magento Learner
    Jul 20 '17 at 11:00











  • just try to revert SUPEE-9767 and see if the same happens

    – Ahsan Horani
    Jul 20 '17 at 11:12











  • Ok, it wasn't SUPEE-9767 caused the issue. something else that I couldn't find out.

    – Magento Learner
    Jul 20 '17 at 13:20











  • where you are setlimit in your code check. i fell that code was changed

    – Rama Chandran M
    Jul 20 '17 at 16:25

















Are you using custom collection to list category products ?

– Ahsan Horani
Jul 20 '17 at 10:55





Are you using custom collection to list category products ?

– Ahsan Horani
Jul 20 '17 at 10:55













i'm using getLoadedProductCollection() to list category products. For your info, pagination worked before. I actually think it's after I installed SUPEE-9767, then it stopped working.

– Magento Learner
Jul 20 '17 at 11:00





i'm using getLoadedProductCollection() to list category products. For your info, pagination worked before. I actually think it's after I installed SUPEE-9767, then it stopped working.

– Magento Learner
Jul 20 '17 at 11:00













just try to revert SUPEE-9767 and see if the same happens

– Ahsan Horani
Jul 20 '17 at 11:12





just try to revert SUPEE-9767 and see if the same happens

– Ahsan Horani
Jul 20 '17 at 11:12













Ok, it wasn't SUPEE-9767 caused the issue. something else that I couldn't find out.

– Magento Learner
Jul 20 '17 at 13:20





Ok, it wasn't SUPEE-9767 caused the issue. something else that I couldn't find out.

– Magento Learner
Jul 20 '17 at 13:20













where you are setlimit in your code check. i fell that code was changed

– Rama Chandran M
Jul 20 '17 at 16:25





where you are setlimit in your code check. i fell that code was changed

– Rama Chandran M
Jul 20 '17 at 16:25










1 Answer
1






active

oldest

votes


















0















  • You code has been changed, this is not the default listing script at all (that comes with magento installation).

  • Either changes by custom theme or custom development on the script

  • Add following lines before your last closing (3rd last line in your mentioned code script) :



<div class="toolbar-bottom">
<?php echo $this->getToolbarHtml() ?>
</div>




  • Currently you have no bottom pager specified in your script.

  • By defining above line at the bottom will enable pagination on listing page

  • While adding same line of code <?php echo $this->getToolbarHtml() ?> above main listing div enables the toolbar (on top of products listing)

  • In your case I can clearly see bottom pager is missing

  • i.e. Pagination is missing


I hope this will resolve your problem.



EDIT :




  • Further you can refer to my answer here about how to apply custom pagination on a collection






share|improve this answer





















  • 1





    The OP has already added pagination on top of his product listing. No need to add it again at bottom of the listing.

    – Jaimin Sutariya
    Jul 24 '17 at 7:54











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f184587%2fmagento-1-9-how-does-pagination-work-on-category-pages%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0















  • You code has been changed, this is not the default listing script at all (that comes with magento installation).

  • Either changes by custom theme or custom development on the script

  • Add following lines before your last closing (3rd last line in your mentioned code script) :



<div class="toolbar-bottom">
<?php echo $this->getToolbarHtml() ?>
</div>




  • Currently you have no bottom pager specified in your script.

  • By defining above line at the bottom will enable pagination on listing page

  • While adding same line of code <?php echo $this->getToolbarHtml() ?> above main listing div enables the toolbar (on top of products listing)

  • In your case I can clearly see bottom pager is missing

  • i.e. Pagination is missing


I hope this will resolve your problem.



EDIT :




  • Further you can refer to my answer here about how to apply custom pagination on a collection






share|improve this answer





















  • 1





    The OP has already added pagination on top of his product listing. No need to add it again at bottom of the listing.

    – Jaimin Sutariya
    Jul 24 '17 at 7:54
















0















  • You code has been changed, this is not the default listing script at all (that comes with magento installation).

  • Either changes by custom theme or custom development on the script

  • Add following lines before your last closing (3rd last line in your mentioned code script) :



<div class="toolbar-bottom">
<?php echo $this->getToolbarHtml() ?>
</div>




  • Currently you have no bottom pager specified in your script.

  • By defining above line at the bottom will enable pagination on listing page

  • While adding same line of code <?php echo $this->getToolbarHtml() ?> above main listing div enables the toolbar (on top of products listing)

  • In your case I can clearly see bottom pager is missing

  • i.e. Pagination is missing


I hope this will resolve your problem.



EDIT :




  • Further you can refer to my answer here about how to apply custom pagination on a collection






share|improve this answer





















  • 1





    The OP has already added pagination on top of his product listing. No need to add it again at bottom of the listing.

    – Jaimin Sutariya
    Jul 24 '17 at 7:54














0












0








0








  • You code has been changed, this is not the default listing script at all (that comes with magento installation).

  • Either changes by custom theme or custom development on the script

  • Add following lines before your last closing (3rd last line in your mentioned code script) :



<div class="toolbar-bottom">
<?php echo $this->getToolbarHtml() ?>
</div>




  • Currently you have no bottom pager specified in your script.

  • By defining above line at the bottom will enable pagination on listing page

  • While adding same line of code <?php echo $this->getToolbarHtml() ?> above main listing div enables the toolbar (on top of products listing)

  • In your case I can clearly see bottom pager is missing

  • i.e. Pagination is missing


I hope this will resolve your problem.



EDIT :




  • Further you can refer to my answer here about how to apply custom pagination on a collection






share|improve this answer
















  • You code has been changed, this is not the default listing script at all (that comes with magento installation).

  • Either changes by custom theme or custom development on the script

  • Add following lines before your last closing (3rd last line in your mentioned code script) :



<div class="toolbar-bottom">
<?php echo $this->getToolbarHtml() ?>
</div>




  • Currently you have no bottom pager specified in your script.

  • By defining above line at the bottom will enable pagination on listing page

  • While adding same line of code <?php echo $this->getToolbarHtml() ?> above main listing div enables the toolbar (on top of products listing)

  • In your case I can clearly see bottom pager is missing

  • i.e. Pagination is missing


I hope this will resolve your problem.



EDIT :




  • Further you can refer to my answer here about how to apply custom pagination on a collection







share|improve this answer














share|improve this answer



share|improve this answer








edited Jul 24 '17 at 7:57

























answered Jul 24 '17 at 7:52









Ahsan HoraniAhsan Horani

337217




337217








  • 1





    The OP has already added pagination on top of his product listing. No need to add it again at bottom of the listing.

    – Jaimin Sutariya
    Jul 24 '17 at 7:54














  • 1





    The OP has already added pagination on top of his product listing. No need to add it again at bottom of the listing.

    – Jaimin Sutariya
    Jul 24 '17 at 7:54








1




1





The OP has already added pagination on top of his product listing. No need to add it again at bottom of the listing.

– Jaimin Sutariya
Jul 24 '17 at 7:54





The OP has already added pagination on top of his product listing. No need to add it again at bottom of the listing.

– Jaimin Sutariya
Jul 24 '17 at 7:54


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f184587%2fmagento-1-9-how-does-pagination-work-on-category-pages%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

what is the purpose of having a “thru cal” on RF PCB?

What does Gandalf whisper to the Moth on the Orthanc in Isengard?

magento2 creating a lot of catalogrule_product_temp tables