Magento 1.9 - How does pagination work on category pagesAdd Custom Collection Pagination to Existing Category PageExclude a specific categoryMagento email queue problemsRecently product view not workingMagento(1.9) pagination issuePagination missing on category pages?Shopping cart is empty after cancel the payment in magento-1.9.1.1How to change dynamic attributes when simple product is selectedMagento 1.9 Pagination IssuePagination missing in Magento 2.1.9 category pagesExport Category name in xml feed Magento 1.9.2

Injective map of abelian group and product of cyclic quotients

Why does adding parentheses prevent an error?

Ending: accusative or not?

Could Sauron have read Tom Bombadil's mind if Tom had held the Palantir?

Content builder HTTPS

Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?

How can I convince my reader that I will not use a certain trope?

Calculating the partial sum of a expl3 sequence

Why is Madam Hooch not a professor?

Analog is Obtuse!

Architecture of networked game engine

Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?

How many codes are possible?

What do you call the action of someone tackling a stronger person?

Is it okay to visually align the elements in a logo?

"Strength" of free falling objects' ground-impact

Going to get married soon, should I do it on Dec 31 or Jan 1?

Does anycast addressing add additional latency in any way?

Can a US President have someone sent to prison?

Layout of complex table

Declining an offer to present a poster instead of a paper

Firefox Arm64 available but RapsPi 3B+ still 32 bit

Does the Paladin's Aura of Protection affect only either her or ONE ally in range?

Mount a folder with a space on Linux



Magento 1.9 - How does pagination work on category pages


Add Custom Collection Pagination to Existing Category PageExclude a specific categoryMagento email queue problemsRecently product view not workingMagento(1.9) pagination issuePagination missing on category pages?Shopping cart is empty after cancel the payment in magento-1.9.1.1How to change dynamic attributes when simple product is selectedMagento 1.9 Pagination IssuePagination missing in Magento 2.1.9 category pagesExport Category name in xml feed Magento 1.9.2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom: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
























  • 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
























  • 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 Jun 17 at 5:19









Aasim Goriya

3,2371 gold badge11 silver badges43 bronze badges




3,2371 gold badge11 silver badges43 bronze badges










asked Jul 20 '17 at 5:44









Magento LearnerMagento Learner

74611 silver badges37 bronze badges




74611 silver badges37 bronze badges












  • 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

3742 silver badges17 bronze badges




3742 silver badges17 bronze badges







  • 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

Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림