Instant Search

Views: 59,247

Results 201 to 220 of 262
21 Aug 2023, 8:28 AM
#201
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Instant Search

Is there a site to look at?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

21 Aug 2023, 2:40 PM
#202
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Instant Search

delia:

Keyword is created.... how and where? Are you saying the mod does that or that is what is needed to be done? In the instructions it mentions keyword only as a name - not input but attribute of input. So you are saying there needs to be an actual input field (assumedly then hidden from view) that is called name?

No, no error logs or console errors.

People, no one has offered any sample - any code, any site. I don't maintain or create mods anymore but instructions are important. There are no instructions, just that one thing in the configuration.

I was interested when looking at github that there was a suggestion this mod be added into the template. I'm all for that - if only to ge the dang code etc.
If you're using a template based on the built-in responsive classic, make sure that you have (in the admin's Layout Boxes Controller) the search_header or search sidebox enabled for the template.

Each of those sideboxes includes an input field named keywords, which is what Instant Search's jQuery/javascript is looking for.

21 Aug 2023, 3:15 PM
#203
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Instant Search

lat9:

If you're using a template based on the built-in responsive classic, make sure that you have (in the admin's Layout Boxes Controller) the search_header or search sidebox enabled for the template.

Each of those sideboxes includes an input field named keywords, which is what Instant Search's jQuery/javascript is looking for.

And yes, the side boxes are enabled.

@torvista will send url via pm. Site is being readied for upgrade/with new branding.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

21 Aug 2023, 4:18 PM
#204
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Instant Search

Thank you @torvista for figuring out instant_search_dropdown.min.js isn't loading. Since it is on the site in the template directory and is not named for auto inclusion, is the mod supposed to be loading it?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

21 Aug 2023, 4:36 PM
#205
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Instant Search

is not named for auto inclusion
Yes it is.

Anything named jscript_whatever.js should be auto-included.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

21 Aug 2023, 4:45 PM
#206
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Instant Search

Hmm, I find I have a file in my site that is not in the Github repository:
jscript_instant_search.js
that loads the template file.
Probably debris from a previous version of Instant Search.
I can't investigate further until later.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

21 Aug 2023, 4:47 PM
#207
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Instant Search

yup - no jscript prefix on those two files in the jscript folder

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

21 Aug 2023, 5:08 PM
#208
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Instant Search

adding the jscript prefix does not make this work. I'm going to call it quits on this mod.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

21 Aug 2023, 9:57 PM
#209
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Instant Search

The necessary javascript file is:
instant_search_dropdown.min.js

This is loaded by the file:
auto.instant_search_observer.php

and triggered from the notifier:
'NOTIFY_FOOTER_END'

in tpl_main_page.php

So, something is broken/missing in that chain of events.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

22 Aug 2023, 11:40 AM
#210
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Instant Search

torvista:

The necessary javascript file is:
instant_search_dropdown.min.js

This is loaded by the file:
auto.instant_search_observer.php

and triggered from the notifier:
'NOTIFY_FOOTER_END'

in tpl_main_page.php

So, something is broken/missing in that chain of events.
Nice detective work, @torvista. I'm guessing that that notifier is missing, although that's been "in-core" since early 2016.

14 Sep 2023, 5:43 PM
#211
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Instant Search

I have recently installed the instant search on my live v.1.5.8 cart and it works great, except for one small hitch. When I type in the Search it brings up the results as intended, but if I press the Enter key after my search query it just brings up the buffering circle and never completes.

Any ideas as to why this could be?? Wanted to fix it for those with slower internet where the instant results might not be coming up fast enough and they hit the Enter key instead.

Thanks in advance for your help!

15 Sep 2023, 8:17 AM
#212
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Instant Search

At this point it is entering into the normal search processing.
Any debugs?
Do you have the infinite scroll enabled in the IS configuration page?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

15 Sep 2023, 12:44 PM
#213
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Instant Search

Thanks for your reply Torvista!

