I installed and tried to use but there seems to be an issue working with the Elementor Cart.
The button showed blank, and no text. Tried clicking it to see what happened and it did not do anything.
Is it possible to use with Elementor?
Please advise and thanks ??
]]>Please add the ability to add css classes to the button
]]>Hello.
From what I see, this plugin works by sending a parameter in the URL (?empty-cart=clearcart). This doesn’t follow the HTTP way, that says any action should be done with POST (or PUT etc). GET is only for retrieving. In other words, you should have a <form> around that button.
A consequence is that if you have two pages open (one being the cart), then empty the cart, add new products from other page, then reload cart, will result in empty cart again.
For some reason it doesn’t seem vulnerable to CSRF, but it’s a common case.
Regards
]]>Please tell me how to add css classes to the button, I want to add bootstrap styles.
]]>when user press empty cart button, after cart empty they are redirected to https://website.com/cart/&empty-cart=clearcart
they should remain on cart page or go to home page how can i do that ? at least how can i stop redirection ?
thanks
]]>I am getting the 404 error when clicking the empty cart button too, but it doesn’t look like there’s much support helping here? And a lot of the posts & replies concerning this issue are years old, so I guess it’s just never been fixed???
]]>Hi there!
I guess it won’t be possible, but I would like to place the empty cart button to the left of the update cart button, is there any way to do it? I have tried by changing the woocommerce_after_cart_contents hook but it doesn’t work as expected. Either place the button above or below the update cart button.
I’m using WooCommerce 6.1.1
]]>thank you for your plugin.
Automatic ‘Empty Cart’ button on cart page redirect to:
“../carrito&empty-cart=clearcart” and get a 404 error,
but the tag [wec_button] redirect to:
“..//carrito?empty-cart=clearcart” and works fine…
Thank you
]]>Hi,
Since I’ve updated the WordPress core and Woocommerce the plugin is not working it simple does not remove the products from the cart, just reloads the cart adding the URL parameters ?empty-cart=clearcart but the products are still in the cart.
]]>I call my page for my cart “Basket” can i change the text on the button to read “Empty Basket”
Thanks
]]>Hi! When we first land on our cart page, the Empty Cart button is inline with the other buttons.
However, when the user interacts with the cart by removing an item, changing the quantity of a product, etc., the Empty Cart button is moved to another row.
We would like to keep the Empty Cart button inline with the other buttons at all times.
The code where the buttons appear correctly is:
<tr>
<td colspan="6" class="actions">
<div class="coupon" data-children-count="1">
<label for="coupon_code">Coupon:</label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="Dealer shipping code"> <button type="submit" class="button" name="apply_coupon" value="Apply code">Apply code</button>
</div><a class="button wecb_emptycart" href="https://mgs4u.com/ordering/cart/&empty-cart=clearcart">Empty cart</a>
<button type="submit" class="button" name="update_cart" value="Update cart" disabled="" aria-disabled="true">Update cart</button>
<input type="hidden" id="woocommerce-cart-nonce" name="woocommerce-cart-nonce" value="83f87bebef"><input type="hidden" name="_wp_http_referer" value="/ordering/cart/?v=7516fd43adaa">
</td>
</tr>
Here is a screenshot:
https://www.dropbox.com/s/u31q7o1985i4x49/inline%20buttons.png?dl=0
The code where the Empty Cart button appears on another row:
<tr>
<td colspan="6" class="actions">
<div class="coupon" data-children-count="1">
<label for="coupon_code">Coupon:</label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="Dealer shipping code"> <button type="submit" class="button" name="apply_coupon" value="Apply code">Apply code</button>
</div>
<button type="submit" class="button" name="update_cart" value="Update cart" disabled="" aria-disabled="true">Update cart</button>
<input type="hidden" id="woocommerce-cart-nonce" name="woocommerce-cart-nonce" value="83f87bebef"><input type="hidden" name="_wp_http_referer" value="/ordering/cart/?v=7516fd43adaa">
</td>
</tr>
<tr>
<td colspan="6" class="actions">
<a class="button wecb_emptycart" href="https://mgs4u.com/ordering/cart/&empty-cart=clearcart">Empty cart</a>
</td>
</tr>
Here is a screenshot:
https://www.dropbox.com/s/tzcjmu543gr2kbu/button%20on%20another%20row.png?dl=0
Any help to remedy this is appreciated! Thanks!
]]>Hello
Thanks for your Wonderful plugin.
I wanna add an addional empty card button on the menu cart in header (just before chekout button).
Thank you.
]]>Hi,
Please change line 114 of woo-empty-cart-button.php to
$cart_url = wc_get_cart_url();
Thank you in advance!
Best regards,
Spyros
The Empty Cart button does not function as expected.
Instead of redirecting to the empty cart page or the main shop page, it goes to a 404. Something seems off with the URL parameter….
.../cart/&empty-cart=clearcart
Hi,
Is there any way to translate the button’s text?
Thanks in advance!
/Fredrik
]]>Hi,
Thanks for this plugin!!
I′m using Flatsome theme and the empty button disappears when I remove a single product from the cart…
Any ideas?
Regards
]]>Hi!
Sometimes when clicking empty cart button I am being redirected to 404 page. Is there any fix for this bug?
]]>Hi,
My button is obvious. Is there any way I can change the button colour to make it obvious.
Thanks
]]>Hi,
Great button. But it doesnt work on the avada theme for some reason.
]]>hi this is good work
but is it possible to add that button in cart widget as well?