Skip to content

[BUGFIX] Add products from forms via AddToCartFinisherEvent - #139

Merged
d-g-codappix merged 1 commit into
6.xfrom
fix-add-to-cart-finisher-for-v6
Nov 14, 2026
Merged

d-g-codappix merged 1 commit into
6.xfrom
fix-add-to-cart-finisher-for-v6

Conversation

@d-g-codappix

Copy link
Copy Markdown
Collaborator

The AddToCartFinisher was still registered via the hook $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cart']['CartEvents']['Form']['AddToCartFinisher'] which was removed in cart 9.0 (Breaking #452). Submitting a booking form showed a success message, but did not add the event date to the cart.

The finisher is now an event listener for the AddToCartFinisherEvent. Errors of the product factory, e.g. for an event date that is not bookable, are passed to the event instead of throwing an exception.

The AddToCartFinisher was still registered via the hook
`$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cart']['CartEvents']['Form']['AddToCartFinisher']`
which was removed in cart 9.0 (Breaking #452). Submitting a booking form
showed a success message, but did not add the event date to the cart.

The finisher is now an event listener for the AddToCartFinisherEvent.
Errors of the product factory, e.g. for an event date that is not
bookable, are passed to the event instead of throwing an exception.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@d-g-codappix
d-g-codappix merged commit ea5f514 into 6.x Nov 14, 2026
18 checks passed
@d-g-codappix
d-g-codappix deleted the fix-add-to-cart-finisher-for-v6 branch November 14, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant