Developer forum

Forum » Ecommerce - Standard features » Order confirmation email notification limitation

Order confirmation email notification limitation

Melissa Borgmann
Melissa Borgmann
Reply

Hello,

On a solution running DW9 (9.17.2), it appears that the order confirmation notification configuration available in the shopping cart app does not trigger as intended with the following settings (also see screenshot): 

  • 'Send to' options disabled
  • Recipient email value populated
  • Mail content : Page

It seems the notification only triggers as expected if a) one of the 'Send to' options is enabled or b) if the Mail content setting is set to 'Template'. Else, the following error is returned:

Error executing razor template (Designs/Swift/Swift_Email/Paragraph/Swift_EmailOrderlines.cshtml) [SiteURL]. System.NullReferenceException: Object reference not set to an instance of an object.
at CompiledRazorTemplates.Dynamic.RazorEngine_146409e3d8e949f986a87d90cf8acef7.Execute() in F:\Web\Custom\Files\Templates\Designs\Swift\Swift_Email\Paragraph\Swift_EmailOrderlines.cshtml:line 32
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()

Is this a known limitation? If yes, can the documentation for this feature be updated accordingly (http://doc.dynamicweb.com/documentation-9/ecommerce/apps/shopping-cart#2939)?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

It seems like something is wrong in line 32 of the template:

https://github.com/dynamicweb/Swift/blob/v1.26.8/Swift/Files/Templates/Designs/Swift/Swift_Email/Paragraph/Swift_EmailOrderlines.cshtml

So if anything it is a Swift orderline template that expects that one of those options are set. You probably have a custom version of the template, so have a look at what happens in that line.

 
Melissa Borgmann
Melissa Borgmann
Reply

Hi Nicolai,

We looked into this further and confirmed the files match the default Swift template.

 

You must be logged in to post in the forum