• Resolved mahsaad

    (@mahsaad)


    Hello,

    I’m having the exact same issue, but not for all products, main language is English and second language is French

    In French, some products i find when searching with their french name and some i don’t.

    The one i don’t find when searching with their french name, if i search with the english name, i’m able to find them.

    I’ve been dealing with this for 2 days.

    Uninstalled and re-installed Translatepress, dropped the tables and recreating them by clicking save in the plugin settings and started the translation all over, no luck

    This is the webiste: https://lefruitier.ca/fr/

    Examples:

    For cherry tomato
    If you look with the french name: cerise
    you don’t find anything

    If you look with the english name: cherry
    it finds the tomato

    Working product: Cauliflower
    If you search with the french name: Chou Fleur
    it’s working

    I disabled WP Super Cache and delete the cache, re-saved the translation, still doesn’t work

    Would appreciate any help

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mahsaad

    (@mahsaad)

    Hello,

    update:

    I noticed that the ones that i don’t find them when i search for them, they don’t have a record in the “trp_original_meta” table in the DB. therefor the join statement in the query with “wptrp_dictionary_en_us_fr_ca” table, returns nothing, in your class “class-search”

    So after adding the missing record in the “trp_original_meta” table, then the search works

    So the question, why some have a record and some don’t in the “trp_original_meta” table

    • This reply was modified 4 years, 5 months ago by mahsaad.

    Hello,

    I looked over what you said and it really seems to be a problem.

    I sent the problem to the dev team, I will keep you posted with finding the solution for the problem you encountered.

    Cheers,
    Denis

    Hi again.

    So i talked with the dev team and they clarified the situation.

    You need to first access one of the translated products for it to appear in the search. Otherwise it won’t be found.

    This is the way the plugin works.Please do this and see if this resolve your problem.

    Cheers,

    Thread Starter mahsaad

    (@mahsaad)

    Hi Denis,

    Thanks for getting back to me.

    This what I did actually as a workaround. After translating the product title to the second language, i visit the product, then a record is added in the “trp_original_meta”.

    However it’s weird. Is there a plan to fix it in a future release, or is it going to be like that?

    Thanks again.

    Hello,

    This is not currently possible with our plugin, but I have added your request to our development list, so it might be implemented in a future version, but we can’t estimate when that may be.

    You could use a caching plugin that have a preload cache feature. That should access all pages of the site.

    Cheers,
    Denis,

    • This reply was modified 4 years, 5 months ago by Denis.

    Dear mahsaad : please help me if you were able to enable the search for the translated WooCommerce products. I have a similar problem:

    my site is
    Bena.worlds

    Thanks in advance

    Majid

    Thread Starter mahsaad

    (@mahsaad)

    @majidelabd After translating the product title to the second language, visit the product in the main language, then switch to the second language, a record will be added in the “trp_original_meta”. You will be able to search the translated product.

    Howwever, if you are in language A (main language) and you have a language B (second language) if you are in language A and you search the product with the translation of language B, you won’t find it, this is how the plugin apparently works, you can only search the product with the same language that you are currently on

    Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Woocommerce product search for second language’ is closed to new replies.