Class DefaultSubscriptionBundleCartHookHelper


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

      • DefaultSubscriptionBundleCartHookHelper

        public DefaultSubscriptionBundleCartHookHelper()
    • Method Detail

      • invalidateBundleEntries

        public void invalidateBundleEntries​(@Nonnull
                                            CartModel cart,
                                            @Nonnull
                                            java.lang.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.