• Resolved 1timothy412

    (@1timothy412)


    I am trying to figure out how to change the free shipping message in Woocommerce checkout. I’ve enabled a free shipping coupon, but I want to know how I can change the default message describing the type of coupon in the order summery (bottom of the page). Right now it says “Coupon: COUPONNAME / Free shipping & handling coupon [remove]”. I’d like to be able to change it to “Coupon: COUPONNAME / My message describing the coupon [remove]” Is there a PHP script/function/etc I can add to change this message?

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m not totaly sure if this is what u want, but woocommerce has a couple of filters that allow to change coupon messages:

    Filter “woocommerce_coupon_message” will change the “Coupon code applied successfully.” message

    “woocommerce_cart_totals_coupon_label” will change “Coupon” label in “Cart Totals” box on Cart page and “Your Order” box on checkout.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    This text is in core:

    if ( $coupon->enable_free_shipping() ) {
    		$value[] = __( 'Free shipping coupon', 'woocommerce' );
        }

    The entire price string is filterable, or you can just change the above text with https://wordpress.org/plugins/say-what/

    Thread Starter 1timothy412

    (@1timothy412)

    Thank you both for your help. The “Say What” plugin worked for me!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change coupon description message’ is closed to new replies.