Page 1 of 1

featured products dropdown listing

Posted: Fri Jan 20, 2017 2:16 pm
by jyang
I try to add some products in featured products modules. But, I find that some products can not be displayed in the dropdown list when I input those products' name! Does anyone meet this problem and know how to solve it? Thanks in advance!

Re: featured products dropdown listing

Posted: Fri Jan 20, 2017 4:42 pm
by thekrotek
You mean autocomplete field? You should enter part of the name from the start. For example, if you want to add iPhone, you need to type "iph", not "pho".

Re: featured products dropdown listing

Posted: Fri Jan 20, 2017 6:48 pm
by artcore
An undocumented 'trick' is to use % as wildcard. So you can search iphone by typing %pho

Re: featured products dropdown listing

Posted: Sat Jan 21, 2017 10:15 am
by jyang
artcore wrote:An undocumented 'trick' is to use % as wildcard. So you can search iphone by typing %pho
Thanks for your reply! Yes, the % wildcard is very useful!
But, I also find that the maximum number of products in the listing box is 5.
Do you know how to change this number?

Re: featured products dropdown listing

Posted: Sat Jan 21, 2017 4:30 pm
by thekrotek
You need to change it in autocomplete() function. But this will change number of products in dropdown list all over your store.

Re: featured products dropdown listing

Posted: Mon Jan 23, 2017 2:11 am
by IP_CAM
check here for Extensions, changing the autocomplete function behaviour:
https://www.opencart.com/index.php?rout ... tocomplete
Good Luck ! ;)
Ernie