Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Jonas Nilsson 137 posts 260 karma points
    Sep 22, 2011 @ 20:01
    Jonas Nilsson
    0

    Cannot find template for e-mail type OrderConfirmation

    Hi!

    I'm trying to get the last step of the order flow working in uCommerce, and I get this error:

    Cannot find template for e-mail type OrderConfirmation and culture sv-SE. Make sure that a template is configured for e-mail type OrderConfirmation on profile Default. System.String Send(UCommerce.EntitiesV2.EmailProfile, System.String, System.Net.Mail.MailAddress, System.Collections.Generic.IDictionary`2[System.String,System.String]) at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters) at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, String orderNumber) at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder) at UCommerce.Pipelines.Pipeline`1.Execute(T subject)

    The site has 2 languages, English (Master), and Swedish.

    /Jonas

     

     

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Sep 26, 2011 @ 11:34
    Søren Spelling Lund
    0

    Hi Jonas,

    I think it might be related to the fact that uCommerce does a case sensitive string comparison when looking up the content for the e-mail, i.e. looking se-SV but database holds se-sv.

    Could you let me know what the culturecode in the table uCommerce_EmailContent says? Does it contain at least a row with se-SV on it?

  • Jonas Nilsson 137 posts 260 karma points
    Sep 29, 2011 @ 20:50
    Jonas Nilsson
    0

     

     

     

    Hi!

    The table contains a row with an sv-SE entry, with correct case.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Sep 30, 2011 @ 10:04
    Søren Spelling Lund
    0

    Hi Jonas,

    I took a look at your site and much forehead slapping ensued! The answer was right there I just couldn't see it :)

    The reason for the missing confirmation e-mail is that the checkout pipeline is configured to look for an e-mail type called 'OrderConfirmation'. I noticed that you changed the name of the type in the backend, which is fine, you just need to let the pipeline know as well otherwise it will still look for the 'OrderConfirmation' e-mail type, which doesn't exist.

    You can either change the checkout pipeline to match or rename the e-mail type back to 'OrderConfirmation'.

    I've added a new error message to the code base to make the configuration mismatch more obvious in the future, "Could not find an e-mail type named 'OrderConfirmation'. Please make sure that Settings -> E-mails -> Types contains a type called 'OrderConfirmation'.".

     

Please Sign in or register to post replies

Write your reply to:

Draft