[Support request] How do you change the link title of the shopping cart?

Home Forums Support How do you change the link title of the shopping cart?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1430155
    David

    How to change the link title of the shopping cart which displays as “View your shopping cart” to “View your shopping basket or some other term”?

    #1430406
    David
    Staff
    Customer Support

    Hi there,

    The Woo plugin doesn’t add many filters for changing labels – so it relies heavily on the GETTEXT filter. Try this:

    add_filter( 'gettext', function( $translated_text ) {
        if ( 'View your shopping cart' === $translated_text ) {
            $translated_text = 'Your new text here';
        }
    
        return $translated_text;
    } );

    Note: Mini Cart is cached – so changes not always reflected:

    https://github.com/woocommerce/woocommerce/issues/15375

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.