public class BundleCommerceAddToCartStrategy extends DefaultCommerceAddToCartStrategy
DefaultCommerceCartStrategy to make bundle price rules working.APPEND_AS_LASTDEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity| Constructor and Description |
|---|
BundleCommerceAddToCartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
CommerceCartModification |
addToCart(CommerceCartParameter parameter)
Adds an item to the cart for pickup in a given location
|
addCartEntry, addToCart, createAddToCartResp, createEmptyCartEntry, doAddToCart, getEntryMergeStrategy, getStatusCodeAllowedQuantityChange, getStatusCodeForNotAllowedQuantityChange, getUnit, isProductForCode, mergeEntry, setEntryMergeStrategyafterAddToCart, beforeAddToCart, getCommerceAddToCartMethodHooks, getConfigurationService, setCommerceAddToCartMethodHooks, setConfigurationService, validateAddToCartcheckCartLevel, getAllowedCartAdjustmentForProduct, getAvailableStockLevel, getBaseStoreService, getCartEntryDao, getCartService, getCommerceCartCalculationStrategy, getCommerceStockService, getEntryForNumber, getEntryForProductAndPointOfService, getEntryOrderChecker, getForceInStockMaxQuantity, getModelService, getProductService, isMaxOrderQuantitySet, isOrderEntryUpdatable, isStockLevelSufficient, normalizeEntryNumbers, setBaseStoreService, setCartEntryDao, setCartService, setCommerceCartCalculationStrategy, setCommerceStockService, setEntryOrderChecker, setForceInStockMaxQuantity, setModelService, setProductServicepublic CommerceCartModification addToCart(CommerceCartParameter parameter) throws CommerceCartModificationException
DefaultCommerceAddToCartStrategyaddToCart in interface CommerceAddToCartStrategyaddToCart in class DefaultCommerceAddToCartStrategyparameter - Cart parametersCommerceCartModificationException - if the product is a base product OR the quantity is less than 1 or no usable unit was
found (only when given unit is also null) or any other reason the cart could
not be modified.Copyright © 2018 SAP SE. All Rights Reserved.