• Resolved pricunha

    (@pricunha)


    Hi,

    I’m facing a problem in my Store page when I use different domains setup in the Polylang settings. I’m using:
    Wordpress 4.6.6
    WooCommerce 3.0.1
    Hyyan WooCommerce Polylang Integration 1.0.1
    I have 2 languages: English (default) and Portuguese.

    I started setting the website translation to Portuguese with the URL option set to “The language is set from the directory name in pretty permalinks” and like this the Store works fine showing the products of each language separately English products on English store and Portuguese products on Portuguese store… but when I try to set the Polylang URL to “The language is set from different domains” the store page shows all products in all languages in English and Portuguese stores, the stranger is that this only happens for Not Logged in users, it works fine when the user logs in.

    Any ideas why this happens?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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)

    Thread Starter pricunha

    (@pricunha)

    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.

    Thread Starter pricunha

    (@pricunha)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Store error using different domains’ is closed to new replies.