Interface CommerceRemoveEntryGroupStrategy
- All Known Implementing Classes:
DefaultCommerceRemoveEntryGroupStrategy
public interface CommerceRemoveEntryGroupStrategy
A strategy interface for adding products to cart cart.
-
Method Summary
Modifier and TypeMethodDescriptionremoveEntryGroup(RemoveEntryGroupParameter parameter) Removes from the (existing)CartModelthe (existing)EntryGroupIf an entry with the given entry group already exists in the cart, it will be removed too.
-
Method Details
-
removeEntryGroup
@Nonnull CommerceCartModification removeEntryGroup(@Nonnull RemoveEntryGroupParameter parameter) throws CommerceCartModificationException Removes from the (existing)CartModelthe (existing)EntryGroupIf 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 groupRemoveEntryGroupParameter.cart- The user's cart in sessionRemoveEntryGroupParameter.entryGroupNumber- The number of the entry group to be removed from the cartRemoveEntryGroupParameter.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
-