Interface CommerceRemoveEntryGroupStrategy

All Known Implementing Classes:
DefaultCommerceRemoveEntryGroupStrategy

public interface CommerceRemoveEntryGroupStrategy
A strategy interface for adding products to cart cart.
  • Method Details

    • removeEntryGroup

      @Nonnull CommerceCartModification removeEntryGroup(@Nonnull RemoveEntryGroupParameter parameter) throws CommerceCartModificationException
      Removes from the (existing) CartModel the (existing) EntryGroup If an entry with the given entry group already exists in the cart, it will be removed too.
      Parameters:
      parameter - - A parameter object containing all attributes needed for remove entry group

      RemoveEntryGroupParameter.cart - The user's cart in session RemoveEntryGroupParameter.entryGroupNumber - The number of the entry group to be removed from the cart RemoveEntryGroupParameter.enableHooks - Are hooks enabled

      Returns:
      the cart modification data that includes a statusCode and the actual entry group number removed from the cart
      Throws:
      CommerceCartModificationException - if related cart entry wasn't removed