Home Forums WoodMart support forum Single product layout stuck in translation WPML

Single product layout stuck in translation WPML

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #512073

    raulis
    Participant

    Hi,

    As mentioned, single product layout is stuck in translation. It never updates. I also see a few errors that might be related.

    Attachments:
    You must be logged in to view attached files.
    #512173

    Hung Pham
    Keymaster

    Hi raulis,

    Thanks for reaching to us.

    Please add below Custom Code to functions.php file in Child theme.

    add_action('init', function () {
    	if ( ! empty( $_SERVER['REQUEST_URI'] ) && false !== strpos( $_SERVER['REQUEST_URI'], trailingslashit( rest_get_url_prefix() ) ) && function_exists( 'wc_load_cart' ) && ! function_exists( 'wc_print_notices' ) ) {
    		wc_load_cart();
    	}
    }, 1000);

    Regards,

    #512209

    raulis
    Participant

    Hi, nothing has changed. Have tryed to cancel translation, edit main language Layout and than start a new translation to EN.

    Attachments:
    You must be logged in to view attached files.
    #512261

    Hung Pham
    Keymaster

    Hi raulis,

    Please send temporary wp-admin info (wp-admin URL, username, password) to Private Content

    I will check this problem for you.

    Regards,

    #512286

    raulis
    Participant

    Here you go.

    #512350

    Hung Pham
    Keymaster

    Hi raulis,

    I see you did not add above Custom code to Child theme.

    I’ve fixed your issue. Please check your site again.

    Regards,

    #512351

    raulis
    Participant

    Hi,

    I have added the code throught the php snippet plugin.

    Have also check the website and nothing is changed. Layouts are still not translatable with WPML. Just sppining forever and nothing happening.

    Attachments:
    You must be logged in to view attached files.
    #512378

    raulis
    Participant

    Have identical problem on other website also.

    #512451

    Hung Pham
    Keymaster

    Hi raulis,

    Please clear cache from WP Rocket plugin and check again.

    https://prnt.sc/kAvDx1qke_f9

    Regards,

    #512531

    raulis
    Participant

    Nothing is working. You still can’t translate layouts in WPML.

    You clearly don’t understand the problem here. Please read it over again and send me a fix as soon as possible. This bug happens all over the websites I am using woodmart on.

    Here is a short overview:
    1) wp-rocket cash does not work in the backend of the WordPress
    2) The problem is that Layouts can’t be translated because woodmart have certain deprecated woocommerce functions. So always have stuck translations (spinning icon or cog icon). You can check translation status in WPML -> Translation managment -> Jobs section.

    Please help me fix this.

    #512534

    raulis
    Participant

    also if you turn off layout in one language it does not turn off in all of them. Big bug.

    #512720

    Hung Pham
    Keymaster

    Hi raulis,

    I passed this topic to our developer, I will update once I receive the replies.

    Regards,

    #512759

    Hung Pham
    Keymaster

    Hi raulis,

    Thanks for your patience.

    Please check again https://monosnap.com/file/9MxVefE2EtZFhmax5kU3gsGjCra2JQ

    Regards,

    #512917

    raulis
    Participant

    Not sure how you did it, but the language on the main language of the Layout changed to russian for the product. I mean if you go to take a look at the layout in LT language, the product itself shows data from the RU version.

    Other than that it seams to work ok now. How can I fix this issue on my other websites?

    #513184

    Hung Pham
    Keymaster

    Hi raulis,

    1. Please use this Custom PHP code https://xtemos.com/forums/topic/single-product-layout-stuck-in-translation-wpml/#post-512173

    2. I also added this code to Child theme https://monosnap.com/file/ZIK0nf2PvObrHEgxAimuAkwUNq4Uyz

    Regards,

    #513430

    raulis
    Participant

    How can I translate product reviews?

    #513547

    Hung Pham
    Keymaster

    Hi raulis,

    Please translate these plugins https://prnt.sc/u1SZsiihP0m0

    Regards,

    #533212

    bathorimatyas
    Participant
    #533337

    Hung Pham
    Keymaster

    Hi bathorimatyas,

    My colleague will check and response to you, I kindly recommend you should not reply to other topics, it’s hard to follow.

    Regards,

    #533365

    bathorimatyas
    Participant

    Sorry for that, i just wanted to resolve the issue, it takes maybe 1,5 day, but now everything fine. Thank you.

Viewing 20 posts - 1 through 20 (of 20 total)

The topic ‘Single product layout stuck in translation WPML’ is closed to new replies.