Pagination

Phoca Cart - complex e-commerce extension
Pens
Phoca Member
Phoca Member
Posts: 27
Joined: 02 Dec 2024, 17:48

Pagination

Post by Pens »

Hi,

Is it possible to remove the Pagination box from the product view?

Image

From https://artisan-pens.com/index.php/2-al ... s/10-twist

Thanks & regards

Nick
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9820
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Pagination

Post by Benno »

Hi,
yes, this is possible. See images:

1.) The initial situation in the front end with pagination:
Image

2.) Go to the options of your menu item to Phoca Cart component (Categories View) and set the parameters marked below to ‘Use Global’:
Image

3.) Go to the Phoca Cart Options and set the marked parameters to 'Hide'.
Don't forget to increase the ‘Pagination Default Value’ in the Phoca Cart Options so that all products can be displayed even without pagination:
Image

4.) The result in the front end:
Image

Kind regards,
Benno
Pens
Phoca Member
Phoca Member
Posts: 27
Joined: 02 Dec 2024, 17:48

Re: Pagination

Post by Pens »

Thanks very much, is there a way to hide the 'Numbers of items displayed' selection box but retain the 'next/previous' page selector.

Regards

Nick
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9820
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Pagination

Post by Benno »

Hi,
no sorry, to my knowledge this is not possible.

Kind regards,
Benno
Pens
Phoca Member
Phoca Member
Posts: 27
Joined: 02 Dec 2024, 17:48

Re: Pagination

Post by Pens »

Benno wrote: 13 Aug 2025, 15:46 Hi,
no sorry, to my knowledge this is not possible.

Kind regards,
Benno
Thanks, is it possible to make the 'numbers' box smaller, i.e. to not have as much white space after the number?

Best

Nick
Pens
Phoca Member
Phoca Member
Posts: 27
Joined: 02 Dec 2024, 17:48

Re: Pagination

Post by Pens »

And to hide the pagination box when there are less products than the Pagination Default Value ?

Nick
christine
Phoca Hero
Phoca Hero
Posts: 2919
Joined: 28 Nov 2010, 17:20

Re: Pagination

Post by christine »

Hi,

I wanted to send this here:

But I see that there's no pagination etc. anymore.
Have you made any changes to the PHP file? (Override?)

Therefore, it can no longer be verified.
Pens wrote: 13 Aug 2025, 15:12 Thanks very much, is there a way to hide the 'Numbers of items displayed' selection box but retain the 'next/previous' page selector.

Code: Select all

.col-12.col-sm-6.col-md-6ph-center-pagination {
display: none !important;    
}
is it possible to make the 'numbers' box smaller, i.e. to not have as much white space after the number?

Code: Select all

.pagination {
--pagination-padding-x: .30rem !important;
 --pagination-padding-y: .175rem !important; 
}
Values as desired. (Applies to all paginations).

Kind regards
Christine
christine
Phoca Hero
Phoca Hero
Posts: 2919
Joined: 28 Nov 2010, 17:20

Re: Pagination

Post by christine »

Hi,

correct to this in the user.css:

Code: Select all

.col-12.col-sm-6.col-md-6.ph-center-pagination {
display: none !important;    
}
Kind regards
Christine
Pens
Phoca Member
Phoca Member
Posts: 27
Joined: 02 Dec 2024, 17:48

Re: Pagination

Post by Pens »

Hi,
christine wrote: 14 Aug 2025, 11:07 But I see that there's no pagination etc. anymore.
I removed it because it looked messy in categories that had less than the default number of items.
Have you made any changes to the PHP file? (Override?)
No, just the language and user.css in templates.

Thank you very much for the code.
Pens
Phoca Member
Phoca Member
Posts: 27
Joined: 02 Dec 2024, 17:48

Re: Pagination

Post by Pens »

christine wrote: 14 Aug 2025, 11:31 Hi,

correct to this in the user.css:

Code: Select all

.col-12.col-sm-6.col-md-6.ph-center-pagination {
display: none !important;    
}
Thank you, that worked perfectly

Best regards

Nick
Post Reply