Skip to Content

Changing the text from “Cart” to “Basket” in WooCommerce is very straight forward, and there are a number of different ways to achieve it. In this article we will outline two different ways.

1. Changing your WordPress language

WooCommerce does already have the capability to change the text from Cart to Basket already inside the plugin, it does this through localised translation files, if WooCommerce picks up that WordPress is set up to British English instead of American English the text throughout the site will reflect that.

To change your WordPress language, simply do the following:

  1. Go to your WordPress Admin Dashboard
  2. Go to Settings
  3. Go to General
  4. Go to Site Language
  5. In the dropdown find English (UK)
  6. Press Save Changes

2. Add a filter to your website

If you’re not able to change your language settings (or don’t want to) you can add a filter to your WordPress theme that will make the changes for you. (Please note, this is a more technical solution, if you are concerned about breaking your website seek the advice of a WordPress developer)

To do this, edit your theme and look for the file called functions.php and copy and paste the code snippet below:

add_filter( 'gettext', 'te_change_cart_to_basket' );
add_filter( 'ngettext', 'te_change_cart_to_basket' );

function te_change_cart_to_basket( $string ) {
  $string = str_ireplace( 'cart', 'basket', $string );
  return $string;

Whenever content is loaded in your site it now will change the text from Cart to Basket throughout.

Want to be the first to find out when new resources go live?

Sign up for our monthly newsletter.