Directory / plugin

Delete items from the WooCommerce cart button

v1.0 · by Benjamin Hagh Parast

You can use this shortcode by placing [delete_cart_items_button] in a post, page, or widget.

About this plugin

This code defines a shortcode [delete_cart_items_button] that generates a button. When the button is clicked, it triggers an AJAX request to the server, and the delete_cart_items_ajax_handler function empties the WooCommerce cart.

Plugin tags