There are no Debug Logs being thrown....which makes it hard to decipher. I have looked for the Infinite Scroll option in Admin->Instant Search and do not see this option. I have the max results set to 40 (as it requires a number) and Number of Results per Ajax Call set to 10

Not sure my answers will help much.....any other ideas on what/where to check???

15 Sep 2023, 12:57 PM
#214
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Instant Search

Your reply got me thinking Torvista so I performed a Search with pressing the Enter key with Inspect turned on in Firefox and it it did return this error:

Uncaught (in promise) TypeError: document.querySelector(...) is null
displayResults https://www.nitwitcollections.com/shop/includes/templates/CUSTOM/jscript/instant_search_result.js:94
<anonymous> https://www.nitwitcollections.com/shop/includes/templates/CUSTOM/jscript/instant_search_result.js:29
async* https://www.nitwitcollections.com/shop/includes/templates/CUSTOM/jscript/instant_search_result.js:38

Not sure if this helps? (I typed in the word Fall for my search term)

18 Sep 2023, 7:02 PM
#215
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

Re: Instant Search

Hello,

I have my search box contained within a Bootstrap modal. I am trying set focus on the input box when the modal shows, without success. Any guidance is appreciated.

26 Sep 2023, 1:00 PM
#216
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Instant Search

Hi,

As an update to my post regarding Search buffering if someone presses Enter instead of waiting for instant results to show....my Debug Logs have been clear, but yesterday I had 2 of these logs with an error. I am hoping that this may shed some light. Here is the log

  PHP Fatal error:  Uncaught TypeError: strip_tags() expects parameter 1 to be string, null given in /home/store/public_html/shop/includes/classes/ajax/zcAjaxInstantSearchDropdown.php:164

Stack trace:
#0 /home/store/public_html/shop/includes/classes/ajax/zcAjaxInstantSearchDropdown.php(164): strip_tags(NULL)
#1 /home/store/public_html/shop/zc_plugins/InstantSearch/v3.0.1/classes/InstantSearch.php(129): zcAjaxInstantSearchDropdown->formatResults()
#2 /home/store/public_html/shop/includes/classes/ajax/zcAjaxInstantSearchDropdown.php(105): Zencart\Plugins\Catalog\InstantSearch\InstantSearch->performSearch('uni')
#3 /home/store/public_html/shop/includes/classes/ajax/zcAjaxInstantSearchDropdown.php(72): zcAjaxInstantSearchDropdown->performSearch('uni')
#4 /home/store/public_html/shop/ajax.php(85): zcAjaxInstantSearchDropdown->instantSearch()
#5 {main}
thrown in /home/store/public_html/shop/includes/classes/ajax/zcAjaxInstantSearchDropdown.php on line 164

Thanks in advance for any help!

5 Oct 2023, 12:38 PM
#217
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Instant Search

Just giving this thread a bump to see if anyone else has had the same problem with it continuously buffering if you press your Enter key after typing in your Search query and/or if anyone has a solution.

8 Oct 2023, 2:40 PM
#218
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: Instant Search

Hi,

I have been endlessly playing with this plugin to correct the problem I have been having where it endlessly buffers when I press Enter instead of just looking at the Dropdown results.

I have now found a solution by changing a setting in Admin->Config->Instant Search When I set the Listing Page - Enabled to false, it still shows the dropdown results, but when I press my Enter key it now shows all of the results in the main page.

Hope this helps anyone else who is having this issue.

9 Feb 2024, 7:58 PM
#219
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Instant Search

Guessing I misunderstand how this search works, but where can I find the searching SQL statement so that I can add some restrictions?

17 Feb 2024, 10:18 AM
#220
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: Instant Search

lindasdd:

Guessing I misunderstand how this search works, but where can I find the searching SQL statement so that I can add some restrictions?
The SQL statements are in:
zc_plugins/InstantSearch/v4.0.2/classes/SearchEngineProviders/MysqlSearchEngineProvider.php

Assuming you have not installed the Typesense plug-in.