Plugin Contributor
jomo
(@jonathanmoorebcsorg)
Do note that the option “The language is set from the directory name in pretty permalinks” is not supported and is mentioned in the note on the home page etc:
https://ww.wp.xz.cn/plugins/woo-poly-integration/
Note also that officially there is no support on these forums as per the pinned post.
Does your setup work for posts?
check the language configuration is working for Polylang for posts and pages in each language before moving to Products
Products shouldn’t be different (so shouldn’t be related to this plugin)
I note WooCommerce 3.0.1 is an unusual choice of version, since it was almost immediately replaced by 3.0.2 and subsequent patches (now 3.0.9)
Hi jonmoore,
Firstly, thanks for the fast feedback!
The Blog page works fine as expected.
The problem is just when user is not logged in the Store page, independently of the language, it shows all products in all languages.
You say that the option “The language is set from the directory name in pretty permalinks” is not supported but it is the ONLY way it works for me. I’m trying to set a separate domain for the languages. I have the website working in a .com domain and I wish my Portuguese content shows on a .com.br domain and NOT on a .com/pt/ as it is now.
Thanks.
Plugin Contributor
jomo
(@jonathanmoorebcsorg)
Sorry my reply was wrong as well, I answered too fast, it is the option “language is set from content” which is not supported.
However if you have a different domain you must use the option “The language is set from different domains” in Polylang languages.
Also check your menu setup: in the Portuguese menu, the “Shop” link needs to go to mysite.com.br/shop etc according to your setup.
You need to have translated the shop pages too.
But from what you say, assuming you have done all this, it is the Polylang setting which is wrong.
If Polylang can’t determine the language due to wrong settings then products and indeed posts may show in all languages as Polylang won’t be adding the language filter.
This is actually out of scope of this tool, because getting the the right version of a page and having the language set is standard Polylang functionality regarding the setup of languages and translating pages.
Hi,
Thank you for your fast answers. I fixed my problem.
The issue was in my theme, there were a function that was used to limit the products being displayed for users and it was bugging the Shop page.
Regards.