Where can I change the limit of products displayed via pagination - the default setting is 12 - but can't find out where to change this.
Also
Is there a clear set of systems documentation to follow for amending opencart?
No simple answer to this one…
Do search for limit in your code and you'll find various files and places — sorry, I was looking into this for the backend, so I can't give a better answer.
Also, it may depend on several lines of code! In my case (backend 1.2.6) it was
/admin/controller/catalog/product.php
line 214
and line 320
I add my own coments, so I can finde my changes to the code
Hope this will get you started ;-)
Cheers
Do search for limit in your code and you'll find various files and places — sorry, I was looking into this for the backend, so I can't give a better answer.
Also, it may depend on several lines of code! In my case (backend 1.2.6) it was
/admin/controller/catalog/product.php
line 214
Code: Select all
$data = array(
'name' => @$this->request->get['filter_name'],
'model' => @$this->request->get['filter_model'],
'status' => @$this->request->get['filter_status'],
'sort' => $sort,
'order' => $order,
### AdminSection - Setting for pagination
#'start' => ($page - 1) * 10,
'start' => ($page - 1) * 50,
#'limit' => 10
'limit' => 50
);
Code: Select all
### AdminSection - Setting for pagination
$pagination = new Pagination();
$pagination->total = $product_total;
$pagination->page = $page;
$pagination->limit = 50;
Hope this will get you started ;-)
Cheers
Thanks for the info.
Have changed this value - but does not seem to affect the number of products displayed.
Anyone else help?
Have changed this value - but does not seem to affect the number of products displayed.
Anyone else help?
If u want to change the limit on the fronted for example in category.tpl
your answer is here : http://forum.opencart.com/viewtopic.php ... +12#p42205
Greetings
boriscm
your answer is here : http://forum.opencart.com/viewtopic.php ... +12#p42205
Greetings
boriscm
That's because the code is for products, not the customer list. Make the same changes tosmorelli wrote:Strange. I have tried this for the admin/ Sales/Customer List and it didn't change anything. Strange indeed.
/admin/controller/customer/customer.php
to achieve the same result.
-Ryan
Forgot to mention I already did that and still got no results. I did find what I was looking for. It was in /admin/controller/sale/customer/customer.php instead.That's because the code is for products, not the customer list. Make the same changes to
/admin/controller/customer/customer.php
to achieve the same result.
Thanks!
Who is online
Users browsing this forum: No registered users and 324 guests