Class ShoppingBundleAddToCartMethodHook
java.lang.Object
de.hybris.platform.configurablebundleservices.order.hook.BundleAddToCartMethodHook
de.hybris.platform.travelservices.order.hook.TravelBundleAddToCartMethodHook
de.hybris.platform.shoppingservices.order.hooks.ShoppingBundleAddToCartMethodHook
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
Extending
TravelBundleAddToCartMethodHook to skip the check if product is of type AllowanceProductModel or
CarryOnAllowanceProductModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWe could need to iterate though the bundle tree to find a match, that is a child bundle containing the product we are going to addGets product to ignore list.voidsetProductToIgnoreList(List<String> productToIgnoreList) Sets product to ignore list.Methods inherited from class de.hybris.platform.travelservices.order.hook.TravelBundleAddToCartMethodHook
checkBundleParametersMethods inherited from class de.hybris.platform.configurablebundleservices.order.hook.BundleAddToCartMethodHook
addEntryGroupsToEntry, addToBundle, afterAddToCart, beforeAddToCart, checkCanBeAddedToComponent, checkIsProductDisabledByRules, checkIsSoldIndividually, getBundleCartHookHelper, getBundleCartValidator, getBundleComponentEditableChecker, getBundleEntries, getBundleEntryGroup, getBundleRuleService, getBundleTemplateService, getCartService, getComponent, getEntryGroupService, getGroupForComponent, getL10NService, isAutoPickEnabled, isBundledEntry, isCalledFromStartBundle, setAutoPickEnabled, setBundleCartHookHelper, setBundleCartValidator, setBundleComponentEditableChecker, setBundleRuleService, setBundleTemplateService, setCartService, setEntryGroupService, setL10NService, startingNewBundleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
afterAddToCart, beforeAddToCart
-
Constructor Details
-
ShoppingBundleAddToCartMethodHook
public ShoppingBundleAddToCartMethodHook()
-
-
Method Details
-
checkIsProductInComponentProductList
protected void checkIsProductInComponentProductList(@Nonnull CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException We could need to iterate though the bundle tree to find a match, that is a child bundle containing the product we are going to addSkip the check if product is of type
AllowanceProductModelorCarryOnAllowanceProductModel- Overrides:
checkIsProductInComponentProductListin classTravelBundleAddToCartMethodHook- Parameters:
parameter-- 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
-