Problems with translation on woocommerce

This topic has 22 replies, 2 voices, and was last updated 8 hours, 26 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

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    21 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

    Avatar: wojtek
    wojtek
    Participant
    August 19, 2026 at 19:39

    Hello.

    I’ve already moved the site to the correct address (production version) novabo.com, but I’m having a problem. The homepage displays an error message when creating smaller image sizes. I’ve attached a screenshot. It looks like Elementor is having some kind of conflict, but nothing has changed on the server, so why is there a sudden conflict?

    Can you help me with this?

    Best regards, Wojtek.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 20, 2026 at 07:48

    Hello, wojtek,

    Thank you for providing the access credentials. Unfortunately, the FTP access does not grant us the permission to edit files on the server.

    Best regards,
    8Theme’s Team

    Avatar: wojtek
    wojtek
    Participant
    August 20, 2026 at 09:32

    Hello.
    The access details I sent are correct. I’ve checked them several times, on two different clients, on both Windows and Linux. Please check again; everything should work. Just in case, I’ve uploaded the WinSCP client with the current access details to https://novabo.com/WinSCP_Novabo.zip. I logged in using this program without any problems, and you should be able to do the same.

    Best regards, Wojtek.

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 21, 2026 at 07:56

    Hello, wojtek,

    Good day, thank you for providing access. We have corrected these notices, please check them

    Best regards,
    8Theme’s Team

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: wojtek
    wojtek
    Participant
    August 24, 2026 at 19:02

    Thank you very much, everything looks fine now. I hope there won’t be any more problems. Best regards, Wojtek.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 25, 2026 at 06:39

    Hello, Wojtek,

    Thank you for your kind words. We are pleased to hear that everything looks fine now. Should you encounter any further issues, please do not hesitate to reach out to us.

    Best Regards,
    8Theme’s Team

    Avatar: wojtek
    wojtek
    Participant
    September 4, 2026 at 08:42

    Hello. Unfortunately, the fault has returned. Can you fix it? Best regards, Wojtek.

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 4, 2026 at 12:11

    Hello, wojtek,

    Could you please let us know what actions you took before the issue reappeared? Was it related to updating plugins, re-saving the homepage (either in the Elementor editor or the WordPress backend), or perhaps something else similar?

    Best regards,
    8Theme’s Team

    Avatar: wojtek
    wojtek
    Participant
    September 5, 2026 at 20:24

    Hi,
    Unfortunately, I didn’t do anything at all. Perhaps there was an automatic update at the time, but I don’t know. I didn’t make any changes to the home page either.
    Best regards, Wojtek.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 7, 2026 at 16:02

    Hello, wojtek,

    The issue was caused by the auto-update of the Elementor plugin, as its newer version incorrectly interpreted the saved image sizes. We have resolved this issue and also added the following code to the functions.php file of the child theme to prevent future updates of Elementor from causing this problem.

    function et_to_int($str){
        $str = preg_replace('/\D/', '', $str);
    
        return (int) $str;
    }
    
    function bfi_image_resize_dimensions( $payload, $orig_w, $orig_h, $dest_w, $dest_h, $crop = false ) {
        $aspect_ratio = $orig_w / $orig_h;
    
        $new_w = $dest_w;
        $new_h = $dest_h;
    
        if ( empty( $new_w ) || $new_w < 0 ) {
            $new_w = intval( $new_h * $aspect_ratio );
        }
    
        if ( empty( $new_h ) || $new_h < 0 ) {
            $new_h = intval( $new_w / $aspect_ratio );
        }
    
        $new_w = et_to_int($new_w);
        $orig_w = et_to_int($orig_w);
        $new_h = et_to_int($new_h);
        $orig_h = et_to_int($orig_h);
    
        $size_ratio = max( $new_w / $orig_w, $new_h / $orig_h );
    
        $crop_w = round( $new_w / $size_ratio );
        $crop_h = round( $new_h / $size_ratio );
        $s_x = floor( ( $orig_w - $crop_w ) / 2 );
        $s_y = floor( ( $orig_h - $crop_h ) / 2 );
    
        // Safe guard against super large or zero images which might cause 500 errors
        if ( $new_w > 5000 || $new_h > 5000 || $new_w <= 0 || $new_h <= 0 ) {
            return null;
        }
    
        // the return array matches the parameters to imagecopyresampled()
        // int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h
        return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h );
    }

    Best Regards,
    8Theme’s Team

    Avatar: wojtek
    wojtek
    Participant
    September 7, 2026 at 17:19

    Thank you so much for your help. I expected it to be Elementor’s fault, but it was the same with the previous update. Will this happen again over time? 🙂 Best regards, Wojtek

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 8, 2026 at 12:07

    Hello, wojtek,

    Unfortunately, this may happen again, and we cannot predict what changes Elementor will implement.

    Best regards,
    8Theme’s Team

  • Viewing 22 results - 1 through 22 (of 22 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.