Post by chrisgwynne » Fri Dec 29, 2017 6:38 pm

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?

New member

Posts

Joined
Fri Nov 11, 2016 7:33 am

Post by chrisgwynne » Fri Dec 29, 2017 7:08 pm

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?

New member

Posts

Joined
Fri Nov 11, 2016 7:33 am

Post by straightlight » Fri Dec 29, 2017 11:38 pm

By using an extension.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thekrotek » Sat Dec 30, 2017 2:03 am

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.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Active Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by chrisgwynne » Sat Dec 30, 2017 3:40 am

straightlight wrote:
Fri Dec 29, 2017 11:38 pm
By using an extension.
Thanks. Looked but couldn't find. But thanks. ☺

New member

Posts

Joined
Fri Nov 11, 2016 7:33 am

Post by thekrotek » Sat Dec 30, 2017 4:02 am

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.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Active Member

Posts

Joined
Sun Jul 03, 2016 12:24 am

Who is online

Users browsing this forum: No registered users and 21 guests