I have 2 stores, one with Debut Theme and other with Supply Theme. The first i tried install a autocomplete search but not load the menu, i tried change name, etc. but not working.
After use the same tutorial and installed on Supply Theme and in this theme if work. Please help me with this.
Link Store with Debut Theme: https://smarbf.co
Link Store with Supply Theme: https://akwtel5ca.myshopify.com
The tutorial that i am using: https://help.shopify.com/themes/customization/store/enable-autocomplete-for-search-boxes
NOTE: IF YOU HAVE OTHER CODE OR TUTORIAL FREE, PLEASE GIVE ME THE INFORMATION. THANKS!
I was in the same situation as you and did some changes to make it work.
In your search-autocomplete.liquid, cut all the code inside <script> and </script>.
Go to theme.js, paste the cut contents inside. There is an existing $(document).ready() function and I pasted the new code after that. Remember to check syntax.
Now, the auto complete search should work.
I noted that the auto-complete doesn't work elegantly on the mobile view, so any one with a better solution please share if possible :)
|an hour ago|