Hello!
I'm new to SmartStore.NET. I’m working on a project based on SmartStore.Net 2.6 and I’m trying to create a clear cart button in the Shopping Cart page. I replaced the checkbox whit a button to delete the item in the Shopping Cart:
<a class="remove ajax-cart-link"
href="#"
rel="nofollow"
data-href='@Url.Action("DeleteCartItem", "ShoppingCart", new { cartItemId = item.Id })'
data-name="@item.ProductName"
data-type="cart"
data-action="remove"
title='@T("Common.Remove")'>
<i class="fa fa-trash-o"></i>
</a>
But I can’t figure out how to create a button to remove all items from the Shopping Cart whit one click.
Any help would be appreciated.