Search shows other language with WPML on

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search shows other language with WPML on

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14000
    Sander
    Sander
    Participant

    The search box is said to be 100% compatible with WPML but when I try to search for example on “Bowl” it shows me the results for the other 2 languages as well.
    https://www.dropbox.com/s/ge2sb8yuu9hb5vs/searching2.jpg?dl=0

    When I search for “Chakki” it only shows me the Dutch versions, which is correct.
    https://www.dropbox.com/s/mddt3rggmiqhl8b/searching1.jpg?dl=0

    Any idea?

    #14016
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thank you for the proper log-in and FTP information, I needed both in this case to solve this issue.

    The problem was related to how product variation translations are stored. It might have changed recently after of the new woocommerce release, as the variation translations are not stored (instead the product translation is used obviously), but the search was trying to find their translated versions, due to an error in it’s code.

    I have made a correction in the plugin code, so if a variation is detected, then the parent product translation is checked instead. Now it should return the correct items.

    I will make sure to include this fix in the upcoming release, so you won’t have to worry about it after an update.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14025
    Sander
    Sander
    Participant

    And thank you for the awesome fix! Works great.

    Thanks again for the great support.

    Sander

    #14026
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.