RaCar Clear Cart for WooCommerce

Mô tả

This plugin allows you to add a customizable button to clear the cart. The button appears on the WooCommerce’s cart page and when pressed, it asks for confirmation if the shopping cart should really be cleared. If the shopper clicks ok, it will remove all items from their WooCommerce shopping.

You may change the text for the questions. Also the position and colors of the button.


After installation and activation, on the plugins page, find RaCar Clear Cart for WooCommerce on the list and click ‘settings’ right under the title. It’ll take you to the plugin’s settings page. Another way of getting there is through the left admin menu. Find the RaCar Plugins handle and click it.


On settings page, choose your options such as colors and text and enable the plugin so the button will show.

The button itself is a ‘<button type=”submit”>’ HTML tag, has the ‘class=”button”‘ and ‘id=”clear-cart”‘, so you’re welcome to add your own CSS to it. If doing so, leave the options on options page blank. In failing to do so, you’ll have to use the ‘!important’ to some of the elements such as ‘background’ and ‘color’.


So far, the only way to reset your settings is unistalling the plugin and installing it back on. Just deactivating and activating will NOT reset settings, only the unistalling will.


This plugin was written in English and has Brazilian Portuguese transalations. Este plugin está traduzido em Português do Brasil.

Screenshots Caption

Below, you’ll find the screenshots. Follow these captions:
1. Plugin Enabled
2. Confirmation
3. Cleared Cart
4. Plugin Options
5. Frontend With Option set

Ảnh màn hình

  • Plugin Enabled
  • Confirmation
  • Cleared Cart
  • Plugin Options
  • Frontend With Option set

Cài đặt

Minimum Requirements

  • PHP version 5.6 or greater (PHP 7.2 or greater is recommended)
  • MySQL version 5.6 or greater

Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of RaCar Clear Cart for WooCommerce, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type “RaCar Clear Cart for WooCommerce” and click Search Plugins. Once you’ve found our plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking “Install Now”.

Manual installation

After you donwload it here (and only here), you can do it in 2 ways:

  1. WordPress Admin Dashboard
  • On the left menu, click Plugins / Add New.
  • Upload the file racar-clear-cart-for-woocommerce.zip.
  • Activate it.
  • Go to settings page.
  • Enable it.
  1. FTP
  • Unzip the file racar-clear-cart-for-woocommerce.zip.
  • Upload the unziped folder racar-clear-cart-for-woocommerce to the /wp-content/plugins/ directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress


Automatic updates should work like a charm; as always though, ensure you backup your site just in case.

Hỏi đáp

Where can I find documentation for this plugin?

There is not one yet. As the plugin is so easy to use, the screenshots above should suffice to get you on the right track.

My button seems broken

Try and strip other CSS from the button. The button itself is a ‘<button type=”submit”>’ HTML tag, has the ‘class=”button”‘ and ‘id=”clear-cart”‘.

Where can I get support or talk to other users?

If you get stuck, you can ask for help in the Plugin Forum.

Who created this plugin?

Rafa Carvalhido is a Brazilian WordPress Specialist Developer.
Profissional WordPress
Hire him at Workana

Đánh giá

31 Tháng Ba, 2023 5 replies
Finally an Empty Cart button that works as it should! Even with Ajax shop.I treat the developer to a cup of coffee and tip at the same time that a function where you can set a redirect to another page could be nice as well.
27 Tháng Ba, 2022
It works great, the possibility to customize the button is enough. We can change the expressions on the noses by translating them into our own language. It works perfectly compared to other plugins that we’ve run into with weird problems. Thanks.
2 Tháng Sáu, 2021 2 replies
I can’t believe Woocommerce can’t have a default Clear Cart. Large online shopping sites all have one. This solved my problem, as no way in hell should any shopper have to wait 48 hours for a cart to clear if they clicked on the wrong item or changed their mind and went with another product. This plugin works perfectly and within minutes – download, install, change button appearance – done. Thank you.
Đọc tất cả 5 đánh giá

