Class ShoppingBundleSelectionCriteriaAddToCartMethodHook
java.lang.Object
de.hybris.platform.configurablebundleservices.order.hook.BundleSelectionCriteriaAddToCartMethodHook
de.hybris.platform.travelservices.order.hook.TravelBundleSelectionCriteriaAddToCartMethodHook
de.hybris.platform.shoppingservices.order.hooks.ShoppingBundleSelectionCriteriaAddToCartMethodHook
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
public class ShoppingBundleSelectionCriteriaAddToCartMethodHook
extends TravelBundleSelectionCriteriaAddToCartMethodHook
The Shopping bundle selection criteria add to cart method hook.
Extending
TravelBundleSelectionCriteriaAddToCartMethodHook to skip maximum allowed products in a bundle check for
allowances-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeAddToCart(CommerceCartParameter parameter) Gets product to ignore list.voidsetProductToIgnoreList(List<String> productToIgnoreList) Sets product to ignore list.Methods inherited from class de.hybris.platform.travelservices.order.hook.TravelBundleSelectionCriteriaAddToCartMethodHook
getProjectedTotalQuantityInBundleMethods inherited from class de.hybris.platform.configurablebundleservices.order.hook.BundleSelectionCriteriaAddToCartMethodHook
afterAddToCart, getBundleTemplateService, getL10NService, getTotalQuantityInBundle, setBundleTemplateService, setL10NService
-
Constructor Details
-
ShoppingBundleSelectionCriteriaAddToCartMethodHook
public ShoppingBundleSelectionCriteriaAddToCartMethodHook()
-
-
Method Details
-
beforeAddToCart
public void beforeAddToCart(CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException - Specified by:
beforeAddToCartin interfacede.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook- Overrides:
beforeAddToCartin classTravelBundleSelectionCriteriaAddToCartMethodHook- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
getProductToIgnoreList
Gets product to ignore list.- Returns:
- the product to ignore list
-
setProductToIgnoreList
Sets product to ignore list.- Parameters:
productToIgnoreList- the product to ignore list
-