• Resolved emanueleboaretto

    (@emanueleboaretto)


    Dear Sirs,
    how can I modify the language of the messagge for reach the quantity of free shipping?
    Thanks and best regards,
    Emanuele

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support lusp

    (@lusp)

    Hi @emanueleboaretto,

    You can easily change the ‘Left to free shipping’ text

    You can easilly customize the ‘Left to free shipping’ notice by using the flexible_shipping_free_shipping_notice_text filter and changing the displayed text there to your own. Here is the usage example:

    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( 'Spend %1$s more to get free shipping!', wc_price( $amount ) ); }

    Please add this snippet to the functions.php file of the currently used theme/child-theme or add it via Code Snippets plugin (or similar one) and replace the Spend %1$s more to get free shipping! part with the text you want to be displayed.

    Kind regards,
    Łukasz

    Plugin Support lusp

    (@lusp)

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

    Kind regards,
    Łukasz

    I have the code above added via Code Snippets plugin, but it does not work. The displayed text won’t change. I cannot use the theme’s functions.php at this point (would have to create a child-theme first and them reconfigure the whole production site). Using Envo Storefront theme.

    Any hints?

    Plugin Support lusp

    (@lusp)

    Hi @artidens,

    I suppose it might be related to some environmental issue with your shop or maybe some other plugin/theme you are currently using. I’ve just run a test and used the Code Snippets to add the snippet above:

    https://wpdesk.me/ls/8c7fp.jpg

    and the changes casued by applying this snippet were visible in the cart:

    https://wpdesk.me/ls/lv041.jpg

    Please check if the problem also occurs after deactivating all the plugins apart from WooCommerce and Flexible Shipping to exclude the plugin conflict and if it happens on the WooCommerce dedicated Storefront theme.

    Kind regards,
    Łukasz

    Thanks, that’s exactly how I added the snippet. It seems to be some kind of caching or cookie issue with my shipping method plugin or payment plugin, because the text actually changes if I open the site in incognito mode after first disabling and then re-enabling those plugins.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Language’ is closed to new replies.