Class DefaultSubscriptionBundleCartHookHelper

java.lang.Object
de.hybris.platform.configurablebundleservices.order.hook.BundleCartHookHelper
de.hybris.platform.subscriptionbundleservices.order.hook.impl.DefaultSubscriptionBundleCartHookHelper

public class DefaultSubscriptionBundleCartHookHelper extends BundleCartHookHelper
Subscription-aware implementation of BundleCartHookHelper, invalidates entries for child carts as well as the master cart entries.
  • Constructor Details

    • DefaultSubscriptionBundleCartHookHelper

      public DefaultSubscriptionBundleCartHookHelper()
  • Method Details

    • invalidateBundleEntries

      public void invalidateBundleEntries(@Nonnull CartModel cart, @Nonnull Integer entryGroupNumber)
      Description copied from class: BundleCartHookHelper
      Sets all cart entries that belong to the same bundle to "not calculated". As the prices within a bundle may vary dependent on the bundle entries a re-calculation of the whole bundle (and all the carts that contain entries of the affected bundle) is necessary.
      Overrides:
      invalidateBundleEntries in class BundleCartHookHelper
      Parameters:
      cart - the cart to recalculate entries in.
      entryGroupNumber - the entry group number to recalculate entries for.