Problems with translation on woocommerce

This topic has 10 replies, 2 voices, and was last updated 8 hours, 56 minutes ago ago by Andrew Mitchell

  • Avatar: wojtek
    wojtek
    Participant
    July 21, 2026 at 08:35

    Hello. I have four problems generally related to translations from English to Polish. These involve the search engine and, I think, permalinks. The attached document contains a description and screenshots of these issues. Please help me resolve the issues. Best regards, Wojtek

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    9 Answers
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 21, 2026 at 14:10

    Hello, wojtek,
    Thank you for providing access. We have implemented the fixes; please check them at your convenience.
    Best regards,
    The 8Theme Team

    Avatar: wojtek
    wojtek
    Participant
    July 22, 2026 at 13:46

    Thank you very much for your help.
    Unfortunately, the buttons on the Polish page should be in Polish (they were), but now they are in English.
    I’d like the products to be displayed in a 5-column grid, and that’s how I set it up in the options, but the page displays 4 columns.
    There’s also an error with the links in the breadcrumbs – I’ve attached a screenshot. Clicking on a link at a certain point leads to the Polish page instead of the English one.
    Best regards, Wojtek.

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 22, 2026 at 16:56

    Hello, wojtek,

    We have resolved these issues and would also like to note that the problem with the columns occurred because the settings were configured for four columns.

    Best regards,
    8Theme Team

    Files is visible for topic creator and
    support staff only.
    Avatar: wojtek
    wojtek
    Participant
    July 23, 2026 at 13:38

    Good morning. I forgot that, in addition to the standard options, you need to look for settings in other places (oh, Elementor…). Thanks for the change, but since then, something strange has happened and the site is opening strangely (frontend only). It looks like it’s having trouble loading some of the content. Best regards, Wojtek.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 23, 2026 at 14:55

    Hello, wojtek,

    We have implemented a fix. Please check the website now and remember to clear your browser cache.

    Best regards,
    The 8Theme Team

    Avatar: wojtek
    wojtek
    Participant
    July 27, 2026 at 12:20

    Thanks for your help. However, there’s still the issue of the links in the breadcrumbs. On the English site, if someone clicks on the path pointing to the category, it’s OK; it takes them to the English category page. Unfortunately, if they click on the link leading to the store’s home page, it takes them to the Polish store, when they should be taken to the English page (and that’s how it was initially).

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 27, 2026 at 16:29

    Hello, wojtek,

    We have made modifications to the functions.php file of your child theme, which should resolve the issue. Please review the changes. Below, we have included the code that we added to functions.php.

    /**
     * Fix XStore manually added Shop breadcrumb link.
     */
    add_filter( 'page_link', 'xstore_child_fix_shop_page_link_language', 50, 2 );
    
    function xstore_child_fix_shop_page_link_language( $link, $post_id ) {
        if ( ! function_exists( 'wc_get_page_id' ) ) {
            return $link;
        }
    
        if ( (int) $post_id !== (int) wc_get_page_id( 'shop' ) ) {
            return $link;
        }
    
        $is_english = false;
    
        if ( function_exists( 'pll_current_language' ) ) {
            $is_english = 'en' === pll_current_language( 'slug' );
        } elseif ( has_filter( 'wpml_current_language' ) ) {
            $is_english = 'en' === apply_filters( 'wpml_current_language', null );
        } elseif ( ! empty( $_SERVER['REQUEST_URI'] ) ) {
            $request_path = wp_parse_url( wp_unslash( $_SERVER['REQUEST_URI'] ), PHP_URL_PATH );
            $is_english   = preg_match( '#^/en(/|$)#i', $request_path );
        }
    
        if ( $is_english ) {
            return home_url( '/en/produkt/' );
        }
    
        return $link;
    }

    Best regards,
    8Theme’s Team

    Avatar: wojtek
    wojtek
    Participant
    July 27, 2026 at 18:31

    Thank you for solving the problem. I think we still have the last one described above. The suggested search terms are in English on the Polish website (and should be in Polish on the Polish website). Some terms on the English website (including those underlined below) display product suggestions correctly, but clicking the “Search” magnifying glass doesn’t find any products.

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    July 28, 2026 at 08:26

    Hello, wojtek,

    Thank you for the explanation. Please ensure that the products being searched for have translations in the appropriate language.

    Best regards,
    8Theme’s Team

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.