How to properly remove a product from the cart with JavaScript
In the past, we introduced the JS function addToCart that can be used to add various items to the cart see a post here.
As a complementary function we added function to remove an item from the cart available in Shoptet structure: shoptet.cartShared.removeFromCart. This function accepts one parameter itemId formed as an object. This ID can be found in a cart form as hidden input element.