matijagudlin
Forum Replies Created
-
Hi, we change the code and now results are limited to language selected. Previously mentioned problem still remains – if we reindex for example EN language it will show only results when EN language is selected. If we reindex DE language after that it will not show category for EN language any more but only for DE. And finally if HR language is selected it will only show category results in autocomplete when you’re on HR language, all other will not have any results in category.
When viewing Index in algolia it is reflecting the same results. Is this really the only case where product categories are not showing properly when having multilingual site?
Thank you Michael for your effort so far.
I tried to add this filter as you suggested, it ‘broke’ autocomplete and it didn’t work (at all, we got no results for any query) so I added single quote to wpml.locale:”‘ like this ‘wpml.locale:”‘ – it helped to regain autocomplete results but they are the same as before – here is short video demonstration that first shows how it works with this modified code and then copy of your code without modification
https://vimeo.com/946457934/01ed492b6c?share=copyYes, indexing is ok now.
The problem now is that categories don’t show up in autocomplete at all when this line is added in autocomplete.php (tested on all languages)filters: 'wpml.locale:"' + current_locale + '"',
I added neccesary code in functions.php as well and in instantsearch.php
Is there any reason why this happens?Lots of options are checked, from category and posts to custom meta fields. Now the status has changed, categories show up but we still get results for all the languages instead of only selected language: here is short video demonsttration https://vimeo.com/945667131/90f169d2d6?share=copy
In this video you can see that I do search for term “violina” which is Croatian term for violin, first result is correct one but there are results for both violin (English) and violine (German). Then when I click on searched product category it transfers me to Croatian version, and over there I can again search for all terms of other languages. How can we limit it to show only results from current language?We checked in Algolia dashboard index and as I can see the content is not there. All categories are translated and re-indexed, settings are pushed. Funny thing is that if we change language in dashboard to Croatian and then re-index and push settings search gives results only for Croatian, if we do the same when “All languages” is selected nothing changes – results are still in English ony.
I checked Algolia dashboard and checked for categories and all the settings, is there something specific I need to look at?
Hi Michael,
when I add code in functions.php and in autocomplete.php, and reindex everything (also push settings) category is no longer among the search results.
Here is screenshot https://ibb.co/XZkJ36p
And this is how it looks when I disable (remove the part of code in autocomplete.php > filters: ‘wpml.locale:”‘ + current_locale + ‘”‘,) but leave code in functions.php – it shows results only in english
If you need credentials to check it on live site please let me know.
Forum: Plugins
In reply to: [Additional Variation Images Gallery for WooCommerce] Thumbnails not visibleThank you @fizanzvai I will post ticket.