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.
Split Page Results
- 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
You do not have the required permissions to view the files attached to this post.
-
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
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.Note: this is assuming the core behavior. If this doesn't work, you may want to check if your customizations have changed something.
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')) ) {- 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
@ecartzecartz 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.Note: this is assuming the core behavior. If this doesn't work, you may want to check if your customizations have changed something.Code: Select all
if ( ($listing_split->number_of_rows > $num_list) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
Thanks line 92 did the trick as I only display the page results at the bottom of the page.