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 Summary
Modifier and TypeMethodDescriptionvoidafterUpdateCart(CommerceCartParameter parameter, CommerceCartModification result) Executed after cart updatevoidbeforeUpdateCart(CommerceCartParameter parameter) Executed before cart update
-
Method Details
-
beforeUpdateCart
Executed before cart update- Parameters:
parameter- contains attributes used for cart updates
-
afterUpdateCart
Executed after cart update- Parameters:
parameter- contains attributes used for cart updatesresult- contains the modifications made on the cart
-