Hi,
I'm trying to add a add to basket button on the Swift_ProductListGridView.cshtml (I know, bad idea performance wise, but as we all know sometimes Customer is king :-))
The button works and adds the right quantiry of products to the basket.
However then the page reloads and the Facet template generates an error.
I suspect i must change something in the form definition/url parameter, but I'm not sure what and how to do that.
The url parameter is defined as: string url = Dynamicweb.Context.Current.Request.RawUrl;
The form is defined as:
Error executing template "Designs/Swift/Paragraph/Swift_ProductListFacets.cshtml"
System.ArgumentNullException: Waarde kan niet null zijn.
Parameternaam: source
bij System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
bij CompiledRazorTemplates.Dynamic.RazorEngine_eb1ebecab243494d97e99fea58e1f62b.<>c__DisplayClass0_0.<RenderForm>b__0(TextWriter __razor_helper_writer) in C:\DWProjects\Solutions\Melgers\Solution\Files\Swift\Files\Templates\Designs\Swift\Paragraph\Swift_ProductListFacets.cshtml:regel 225
bij CompiledRazorTemplates.Dynamic.RazorEngine_eb1ebecab243494d97e99fea58e1f62b.Execute() in C:\DWProjects\Solutions\Melgers\Solution\Files\Swift\Files\Templates\Designs\Swift\Paragraph\Swift_ProductListFacets.cshtml:regel 75
bij RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
bij RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
bij RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
bij RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
bij Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
bij Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
bij Dynamicweb.Rendering.Template.RenderRazorTemplate()