Post by acidrs » Mon Jan 30, 2017 3:56 am

I am trying to change the default 15 products per page on category view. I have looked through guides but they don't seems to apply for OC 2.3.0.2 as the option in the store settings menu is for admin only and doesn't change front end.

Image

What i am trying to do is change the deafult of 15 to say 100. I cannot find which file controls or lists these values to be able to change them.

If anyone could provide any help that would be great.

New member

Posts

Joined
Tue Oct 06, 2015 11:00 am

Post by cyclops12 » Mon Jan 30, 2017 4:23 am

goto admin of your site then extensions/extensions and choose themes from the dropdown
click to edit your theme and you will see Default Items Per Page.....
You can change it there.

But also be aware in catalog/controller/product/category.php you have the array of limits like below

Code: Select all

$limits = array_unique(array($this->config->get($this->config->get('config_theme') . '_product_limit'), 25, 50, 75, 100));
So you may have to alter this to suit your new value

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by acidrs » Mon Jan 30, 2017 5:07 am

cyclops12 wrote:goto admin of your site then extensions/extensions and choose themes from the dropdown
click to edit your theme and you will see Default Items Per Page.....
You can change it there.

But also be aware in catalog/controller/product/category.php you have the array of limits like below

Code: Select all

$limits = array_unique(array($this->config->get($this->config->get('config_theme') . '_product_limit'), 25, 50, 75, 100));
So you may have to alter this to suit your new value
Thank you for your reply. going to extensions>themes and changing the products per page worked like a charm.

New member

Posts

Joined
Tue Oct 06, 2015 11:00 am

Post by buburuzza » Tue Sep 15, 2020 9:23 pm

I have changed limits in:
category.php
special.php
search.php
manufacturer.php

and it does not work.
Opencart 3.0.3.6

New member

Posts

Joined
Wed Aug 05, 2020 6:24 pm

Post by buburuzza » Tue Sep 15, 2020 9:55 pm

It's fixed.

New member

Posts

Joined
Wed Aug 05, 2020 6:24 pm

Post by pissaman@gmail.com » Sat Jan 29, 2022 1:58 am

I need to change it at my search page only. Can you please tell me where you added it and worked?
Opencart 3.0.3.6 + Journal 3


Posts

Joined
Tue Dec 29, 2020 5:20 am

Post by paulfeakins » Tue Feb 01, 2022 11:18 pm

buburuzza wrote:
Tue Sep 15, 2020 9:55 pm
It's fixed.
So please add [SOLVED] to the start of this post title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 172 guests