-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Which component is this issue related to?
Cart
Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)
16.3.1
Bug summary
We are using an external email handler, for our emails. As such we can't use the default email sender with the abandoned carts.
I found the CartAbandonedNotification and created the following class using it:
public class UmbracoAbandonedBasket : NotificationEventHandlerBase<CartAbandonedNotification>And did the usual DI for handling this:
umbracoCommerceBuilder.WithNotificationEvent<CartAbandonedNotification>()
.RegisterHandler<UmbracoAbandonedBasket>();However when the cart is abandoned, this custom code is not really run at all. Instead we seem to use the default umbraco action.
There is nothing to suggest that the notification is deprecated.
Specifics
No response
Steps to reproduce
Steps on a setup Umbraco with a Commerce Shop setup.
- Follow setup instructions from documentation
- Setup a class inheriting from
NotificationEventHandlerBase<CartAbandonedNotification> - configure DI:
umbracoCommerceBuilder.WithNotificationEvent<CartAbandonedNotification>()
.RegisterHandler<UmbracoAbandonedBasket>();- Add something to your basket and wait for it to be deemed Abandoned.
Expected result / actual result
Expected result:
The handler to be triggered and code run.
Actual result:
The handler is not triggered.
Dependencies
Umbraco V16.2.0
This item has been added to our backlog AB#62786