• Resolved alexanderschmidt

    (@alexanderschmidt)


    Dear Community

    I have a webshop on my page, and in that I have products in different languages. Mock exams to be precise. Here is one example:
    https://valueinsights.ch/shop/itil4foundation-mock-exam-pack-280-practice-questions/

    Now I want to set up variable products for these, because basically it is one product with several varioations. One package has 160 questions, the other 280 and both are available in English, German and French.
    So basically, I could create 1 variable product in WooCommerce and add attributes to the product for question count and language, so overall, I would have 6 variations, which is fine.
    What I want to achieve is that whenever I select a language swatch it switches to that variation of that product aaaaand it also switches the language of the product itself (like the title, description and so on).
    So my question is, how this can be achieved? Is there a possibility?

    Thanks and Cheers,
    Alex

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Sol J. a11n

    (@solstudioim)

    Hi there @alexanderschmidt

    I hope you’re well and thanks for your question!

    So basically, I could create 1 variable product in WooCommerce and add attributes to the product for question count and language, so overall, I would have 6 variations, which is fine.

    What I want to achieve is that whenever I select a language swatch it switches to that variation of that product aaaaand it also switches the language of the product itself (like the title, description and so on).

    So my question is, how this can be achieved? Is there a possibility?

    I think the main issue is in this part, correct?

    What I want to achieve is that whenever I select a language swatch it switches to that variation of that product aaaaand it also switches the language of the product itself (like the title, description and so on).

    I am not sure if you use a translation plugin. If so, you might want to disable that plugin and check again if then when you select a language swatch, it doesn’t translate the product info itself (title/description/etc).

    Look forward to your confirmation ??

    Thread Starter alexanderschmidt

    (@alexanderschmidt)

    Hi Sol

    I am not sure that I get it.
    I am using a translator plugin, but how is that affecting the swatches?

    When I am editing a variable product, I can define different attributes on which the variations are based.
    But where can I set it up that thet description or title of a product also changes when the respective variable of it is selected?

    Cheers,
    Alex

    Plugin Support Sol J. a11n

    (@solstudioim)

    Hi @alexanderschmidt

    I am not sure that I get it.
    I am using a translator plugin, but how is that affecting the swatches?
    
    When I am editing a variable product, I can define different attributes on which the variations are based.
    But where can I set it up that thet description or title of a product also changes when the respective variable of it is selected?

    That behavior seems to be a conflict, selecting a variation on the front should not trigger a change of the language of the product.

    So please try to disable the translator plugin and see if you are still seeing the issue.

    If the issue persists, I would suggest you contacting the developer of the translator plugin.

    I hope that helps.

    Thread Starter alexanderschmidt

    (@alexanderschmidt)

    Yes, thank you very much. I will give that a try.
    Cheers,
    Alex

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    Were you able to check on this and see if it was indeed a conflict?

    Thread Starter alexanderschmidt

    (@alexanderschmidt)

    Hi,
    I found a solution for my case. It wasnt connected to my language plugin.
    I created the variable products and each of them ad its own variable description in the different languages.
    Then I found a code, which replaces the product description with the variable description, thus when I changed the variable from the english version to the german version, the variable description also changed but it looks like the actual descitpion is changing on the product page.
    Cheers,
    Alex

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    OK, sounds like you are sorted now with your multi-language plugin.

    Marking as resolved.

    Have a great one!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change variable product language with swatches’ is closed to new replies.