The files and where they come from
Request the files from FINDOLOGIC. Some of them have different names there, and the second column gives the original name in each case. When you place them in the shop, rename them as used on the guide page, otherwise the paths in the examples won’t match.
The loading order
For the suggest function:findologic_suggest.js requires both jQuery components and must come after them. If it comes before them, the suggest function has no effect and no error message appears.
You only need jquery.preload.js if the suggestions should show preview images.
For the price slider, add findologic_priceslider.js. It brings its own jQuery UI and is independent of the suggest function.
The classes of the suggest layer
findologic_suggest.js builds the layer itself. The supplied style file styles these classes. If you adapt the layer to your design, these are the starting points.
In addition, there’s the ID
preview for the preview area.
findologic_suggest.js contains a general base class and, building on it, an implementation for a different shop system, recognizable by the names around Plentymarkets. The functions for adding a suggestion directly to the basket belong to this third-party implementation and aren’t available in WEBSALE V8s. This is added here; the previous documentation doesn’t mention it.For WEBSALE, only the basic function applies: show suggestions and trigger the search on selection.The price slider
As a filter for the search results, you can offer a price range as a slider. It isn’t described on the guide page or anywhere else in this documentation. What follows is derived from the two files and added here. The slider is a jQuery UI slider. The two files provide everything it needs: the JavaScript provides the slider including its dependencies, and the stylesheet provides both the jQuery UI theme and FINDOLOGIC’s own styling.The IDs and classes
In addition, the stylesheet uses the usual jQuery UI classes
ui-slider, ui-slider-horizontal, ui-slider-handle, ui-slider-range, ui-widget, ui-widget-content, ui-widget-header, and the states ui-state-default, ui-state-hover, ui-state-focus, and ui-state-active. If you restyle the slider, change the fl classes and leave the ui classes alone, otherwise you’ll break the widget’s behavior.
The previous documentation swaps the source information for these two files. For
findologic_priceslider.js it states “file name at FINDOLOGIC: fl_slider.css”, and for the CSS file “fl_slider.js”. Corrected here.Why there are no listings here
The previous documentation prints all six files in full, about 75,000 characters in total. Not a single line of it comes from WEBSALE, two of the files are minified, andfindologic_priceslider.js consists entirely of a jQuery UI package.
Third-party code printed in documentation becomes outdated without anyone noticing, and it tempts you to adopt a 2011 version instead of asking the vendor for the current one. This page therefore names the sources and what you need to know for the integration.
Guide: Integrating FINDOLOGIC