• Resolved Halyra

    (@harasse)


    – Settings?: langage determine by fr/en in url (ex https://fmysite.net/en/….)
    – Front page?: no static front page
    – 2 langages used?: fr (defaut) and en.
    Issue :
    a) in shop/boutique of woocommerce, the url of language switch is?:
    – in the french language boutique : mysite/en/shop (OK)
    – in the english language shop?: mysite/fr/ (NOK, must be mysite/fr/boutique)
    b) This issue does not exist if WordPress is in static front page mode. It seems correct.
    c) When Hyyan WooCommerce Polylang Integration? desactivated, the url is mysite/fr/boutique (OK) and mysite/en/boutique (NOK, must be mysite/en/shop I guest)

    Remark?: When tested in home page and shop page, is_shop and is_home return different values depending on the current langage. The language seems to change the status for the page.

    https://www.ads-software.com/plugins/woo-poly-integration/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hyyan Abo Fakher

    (@hyyan)

    @harasse Thank you for reporting the issue , I’ve solved the issue in the non released version , you can download the non releasedversion from Gitgub repo here https://github.com/hyyan/woo-poly-integration/archive/master.zip

    Please give it a try and respond.

    Thread Starter Halyra

    (@harasse)

    @hyyan Abo Fakher. Thank you for your reply. I did a test with the Github V26 non released version.
    => Same issue.

    Below I give you the log I did for 3 typical pages : home, shop, and cart. Only the shop page in english language has the issue of language redirection. All my others pages, products, …, has correct languages redirection.

    trace site/fr/ =>pll_current_language:fr =>is_home:1 =>is_shop:0 =>switch:site/en/
    trace site/en/ =>pll_current_language:en =>is_home:1 =>is_shop:0 =>switch:site/fr/

    trace site/fr/boutique =>pll_current_language:fr =>is_home:0 =>is_shop:1 =>switch:site/en/shop
    trace site/en/shop =>pll_current_language:en =>is_home:1 =>is_shop:1 =>switch:site/fr/ !!!!!!!!!

    trace site/fr/panier =>pll_current_language:fr =>is_home:0 =>is_shop:0 =>switch:site/en/cart-2
    trace site/en/cart-2 =>pll_current_language:en =>is_home:0 =>is_shop:0 =>switch:site/fr/panier

    Tell me if you want I trace other data from this pages.

    Thread Starter Halyra

    (@harasse)

    I did the test with polylang 1.7.6

    Plugin Author Hyyan Abo Fakher

    (@hyyan)

    could please deactivate the following polylang options and then give a try , just to make sure there is no any kind of conflicts:

    1 – Detect browser language
    2 – Hide URL language information for default language

    Thread Starter Halyra

    (@harasse)

    These two options were already disabled. To be sure, I have reset them, then disabled. No change in the problem.

    Plugin Author Hyyan Abo Fakher

    (@hyyan)

    @harasse sorry for the late answer I am trying to do my best here , I’ve tried to reproduce the issue in test site which you can access from here where access code is 000 .

    The test site seems to work correctly using your scenario . and I found that after some digging the only way to get the results you have posted in this thread is that you have forgot to translate some products which could lead to empty product archive page.

    Please give this site a try to make sure I’ve reproduced the issue here correctly , and I’ll be thankful for more feedback.

    Thread Starter Halyra

    (@harasse)

    @hyyan Abo Fakher. Thank you for your reply.

    1) The test site seems correct and conform to my scenario.

    2) Perhaps a clue for this issue : My website has 58 simple products with their correct translation.
    But when I did their translation, I moved from published to draft a 59th product which were a variable product and which seems for me not correctly translated.

    So maybe this issue came from this 59th product in draft mode, because I have the warning ?You can not change the default language ,Becuase you are using variable products? in Polylang settings.

    So I presently move this product in bin. Still the same “variable products warning”.

    Then I suppresse definitively this product. Still the same “variable products warning” !!!???

    Is there something in the database detected as a variable product ?

    Thread Starter Halyra

    (@harasse)

    Good news. Issue fixed as soon as a upgrade to Polylang 1.7.8
    Thanks for your help.

    Plugin Author Hyyan Abo Fakher

    (@hyyan)

    @harasse Great to hear that ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Language switch in shop page’ is closed to new replies.