Hi!
I have problem with the search function for products. The function works when I use the standard form with an input field and button to click on, but it does not work when I use the autocomplete feature. Is it possible that someone can take a look if I give you the name of the solution?
I've had some conversation with the support, but didn't get any help on the autocomplete feature.
Best regards,
P
Developer forum
E-mail notifications
Problem with search function
Per Ljung
Posted on 12/03/2012 09:42:35
Replies
Merethe Nielsen
Posted on 12/03/2012 11:06:37
Hi
Did you enable prototype in Solution settings?
http://manual.dynamicweb-cms.com/Dynamicweb-eCommerce/Modules/Product-Catalog/Instant-and-suggested-search-for-products.aspx
First of all you need to ensure the following
- Make sure your product index is up-to-date. See Management Center -> eCommerce settings-> Advanced configuration -> Searching for more information on how to do this.
- Go to Management Center -> System -> Solution settings, find the “Google API Includes” section, and make sure that either jQuery 1.x.x or Prototype 1.x.x.x are selected.
Kind regards,
Merethe
Per Ljung
Posted on 12/03/2012 13:11:03
Yes, jquery is activated and the list of suggestions shows up, but when I click on a suggested product in the list, nothing happens, I want to be transferred to a result's page, or is this function supposed to work in another way?
Best regards,
Pee
Per Ljung
Posted on 16/03/2012 16:00:20
Hi again!
Any ideas how to solve this?
Best regards,
P
Merethe Nielsen
Posted on 19/03/2012 15:08:11
Hi
Can you give us the URL for the solution?
Kind regards,
Merethe
Per Ljung
Posted on 22/03/2012 08:47:03
viking.net.dynamicweb.se
Merethe Nielsen
Posted on 22/03/2012 09:55:54
Hi
It works.
- Neither Prototype or jQuery was enabled in Solution settings (I enabled Prototype).
- I updated the Indexer (Mgm center - System - Searching). It was not uptodate - last updated in january.
- I created a testpage and used my standard templates:
http://viking.net.dynamicweb.se/dwtestsearch.aspx?Purge=True
Search -> Click one of the search results --> you get the detail page.
Kind regards,
Merethe
Per Ljung
Posted on 27/03/2012 09:29:48
Hi!
I had a link to jquery, I had done in manually in the master template. But I'm not getting this to work, how do you do to display the results in the main div, at the same place as the product list on the page Produktlista.aspx? And I want the customer to be able to search through the products in all groups, shouldn't you use a search module for this?
Best regards,
P
Pavel Volgarev
Posted on 27/03/2012 10:33:02
Per,
The best way to diagnose the issue would be to apply clean, default templates and start playing with them. Plus, when I enter the page I get some JavaScript errors that might also cause the initialization code of the instant search not to fire.
This this article to get a better understanding how the instant search works and how to customize it: New search in Dynamicweb: Instant search and suggested queries.
-- Pavel
The best way to diagnose the issue would be to apply clean, default templates and start playing with them. Plus, when I enter the page I get some JavaScript errors that might also cause the initialization code of the instant search not to fire.
This this article to get a better understanding how the instant search works and how to customize it: New search in Dynamicweb: Instant search and suggested queries.
-- Pavel
Per Ljung
Posted on 28/03/2012 15:03:15
Hi!
I've managed it to work, but there is one problem left, how can you include all products and groups in the search, not just the current selected group?
I tried to add all groups to the search paragraph, but then the whole webshop became very slow. I was told by the support to use the search module instead.
Best regards,
P
You must be logged in to post in the forum