How to change View Cart text in WooCommece

Estimated reading: 1 minute 835 views

Use filter hook: wpt_view_cart_text


function codeastrology_view_cart_text( $text ){
    $text = "Basket";
    return $text;

Source Code #

View on

To change the View Cart from the whole site, You can use the following step.

After adding a product to the cart, you will see the text "View Cart". Sometimes you may need to change that text.

We can change that text with the help of a filter hook.

Add those codes to your theme/child theme's functions.php file or use the 'Code Snippets' plugin to add those codes.

After using the filter hook, the text will change. Take a look below.

Note: As our product table 'View cart' text comes from Woocommerce, you can see that change will also appear in our product table as well.

Share this Doc

How to change View Cart text in WooCommece

Or copy link