OrderStatusSavedNotification vs Validation and email #529
KeithViking
announced in
Q&A [Archived]
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I want to do some tasks when:
For
I need to add a new order status and then do some inhouse DB work when the status changes to the new one created.
I would like to use a 3rd SMTP service. I can add the settings in the config file but i need to add some custom fields for the email template using inhouse settings, images. I suppose i could add it to the template in Commerce but then it would mean the user is having to change this template in 2 places instead of one (on the custom 3rd party email system and Commerce).
I tried to add some validation and notification events but they dont register
public class TestChange : OrderStatusSavedNotification
{
public TestChange(OrderStatusReadOnly orderStatus) : base(orderStatus)
{
}
}
In Composer i regster this and get error
builder.WithValidationEvent()
.RegisterHandler();
I cant find anyway to customise the email settings. Is there a way or is this the way the system is built so no other option?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions