Your Dedicated Partner for All Things WordPress

How to Change your WooCommerce Basket to a Cart

Table of Contents

WooCommerce is an excellent eCommerce platform used by millions of businesses worldwide. It offers various features and benefits that make it a top choice for online store owners. However, one of the primary concerns is the difference in terminologies used, especially with regards to the shopping baskets, carts, and bags. For instance, WooCommerce specifically uses basket instead of cart, which can be a bit confusing for some users. In this post, we’ll show you how to change your WooCommerce basket to a cart.

1. Install “Say Cart” Plugin

The easiest and quickest way to change your “basket” to a “cart” is to install a plugin called “Say Cart.” It is available for free on the WordPress plugin repository, and you can download and install it via your WordPress dashboard.

Once installed, activate it, and a cart icon will appear on your WooCommerce shop page, which replaces the basket icon. The “Say Cart” plugin is a simple yet effective solution to change the terminologies used in WooCommerce.

2. Use Language Files

WooCommerce allows you to customize and translate your store language file. To do so, go to the WooCommerce directory, locate the “languages” folder and open up the default.po file with a text editor like Notepad++. Next, find the following code: “Basket,” and replace the word “Basket” with “Cart.” Finally, save the file, export it to the “.mo” extension, and refresh your store. The basket will now be a cart.

3. Custom CSS

Another method to change your basket to a cart is to add CSS code to your theme’s stylesheet. To do this, open up your WordPress dashboard, find the “Appearance” tab, select “Theme Options,” and choose “Custom CSS.” Here, you can add the following CSS code to modify the text.

.woocommerce-page table.shop_table td.product-name strong {font-size: 14px;}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {font-size: 14px;}

4. PHP Code Snippet

Another method to convert your basket to a cart is by using a PHP snippet. This requires a bit of coding expertise, so it may not be ideal for everyone. Here’s the PHP code snippet:

function change_basket_cart_text() {
return __( ‘Cart’, ‘woocommerce’ );
}
add_filter( ‘woocommerce_shipping_cart_strings’, ‘change_basket_cart_text’ );

Once you have this code, paste it into your functions.php file, and save it. Your WooCommerce basket will now change to cart.

5. WooCommerce Settings

Lastly, you can change your shopping basket to a cart by tweaking your WooCommerce settings. To do so, open up your WordPress dashboard, select the “WooCommerce” tab, and then click on “Settings.” Under the “General” tab, find the “Shop page display,” option, and select “Show both the cart and checkout on the shop page.” Finally, save your changes, and your basket will become a cart.

Conclusion

In conclusion, changing your WooCommerce basket to a cart is a straightforward process that can be done via plugins, language files, custom CSS, PHP snippets, and WooCommerce settings. The method you choose will depend on your coding expertise, preferences, and WooCommerce’s version. Whichever process you select, ensure to test it out on your store and make sure it works correctly. By following the steps laid out in this post, you can customize and improve your WooCommerce store terminology, making it more user-friendly. Happy selling!

How to get started?

Learn more

WooCommerce Maintenance

Save 33% with our Annual pricing plan.

Get Started

Looking for help? Chat with us.

Are you in need of assistance or guidance? Look no further! Our dedicated team is here and ready to help. Chat with us today and let’s work together to find the perfect solution for your needs.

Our support team will get you:

I believe every website owner deserves a reliable professional support always by their side.

Alexey Seryapin
Founder of WPServices

Coupon Code Applied!

Take your time and continue browsing our services.

Alexey Seryapin
Founder of WPServices