Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Row Numbers in reports


Recommended Posts

If you check out your products viewed reports or orders reports, and if you have more than 20 entries, there is obviously a page bar that enables you to view the next 20 entries. I found that the row numbers for page one are 1-20, but also for page 20 (where its displaying results 21-40) the row numbers are still 1-20. I wanted them to update accordingly as well, and put in the following code in my admin/stats_producsts_viewed.php and other report files.


where it says



put the following just under it:


  If ($_GET['page'] && $_GET['page'] > 1) {
	 $rows = $rows  + (MAX_DISPLAY_SEARCH_RESULTS* ($_GET['page']-1));


Now the rows go from 1-20 for page 1, and 21-40 for page 2, etc etc...

Small tip, maybe just a personal preference.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...