• Resolved burtininkas

    (@burtininkas)


    Hello,

    Ajax search doesn’t display all products when selected another language. For example I have creams (“kremas” in Lithuanian) that shows up when searched under en language: https://hayejineurope.com/?s=kremas&post_type=product?, but when site language is switched, those same products do not appear anymore even when the same word “kremas” is being typed in. It only shows one product for some reason: https://hayejineurope.com/lt/?s=kremas&post_type=product?. (1 result) The default behaviour of WooCommerce is to redirect to the product page if a single result. (I have “lt:kremas” in product description to be able to find this product in another language) – also this part is not visible with js (shouldn’t be a problem because it works on english website)

    here are the steps I tried to do to fix the issue:

    Instead of using default search, I installed Advance Woo Search plugin

    Excluded strings from automatic translation

    Settings -> Advanced -> Disable post container tags for post title & Disable post container tags for post content.” settings (tried on and off)

    All settings in Troubleshooting turned on and off

    All settings in Debug turned on and off

    Cleared cache all the way, yet still the same problem

    • This topic was modified 1 year, 5 months ago by burtininkas.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello,

    It works with normal WordPress search, but custom queries with advanced search will not work as they will continue to search in the original language.

    Here is our documentation related to implementing a custom search solution: https://translatepress.com/docs/developers/implementing-a-custom-search-solution/

    Let me know how this goes.

    Kind Regards,

    Anca

    Thread Starter burtininkas

    (@burtininkas)

    I used normal WordPress search and Advanced search plugin – still the same result.

    I pasted the custom code in functions.php and testing with normal WordPress search and Advanced search plugin – still the same result.

    The problem is that I already have word “kremas” (lithuanian) in original description, so if “they will continue to search in the original language”, the search term “kremas” should display the item. Although it does not after changing the language.It only shows those products on original language, but after switching it only displays 1/4 of products. Same search term, just different selected site language. I can’t wrap my head around what’s different between these products that are hidden after language search and the one that gets displayed.

    Every part of what I talked about I’ve tested with original search and advanced search plugin.

    Plugin Support Anca

    (@ancavictoria)

    Hello,

    Can you please tell me if you managed to resolve this issue?

    I searched for ‘kremas’ in both languages, and all the products were displayed.

    Kind Regards,

    Anca

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Since 5 days have already passed without getting a reply from you I will mark this ticket as “Resolved”.

    If there’s anything else, please let us know!

    Kind Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search doesn’t display all items in another language’ is closed to new replies.