I'm trying to fix some nasty thing that happened to our store. We currently using Grid only display mode. Category has 192 products and settings are these: - List Mode: Grid Only; - Products per Page on Grid Allowed Values: 9,15,18,24,27,30; - Products per Page on Grid Default Value: 15; - Allow All Products per Page: No - Product listing Sort By: Best Value
It suppose to render 15 product and make all others available on other pages that should be selected through pagination.
Toolbar renders correct, It shows Grid Allowed Values in Dropdown. Pagination is also calculating number of pages correct (13 pages for 15 products per page options), but page rendered with all products from this category at once.
I've tried limit them by adding ?limit=30 to URL, but no reaction.
I've google it and found out that it could happen if collection is loaded before it is limited. Theme is customized, but mostly styles and html.
I even replaced customized /catalog/product/list.phtml with original one (from base), but it is still outputs all products at once.
local.xml is also not changing standard layout. Backend -> Catalog -> Manage Categories - > This Category -> Custom Design Tab is also with no customization.
Here what I have in list.phtml
Beginning:
<?php
$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper('catalog/output');
?>
Grid mode loop:
<?php // Grid Mode ?>
<?php $_collectionSize = $_productCollection->count() ?>
<?php $_columnCount = $this->getColumnCount(); ?>
<?php $i=0; foreach ($_productCollection as $_product): ?>
<?php if ($i++%$_columnCount==0): ?>
<ul class="products-grid text-center row">
<?php endif ?>
/* here is product image, name, price code */
<?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>
Any help will be appreciated.
Thanks
path_to_your_theme/layout/catalog.xml
and see if it helps. Also could you give your live link here? – Adarsh Khatri Apr 17 '15 at 17:31