How to change View cart text in woocommerce

How to change the text “View cart” in woocommerce.

Add the following code to your functions.php file in your child theme.

/**
* Change View cart text
*
*/
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case ‘View cart’ :
$translated_text = __( ‘View Shopping Cart’, ‘woocommerce’ );
break;
}
return $translated_text;
}
add_filter( ‘gettext’, ‘my_text_strings’, 20, 3 );

Pin It on Pinterest

Share This
Open chat
1
We are Online
Hi, We are Online to discuss with you!
Powered by