Split Page Results

Open to all! Ask other shopowners for help.
Post Reply
User avatar
tessthepup
Certified Developer
Posts: 383
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Split Page Results

Post by tessthepup »

Just wondering if there are little snippets or pearls that would hide the split page results if there is only one page of products?

As there are several places that use split page results not just the product listing it would be good to change all in one go if possible.
You do not have the required permissions to view the files attached to this post.


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Split Page Results

Post by ecartz »

It's a template. Override it and change two lines:

https://github.com/CE-PhoenixCart/Phoen ... ng.php#L23
https://github.com/CE-PhoenixCart/Phoen ... ng.php#L92

Change > 0 to be > $num_list, e.g.

Code: Select all

    if ( ($listing_split->number_of_rows > $num_list) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
Note: this is assuming the core behavior. If this doesn't work, you may want to check if your customizations have changed something.
User avatar
tessthepup
Certified Developer
Posts: 383
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Split Page Results

Post by tessthepup »

ecartz wrote: Sun Jan 01, 2023 12:08 am It's a template. Override it and change two lines:

https://github.com/CE-PhoenixCart/Phoen ... ng.php#L23
https://github.com/CE-PhoenixCart/Phoen ... ng.php#L92

Change > 0 to be > $num_list, e.g.

Code: Select all

    if ( ($listing_split->number_of_rows > $num_list) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
Note: this is assuming the core behavior. If this doesn't work, you may want to check if your customizations have changed something.
@ecartz

Thanks line 92 did the trick as I only display the page results at the bottom of the page.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply