0

I need to change the display of pagination in the category page.

Current format is : 1 2 3 4 5 next page

and i need to be

1 2 3 4 5 ... 20 next page

where 20 is the number of total pages.

Do you know how can i achieve this?

1

goto app/design/frontend/your_namespace/your_theme/template/page/html/pager.html

Find

<?php if ($this->canShowLast()): ?>
     <li><a class="last" href="<?php echo $this->getLastPageUrl() ?>"><?php echo $this->getLastPageNum() ?></a></li>
<?php endif;?>

In this hide the condition. i.e,

<li><a class="last" href="<?php echo $this->getLastPageUrl() ?>"><?php echo $this->getLastPageNum() ?></a></li>

Just try this. I think you can get the result.

  • Thanks for reply but unfortunately nothing changed – girok Mar 18 '14 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.