Post by andrewau » Mon Dec 06, 2021 12:26 pm

Hi, I have long category names and it seems when I am using the autocomplete feature on the categories and type in the name once I reach the character limit of I believe 50 the categories in the autocomplete list disappear. How can I change the character limit please.

Newbie

Posts

Joined
Sun May 26, 2013 6:18 pm

Post by ADD Creative » Mon Dec 06, 2021 5:31 pm

What OpenCart version and what page are you using auto complete on?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by andrewau » Tue Dec 07, 2021 5:35 am

Opencart 1.5.5.1 and the page is adding a Product in the admin. Thanks

Newbie

Posts

Joined
Sun May 26, 2013 6:18 pm

Post by ADD Creative » Tue Dec 07, 2021 6:21 am

Just tested on a site running 1.5.5.1, with no problems. Are you using any extensions that modify the product page? Do any of your categories contain special characters?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by xxvirusxx » Tue Dec 07, 2021 5:10 pm

You talk about Category autocomplete limit from Links tab?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by andrewau » Wed Dec 08, 2021 4:11 am

Yes from the links tab

Newbie

Posts

Joined
Sun May 26, 2013 6:18 pm

Post by xxvirusxx » Wed Dec 08, 2021 5:19 am

admin/controller/catalog/category.php and change

Code: Select all

$limit = 20;
from autocomplete() { function

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by andrewau » Wed Dec 08, 2021 5:34 am

Are you referring to this;

public function autocomplete() {
$json = array();

if (isset($this->request->get['filter_name'])) {
$this->load->model('catalog/category');

$data = array(
'filter_name' => $this->request->get['filter_name'],
'start' => 0,
'limit' => 20
);

Newbie

Posts

Joined
Sun May 26, 2013 6:18 pm

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 73 guests