Class TravelBundleAddToCartMethodHook

java.lang.Object
de.hybris.platform.configurablebundleservices.order.hook.BundleAddToCartMethodHook
de.hybris.platform.travelservices.order.hook.TravelBundleAddToCartMethodHook
All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
Direct Known Subclasses:
ShoppingBundleAddToCartMethodHook

public class TravelBundleAddToCartMethodHook extends de.hybris.platform.configurablebundleservices.order.hook.BundleAddToCartMethodHook implements de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
The type Travel bundle add to cart method hook.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Removed check if the bundles stored against entries with same order group correspond.
    protected void
    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 add

    Methods 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, startingNewBundle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook

    afterAddToCart, beforeAddToCart
  • Constructor Details

    • TravelBundleAddToCartMethodHook

      public TravelBundleAddToCartMethodHook()
  • Method Details

    • checkBundleParameters

      protected void checkBundleParameters(@Nonnull CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Removed check if the bundles stored against entries with same order group correspond. We save the bundle containing the product added to the cart against the entry but assign the same group numbers / bundleNo to every entry belonging to the same root bundle, considering the whole hierarchy.
      Overrides:
      checkBundleParameters in class de.hybris.platform.configurablebundleservices.order.hook.BundleAddToCartMethodHook
      Parameters:
      parameter -
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • 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 add
      Overrides:
      checkIsProductInComponentProductList in class de.hybris.platform.configurablebundleservices.order.hook.BundleAddToCartMethodHook
      Parameters:
      parameter -
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException