Class DefaultCommerceQuoteCartCalculationMethodHook
java.lang.Object
de.hybris.platform.commerceservices.order.hook.impl.DefaultCommerceQuoteCartCalculationMethodHook
- All Implemented Interfaces:
CommerceCartCalculationMethodHook
public class DefaultCommerceQuoteCartCalculationMethodHook
extends Object
implements CommerceCartCalculationMethodHook
A hook that add the quote discounts back after calculating the cart and then calculating the cart totals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCalculate(CommerceCartParameter parameter) Executed after commerce cart calculationvoidbeforeCalculate(CommerceCartParameter parameter) Executed before commerce cart calculationprotected CalculationServiceprotected ModelServiceprotected OrderQuoteDiscountValuesAccessorvoidsetCalculationService(CalculationService calculationService) voidsetModelService(ModelService modelService) voidsetOrderQuoteDiscountValuesAccessor(OrderQuoteDiscountValuesAccessor orderQuoteDiscountValuesAccessor)
-
Constructor Details
-
DefaultCommerceQuoteCartCalculationMethodHook
public DefaultCommerceQuoteCartCalculationMethodHook()
-
-
Method Details
-
afterCalculate
Description copied from interface:CommerceCartCalculationMethodHookExecuted after commerce cart calculation- Specified by:
afterCalculatein interfaceCommerceCartCalculationMethodHook- Parameters:
parameter- a parameter object holding the cart data. parameter.cart may not be null.
-
beforeCalculate
Description copied from interface:CommerceCartCalculationMethodHookExecuted before commerce cart calculation- Specified by:
beforeCalculatein interfaceCommerceCartCalculationMethodHook- Parameters:
parameter- a parameter object holding the cart data. parameter.cart may not be null.
-
getOrderQuoteDiscountValuesAccessor
-
setOrderQuoteDiscountValuesAccessor
public void setOrderQuoteDiscountValuesAccessor(OrderQuoteDiscountValuesAccessor orderQuoteDiscountValuesAccessor) -
getCalculationService
-
setCalculationService
-
getModelService
-
setModelService
-