• I have a multisite installation.
    I’ve installed and configured the Language Switcher plugin and it works great for:
    Pages, posts, Woocommerce Products

    It doesn’t work for Wocommerce product categories.

    I have tried to change the url structure for product category – Product category base – in the Settings->Permalinks to be the same in all 3 languages and it didn’t help.

    Anyone has an idea?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Struggeling with the same issue, it’s working great for all other pages/normal wp categories etc, but the woocommerce categories (taxonomies) are not getting linked to each other, the alternative links always show to the front page of the multisite.

    Of course, the categories are linked to the alternatives in the backend of each multisite, but it doesn’t work in the frontend. Any way to set these links manually via a filter?

    I’ve tried manipulating it with this code:

    function my_msls_options_get_permalink( $url, $language ) {
        if ( 'de_DE' == $language ) {
            $url = str_replace( '/products/', '/produkte/', $url );
        }
        return $url;
    }
    add_filter( 'msls_options_get_permalink', 'my_msls_options_get_permalink', 10, 2 );

    but it seems that the $url variable is empty, so there is no way to alter it.

    The checkbox “Show only links with a translation” is also checked in the settings, so, because he displays all flags in the frontend, he seems to know that translations for this category exist, but he’s not able to offer the correct link for them.

    • This reply was modified 6 years, 4 months ago by mattce.
    • This reply was modified 6 years, 4 months ago by mattce.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Switching between Wocommerce Categories doesn’t work’ is closed to new replies.