Class TravelBundleSelectionCriteriaAddToCartMethodHook

java.lang.Object
de.hybris.platform.configurablebundleservices.order.hook.BundleSelectionCriteriaAddToCartMethodHook
de.hybris.platform.travelservices.order.hook.TravelBundleSelectionCriteriaAddToCartMethodHook
All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
Direct Known Subclasses:
ShoppingBundleSelectionCriteriaAddToCartMethodHook

public class TravelBundleSelectionCriteriaAddToCartMethodHook extends de.hybris.platform.configurablebundleservices.order.hook.BundleSelectionCriteriaAddToCartMethodHook
The type Travel bundle selection criteria add to cart method hook.
  • Constructor Details

    • TravelBundleSelectionCriteriaAddToCartMethodHook

      public TravelBundleSelectionCriteriaAddToCartMethodHook()
  • Method Details

    • beforeAddToCart

      public void beforeAddToCart(CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Specified by:
      beforeAddToCart in interface de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
      Overrides:
      beforeAddToCart in class de.hybris.platform.configurablebundleservices.order.hook.BundleSelectionCriteriaAddToCartMethodHook
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException
    • getProjectedTotalQuantityInBundle

      protected long getProjectedTotalQuantityInBundle(CommerceCartParameter parameter, Integer entryGroupNumber)
      Quantity check. Quantity in cart cannot exceed the limit stored against each bundle rule, considering all the entries related to the same bundle, same group, same product.
      Parameters:
      parameter -
      entryGroupNumber -
      Returns: