Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew 23 posts 156 karma points
    Feb 03, 2023 @ 13:55
    Andrew
    0

    Emails not being sent to customer

    Hi

    I am currently struggling to get confirmation emails to be sent to the customer.

    I am assigning to the customer using the correct member key, I would have assumed this would pull through the member email values but currently it is not, does this have to be added to a property manually?

    I have got the toggle on the email template set to "Send to Customer".

    Any advice on how to move past this would be appreciated. Thanks.

    private void AddOrderDetails(Order order, CheckoutDto postModel, string memberKey)
        {
            order.SetShippingMethod(Guid.Parse(postModel.ShippingMethods.Selected().Id));
            order.AssignToCustomer(memberKey);
    
  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Feb 03, 2023 @ 14:17
    Matt Brailsford
    100

    Hi Andrew,

    Yes, you need to set an email property on the order along these lines

    https://github.com/vendrhub/vendr-demo-store/blob/v3/main/src/Vendr.DemoStore/Web/Controllers/CheckoutSurfaceController.cs#L93

    Assigning the order to a a customer doesn't prepopulate anything, it just marks the order as being linked to that member.

  • Andrew 23 posts 156 karma points
    Feb 03, 2023 @ 14:48
    Andrew
    1

    Thanks again for the speedy response Matt. That's sorted it.

Please Sign in or register to post replies

Write your reply to:

Draft