Page 1 of 1

Show ALL products

Posted: Fri Dec 29, 2017 6:38 pm
by chrisgwynne
Hi

I'm using Opencart 2.3.0.2

On the category page there's a drop down for how many products to show on page... 25/50/75/100..

I'm trying to add a SHOW ALL to this list where it'll list all in category... however google searches only bring up a show all products for the whole website and not per category.

Any help?

Re: Show ALL products

Posted: Fri Dec 29, 2017 7:08 pm
by chrisgwynne
So

catalog/controller/product/catalog.php would be for example,

Code: Select all

			$data['limits'] = array();



			$limits = array_unique(array($this->config->get($this->config->get('config_theme') . '_product_limit'), 50, 75, 100, ALL));
But not sure how to put the ALL into practice?

Re: Show ALL products

Posted: Fri Dec 29, 2017 11:38 pm
by straightlight
By using an extension.

Re: Show ALL products

Posted: Sat Dec 30, 2017 2:03 am
by thekrotek
chrisgwynne wrote:
Fri Dec 29, 2017 7:08 pm
But not sure how to put the ALL into practice?
It's not as easy as it seems. You need also to modify getProducts() function in product model.

Re: Show ALL products

Posted: Sat Dec 30, 2017 3:40 am
by chrisgwynne
straightlight wrote:
Fri Dec 29, 2017 11:38 pm
By using an extension.
Thanks. Looked but couldn't find. But thanks. ☺

Re: Show ALL products

Posted: Sat Dec 30, 2017 4:02 am
by thekrotek
chrisgwynne wrote:
Sat Dec 30, 2017 3:40 am
Thanks. Looked but couldn't find. But thanks. ☺
If you didn't find, how to solve even this simple issue, then your coding skills are close to none and you should ask a professional to do this for you. Some tasks require skills.