Chúng tôi không thể tìm thấy kết nối internet
Đang cố gắng kết nối lại
Có lỗi xảy ra!
Hãy kiên nhẫn trong khi chúng tôi khắc phục sự cố
Medusajs 2.0 coding tutorial: Cách tạo email xác nhận đơn hàng với Resend (phần 2)
In this video we are implementing a order confirmation email in the medusjs 2.0 backend, by first identifying the correct backend event, hooking into that event by subscribing to the event reference. We then use the event payload data to look up the order, items in the order, address and name of the customer. And finally we compile all this information into a nicely formatted email template body, and send it with the Resend integration, that we setup in part 1.
Link to complete medusajs 2.0 on Railway One-click deploy template blog post: https://funkyton.com/medusajs-2-0-is-finally-here/
Link to Github repo: https://github.com/rpuls/medusajs-2.0-for-railway-boilerplate
If you didn't already watch part 1: https://youtu.be/pbdZm26YDpE (setup and integration)
Timetable:
00:00 - Into
00:30 - Setup local environment
03:20 - Identify backend event reference
06:10 - Begin implementation, subscribe to order.placed event
09:30 - Lookup order from database
11:15 - Lookup additional data (address, items, summary)
14:45 - Inspect all collected order data
16:40 - Use AI to generate email body template for collected order information
19:50 - Summarize implementation
20:40 - Place order to verify that order confirmation email is correctly implemented and received in our mail inbox
Dịch Vào Lúc: 2025-03-29T06:15:32Z