Post by satriani » Wed May 31, 2017 4:46 am

Hello,
Is there any way to remove pagination only in the search page?
I mean by editing catalog/controller/product/search.php
I want to remove config_product_limit value only for this page.

In other words, is there any way to have the search results page to show all products always?

thank you in advance!

Newbie

Posts

Joined
Tue Mar 05, 2013 3:29 am

Post by opencartboost » Wed May 31, 2017 5:22 am

Instead remove 'config_product_limit', how about edit value config_product_limit to 99999999?
Find :
$limit = $this->config->get('config_product_limit');
replace with :
$limit = '99999999';

Active Member

Posts

Joined
Thu Jul 09, 2015 5:59 am

Post by satriani » Wed May 31, 2017 6:40 am

I did try to replace in around line 62:

if (isset($this->request->get['limit'])) {
$limit = (int)$this->request->get['limit'];
} else {
$limit = $this->config->get('config_product_limit');
}

with:

if (isset($this->request->get['limit'])) {
$limit = '99999999';
} else {
$limit = '99999999';
}


but no luck.....

Newbie

Posts

Joined
Tue Mar 05, 2013 3:29 am

Post by opencartboost » Wed May 31, 2017 7:13 am

Are you sure that is not work?
I am already tested using OC 2.1.0.2 and work fine.

Active Member

Posts

Joined
Thu Jul 09, 2015 5:59 am

Post by IP_CAM » Wed May 31, 2017 7:27 am

he probably just forgot, to reset/clear all the OC Cache Sections first... :D
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by satriani » Wed May 31, 2017 4:32 pm

I tried it,
can you please send me your search.php code or can i send you mine to compare?

I dont know what I am doing wrong

thank you!

Newbie

Posts

Joined
Tue Mar 05, 2013 3:29 am
Who is online

Users browsing this forum: No registered users and 43 guests