First, add this code to "/ecommerce/code/ProductGroup.php"
class ProductGroup_Controller extends Page_Controller {
...
function ProductList() {
if(!isset($_GET['start']) || !is_numeric($_GET['start']) || (int)$_GET['start'] < 1) $_GET['start'] = 0;
$SQL_start = (int)$_GET['start'];
$doSet = DataObject::get(
$callerClass = "Product",
$filter = "`ParentID` = '".$this->ID."'",
$sort = "",
$join = "",
$limit = "{$SQL_start},8"
);
return $doSet ? $doSet : false;
}
In the above statement, the "8" in the $limit variable is how many results you would like per page.
Then add this to "/themes/*_ecommerce/templates/Layout/ProductGroup.ss"
<div id="pages">
<% if ProductList.MoreThanOnePage %>
<p>
<% if ProductList.PrevLink %>
<a href="$ProductList.PrevLink">« Previous</a> |
<% end_if %>
Page:
<% control ProductList.Pages %>
<% if CurrentBool %>
$PageNum
<% else %>
<a href="$Link" title="Go to page $PageNum">$PageNum</a>
<% end_if %>
<% end_control %>
<% if ProductList.NextLink %>
| <a href="$ProductList.NextLink">Next »</a>
<% end_if %>
</p>
<% end_if %>
</div>
*edit*
I cant post a link to the site, because it was done via freelance, and is still under development.