Class ResetDeliveryMethodOnUpdateCartEntryHook
java.lang.Object
de.hybris.platform.b2ctelcoservices.hook.impl.ResetDeliveryMethodOnUpdateCartEntryHook
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommerceUpdateCartEntryHook
public class ResetDeliveryMethodOnUpdateCartEntryHook
extends 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected de.hybris.platform.order.CartServicevoidsetCartService(de.hybris.platform.order.CartService cartService)
-
Constructor Details
-
ResetDeliveryMethodOnUpdateCartEntryHook
public ResetDeliveryMethodOnUpdateCartEntryHook()
-
-
Method Details
-
beforeUpdateCartEntry
- Specified by:
beforeUpdateCartEntryin interfacede.hybris.platform.commerceservices.order.hook.CommerceUpdateCartEntryHook
-
afterUpdateCartEntry
- Specified by:
afterUpdateCartEntryin interfacede.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
-