• mjrc

    (@mjrc)


    Dear Hyyan,

    Your plugin is quite good, but in our implementation we have still got two open problems. This is one of them:

    The orginal language is Dutch, afterwards we have added English (en_GB). Browsing the website works great, and the page remains in english, even going to the cart and checkout page, the website remains English, exact when ADDING TO CART, from the Single Product page; when I am on an English single product, and I add the product to the basket, the website will redirect me to the Dutch ‘Winkelmand’ (=basket). When I would click on the basket in the top of my menu however, it does link to the english cart page.

    The website I am talking about is https://www.appelhout.nl

    What am I doing wrong?

    Thanks,
    Mick

Viewing 13 replies - 1 through 13 (of 13 total)
  • decarvalhoaa

    (@decarvalhoaa)

    Please check your Polylang settings. If you have URL modifications configured to The language is set from content this may be the issue.

    The Plugin, as indicated in the description doesn’t support this config.

    What you need to know about this plugin
    The plugin needs PHP5.3 or above
    This plugin is developed in sync with Polylang and WooCommerce latest version
    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.
    Polylang URL modifications method The language is set from content is not supported yet

    bonejustice

    (@bonejustice)

    im having the same problem
    all other links works properly but add to basket on spanish site send me to english basket page i have testet every thing i found arround

    WC Version: 2.6.8
    WP Version: 4.6.1
    Polylang 2.0.9
    Hyyan WooCommerce Polylang Integration 0.29

    decarvalhoaa

    (@decarvalhoaa)

    Try disabling all plugins except Woo-Poly, WooCommerce and Polylang, and use the Storefront theme to see if you still have this issue.

    bonejustice

    (@bonejustice)

    im using storefont i did that already… nothing
    when i click the add to basket buttom on single product page in spanish, all links to basket change to english and redirect me to english basket site

    decarvalhoaa

    (@decarvalhoaa)

    Have translated your basket page?

    bonejustice

    (@bonejustice)

    yes i did the trasnlate of the basket page but it send me to the english basket page

    before i click the add to basket button in single product page everything works fine i can see basket page trasnlated after i add a product it mess everything

    decarvalhoaa

    (@decarvalhoaa)

    That is really odd. I’m using exactly the same versions of the plugins on this website https://www.thelittlecraft.com and as you can test yourself, this is working fine.

    Can you post the link to the website where this is happening?
    Can you also share what are your Polylang URL settings and WordPress Permalinks settings?

    Cheers
    A

    bonejustice

    (@bonejustice)

    this on site permalinks
    Post name https://www.outletoyou.com/sample-post/

    this on poly setings
    URL modifications
    The language is set from content
    Remove /language/ in pretty permalinks
    The front page url contains the language code instead of the page name or page id

    decarvalhoaa

    (@decarvalhoaa)

    That seems all ok – like mine.

    In the same Admin page of the Permalinks, can you also share:
    – Product category base (mine is shop)
    – Product tag base (mine is product-tags)
    – Product attribute base (mine is empty)
    – Product Permalinks (mine is Custom Base = /product)

    Click the button “Save Changes” even if you don’t change anything, to flush the rewrite rules.
    Check below the button if the .htaccess file is writable and you rewrite rules look like this

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Go to Polylang settings and also save setting in the “URL Modification section, even if you don’t change anything.

    Let’s see if this solves the issue.

    Hi decarvalhoaa,
    I am having the same issue, both cart page and checkout page are redirecting to the default language.
    Have update the plugin from https://github.com/Jon007/woo-poly-integration
    and still the language is default for the mentioned pages.
    I dont get if
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    is supposed to be in the .htaccess file. Mine is blank.

    Please help!

    Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    Hi actually that’s my fork but I am no longer using that fork, I am contributing directly to the main project.

    At this moment the latest code is in https://github.com/hyyan/woo-poly-integration/tree/product-taxnomy-attributes-dev

    awaiting availability of Hyyan to review the Pull request to merge into:
    https://github.com/hyyan/woo-poly-integration/

    Do note that there is no support on these forums, it would be better to raise this as a new issue on the Github, with as much detail as possible on how to reproduce on a clean installation, preferably with latest codebase, though note in latest codebase, compatibility for woocommerce 2.6 will be dropped, it will be new product for woocommerce 3.

    I haven’t seen any issue like this.. you might find you don’t get it when you do it on a clean configuration, in which case it will give you a clue to look at what is different in your site configuration.

    Plugin Contributor jomo

    (@jonathanmoorebcsorg)

    and your .htaccess shouldn’t normally be blank either, though that might vary depending on what webserver you are using…
    .. as far as I now if you go to Permalink Settings /wp-admin/options-permalink.php
    and Save (even without changing anything), WordPress should try to update and recreate your htaccess entries..

    Thanks a billion for the
    https://github.com/hyyan/woo-poly-integration/tree/product-taxnomy-attributes-dev
    link. It works perfect. Hope this thread could help many others out there. Chears!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Add to basket links to wrong language’ is closed to new replies.