Posted on 25/11/2025 05:22:40
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)?
