[Resolved] Houzez theme search shows results in all languages
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue with the Houzez theme where the property counter on the search results page is not working correctly. The counter is including properties from all languages, not just the current language, leading to incorrect counts displayed in the autocomplete search results.
Solution: We have identified a problem in the Houzez theme code and are providing a hotfix. We also recommend contacting the theme author to ensure the fix is included in the next theme update. Here are the steps to apply the hotfix:
I will be taking over the ticket and helping you out with the issue.
In order to check if this and general bug with the theme, I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
- hidden link
Kindly follow the steps below:
- Install Houzez theme
- Create 2 simple dummy properties and translate it
- Try to replicate and check if the issue happens
- Share with me step by step guide on how can I check the issue
This will help us to report the probable issue to the compatibility team and solve the possible problem faster.
Yes, but even so, to proceed we need to check if the issue is a bug. I can not escalate the case as a bug if it doesn't happen on a clean website, but only on yours. The procedure is then different.
If yes, and we reproduce, it will be quickly escalated to our developers for a fix. I suppose you would more easily replicate it than me, since you are familiar with the process, and it will speed up the escalation.
Otherwise, we would need to do the debug your website and follow a different procedure, for a client site-specific case. Testing on the clean sandbox would help speed up the process and confirm what type of issue is this.
Can you please check and follow my suggestion from the previous reply?
If not, please provide admin and FTP access for your test site in the next private reply, and I will check it out further.
I have checked your website, and couldn't find a solution. I actually think this is a bug with the Houzez theme, so I have tried to replicate the issue, but am afraid I can not set up the same search form/result as on your website.
I can not get the same total count to show up after autocomplete search.
Can you please share instructions on how to set up the same search form so I can see I confirm if the same issue happens there?
Houzez told me that the theme works fine and that „Then you need to ask WPML support, this is only settings WPML told us* and some other clients and it is working for other clients “
you do not need to upload anything, everything is set up already.
All you need is to go to the sandbox site and enable/create the same search form as you use on your website (total count to show up after autocomplete search) or share steps with us on how can we set up the same search.
I tried to do it on the next link, but as you can see it doesn't have to autocomplete option.
Hi Drazen, it took me some time to insert content in the Sandbox because your server is extremely slow, some pages could bot be loaded.
I inserted 2 bilingual properties with the word 'Verona'. Half Map page is also bilingual, so you can switch languages and see the different property title. hidden link
I was able to replicate the same bug
case 1
If you insert 'Verona' in the keywords field, the autofill shows you 2 properties, but counts 4.
case 2
Same if you switch to italian half map page and insert an english keyword like 'industrial'. Autocomplete shows NO image/property, but the counter counts 1.
case 3
If you switch to english half map page and insert an itlian keyword like 'negozio'. Autocomplete shows NO image/property, but the counter counts 1.
Means that also in your sandbox the keyword search works for the autocomplete, but not for the counter. Because counter includes all languages, and is counting also non relevant properties.
Houzez Theme settings allow to modify where keywords should be searched, in my case the keyword search is set to 'property title and content' which is a very useful setting and my client loves that.
there seems to be an issue in the Houzez theme code. We will be providing a fix, and updating the theme author, but please contact them also and make sure they include the fix in the next version of the theme.
I was sure that it was the themes fault. You shoud reconsider about declaring Houzez 100% WPML compatible, this is not my first issue and your support is full of other cases. It's not correct for new customers if they get a wrong promise.
So thank you again for the help and wpml support. I will try to insert this manually, but I hope to see soon a theme update so this is done automatically.