Class BundleCommerceAddToCartStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
-
- de.hybris.platform.commerceservices.order.impl.BundleCommerceAddToCartStrategy
-
- All Implemented Interfaces:
CommerceAddToCartStrategy
public class BundleCommerceAddToCartStrategy extends DefaultCommerceAddToCartStrategy
OverridesDefaultCommerceCartStrategyto make bundle price rules working.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
APPEND_AS_LAST
-
Fields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity
-
-
Constructor Summary
Constructors Constructor Description BundleCommerceAddToCartStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommerceCartModificationaddToCart(CommerceCartParameter parameter)Adds an item to the cart for pickup in a given location-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
addCartEntry, addToCart, createAddToCartResp, createEmptyCartEntry, doAddToCart, getEntryMergeStrategy, getStatusCodeAllowedQuantityChange, getStatusCodeForNotAllowedQuantityChange, getUnit, isProductForCode, mergeEntry, setEntryMergeStrategy
-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
afterAddToCart, beforeAddToCart, getAddToCartValidators, getCommerceAddToCartMethodHooks, getConfigurationService, getFallbackAddToCartValidator, setAddToCartValidators, setCommerceAddToCartMethodHooks, setConfigurationService, setFallbackAddToCartValidator, validateAddToCart
-
Methods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
checkCartLevel, 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, setProductService
-
-
-
-
Method Detail
-
addToCart
public CommerceCartModification addToCart(CommerceCartParameter parameter) throws CommerceCartModificationException
Description copied from class:DefaultCommerceAddToCartStrategyAdds an item to the cart for pickup in a given location- Specified by:
addToCartin interfaceCommerceAddToCartStrategy- Overrides:
addToCartin classDefaultCommerceAddToCartStrategy- Parameters:
parameter- Cart parameters- Returns:
- Cart modification information
- Throws:
CommerceCartModificationException- if theproductis a base product OR the quantity is less than 1 or no usable unit was found (only when givenunitis alsonull) or any other reason the cart could not be modified.
-
-