Error executing template "/Designs/SkanskaMaskin/Paragraph/_form_choosedelivery.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
at Softgear.Skanskamaskin.Analytics.ProductData.CreateCheckoutStepData() in D:\a\1\s\Softgear.SkanskaMaskin.Analytics\ProductData.cs:line 29
at Softgear.Skanskamaskin.Analytics.AnalyticsRenderer.RenderCartCheckoutSteps(String eventName) in D:\a\1\s\Softgear.SkanskaMaskin.Analytics\AnalyticsRenderer.cs:line 69
at CompiledRazorTemplates.Dynamic.RazorEngine_e390ae9dd46f4af4b27f15ac1b2fc6b3.Execute() in D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\Paragraph\_form_choosedelivery.cshtml:line 43
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()
1 @using Softgear.Skanskamaskin.Analytics;
2
3 <div class="Grid Grid--equalPush Grid--withGutter Grid--equalHeight">
4 <div class="Grid-cell u-md-size5of12 u-lg-size5of12">
5 <form action="/form/order/pickup" method="post" class="js-overlayForm">
6 <div class="Grid">
7 <div class="Grid-cell">
8 <div class="Type Type--push">
9 <h2>Hämta själv</h2>
10 <p>Vi plockar ihop din order och kontaktar dig så snart den finns att hämta.</p>
11 </div>
12 </div>
13 <div class="Grid-cell Grid-cell--alignSelfBottom">
14 <div class="Grid Grid--equalPush Grid--withGutter">
15 <div class="Grid-cell u-md-sizeFit u-lg-sizeFit">
16 <button class="Button Button--light ButtonRental" type="submit">Välj upphämtningsställe</button>
17 </div>
18 </div>
19 </div>
20 </div>
21 </form>
22 </div>
23 <div class="Grid-cell u-sizeFill">
24 </div>
25 <div class="Grid-cell u-md-size5of12 u-lg-size5of12">
26 <form action="/form/order/delivery" method="post" class="js-overlayForm">
27 <div class="Grid">
28 <div class="Grid-cell">
29 <div class="Type Type--push">
30 <h2>Få levererat</h2>
31 <p>Beställ innan kl 12.00 och få leverans nästa dag eller enligt överenskommelse.</p>
32 </div>
33 </div>
34 <div class="Grid-cell Grid-cell--alignSelfBottom">
35 <button class="Button Button--light ButtonRental" type="submit">Välj leveransadress</button>
36 </div>
37 </div>
38 </form>
39 </div>
40 </div>
41
42 <script type="text/javascript">
43 @AnalyticsRenderer.RenderCartCheckoutSteps("checkout_progress")
44 @AnalyticsRenderer.RenderCheckoutOption(2, "", "")
45 </script>