• Resolved avdsm

    (@avdsm)


    Good afternoon
    Please tell me how and where to translate a message for customers on the purchase page
    “You only need 2 370 ? more to get free shipping!”
    into Russian.
    And the “Continue shopping” button – delete.

    • This topic was modified 3 years, 5 months ago by avdsm.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter avdsm

    (@avdsm)

    I figured out the button)))
    div.flexible-shipping-notice-container a.button {display:none}

    Thread Starter avdsm

    (@avdsm)

    This code doesn’t help either
    add_filter( ‘flexible_shipping_free_shipping_notice_text’, ‘wpdesk_flexible_shipping_free_shipping_notice_text’, 10, 2 );
    function wpdesk_flexible_shipping_free_shipping_notice_text( $notice_text, $amount ) {
    return sprintf( ‘Вам нужно %1$s больше, чтобы получить бесплатную доставку!’, wc_price( $amount )
    );
    }

    Thread Starter avdsm

    (@avdsm)

    Translation using a plugin “Loco Translate”, did not give results
    ——–
    You only need %1$s more to get free shipping! %2$sContinue shopping%3$s
    Вам нужно %1$s больше, чтобы получить бесплатную доставку! %2$sПродолжить покупки%3$s

    Thread Starter avdsm

    (@avdsm)

    The question is settled.
    Translation using a plugin “Loco Translate”

    Plugin Support lusp

    (@lusp)

    Hi @avdsm,

    It seems that you are using the incorrect quotation marks in the snippet you’ve pasted. The proper code should look this way:

    
    add_filter( 'flexible_shipping_free_shipping_notice_text', 'wpdesk_flexible_shipping_free_shipping_notice_text', 10, 2 ); function wpdesk_flexible_shipping_free_shipping_notice_text( $notice_text, $amount ) { return sprintf( 'Вам нужно %1$s больше, чтобы получить бесплатную доставку!', wc_price( $amount ) ); }
    

    Please paste it either to the functions.php file of the theme/child-theme you are currently using or add it via Code Snippets plugin or the similar one.

    Once it is added properly, here is the screenshot illustrating how it should work: https://wpdesk.me/ls/kuhxp.jpg

    Kind regards,
    Luke

    Plugin Support lusp

    (@lusp)

    Since there are no further inquiries concerning this case I’m marking this thread as resolved.

    Kind regards,
    Luke

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Message on the purchase page’ is closed to new replies.