• Resolved andrewwatson

    (@andrewwatson)


    What I Expected: When I add a product to the cart and click checkout, it should be in the same language that is currently set.

    What Happened Instead: I click “checkout” with the page set to English and I get the checkout page in French (which is the default language)

    What I think is happening: When I first put the site together (a fresh install) if I clicked on “checkout” or “shopping cart” with a product added to the cart, nothing happened. I had to use the woocommerce tools to “Create default WooCommerce pages” now the checkout pages work. But it’s pretty clear to me these pages only exist in french and I think the solution is to create them in the other languages but I don’t know how. I have multiple language files installed, so how do I create the default WooCommerce pages in each language?

    Is doesn’t seem normal that these pages weren’t there by default.

    Any help gratefully received

    Steps to Reproduce:

    1) Choose English as language
    2) Add item to shopping cart and click “checkout”
    3) Arrive at the French checkout page (not the checkout page in English as intended)

    Can you reproduce this issue on default WordPress theme (eg Storefront)? Yes.
    Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration? Yes.

    What product versions and settings are you using when this issue occurs?

    PHP: 7.2.12
    WordPress: 4.9.8
    WooCommerce: Verson 3.5.1 (also tried with 3.2.1)
    Polylang: Standard
    Hyyan WooCommerce Polylang Integration:
    Browser: Firefox, Chrome

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    Thanks for that detailed report!

    What Happened Instead: I click “checkout” with the page set to English and I get the checkout page in French (which is the default language)

    It sounds like there’s a problem with the multilingual plugin on your site, Polylang and/or Hyyan WooCommerce Polylang. As WooCommerce core doesn’t have an option to handle multilingual sites, you’ll need to reach out to the developers of these plugins.

    Thread Starter andrewwatson

    (@andrewwatson)

    Oh. Ok. Thanks.

    Obviously though woocommerce does have the translations of all its system pages (checkout/shopping bascket etc) in case the whole site is a single language but not english. I thought it was the absense of these files that was the problem and that if I could just get woocommerce to create them it would fix my issue.

    I will investigate further.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    WooCommerce does indeed have plugin and theme language files for the languages installed on your site (via Settings > General). If you want to test if the translation is complete and working correctly, I recommend disabling the multilingual plugins and changing the site’s language: if things aren’t showing up correctly at that point, then you know the problem is with the translation files themselves.

    Thread Starter andrewwatson

    (@andrewwatson)

    Thank you Hannah. That was extremely valuable info. I have tested that single language works correctly for all languages. That means I now know for sure it is a problem with the Multilingual plugin and importantly it doesn’t have anything to do with the site missing system pages in other languages.

    Thread Starter andrewwatson

    (@andrewwatson)

    It is obviously not a woocommerce issue. I am thankful for Hannah’s assistance in helping me to test and move forward in troubleshooting.

    I have raised the issue at github, here it is in case anyone with a similar problem needs to see it.
    https://github.com/hyyan/woo-poly-integration/issues/379

    I will come back and amend my comment to include a solution when I find one.

    • This reply was modified 6 years, 3 months ago by andrewwatson.
    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    I’m glad that my tips helped you out! If you do find the solution, please do share it so others can also learn from it.

    Thanks!

    Thread Starter andrewwatson

    (@andrewwatson)

    SOLUTION:

    It turns this always happens but it is because of the way Polylang works and it is documented, so the fix is easy.

    Woocommerce works (mainly) by using shortcodes and displaying the appropriate content in the right language. With Polylang you have to create the different language pages so the shortcodes will be displayed in the right language (the language of the page they are on).

    If you don’t do anything, the only checkout page you will ever see it the one in the default page and therefore theWoocommerce content will be in that language. You have to create a Polylang language version of this page for each language you are using, then the Woocommerce content will appear in that language.

    To do this.

    1) Install and enable Woocommerce
    2) Install and enable Polylang and add the languages you need
    3) Install and enable Hyyan WooCommerce Polylang Integration
    4) View WordPress Pages and search for each of the following pages:
    —– shop
    —– cart
    —– checkout
    —– my account
    5) Edit each one of these pages and click the “+” in the right side to create a version of that page in the other languages, title the page appropriately and make sure there is a version for each language installed – Note, make sure that if there is a shortcode in the content of this page the exact same shortcode is in the other language versions.

    After you have manually created these page language versions all those system pages will appear correctly in the language set on the website because Polylange will choose the right language version and Woocommerce will display in the language of that page.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“WooCommerce pages” only in defualt language’ is closed to new replies.