• Resolved aleksandreeu

    (@aleksandreeu)


    Hi, we are usinf your bulk editor and we have 3 languages website. WMPL plugin in handling multilingual option.
    We have correct setup in WPML settings to copy sale price.
    However, when we change sale (discount) price of the product, it changes just on the main product. other language versions do not get price change.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Please try this – https://share.stackovergo.com/image/i20220803110500.pnghttps://bulk-editor.com/document/more-settings-implicit

    In functions.php add:

    add_filter('woobe_wpml_sync_prices'function($do){
    return true;
    });
    Thread Starter aleksandreeu

    (@aleksandreeu)

    Sorry on the screenshot is not full code. Can you please paste it here?

    And when I add pice of code to the functions php, I am getting the error.

    ERROR:

    Nepanika?te
    Snippet, ktery se pokou?íte ulo?it, zp?sobil fatální chybu (fatal error) na ?ádku 142:
    
    ParseError: syntax error, unexpected 'function' (T_FUNCTION), expecting ')' in /home/u924737995/domains/zgruzie.cz/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(248) : eval()'d code:1 Stack trace: #0 /home/u924737995/domains/zgruzie.cz/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(305): Code_Snippets\Edit_Menu->test_code(Object(Code_Snippets\Snippet)) #1 /home/u924737995/domains/zgruzie.cz/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(147): Code_Snippets\Edit_Menu->save_posted_snippet() #2 /home/u924737995/domains/zgruzie.cz/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(81): Code_Snippets\Edit_Menu->process_actions() #3 /home/u924737995/domains/zgruzie.cz/public_html/wp-includes/class-wp-hook.php(307): Code_Snippets\Edit_Menu->load('') #4 /home/u924737995/domains/zgruzie.cz/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #5 /home/u9247379
    P?ede?lá verze snippetu je nezměněná a zbytek stránky by měl fungovat v po?ádku jako doposud.
    
    Pou?ijte prosím tla?ítko zpět ve va?em prohlí?e?i pro návrat na p?edchozí stránku a zkuste chybu v kódu upravit. Pokud chcete, m??ete tuto stránku zav?ít a zahodit změny, které jste právě provedli. ?ádné změny na v?em webu se neprovedou.
    Plugin Author RealMag777

    (@realmag777)

    Hello

    In file functions.php of the current wp theme just try to add this code:

    add_filter('woobe_wpml_sync_prices', function ($do) {
        return true;
    });

    I corrected it with comma …

    Thread Starter aleksandreeu

    (@aleksandreeu)

    For me, looks like it works without $do. Is it OKay you think?

    Just like this:

    add_filter('woobe_wpml_sync_prices', function(){
    return true;
    });
    Plugin Support mediawebster

    (@mediawebster)

    Hello @aleksandreeu

    Yes it will work, but it will cause warnings in the code, better add $do

    Thread Starter aleksandreeu

    (@aleksandreeu)

    Cool thanks!

    Plugin Support mediawebster

    (@mediawebster)

    welcome;)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sale price is not sync’ is closed to new replies.