Người đóng góp & Lập trình viên

“RaCar Clear Cart for WooCommerce” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“RaCar Clear Cart for WooCommerce” đã được dịch qua 2 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “RaCar Clear Cart for WooCommerce” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

2.1.3 – 2024-05-17

  • Update – Tested on latest and greatest -> WP 6.5.3 and WC 8.8.3
  • Update – Added plugin dependency as per WP Core 6.5 API

2.1.2 – 2023-09-23

  • Update – Tested on latest and greatest -> WP 6.3.1 and WC 8.1.1

2.1.0 – 2023-03-31

  • Enhancement – Added redirection option as per @trondandre1962’s request.

2.0.3 – 2023-03-31

  • Fix – Fixed inputs in wp-admin buged in some systems.

2.0.2 – 2023-03-30

  • Fix – Fixed inputs in wp-admin because of the escapes.

2.0.1 – 2023-03-27

  • Update – Changed the images to be WordPress.org compliant.
  • Update – Escaped the echos.
  • Fix – Fixed a bug that threw an error when admin page was not configured by user.

2.0.0 – 2023-03-27

  • Update – Removal of Freemius platform.
  • Update – Changed a few wordings on admin page.
  • Fix – Fixed a bug that threw an error when admin page was not configured by user.

1.2.4 – 2022-06-30

  • Update – Changed readme.txt to be WordPress.org compliant.
  • Update – Changed plugin textdomain to be WordPress.org compliant.

1.2.3 – 2022-06-30

  • Update – Changed Freemius version to be WordPress.org compliant.

1.2.2 – 2022-06-23

  • Update – Tested on latest and greatest -> WP 6.0 and WC 6.6.1

1.2.1 – 2021-03-08

  • Update – Tested on latest and greatest -> WP 5.7.0 and WC 5.0.0
  • Update – Translations to pt_BR and es_ES were updated
  • Enhancement – Added links for support and rating on plugin’s settings.
  • Tweak – Positioned the radio buttons vertically in the plugin’s settings for better reading.
  • Fix – Button did not take hover colors set on wp-admin.

1.1.4 – 2020-08-10

  • Update – Tested on latest and greatest -> WP 5.5.1 and WC 4.5.2

1.1.3 – 2019-12-11

  • Update – Tested on latest and greatest -> WP 5.3.0 and WC 3.8.1

1.1.2 – 2019-09-02

  • Update – Tested on latest and greatest -> WP 5.2.2 and WC 3.7.0

1.1.1 – 2019-07-09

  • Dev – Added Fremius code for better tracking
  • Update – Tested on latest and greatest -> WP 5.2.2 and WC 3.6.5

1.1.0 – 2019-05-26

  • Dev – Code organizing
  • Enhancement – changed the way this plugin depends on Woo with better coding
  • Update – Translations to pt_BR and es_ES were updated
  • Update – Tested on latest and greatest -> WP 5.2.1 and WC 3.6.3

1.0.1 – 2019-04-21

  • Dev – Added option for the text color on mouse hover
  • Tweak – Removed the admin option to turn the plugin on and off (which was the same as disabling/enabling the plugin)
  • Enhancement – Added “requires at least” and “tested up to” for both WordPress and WooCommerce
  • Enhancement – Added donation link to plugins action links
  • Enhancement – Added Spanish es_ES transalations
  • Update – Translation to Portuguese pt_BR was updated
  • Update – Tested on latest and greatest -> WP 5.1.1 and WC 3.6.1

1.0.0 – 2019-03-25

  • Dev – Added new options to better css control
  • Enhancement – Changed the options page to be more intuitive
  • Enhancement – Removed unecessary resources from load, making it even faster
  • Enhancement – Improved the readme.txt to be more well documented
  • Tweak – Altered main button HTML tag from input to button to match other buttons in WooCommerce
  • Update – translation pt_BR

0.9 – 2019-03-14

  • Release version