• Resolved eclec

    (@eclectic77)


    Hello,

    I’m working with woocommerce and WPML. Last versions for all plugins.

    Product page base is : /product/%product_cat%
    It’s works fine with english version.

    But on french version, I add produit/%product_cat% in string translation, on product page I get a 404 page.
    If I don’t translate the slug, french product page is working fine, but I’ve english word in URL…

    Can you help me about that ?

    Thanks

    https://wordpress.org/plugins/woocommerce-multilingual/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,
    Do you have all the categories translated?
    Which part of the url appears in English when you don’t translate the slug?
    For WooCommerce Multilingual it is required that you translate the slug.
    Make sure that in WPML > String Translation you don’t have multiple contradicting slugs for product base.
    It may be a good idea if you search for the product base string and remove all instances of it and then translate it by going to WPML > WooCommerce Multilingual and following the links and solving the warrnings there.

    Let me know if that helps.
    If you have any difficulty setting this up, please consider opening a new ticket in wpml.org support forum, where my colleagues or I, can help you with this process.

    Thread Starter eclec

    (@eclectic77)

    Hello,

    Do you have all the categories translated?
    => yes
    Which part of the url appears in English when you don’t translate the slug?
    => For example I’ve this URL in english : XXX.com/en/product/vinyls-records/poprock/10cc/ it works fin when product is not translate and when it is translated.
    In french : XXX/fr/product/disques-vinyles-occasion/pop-rock/10cc-2/ works fine but /fr/produit/disques-vinyles-occasion/pop-rock/10cc-2/ make 404 page.

    Make sure that in WPML > String Translation you don’t have multiple contradicting slugs for product base.
    => How I can check that ? I translate line with “URL slug: product”
    It may be a good idea if you search for the product base string and remove all instances of it and then translate it by going to WPML > WooCommerce Multilingual and following the links and solving the warrnings there.
    => I’ve warning with “Your product permalink base is not translated in Français. The urls for the translated products will not work. Go to the Slugs Translation to translate.” but it’s translate in string translation, and I can’t translate it in slug translation page.

    I think I’ve forgotten something but what?

    Thread Starter eclec

    (@eclectic77)

    Other things with no category tag :
    – If I put /product/ and /produit/ it works
    – If I put other word for example /myshop/ and /monmagasin/ it doesn’t work in french

    You can check for multiple product slugs by going to WPML > String translation and searching for: product
    Then I would advise you to delete all slug entries, and then go to WPML > Translation management > Multilingual content setup and scroll until you see the product permalink and that it is expecting a translated slug. You have to translate the slug there, and then the slug will appear in the String Translation table.
    If you are getting the error that your product slug is not translated in French, then you need to check the steps that I have outlined above in this message and translate the slug by these steps. This should fix the problem.
    Changing the slug to product works, because there are similar slug being registered. You need to remove it because it is causing conflict with your new permalink setup. You can remove it by searching in String Translation as outlined in the steps in this reply above.

    Let me know if this helps.

    Thread Starter eclec

    (@eclectic77)

    Thanks for your help, So it’s working now when I try with another slug, translation is ok, no 404. But I can’t find the problem with product slug. If I understand, an other url with produit exist and I can’t use it. But how I can found it ?
    Maybe it’s because I want to use product + category tag, so custom post type id + category ?

    Thread Starter eclec

    (@eclectic77)

    Finally found it !!! WPML is really freakish.

    Thanks a lot for your help!

    I am glad that you resolved your issue.
    Please let us know if you have any suggestions for improvements – on the user interface or something else.
    We always strive to make our product better.

    Hi @eclectic77
    can you please explain how you solved if you still remember, i have the same problem with my links but i could not find a solution yet from two days ago i was trying :
    thanks in advance

    @alsalem if you still have issues, you can always open a new ticket at our forum at wpml.org.
    Our supporters will help you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Product page translation with category tag’ is closed to new replies.