default language
-
Hello,
I have translated the entire webshop with the Woocommerce Polylang Integration. I have an english and dutch website. There were a few challenges but I think I almost figured it out.
I made a copy of my page SHOP in English to Dutch. Also I made a dutch copy of all the englisch products and wrote the description in dutch.
But when I click on shop or product or go to my basket it change automatically to the English default language. Please could you help out how to fix this?kind regards
-
Hi,
in addition to the Shop page, you need also to translate the Cart, Checkout and My Account pages.
Cheers
AHi,
thank you for your reply!
Sorry i do not know how??? My default language is English so I already duplicated also the Cart, Checkout and My Account pages. I have all english and Dutch pages for these. I also copy paste the code below in all the Dutch pages. I am not sure that is what i need to do.Cart/Page
[woocommerce_cart]Checkout/Page
[woocommerce_checkout]My account page
[woocommerce_my_account]But it still does changes back to Englisch. What else do I need to do? Or were do I need to translate more. Is it in the code?
I am looking forward to your reply!
That sound to be ok.
What version of WP, WC, Polylang and this plugin are you using?
Can you share your Polylang URL modifications settings? you should find then under Admin Backend -> Settings -> Languages -> Settings – > URL modifications
Try changing something, save, change it back and save it again.
Do the same for the WordPress permalink settings hereAdmin Backend -> Settings -> Permalinks
Thank you for your help it is great you are putting your effort in getting me there. Please read my answers to your qeustions:
What version of WP, WC, Polylang and this plugin are you using?
Worpress version 4.5.3
Woocommerce Version 2.6.2
Can you share your Polylang URL modifications settings? you should find then under Admin Backend -> Settings -> Languages -> Settings – > URL modifications
These are the one I put on.
The language is set from the directory name in pretty permalinks
Example: https://www.steelandstars.com/en/my-post/The language is set from the directory name in pretty permalinks
Example: https://www.steelandstars.com/en/my-post/The front page url contains the language code instead of the page name or page id
Example: https://www.steelandstars.com/en/ instead ofhttps://www.steelandstars.com/en/homepage/Try changing something, save, change it back and save it again.
Do the same for the WordPress permalink settings here.
Sorry it does not work? What do I need to fill in here? Perhaps I had to do something here in the permalinks?Perhaps this is helpfull information?
When I go to Woocommerce -> Settings -> Checkout -> Checkoutpages.I have the option to choose from:
These pages need to be set so that WooCommerce knows where to send users to checkout
Basket page
Checkout page
Terms and ConditionsHere I can choose which page my basket page lands and also for my checkout page. Now I changed it to the Dutch Basket page and Dutch Checkout page and they work.
But now they don’t go to my English Basket page and English Checkout page.
How can I make them work simultaneously at the same time?Thank you again for helping me out!!!
You should use the pages in the default language (I understood this is English) under Woocommerce -> Settings -> Checkout -> Checkout pages.
By the way, have you changes the Endpoints? I have not change that. I have:
Pay -> order-pay
Order Received -> order-received
Add Payment Method -> add-payment-methodIn permalinks, in Common Settings I have selected “Post name”, that has a Custom Structure https://www.my-domain.com/%postname%/
In Optional, I have everything empty except
Product category base -> shop
Product tag base -> product-tagsIn Product Permalinks, I have Custom base set to “/product”.
What is the version of the Hyyan plugin you are using? Can you try my fork? is has support for WC 2.6.x and some other bug-fixes.
What is your theme?
hi,
You should use the pages in the default language (I understood this is English) under Woocommerce -> Settings -> Checkout -> Checkout pages
I changed it again to English yes this is my default language.All the settings are the same I only changed these two like you said:
In permalinks, in Common Settings I have selected “Post name”, that has a Custom Structure https://www.my-domain.com/%postname%/
Product category base -> shopI wanted to download the plugin (my fork) but when I get the zipfile and I unwrap it I do not know which folder I need to use?
I use as theme: Sydney Pro.
Hyann plugin: version 0.25
Could you show me a website which is working with SHOP, CART and CHECKOUT?
I also saw this in the text here on the website from the plugin:
What you need to know about this plugin
1.The plugin needs PHP5.3 or above
2.This plugin is developed in sync with Polylang and WooCommerce latest version
3.The plugin support variable products , but using them will disallow you to change the default language , because of the way the plugin implements this support. So you have to make sure to choose the default language before you start adding new variable products.
4.Polylang URL modifications method The language is set from content is not supported yet1.Could you explain me what PHP5.3 is?
3.I allready had my products setup before downloading the plugin could this be a problem?I know for sure we are so close of fixing it. Because when I go to Woocommerce -> Settings -> Checkout -> Checkoutpages I can change manually my pages BASKET and CHECKOUT to English and Dutch and they both work and exist.
Thanks for your patience!!!!
do I need to have Polylang pro?
Sorry for the late reply… have been busy at work.
No, you don’t need Polyang Pro for getting this working.
You can have a look at this site for an working example: https://www.thelittlecraft.com
I am assuming you are not comfortable doing a manual installation of the plugin. This would required going to the webserver filesystem:
1. go to <wordpress_install_dir>/wp-content/plugins/
2. rename the folder “woo-poly-integration” to “woopoly” without the quotes (“”)
3. replace the content of “woopoly” with the content of the zipfile (what is inside the folder woopoly-masterIf you don’t feel comfortable doing this, then don’t do it.
I currently waiting approval to publish the plugin here in www.remarpro.com.However, I’m starting to believe that your issue is your theme and installing the fork will not solve it. Can you please try installing the WooThemes Storefront theme to understand if the problem is defacto your Theme?
This is a free theme from the same peopled that developed WooCommerce. Go to Appearance -> Themes click Add New and look for Storefront.Thank you for your reply your help it is great!
I asked a friend to help my out he has more knowledge how to work with WP.
My thought is that there is something wrong in the code perhaps from my theme which is referring to the wrong language page when I go to cart or checkout. And with your detailed information he can see what we already tried together. The side that you showed me works perfectly I hope my site also works like that very soon!Again thank you for your patience!!!
your are must welcome. I wish you good luck. I hope you can fix it.
in case you guys find any issue related to this plugin (or my fork, in case you give it a try) let me know so that I can fix it.
Is it possible that the content of the [woocommerce_cart] tag in both pages isn’t translated so it forces to switch back to English? Don’t I need a parameter or translation over there to continue in the chosen language?
Edit: p.s. I get the same behaviour when using Storefront.
- The topic ‘default language’ is closed to new replies.