Change text on WooCommerce checkout

On this checkout page https://kidsincplaytherapy.com/webinars/checkout/ there's an option to select "Woo Credits" payment (you'll need to add a product to the cart first, of course). The "Woo Credits" comes from woocredits plugin. The gateway choice says "Woo Credits. | Your current balance: | By More credits" while it should be saying "Credits....". So, "Woo Credits." should be replaced with just "Credits".

The problem here is that Text Replace option in Ultimate Branding doesn't affect this (so it's probably hard-coded somehow). It's been suggested to use Loco translate for this but how to do this? Is there a different solution?

  • Paul Kevin
    • Neo

    Hey there Jonathan ,

    Hope you are well today. Kindly try add the following code in your themes functions.php

    add_filter( 'woocommerce_gateway_icon' , function( $message, $id, $cart ){
    	if ( strpos( $message, 'Your Current Balance' ) !== false ) {
    		return '';
    	}
    	return $message;
    
    });

    It should leave only the text "Credits".

    Warm Regards
    Paul Kevin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.