How to add a clear or empty cart button in Shopify?

If you want to add a button to the cart to completely empty it. Please follow these instructions:

1. Log in to your Shopify store.

2. Click on Online store > Themes.

3. Click on the Actions from the drop-down, then select Edit code.

4. Open the cart.liquid file.

5. Add this line of code where you want to add a clear cart button.

<a href="/cart/clear" class="btn clear-cart">Empty Cart</a>

6. Click on Save.

You’ll see an “Empty Cart” button on your cart page!

How to add a clear or empty cart button in Shopify?expoundsofttechsolution How to add a clear or empty cart button in Shopify?

If you need any help please leave your queries in the comment box.