Skip to content

CartAbandonedNotification Not working #805

@Zarhead-CB

Description

@Zarhead-CB

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.

  1. Follow setup instructions from documentation
  2. Setup a class inheriting from NotificationEventHandlerBase<CartAbandonedNotification>
  3. configure DI:
umbracoCommerceBuilder.WithNotificationEvent<CartAbandonedNotification>()
    .RegisterHandler<UmbracoAbandonedBasket>();
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions