Hi Anton, i see there is a change in Add event to cart (github). Can you tell me what this is for?
Code is executed top to bottom. Event is a way to run code from addons when event is dispatched before going to next line.
This particular event allows addons to get/set information about product upon adding to cart. For example addon can log details of added to cart product. Or change price/quantity at will.