Feature: 337 - Split Up ProcessOrderCreateEvent
See Issue 337
Description
In order to better integrate the EventListener in connection with
payment providers, the \Extcode\
was split into several events.
These implement a new EventInterface and also the
\Psr\
.
Note
\Extcode\
has been marked as
deprecated and will be removed in version 8.x.
The new events in the order of their dispatch:
\Extcode\
Cart\ Event\ Order\ Create Event \Extcode\
Cart\ Event\ Order\ Stock Event \Extcode\
Cart\ Event\ Order\ Payment Event \Extcode\
Cart\ Event\ Order\ Finish Event
The new events can be activated via a feature toggle in Local
or Additional
:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['SplitUpProcessOrderCreateEvent'] = true;
The cart extension itself currently registers \Extcode\
and \Extcode\
on \Extcode\
.
And the extension registers \Extcode\
and \Extcode\
on \Extcode\
.
The product extensions extcode/cart-products, extcode/cart-events, and extcode/cart-books will
register the EventListeners to \Extcode\
.
The payment methods provider extensions should be registered to the \Extcode\
.
These should return true for the is
if the payment process cannot be completed
immediately, to prevent sending emails and clearing the cart session directly. The emails and clearing cart
is then the responsibility of the extension. Of course, the extension itself can send appropriate events and
the EventListener from this extension can be registered to it.
Impact
If the feature toggle has been activated, the event
\Extcode\
will no longer be triggered.
All EventListeners registered to this event must be registered to one of the new events.