Delete items from the WooCommerce cart button
Benjamin Hagh ParastThis 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.
Just activate the plugin and put the shortcode on your cart page.
1.0
No change since the previous version.
Reviews
0 out of 5 stars
- Version: 1.0
- Last updated: 5 months ago
- Active installations: 0
- WordPress version: 5.4
- Tested up to: 6.4.5
- PHP version: 7.0