Post by jasonc310771 » Mon Mar 09, 2015 4:20 pm

I am trying to increase the autocomplete list for the categories when I add/edit a product. I tried to create a vqmod, and this changed the limit in admin/controller/catalog/product.php but this did not show more in the list, still only 5. I them completely removed the lines...

Code: Select all

			if (isset($this->request->get['limit'])) {
				$limit = $this->request->get['limit'];
			} else {
				$limit = 5;
			}
and replaced with

Code: Select all

				$limit = 10;
as the code suggested that something in the first part was 'set' and meant that my limit was not increased at all. But still it is not increasing. Is there another admin option to change this without needing to use vqmod. ?

Firstly is this the right file to vqmod to increase the limit for the categories I add to a product ?
And if it is, what am I doing wrong ?

Also out of interest, where is the script that does the actual filtering of categories as I would like to alter this too at some point.

Active Member

Posts

Joined
Fri Mar 01, 2013 6:46 pm

Post by jasonc310771 » Mon Mar 09, 2015 4:39 pm

I have a feeling that the filter is not working as I thought it would. I am only getting a few options 2 or three to choose from so the limit may not be the issue with this. But still want to increase it anyway.

I am wanting to add multiple categories to products, like so...

categories...

Blue Heeler
Mens
Safety
Blue Heeler > Mens
Mens > Blue Heeler
Blue Heeler > Safety
Safety > Blue Heeler
Mens > Safety

All of these are present in the categories list.

But when I try to add...

Safety > Mens

it does not show in teh autocomplete list.

Mens with the parent of Safety is in the categories but never shows up.

I type in Safety and get just three of whats already in the list.

I type in Mens and get 5 of the other categories some of which are already in the list.

I currently have 8 categories for this product. and wish to add the 9th.

What could I be doing wrong ?

Active Member

Posts

Joined
Fri Mar 01, 2013 6:46 pm

Post by paveldiaz1 » Thu Feb 04, 2016 11:22 am

Dear,
Having the same problem, did you find any solution?

Newbie

Posts

Joined
Sat Dec 12, 2015 7:22 am

Post by dazoosh » Wed Feb 10, 2016 1:42 am

You need to edit this value in /admin/controller/catalog/filter.php not product.php.

New member

Posts

Joined
Mon Dec 10, 2012 6:10 pm

Post by Rezman » Fri Mar 25, 2016 11:28 pm

I had this and I had to modify the /admin/controller/catalog/category.php file.
Lint 589

Code: Select all

         $filter_data = array(
            'filter_name' => $this->request->get['filter_name'],
            'sort'        => 'name',
            'order'       => 'ASC',
            'start'       => 0,
            'limit'       => 5  // Increase this to get more results in the autocomplete dropdown. 25 seems like a better value.
         );

Newbie

Posts

Joined
Tue Feb 26, 2013 3:28 am

Post by OSWorX » Fri Mar 25, 2016 11:50 pm

A quick search in the extension store, will bring you all that free module:
Admin List Limit
The limit is based on the value you define for admins in the system settings.

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by trendigo » Thu Oct 20, 2016 2:26 pm

The solution posted by Rezman worked for me in OpenCart 2.2.0.0. Thanks for posting!

Newbie

Posts

Joined
Thu Apr 05, 2012 8:19 pm

Post by Vector224 » Mon Nov 11, 2019 1:39 pm

Rezman wrote:
Fri Mar 25, 2016 11:28 pm
I had this and I had to modify the /admin/controller/catalog/category.php file.
Lint 589

Code: Select all

         $filter_data = array(
            'filter_name' => $this->request->get['filter_name'],
            'sort'        => 'name',
            'order'       => 'ASC',
            'start'       => 0,
            'limit'       => 5  // Increase this to get more results in the autocomplete dropdown. 25 seems like a better value.
         );
Finally! Thanks a lot!

New member

Posts

Joined
Thu May 03, 2018 4:43 am

Who is online

Users browsing this forum: linhmai and 10 guests