Ucrm.Cart.RemoveItemFromCart C# (CSharp) Method

RemoveItemFromCart() public method

Deletes an item from the cart.
public RemoveItemFromCart ( System.Guid productId ) : void
productId System.Guid The Id of the product that will be removed from the cart
return void
        public void RemoveItemFromCart(Guid productId)
        {
            if (Items.ContainsKey(productId))
            {
                Items.Remove(productId);
            }
        }