Interface CommerceCartCalculationMethodHook

All Known Implementing Classes:
DefaultCommerceQuoteCartCalculationMethodHook

public interface CommerceCartCalculationMethodHook
A hook interface into before and after cart calculation lifecycle
  • Method Details

    • afterCalculate

      void afterCalculate(CommerceCartParameter parameter)
      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

      void beforeCalculate(CommerceCartParameter parameter)
      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.