Page 1 of 1
opencart 2.1.0.2 search page no pagination
Posted: Wed May 31, 2017 4:46 am
by satriani
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!
Re: opencart 2.1.0.2 search page no pagination
Posted: Wed May 31, 2017 5:22 am
by opencartboost
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';
Re: opencart 2.1.0.2 search page no pagination
Posted: Wed May 31, 2017 6:40 am
by satriani
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.....
Re: opencart 2.1.0.2 search page no pagination
Posted: Wed May 31, 2017 7:13 am
by opencartboost
Are you sure that is not work?
I am already tested using OC 2.1.0.2 and work fine.
Re: opencart 2.1.0.2 search page no pagination
Posted: Wed May 31, 2017 7:27 am
by IP_CAM
he probably just forgot, to reset/clear all the OC Cache Sections first...
Ernie
Re: opencart 2.1.0.2 search page no pagination
Posted: Wed May 31, 2017 4:32 pm
by satriani
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!