Error executing template "Designs/kyner/eCom/Productlist/espresso-with-filters.cshtml" System.Exception: _dynamicwebProduct is not Active. Settings are: {"Product":null,"Id":"206264","LanguageId":null,"VariantId":"","PrimaryVariantId":"","EmbeddedInModelList":true} at Co3.Espresso.Website.Models.FrontEnd.Ecommerce.EspressoProduct.Populate(ProductSettings settings) at Co3.Espresso.Website.Services.ProductService.GetEspressoProduct(ProductSettings settings) at CompiledRazorTemplates.Dynamic.RazorEngine_70d855a70c4a4e60b57641dcf5800c07.<>c.<Execute>b__1_0(LoopItem productLoopItem) in D:\dynamicweb.net\Solutions\Twoday\kyner.cloud.dynamicweb-cms.com\Files\Templates\Designs\kyner\eCom\Productlist\espresso-with-filters.cshtml:line 79 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at CompiledRazorTemplates.Dynamic.RazorEngine_70d855a70c4a4e60b57641dcf5800c07.Execute() in D:\dynamicweb.net\Solutions\Twoday\kyner.cloud.dynamicweb-cms.com\Files\Templates\Designs\kyner\eCom\Productlist\espresso-with-filters.cshtml:line 78 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 @inherits Co3.Espresso.Website.TemplateBases.Paragraphs.Module 2 @using System.Web 3 @using Co3.Espresso.Website.Services 4 @using Co3.Espresso.Website.Models.FrontEnd 5 @using Co3.Espresso.Website.Models.FrontEnd.Ecommerce 6 @using Co3.Espresso.Website.Models.FrontEnd.Settings 7 @using Co3.Espresso.Website.Models.FrontEnd.Handlebars 8 9 @RenderingService.Instance.SectionEnd() 10 11 <section class="p p-section e-section js-e-section e-theme-primary" id="12489"> 12 <div class="container-fluid"> 13 <div class="row"> 14 <div class="col-12 mx-auto"> 15 <div class="row"> 16 <div class="p p-imagetext p-imagetext-tb col-12 col-sm-6 col-md-6 col-lg-6 col-xl-6" id="12490"> 17 <div class="row"> 18 <div class="p-txt-container col-12"> 19 <h1>@GetString("Ecom:Group.Name")</h1> 20 </div> 21 </div> 22 </div> 23 <div class="p mb-0 p-imagetext p-imagetext-tb col-12 col-sm-6 col-md-6 col-lg-6 col-xl-6" id="12491"> 24 <div class="row"> 25 <div class="p-txt-container col-12"> 26 @if ( !string.IsNullOrEmpty( GetString( "Ecom:Group.Description" ) ) ) 27 { 28 <p>@GetString( "Ecom:Group.Description" )</p> 29 } 30 </div> 31 </div> 32 </div> 33 </div> 34 </div> 35 </div> 36 </div> 37 </section> 38 39 @RenderingService.Instance.SectionStart( new SectionSettings 40 { 41 Classes = new ClassList( "e-section pb-2 e-theme-light" ) 42 } ) 43 44 @{ 45 bool showFilters = Espresso.Item.FiltersShow == "True"; 46 EspressoSort sort = ProductListService.Instance.GetSort(); 47 48 HandlebarsProductListTemplate handlebarsProductListTemplate = HandlebarsService.Instance.GetProductListTemplate( new HandlebarsProductListTemplateSettings() 49 { 50 Classes = new ClassList( "col-12 e-productlist kyner-custom-productlist js-e-productlist js-e-require" ), 51 HeaderClasses = new ClassList( "col-12 border-bottom" ), 52 MainClasses = new ClassList( showFilters ? "col-12 col-lg-9 col-xl-9" : "col-12" ), 53 AsideClasses = new ClassList( "col-12 col-lg-3 col-xl-3" ), 54 FooterClasses = new ClassList( "col-12 col-lg-3 col-xl-3" ), 55 PageSize = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageSize" ] ) ? GetInteger( "Ecom:ProductList.PageSize" ).ToString() : HttpContext.Current.Request[ "PageSize" ], 56 PageNumber = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageNum" ] ) ? GetInteger( "Ecom:ProductList.CurrentPage" ).ToString() : HttpContext.Current.Request[ "PageNum" ], 57 SortBy = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortBy" ] ) ? sort.By : HttpContext.Current.Request[ "SortBy" ], 58 SortOrder = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortOrder" ] ) ? sort.Order : HttpContext.Current.Request[ "SortOrder" ], 59 ShowFilters = showFilters, 60 ShowSorting = Espresso.Item.SortShow == "True", 61 Heading = Espresso.Item.HeadingShow == "True" ? Espresso.Item.Name : string.Empty 62 } ); 63 64 65 List< EspressoPagingPage > productListPaging = new List< EspressoPagingPage >(); 66 if ( GetLoop( "Ecom:ProductList.Pages" ).Count > 0 ) 67 { 68 foreach ( LoopItem page in GetLoop( "Ecom:ProductList.Pages" ) ) 69 { 70 productListPaging.Add( new EspressoPagingPage() 71 { 72 Url = page.GetString( "Ecom:ProductList.Pages.Page.Url" ), 73 Number = page.GetString( "Ecom:ProductList.Pages.Page.Number" ) 74 } ); 75 } 76 } 77 78 List< EspressoProduct > productListProducts = GetLoop( "Products" ).Select( 79 productLoopItem => ProductService.Instance.GetEspressoProduct( 80 new ProductSettings() 81 { 82 Id = productLoopItem.GetString( "Ecom:Product.ID" ), 83 VariantId = productLoopItem.GetString( "Ecom:Product.VariantID" ), 84 PrimaryVariantId = productLoopItem.GetString( "Ecom:Product.DefaultVariantComboID" ), 85 EmbeddedInModelList = true 86 } 87 ) 88 ).ToList(); 89 90 EspressoProductList espressoProductList = ProductListService.Instance.GetProductList( 91 new ProductListSettings() 92 { 93 Products = productListProducts, 94 Paging = productListPaging, 95 PageSize = Convert.ToInt32( handlebarsProductListTemplate.PageSize ), 96 CurrentPage = Convert.ToInt32( handlebarsProductListTemplate.PageNumber ) 97 } 98 ); 99 } 100101 <div class="@handlebarsProductListTemplate.Classes" data-current-page="@GetInteger( "Ecom:ProductList.CurrentPage" )" data-page-count="@GetLoop( "Ecom:ProductList.Pages" ).Count" data-page-size="@handlebarsProductListTemplate.PageSize" data-products-url="@Espresso.Item.ProductsUrl" data-filters-url="@Espresso.Item.ProductsUrl" data-require="productlist"> 102 <div class="row"> 103 <div class="col-12"> 104 @RenderingService.Instance.PartialView( "ecom/productlist/partials/header.cshtml", handlebarsProductListTemplate ) 105 </div> 106107 <div class="@handlebarsProductListTemplate.AsideClasses"> 108 <form class="js-e-productlist-form"> 109 <input name="PageNum" type="hidden" value="@HttpUtility.HtmlAttributeEncode( handlebarsProductListTemplate.PageNumber )"> 110 <input name="SortBy" type="hidden" value="@HttpUtility.HtmlAttributeEncode( handlebarsProductListTemplate.SortBy )"> 111 <input name="SortOrder" type="hidden" value="@HttpUtility.HtmlAttributeEncode( handlebarsProductListTemplate.SortOrder )"> 112 <input name="PageSize" type="hidden" value="@HttpUtility.HtmlAttributeEncode( handlebarsProductListTemplate.PageSize )"> 113114 @if ( handlebarsProductListTemplate.ShowFilters ) 115 { 116 foreach ( LoopItem facetGroup in GetLoop( "FacetGroups" ) ) 117 { 118 <input name="fg" type="hidden" value="@facetGroup.GetString( "FacetGroup.Name" )"> 119 } 120 } 121122 @foreach ( LoopItem queryParameter in GetLoop( "Query.Parameters" ) ) 123 { 124 if ( string.IsNullOrEmpty( queryParameter.GetString( "Parameter.Value" ) ) == false ) 125 { 126 if ( queryParameter.GetBoolean( "Parameter.IsHandledAsFacet" ) == false && queryParameter.GetString( "Parameter.Name" ) != "q" ) 127 { 128 <input name="@queryParameter.GetString( "Parameter.Name" )" type="hidden" value="@HttpUtility.HtmlAttributeEncode( queryParameter.GetString( "Parameter.Value" ) )"> 129 } 130 } 131 } 132133 @RenderingService.Instance.PartialView( "ecom/productlist/partials/filters.cshtml", Espresso ) 134 </form> 135 </div> 136137 <div class="@handlebarsProductListTemplate.MainClasses"> 138 @RenderingService.Instance.PartialView( "ecom/productlist/partials/products.cshtml", espressoProductList 139 ) 140 @RenderingService.Instance.PartialView( "ecom/productlist/partials/paging.cshtml", espressoProductList 141 ) 142 </div> 143 </div> 144 </div> 145