I created a page that shows new products added. I would like to show the new items over the past 15 days and a maximum of 100 items. This works just fine, but the problem is that it shows page numbers at the top, but it does not paginate. Changing page numbers does nothing.
[url]http://www.boyscoutstore.com/recently-added.html[/url]
Any ideas?
Thanks ahead of time.
Adam
Just in case someone else has this problem, I received a reply from CS-Cart Support:
In order to resolve this problem please replace the following part of code:
```php
$total = db_get_found_rows();
fn_paginate($params[‘page’], $total, $items_per_page);
```
with this one:
```php
if (!empty($items_per_page)) {
$total = db_get_found_rows();
fn_paginate($params[‘page’], $total, $items_per_page);
} else {
$total = count($products);
}
```
in the “fn.catalog.php” file, located in the “core” directory.
I completed the change and it worked, but it didn’t really do everything I wanted it to do. I really wanted it to keep the page numbers and paginate the items so I didn’t have one long page of items to scroll through. I asked them to help with this and they haven’t gotten back to me yet.
Hope that helps.
Adam