Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi wcp,

    you can’t fix this, as this is the way the URLs are built. Both the cart and the checkout URL is used in another place, in a JS context. That’s why the URLs are set up using the lang query var.

    That shouldn’t bother you at all, because even when following a minicart link, after you clicked another link you get to an URL like https://example.com/nl/whatever.

    Kind regards,
    Thorsten

    Thread Starter wcp

    (@wcp)

    Hi, thanks for your reply.
    Maybe it’s my theme? Because without IM8 it doesnt add the cart?lang=nl.
    Check it:
    https://www.saidubarrie.com/nl/
    It’s on nl now, now hover over the cart icon topright and you see:
    /nl/cart?lang=nl
    Double nl.

    When you fill the cart, and hover over the minicart icon it still had this double url, but the ‘view cart’ (‘bekijk winkelwagen’) and ‘checkout’ (‘afrekenen’) buttons don’t have the /nl/ addition, only the ?lang=nl.

    Have you ever seen this?

    Plugin Contributor Thorsten Frommen

    (@ipm-frommen)

    Hi,

    well, first of all, the minicart is a tricky thing, as it is not generated dynamically for every page load. Every time you actually change the contents of your cart, THEN the mincart HTML is updated. I just mention this because it cost me a lot of time trying to test the according filters. ??

    So, please try this:

    1. deactivate “IM8 qTranslate WooCommerce”;
    2. have qTranslate and WooCommerce active;
    3. go to your Shop page in a language that is NOT your default (so maybe English: https://www.healingarts.nl/en/webshop/);
    4. add a product to your cart.

    And now check your minicart widget. Does the Checkout button point to https://www.healingarts.nl/en/webshop/afrekenen (as I understood you said it would)?

    For my site, it does not. And that is all the reason I included the filters for those two links.

    Kind regards,
    Thorsten

    Thread Starter wcp

    (@wcp)

    No, the mnini cart isn’t working correctly with the im8 plugin deactivated. So whether it’s activated or not, it doesn’t work.

    I’m gonna make a custom mini-cart.php file, hope that that will solve it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mini cart links: cart?lang=nl instead of /nl/cart/’ is closed to new replies.