| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Limit the number of items pagination shows? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Limit the number of items pagination shows?
Currently, (and I think the default is) that the site shows 10 maximum items in the pagination list. Ex: If I have 22 pages of product, it looks like this:
< 1 2 3 4 5 6 ... 22 > I would like to change this so that it shows 2 few items, to be this: < 1 2 3 4 ... 22 > Anyone done this or can point me in the right direction? I've spent a couple hours on this with no luck. Thanks!
__________________
-Phil |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Limit the number of items pagination shows?
Here is the base class that pager widgets use:
\XLite\View\Pager\APager I guess the method that you are to decorate is this one: getPagesPerFrame() So, you should check the ItemsList widget class that you want to customize the pager for, determine the pager class from the getPager() method in that widget class, and then decorate the getPagesPerFrame() method in the pager class.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: Limit the number of items pagination shows?
Thank you for your response. You guys are a lot smarter than me. Is there a document that describes decorating a class?
__________________
-Phil |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Limit the number of items pagination shows?
You can find a tutorial here:
https://devs.x-cart.com/getting_started/applying-logic-changes.html
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|