Skip to content

Instantly share code, notes, and snippets.

View antiseptikk's full-sized avatar
🎯
Focusing

Thomas Ferney antiseptikk

🎯
Focusing
View GitHub Profile
<?php
$collection = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToFilter('col', array('eq' => $value));
// Add a page size to the result set.
$collection->setPageSize(25);
$pages = $collection->getLastPageNumber();
$currentPage = 1;