Class ResetDeliveryMethodOnAddToCartMethodHook
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.hook.impl.ResetDeliveryMethodOnAddToCartMethodHook
-
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook
public class ResetDeliveryMethodOnAddToCartMethodHook extends java.lang.Object implements de.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHookResets delivery mode to null every time on adding a new product to the cart to avoid keeping inappropriate delivery mode for the new items.
-
-
Constructor Summary
Constructors Constructor Description ResetDeliveryMethodOnAddToCartMethodHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAddToCart(CommerceCartParameter paramCommerceCartParameter, CommerceCartModification paramCommerceCartModification)voidbeforeAddToCart(CommerceCartParameter paramCommerceCartParameter)protected de.hybris.platform.order.CartServicegetCartService()voidsetCartService(de.hybris.platform.order.CartService cartService)
-
-
-
Method Detail
-
beforeAddToCart
public void beforeAddToCart(CommerceCartParameter paramCommerceCartParameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
- Specified by:
beforeAddToCartin interfacede.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
afterAddToCart
public void afterAddToCart(CommerceCartParameter paramCommerceCartParameter, CommerceCartModification paramCommerceCartModification) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
- Specified by:
afterAddToCartin interfacede.hybris.platform.commerceservices.order.hook.CommerceAddToCartMethodHook- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
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
-
-