Skip to content

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

Merged
d-g-codappix merged 1 commit into
mainfrom
fix-add-to-cart-finisher
Nov 14, 2026
Merged

d-g-codappix merged 1 commit into
mainfrom
fix-add-to-cart-finisher

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 ee9dcb3 into main Nov 14, 2026
22 checks passed
@d-g-codappix
d-g-codappix deleted the fix-add-to-cart-finisher branch November 14, 2026 22:44
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