Interface CommerceCartCalculationMethodHook
- All Known Implementing Classes:
DefaultCommerceQuoteCartCalculationMethodHook
public interface CommerceCartCalculationMethodHook
A hook interface into before and after cart calculation lifecycle
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterCalculate(CommerceCartParameter parameter) Executed after commerce cart calculationvoidbeforeCalculate(CommerceCartParameter parameter) Executed before commerce cart calculation
-
Method Details
-
afterCalculate
Executed after commerce cart calculation- Parameters:
parameter- a parameter object holding the cart data. parameter.cart may not be null.- Throws:
IllegalArgumentException- in case parameter is null or parameter.cart is null.
-
beforeCalculate
Executed before commerce cart calculation- Parameters:
parameter- a parameter object holding the cart data. parameter.cart may not be null.- Throws:
IllegalArgumentException- in case parameter is null or parameter.cart is null.
-