sports guy:
mc12345678,
I am confused by your post.
In the the first part "Basically, need the total number of items in the group (might be in the header_php.php file or other modules/pages/TOPIC file (TOPIC refers to whatever page is to be displayed)"
I am unsure of what you are asking. Is there a setting in my control panel that gives this number? Would this group number change according to how many products in each category. The total number of items in group is confusing me. There are 10 products per page.
As for your second part: We are displaying 10 items per page.
Okay, so a little background/explanation of where some of the data in ZenCart comes from. Whenever you are on a page in the store, there is a pages folder that is referenced. Files in the pages folder are run for all cases of the current page. If you are looking at all products for example, then the pages folder products_all is referenced. In products_all there is by default a header_php.php file. In that file are various variables that are created from other ZC available information. The applicable folder is also what is provided in the main_page= variable of the URL. So, if you look in the header_php.php file of includes/modules/pages/products_all you will find that a variable entitled $products_all_split is created based on the query of products to be displayed... If you look a little further, you see that $products_all_split is based on the split_page_results class found under includes/classes. As a result, the class has several operations that are available including pulling out the total number of pages and the current page number. so to display Page X of Y, you need only reference the $products_all_split->current_page_number and $products_all_split->number_of_pages for X and Y respectively. Then using standard ZC programming, you should use a language define to address the insert of the new text...
So, back on the terminology, the group generically refers to all of the items in the item type that you are looking at. (So if looking at All items, then the group is all items, if looking at a category, then the group is all items in the category) As described above, the header_php.php file contains variables that are defined, therefore are "in" the file. The TOPIC file relates to what I describe above such as the includes/modules/pages/products_all where products_all would be the TOPIC.
Looking a little further into the php standard, it appears that because the variables defined in the class split_page_results are not specifically defined as private, then they are publicly available using the calls above. So, pretty much it seems that all of the work is done already, just need to insert the code where desired, include CSS references, and then on each page load things are updated.
sports guy:
My client wants his page number to be listed like this:
**Page 3 of 10
**It doesn't look like this page Pagination has the flexibility to layout my page like above. I was hoping to use both, my current page pagination (built in) plus the page number listed below: Page 3 of 10
My client feels the built in page numbering system is not clear. He would like to see what page number you are on in relation to the total number of pages for the product category we are on. Nothing more for this display.
It is also possible to modify the page change/display code so that only 1 page # is displayed with the prev/next options available. Under configuration->Maximum Values, you can change the Prev/Next Navigation Page Links to a value of 1 and will always be provided a next until the end, or a prev until the beginning, of course wouldn't have the total displayed without additional coding.