Class ResetDeliveryMethodOnUpdateCartEntryHook

  • All Implemented Interfaces:
    de.hybris.platform.commerceservices.order.hook.CommerceUpdateCartEntryHook

    public class ResetDeliveryMethodOnUpdateCartEntryHook
    extends java.lang.Object
    implements de.hybris.platform.commerceservices.order.hook.CommerceUpdateCartEntryHook
    Resets delivery mode to null every time on updating cart to avoid keeping inappropriate delivery mode for the new items.
    • Constructor Detail

      • ResetDeliveryMethodOnUpdateCartEntryHook

        public ResetDeliveryMethodOnUpdateCartEntryHook()
    • Method Detail

      • beforeUpdateCartEntry

        public void beforeUpdateCartEntry​(CommerceCartParameter arg0)
        Specified by:
        beforeUpdateCartEntry in interface de.hybris.platform.commerceservices.order.hook.CommerceUpdateCartEntryHook
      • afterUpdateCartEntry

        public void afterUpdateCartEntry​(CommerceCartParameter arg0,
                                         CommerceCartModification arg1)
        Specified by:
        afterUpdateCartEntry in interface de.hybris.platform.commerceservices.order.hook.CommerceUpdateCartEntryHook
      • getCartService

        protected de.hybris.platform.order.CartService getCartService()
        Returns:
        the cartService
      • setCartService

        public void setCartService​(de.hybris.platform.order.CartService cartService)
        Parameters:
        cartService - the cartService to set