• Resolved coachrebellis

    (@coachrebellis)


    Hi

    I am trying to follow your description for changing the notice text

    I added those 2 lines to the php file

    add_filter(?‘flexible_shipping_free_shipping_notice_text_button_label’,?‘__return_empty_string’?);
    add_filter(?‘flexible_shipping_free_shipping_notice_text_message’,?function?(?$message,?$amount?)?{?return?‘You?only?need %1$s more?to?get?free?shipping!’;?},?10,?2?);

    but the remaining amount is not showing up

    please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support WojtekPS

    (@wojtekpyrgies)

    Hi @coachrebellis,
    Thanks for reaching us. Please try using the code below:

    add_filter( 'flexible_shipping_free_shipping_notice_text_button_label', '__return_empty_string' );
    add_filter( 'flexible_shipping_free_shipping_notice_text_message', function ( $message, $amount ) { return sprintf( 'You only need %1$s more to get free shipping!', $amount ) ; }, 10, 2 );

    Let me know how it works for you.

    Regards
    Wojtek

    • This reply was modified 2 years, 2 months ago by WojtekPS.
    Thread Starter coachrebellis

    (@coachrebellis)

    Thank you but I used a different plugin now. editig thje php file for a noob like me is not beneficial. Thanky you for your input anyway

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cannot change notice text’ is closed to new replies.