Problem with Custom Fields translated with WPML

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Problem with Custom Fields translated with WPML

This topic contains 8 replies, has 2 voices, and was last updated by marine69 marine69 3 years, 3 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #31130
    marine69
    marine69
    Participant

    Dear,
    first of all sorry for my bad english, than,
    i use Ajax Search Pro to filter the products by the Custom Fields (ACF).
    In the italian version (main language) https://www.molena.com/catalogo/ it works perfectly, but in the english version (second language) https://www.molena.com/en/catalogo_en/ it does not works, it always appears “No result!”
    I follow this guide https://documentation.ajaxsearchpro.com/translating-components/translating-with-wpml and i translate all the strings, also the custom fields are translated.
    Can You help me?
    Thank You.

    #31132
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Sure! Thank you for the details, it helps us a lot! I noticed, that not only the filter labels, but the values also change for each product translation, for example: https://i.imgur.com/8pNZ8SR.png

    However, the plugin only registers strings for the labels to translate. To resolve that, I made a tiny change to one of the plugin core files, to register the custom field values for translation as well. If you go to the WPML string translations board, you should be seeing them under the [CF Filter Value] strings now.
    Please try translating those as well, so the filter values change accordingly. Let me know if that resolves the issue, and I will make this change permanent for the upcoming release.

    Best,
    Ernest Marcinko

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


    #31133
    marine69
    marine69
    Participant

    I translated the new strings but it appears always “No Result””

    #31134
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    It seems to work perfectly fine on my end: https://i.imgur.com/yZgI7iw.png
    Make sure to clear your site cache and browser cache, that should resolve it.

    Best,
    Ernest Marcinko

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


    #31135
    marine69
    marine69
    Participant
    You cannot access this content.
    #31136
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You are welcome!

    That is actually a widget title (maybe elementor?), you might have to look it up there.

    Best,
    Ernest Marcinko

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


    #31137
    marine69
    marine69
    Participant

    Perfect, Thank You

    #31138
    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 :)


    #31139
    marine69
    marine69
    Participant
    You cannot access this content.
Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Problem with Custom Fields translated with WPML’ is closed to new replies.