Developer forum

Forum » Ecommerce - Standard features » Problem with search function

Problem with search function

Per Ljung
Reply
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

Replies

 
Merethe Nielsen
Reply

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

  1. 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.
  2. 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
Reply

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
Reply

Hi again!

Any ideas how to solve this?

Best regards,
P
 
Merethe Nielsen
Reply

Hi

Can you give us the URL for the solution?

Kind regards,
Merethe
 
Per Ljung
Reply

viking.net.dynamicweb.se

 
Merethe Nielsen
Reply

Hi

It works.
  1. Neither Prototype or jQuery was enabled in Solution settings (I enabled Prototype).
  2. I updated the Indexer (Mgm center - System - Searching). It was not uptodate - last updated in january.
  3. 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
Reply

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
Reply
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

 
Per Ljung
Reply

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