• Resolved linelf

    (@linelf)


    Hello!

    When you change the functions.php file with the suggested code:

    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 till fri frakt!', wc_price( $amount ) ); 
    }
    

    The Continue shopping button on the right is gone. How do I keep this button and change the language also on that button?

Viewing 1 replies (of 1 total)
  • Plugin Author grola

    (@grola)

    Hi,

    Continue Shipping button is part of $notice_text. Just add it:

    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 till fri frakt! %2$sContinue shopping%3$s', wc_price( $amount ), '<a class="button" href="' . esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ) . '">', '</a>' ); 
    }
Viewing 1 replies (of 1 total)
  • The topic ‘You only need X more to get free shipping! Continue shopping’ is closed to new replies.