Hi Matt,
I finally have my shop working. At least for Europe :D
However I would like to be able to automatize the shipping inquiry email process. This would be an email sent at the same time as the order confirmation email, and almost containing the same information.
Any ideas on how to proceed with this? I thought about doing it directly in the source code https://github.com/vendrhub/vendr-checkout, but I can't seem to find out where the email actually gets sent.
Any input would be greatly appreciated :)
In your handler, you can then use the IEmailTemplateService to fetch your defined email and then call emailTemplateService.SendEmail to actually send the email.
Sorry about the late reply.
But thanks a lot! Setting up the event handlers seems easy enough, but I wonder how the emailTemplateSevice is to be used? I can't seem to find much info about it in the docs, but maybe you have an example?
Send multiple emails at time of purchace
Hi Matt, I finally have my shop working. At least for Europe :D However I would like to be able to automatize the shipping inquiry email process. This would be an email sent at the same time as the order confirmation email, and almost containing the same information. Any ideas on how to proceed with this? I thought about doing it directly in the source code https://github.com/vendrhub/vendr-checkout, but I can't seem to find out where the email actually gets sent. Any input would be greatly appreciated :)
Hi Victor,
Sure. Well for this you'd need to setup some event handlers to listen for the order being finalized and then send the email.
You can find some docs on events here https://vendr.net/docs/core/1-2-0/key-concepts/events/ and a list of all available notofaction events to listen for here https://vendr.net/docs/core/1-2-0/reference/vendr-core-events/#vendrcoreeventsnotification-namespace (though you'll probably just want the
OrderFinalizedNotification
)In your handler, you can then use the
IEmailTemplateService
to fetch your defined email and then callemailTemplateService.SendEmail
to actually send the email.Hope this helps
Matt
Sorry about the late reply. But thanks a lot! Setting up the event handlers seems easy enough, but I wonder how the emailTemplateSevice is to be used? I can't seem to find much info about it in the docs, but maybe you have an example?
Hi Victor,
Sorry, I just realized I didn't reply to this. Were you able to find a solution, or do you still need an example?
Matt
Hi Matt, Yes I figured it out. Thanks for getting back to me !
is working on a reply...