Interface TmaUpdateCartHook

  • All Known Implementing Classes:
    DefaultTmaResourceUpdateCartHook

    public interface TmaUpdateCartHook
    A hook strategy to run custom code before/after updating a cart
    Since:
    1911
    • Method Detail

      • beforeUpdateCart

        void beforeUpdateCart​(CommerceCartParameter parameter)
        Executed before cart update
        Parameters:
        parameter - contains attributes used for cart updates
      • afterUpdateCart

        void afterUpdateCart​(CommerceCartParameter parameter,
                             CommerceCartModification result)
        Executed after cart update
        Parameters:
        parameter - contains attributes used for cart updates
        result - contains the modifications made on the cart