public class DefaultAddToCartStrategy extends DefaultCommerceAddToCartStrategy
APPEND_AS_LASTDEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity| Constructor and Description |
|---|
DefaultAddToCartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getAllowedCartAdjustmentForProduct(CartModel cartModel,
ProductModel productModel,
long quantityToAdd,
PointOfServiceModel pointOfServiceModel)
Work out the allowed quantity adjustment for a product in the cart given a requested quantity change.
|
addCartEntry, addToCart, addToCart, createAddToCartResp, createEmptyCartEntry, doAddToCart, getEntryMergeStrategy, getStatusCodeAllowedQuantityChange, getStatusCodeForNotAllowedQuantityChange, getUnit, isProductForCode, mergeEntry, setEntryMergeStrategyafterAddToCart, beforeAddToCart, getCommerceAddToCartMethodHooks, getConfigurationService, setCommerceAddToCartMethodHooks, setConfigurationService, validateAddToCartcheckCartLevel, getAvailableStockLevel, getBaseStoreService, getCartEntryDao, getCartService, getCommerceCartCalculationStrategy, getCommerceStockService, getEntryForNumber, getEntryForProductAndPointOfService, getEntryOrderChecker, getForceInStockMaxQuantity, getModelService, getProductService, isMaxOrderQuantitySet, isOrderEntryUpdatable, isStockLevelSufficient, normalizeEntryNumbers, setBaseStoreService, setCartEntryDao, setCartService, setCommerceCartCalculationStrategy, setCommerceStockService, setEntryOrderChecker, setForceInStockMaxQuantity, setModelService, setProductServiceprotected long getAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel)
AbstractCommerceCartStrategygetAllowedCartAdjustmentForProduct in class AbstractCommerceCartStrategycartModel - the cartproductModel - the product in the cartquantityToAdd - the amount to increase the quantity of the product in the cart, may be negative if the request is to
reduce the quantitypointOfServiceModel - the PointOfService to check stock at, can be nullCopyright © 2018 SAP SE. All Rights Reserved.