Search Filter

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
mueironshark
Posts: 15
Joined: 22 Feb 2016, 16:20

Search Filter

Post by mueironshark » 09 May 2016, 13:20

I have included the search filter. How can i configure the search as global search, means searching in all produkt categories? And how can i activate the search suggestion?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Search Filter

Post by aimeos » 09 May 2016, 21:06

By default, the full text search is not category dependent. This can be changed by this configuration option:
https://aimeos.org/docs/Configuration/C ... rce-search

For the suggestions, you have to make sure that the catalog filter plugin contains the reference to the page in the flexform which only contains the catalog suggest plugin.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mueironshark
Posts: 15
Joined: 22 Feb 2016, 16:20

Re: Search Filter

Post by mueironshark » 11 May 2016, 15:32

aimeos wrote:By default, the full text search is not category dependent. This can be changed by this configuration option:
https://aimeos.org/docs/Configuration/C ... rce-search

For the suggestions, you have to make sure that the catalog filter plugin contains the reference to the page in the flexform which only contains the catalog suggest plugin.
The filter references to the search page with the suggest plugin. When typing in the search input, get request json data sucessfull but get no suggest-list. The ul stays emtpy.
And when clicking on search button, i get the information that there is no search result.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Search Filter

Post by aimeos » 12 May 2016, 00:59

What data is returned by the AJAX request?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mueironshark
Posts: 15
Joined: 22 Feb 2016, 16:20

Re: Search Filter

Post by mueironshark » 12 May 2016, 06:25

aimeos wrote:What data is returned by the AJAX request?
It returns an div containing the json
<div id="c813" class="">






[{"id":1366,"name":"Kabelschelle sRF C\/ 1 x 7, f\u00fcr 6-7 mm Kabel"},{"id":1365,"name":"Kabelschelle sRF C\/ 1 x 8, f\u00fcr 7-8 mm Kabel"},{"id":1360,"name":"Kabelschelle sRF B\/ 2 x 8, f\u00fcr 7-8 mm Kabel"},{"id":1359,"name":"Kabelschelle sRF B\/ 2 x 12, f\u00fcr 11-12 mm Kabel"},{"id":1358,"name":"Kabelschelle 24 AC-E, f\u00fcr 20-24 mm Kabel"},{"id":1354,"name":"Kabelschelle 40 AC-E, f\u00fcr 36-40 mm Kabel"},{"id":1353,"name":"Kabelschelle 12\/2 AC-E, f\u00fcr 8-12 mm Kabel"},{"id":1352,"name":"Kabelschelle 12\/2 AC-E, f\u00fcr 8-12 mm Kabel"},{"id":1350,"name":"Kabelschelle sRF D\/ 1 x 1\/2\", f\u00fcr 16-17 mm Kabel "},{"id":1349,"name":"Kabelschelle sRF D\/ 1 x 5\/8\", f\u00fcr 21-23 mm Kabel"},{"id":1347,"name":"Kabelschelle sRF C\/ 3 x 5\/8\", f\u00fcr 21-23 mm Kabel"},{"id":1345,"name":"Kabelschelle sRF B\/ 1 x 7\/8\", f\u00fcr 27-28 mm Kabel"},{"id":1343,"name":"Kabelschelle OX C \/ 3 x 22, f\u00fcr 12-22 mm Kabel"},{"id":1342,"name":"Kabelschelle sRF B\/ 2 x 5\/8\", f\u00fcr 21-23 mm Kabel"},{"id":1341,"name":"Kabelschelle sRF B\/ 3 x 5\/8\", f\u00fcr 21-23 mm Kabel"},{"id":1337,"name":"Kabelschelle sRF E\/ 12 x 11, f\u00fcr 10-11 mm Kabel"},{"id":319,"name":"Kabelschelle sRF C\/ 2 x 11, f\u00fcr 1\/4\" Kabel, f\u00fcr C-Profilschiene 40 x 22 mm"},{"id":305,"name":"HF Kabel SMA -N RG223 \/ RG58 1m"},{"id":298,"name":"Erdungsschelle f\u00fcr 1\/4\", 3\/8\" und RG8 Kabel"},{"id":229,"name":"Kabelschelle sRF C\/ 1 x 11, f\u00fcr 1\/4\" Kabel, f\u00fcr C-Profilschiene 40 x 22 mm"},{"id":1291,"name":"Schnapp-Deckel KBS 600 mm f\u00fcr Kabelbahn, tauchfeuerverzinkt"},{"id":1289,"name":"Schnapp-Deckel KBS 400 mm f\u00fcr Kabelbahn, tauchfeuerverzinkt"},{"id":1290,"name":"Schnapp-Deckel KBS 500 mm f\u00fcr Kabelbahn, tauchfeuerverzinkt"},{"id":1288,"name":"Schnapp-Deckel KBS 300 mm f\u00fcr Kabelbahn, tauchfeuerverzinkt"},{"id":1287,"name":"Schnapp-Deckel KBS 200 mm f\u00fcr Kabelbahn, tauchfeuerverzinkt"}]




</div>

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Search Filter

Post by aimeos » 12 May 2016, 07:22

You are using bootstrap_package 7.0.x which doesn't work because it's buggy and adds an additional <div></div> around the content. Please use bootstrap_package 6.2.x instead.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mueironshark
Posts: 15
Joined: 22 Feb 2016, 16:20

Re: Search Filter

Post by mueironshark » 12 May 2016, 09:10

aimeos wrote:You are using bootstrap_package 7.0.x which doesn't work because it's buggy and adds an additional <div></div> around the content. Please use bootstrap_package 6.2.x instead.
i found an solution by removing the wrapper in the fluid layout and setting layoutsRootPath for fluidContent. But when clicking on a search suggestion the search result is empty- message no match.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Search Filter

Post by aimeos » 12 May 2016, 09:24

Can you post a screenshot of the suggestions? Maybe the MySQL full text search has a problem with the data.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mueironshark
Posts: 15
Joined: 22 Feb 2016, 16:20

Re: Search Filter

Post by mueironshark » 12 May 2016, 10:12

aimeos wrote:Can you post a screenshot of the suggestions? Maybe the MySQL full text search has a problem with the data.
Here the screens:
Attachments
Bildschirmfoto 2016-05-12 um 12.08.44.png
Bildschirmfoto 2016-05-12 um 12.08.44.png (37.88 KiB) Viewed 4415 times
Bildschirmfoto 2016-05-12 um 12.08.29.png
Bildschirmfoto 2016-05-12 um 12.08.29.png (124.34 KiB) Viewed 4415 times

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Search Filter

Post by aimeos » 12 May 2016, 19:44

In the next major version, clicking on a suggest item will display the detail view for this product directly.
We are still investigating how to modify the MySQL full text search to get a useful result list for your case and will create a new minor release afterwards.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply