Support » Plugin: WooCommerce » Remove Colon after Flat Rate shipping method in car and checkout

  • Resolved evalast

    (@evalast)


    Hi, any idea how to remove the colon (:) behind the shipping method (flat rate) title in the cart and checkout page?

    • This topic was modified 11 months, 1 week ago by evalast.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @evalast

    You can try this snippet:

    add_filter( 'woocommerce_shipping_package_name', 'custom_shipping_package_name' );
    function custom_shipping_package_name( $name ) {
    return 'Shipping';
    }
     
    function fix_woocommerce_strings( $translated, $text) {
    // STRING 1
    $translated = str_ireplace( 'Shipping', 'Shipping', $translated );
     
    return $translated;
    }
    add_filter( 'gettext', 'fix_woocommerce_strings', 999, 3 );

    I would recommend using a plugin like Code Snippets to add that snippet to your site.

    Thread Starter evalast

    (@evalast)

    Hi, thx for the reply. Any way this fix will end up in the default plugin code later on?

    Plugin Support mouli a11n

    (@mouli)

    @evalast
    It’s a good question and a good idea.
    It would be great to have you add your ideas to the [Ideas Board](http://ideas.woocommerce.com/forums/133476-woocommerce), which is where developers go to look for future plugin features and improvements.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Colon after Flat Rate shipping method in car and checkout’ is closed to new replies.