Hi, Every body
long time no post 🙂
I am recently working on a $this->getLastPageNum()project and I was changing the pagination in order to indicate the total pages by the current collection size
as I knew the functions from product catalogs I wanted to count it myself to use

getLoadedProductCollection()>count

to get the current limit for each products per page and also use the total number of all products

$this->getTotalNum()

and then do the dividing crazy things but there a short easier way that Magneto has to offer and it is only requres one function that do all the stuffs 🙂
this great tool that works in

default/template/page/html/pager.phtml

is

$this->getLastPageNum()

you just need to echo it to make it print on the website

Thanks

2 COMMENTS

  1. Somebody necessarily help to make criacitlly posts I might state. That is the very first time I frequented your web page and to this point? I surprised with the research you made to make this particular submit incredible. Wonderful activity!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.