Exception in template (Designs\lite\eCom/Productlist/productlist.v2.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.cdcbfbadfbea.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@using System.Collections.Generic; <div class="content-block col-xs-12 col-md-8 col-lg-9" style="margin-top: 200px;"><div class="row"><div class="col-xs-12 col-sm-10 col-sm-offset-1"><div class="row"> @RenderSnippet("GroupDescriptionTop") @{ int productcount = GetLoop("Products").Count(); int groupcount = GetLoop("Childgroups").Count(); string productpageid = "0"; bool showall = false; List<string> shownproducts = new List<string>(); if (System.Web.HttpContext.Current.Request.QueryString["Material"] != null || System.Web.HttpContext.Current.Request.QueryString["WattStart"] != null || System.Web.HttpContext.Current.Request.QueryString["WattEnd"] != null) { showall = true; } if (Pageview.Area.ID == 1) { // DK productpageid = "3010"; } else if (Pageview.Area.ID == 2) { // NO productpageid = "1109"; } else if (Pageview.Area.ID == 3) { // SE productpageid = "1180"; } else if (Pageview.Area.ID == 4) { // UK productpageid = "1301"; } string tmp_ProdID = ""; foreach (var product in GetLoop("Products")) { Dynamicweb.eCommerce.Products.Product p = Dynamicweb.eCommerce.Products.Product.GetProductByID(@product.GetString("Ecom:Product.ID")); Dynamicweb.eCommerce.Products.GroupCollection gc = Dynamicweb.eCommerce.Products.Group.GetGroupsByProduct(p); if (gc.Count() > 0) { string productimagefilename = ""; string groupname = ""; string groupid = ""; bool show = false; foreach (Dynamicweb.eCommerce.Products.Group tmp_Group in p.Groups) { if ( (Pageview.Area.ID == 1 && tmp_Group.ID.IndexOf("_se") == -1 && tmp_Group.ID.IndexOf("_no") == -1) || (Pageview.Area.ID == 2 && tmp_Group.ID.IndexOf("_no") != -1) || (Pageview.Area.ID == 3 && tmp_Group.ID.IndexOf("_se") != -1) || (Pageview.Area.ID == 4 && tmp_Group.ID.IndexOf("_se") == -1 && tmp_Group.ID.IndexOf("_no") == -1) ) { string urlGroup = System.Web.HttpContext.Current.Request.QueryString["Group"].ToString().ToLower(); productimagefilename = tmp_Group.Name.ToLower().Replace(" ","_").Replace("æ","ae").Replace("ø","oe").Replace("å","aa").Replace("/","_").Replace("ö","oe").Replace("ä","ae").Replace("ä","ae").Replace("(","_").Replace(")","_").Replace("/","_"); groupname = tmp_Group.Name; foreach (Dynamicweb.eCommerce.Products.Group tmp_ParentGroup in tmp_Group.ParentGroups) { /*if (product.GetString("Ecom:Product.Name").ToLower().IndexOf("next") != -1) { if (tmp_ParentGroup.ParentGroups.Count > 0) { if (urlGroup == tmp_ParentGroup.ID.ToString().ToLower().Replace(" ","_").Replace("æ","ae").Replace("ø","oe").Replace("å","aa").Replace("/","_").Replace("ö","oe").Replace("ä","ae").Replace("ä","ae").Replace("(","_").Replace(")","_").Replace("/","_")) { foreach (Dynamicweb.eCommerce.Products.Group pg2 in tmp_ParentGroup.ParentGroups) { <span style="display: block; clear: both; padding: 10px; border: 3px solid red;"> @product.GetString("Ecom:Product.Name") <br /> Groups: @tmp_Group.Name (@tmp_Group.ID)&nbsp;&nbsp;&nbsp;<-&nbsp;&nbsp;&nbsp;@tmp_ParentGroup.Name (@tmp_ParentGroup.ID)&nbsp;&nbsp;&nbsp;<-&nbsp;&nbsp;&nbsp;@pg2.Name (@pg2.ID) </span> } } } else { if (urlGroup == tmp_ParentGroup.ID.ToString().ToLower().Replace(" ","_").Replace("æ","ae").Replace("ø","oe").Replace("å","aa").Replace("/","_").Replace("ö","oe").Replace("ä","ae").Replace("ä","ae").Replace("(","_").Replace(")","_").Replace("/","_")) { <span style="display: block; clear: both; padding: 10px; border: 3px solid red;"> @product.GetString("Ecom:Product.Name") <br /> Groups: @tmp_Group.Name (@tmp_Group.ID)&nbsp;&nbsp;&nbsp;<-&nbsp;&nbsp;&nbsp;@tmp_ParentGroup.Name (@tmp_ParentGroup.ID) </span> } } }*/ if (urlGroup == tmp_ParentGroup.ID.ToString().ToLower().Replace(" ","_").Replace("æ","ae").Replace("ø","oe").Replace("å","aa").Replace("/","_").Replace("ö","oe").Replace("ä","ae").Replace("ä","ae").Replace("(","_").Replace(")","_").Replace("/","_")) { if (!showall) { if (product.GetString("Ecom:Product:Field.IsMaster").ToLower() == "yes") { if (!shownproducts.Contains(tmp_Group.ID)) { shownproducts.Add(tmp_Group.ID); show = true; tmp_ProdID = product.GetString("Ecom:Product.ID"); } } } else { if (!shownproducts.Contains(tmp_Group.ID)) { shownproducts.Add(tmp_Group.ID); show = true; } } } } } } /*foreach (Dynamicweb.eCommerce.Products.Group g in gc) { if (g.Subgroups.Count == 0) { if ( (Pageview.Area.ID == 1 && g.ID.IndexOf("_se") == -1 && g.ID.IndexOf("_no") == -1) || (Pageview.Area.ID == 2 && g.ID.IndexOf("_no") != -1) || (Pageview.Area.ID == 3 && g.ID.IndexOf("_se") != -1) || (Pageview.Area.ID == 4 && g.ID.IndexOf("_se") == -1 && g.ID.IndexOf("_no") == -1) ) { productimagefilename = g.Name.ToLower().Replace(" ","_").Replace("æ","ae").Replace("ø","oe").Replace("å","aa").Replace("/","_").Replace("ö","oe").Replace("ä","ae").Replace("ä","ae").Replace("(","_").Replace(")","_").Replace("/","_"); groupname = g.Name; if (!showall) { if (product.GetString("Ecom:Product:Field.IsMaster").ToLower() == "yes") { if (!shownproducts.Contains(g.ID)) { shownproducts.Add(g.ID); show = true; tmp_ProdID = product.GetString("Ecom:Product.ID"); } } } else { if (!shownproducts.Contains(g.ID)) { shownproducts.Add(g.ID); show = true; } } } } }*/ if (show) { string productimage = "/files/images/lite/produkter/" + productimagefilename + ".png"; string productdetailimage = "/files/images/lite/produkter/" + product.GetString("Ecom:Product.ProductNumber") + ".png"; if (System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(productdetailimage))) { productimage = productdetailimage; } if (!showall) { <div class='col-md-4 @if (product.GetString("Ecom:Product:Field.IsMaster").ToLower() == "yes") {<text>product-is-master</text>} else {<text>product-is-not-master</text>}'><a href='@("/")@product.GetString("Ecom:Product.Link.Clean")@("&ChooseVariant=1")' class="shop-group"><div class="group-image" data-image='@productimage' data-detailimage='@productdetailimage'> @if (!string.IsNullOrWhiteSpace(productimage) && System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(productimage))) { <img src="/files/templates/designs/lite/images/1x1_white.png" data-src='@productimage' alt='@product.GetString("Ecom:Product.Name")' /> } else { <span class="no-image">@Translate("Intet_billede")</span> } </div><span>@groupname</span></a></div> } else { <div class="col-md-4"><a href='@("/")@product.GetString("Ecom:Product.Link.Clean")@("&ChooseVariant=1")' class="shop-group"><div class="group-image" data-image='@productimage' data-detailimage='@productdetailimage'> @if (!string.IsNullOrWhiteSpace(productimage) && System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(productimage))) { if (product.GetString("Ecom:Product:Field.IsMaster").ToLower() == "yes") { <img data-src='@productimage' alt='@product.GetString("Ecom:Product.Name")' /> } else { <img data-src='@productimage' alt='@product.GetString("Ecom:Product.Name")' /> } } else { <span class="no-image">@Translate("Intet_billede")</span> } </div><span>@groupname</span></a></div> } } } } } @RenderSnippet("GroupDescriptionBottom") </div></div></div></div><div id="sidebar" class="col-md-4 col-lg-3 hidden-xs hidden-sm"><div class="row"> @if (!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Extranet.UserName").ToString())) { string topcartpid = Pageview.Area.Item["KurvTopKurvAfsnit"].ToString(); topcartpid = topcartpid.Substring(topcartpid.IndexOf("#") + 1); int iTopcartpageid = Convert.ToInt32(topcartpid); <div id="navigationcart-content"> @RenderParagraphContent(iTopcartpageid) </div> } <form method="get" action='@("/Default.aspx?Id=")@Pageview.Page.ID' id="filterform"><input type="hidden" name="ID" value='@Pageview.Page.ID' /> @RenderSnippet("FilterGroupFacet") @{ string area = Pageview.Area.ID.ToString(); bool hasfilter = false; string thegroupid = ""; string descriptionGroupID = ""; List<string> subgroupids = new List<string>(); if (System.Web.HttpContext.Current.Request.QueryString["Group"] != null) { if (System.Web.HttpContext.Current.Request.QueryString["ParentGroup"] != null) { thegroupid = System.Web.HttpContext.Current.Request.QueryString["ParentGroup"]; } else { thegroupid = System.Web.HttpContext.Current.Request.QueryString["Group"]; } descriptionGroupID = System.Web.HttpContext.Current.Request.QueryString["Group"]; hasfilter = true; Dynamicweb.eCommerce.Products.Group g = Dynamicweb.eCommerce.Products.Group.GetGroupByID(thegroupid); if (descriptionGroupID != "" && descriptionGroupID.IndexOf(",") == -1) { string descriptionPosition = "bottom"; Dynamicweb.eCommerce.Products.Group gDescription = Dynamicweb.eCommerce.Products.Group.GetGroupByID(descriptionGroupID); foreach (Dynamicweb.eCommerce.Products.ProductGroupFieldValue pgfv in gDescription.ProductGroupFieldValues) { if (pgfv.ProductGroupField.SystemName.ToLower() == "groupdescriptionposition") { if (pgfv.Value.ToString() == "top") { descriptionPosition = "top"; } } } if (descriptionPosition == "top") { @SnippetStart("GroupDescriptionTop") <div class="col-md-12" id="groupDescription"> @gDescription.Description </div> @SnippetEnd("GroupDescriptionTop") } else { @SnippetStart("GroupDescriptionBottom") <div class="col-md-12" id="groupDescription"> @gDescription.Description </div> @SnippetEnd("GroupDescriptionBottom") } } foreach (Dynamicweb.eCommerce.Products.Group sg in g.Subgroups) { subgroupids.Add(sg.ID); } } } @foreach (LoopItem facetGroup in GetLoop("FacetGroups")) { foreach (LoopItem facetItem in facetGroup.GetLoop("Facets")) { if (facetItem.GetString("Facet.Name").ToLower() != "wattstart" && facetItem.GetString("Facet.Name").ToLower() != "wattend") { <span class="header">@Translate(@facetItem.GetString("Facet.Name"))</span> foreach(LoopItem FacetOption in facetItem.GetLoop("FacetOptions")) { if (facetItem.GetString("Facet.Name").ToLower() == "groupfilter") { string facetoptionname = FacetOption.GetString("FacetOption.Name"); if (subgroupids.Contains(facetoptionname)) { Dynamicweb.eCommerce.Products.Group thegroup = Dynamicweb.eCommerce.Products.Group.GetGroupByID(facetoptionname); if ( (area == "1" && !facetoptionname.Contains("_no") && !facetoptionname.Contains("_se")) || (area == "2" && facetoptionname.Contains("_no")) || (area == "3" && facetoptionname.Contains("_se")) || (area == "4" && !facetoptionname.Contains("_se") && !facetoptionname.Contains("_no")) ) { if (FacetOption.GetBoolean("FacetOption.Selected")) { <input type="checkbox" name='@facetItem.GetString("Facet.QueryParameter")' value='@FacetOption.GetString("FacetOption.Name")' id='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")' checked /><label for='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")'>@thegroup.Name</label> } else { <input type="checkbox" name='@facetItem.GetString("Facet.QueryParameter")' value='@FacetOption.GetString("FacetOption.Name")' id='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")' /><label for='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")'>@thegroup.Name</label> } } } else if (facetoptionname == thegroupid) { Dynamicweb.eCommerce.Products.Group thegroup = Dynamicweb.eCommerce.Products.Group.GetGroupByID(facetoptionname); <div class="hidden"><input type="checkbox" name="ParentGroup" value='@FacetOption.GetString("FacetOption.Name")' id='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")' checked /><input type="checkbox" name='@facetItem.GetString("Facet.QueryParameter")' value='@FacetOption.GetString("FacetOption.Name")' id="parentgroup" /></div> } } else if (facetItem.GetString("Facet.Name").ToLower() != "wattstart" && facetItem.GetString("Facet.Name").ToLower() != "wattend") { if (@FacetOption.GetString("FacetOption.Name") != "-") { if (FacetOption.GetBoolean("FacetOption.Selected")) { <input type="checkbox" name='@facetItem.GetString("Facet.QueryParameter")' value='@FacetOption.GetString("FacetOption.Name")' id='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")' checked /><label for='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")'>@Translate(FacetOption.GetString("FacetOption.Name"))</label> } else { <input type="checkbox" name='@facetItem.GetString("Facet.QueryParameter")' value='@FacetOption.GetString("FacetOption.Name")' id='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")' /><label for='@("option-")@FacetOption.GetString("FacetOptions.LoopCounter")'>@Translate(FacetOption.GetString("FacetOption.Name"))</label> } } } } } else if (facetItem.GetString("Facet.Name").ToLower() != "wattend") { <span class="header">@Translate(@facetItem.GetString("Facet.Name"))</span><div class="rangeslider"><span class="startpin"></span><span class="endpin"></span><span id="wattstart">0w</span><span id="wattend">@Pageview.Area.Item["MaxWattFilterVaerdi"].ToString()@("w")</span><span id="bar"><span id="bar-selectedrange"></span></span></div><input type="hidden" id="wattstartfield" name="WattStart" value="0" @if (System.Web.HttpContext.Current.Request.QueryString["WattStart"] != null) {<text>data-query-value='@System.Web.HttpContext.Current.Request.QueryString["WattStart"].ToString()'</text>} /><input type="hidden" id="wattendfield" name="WattEnd" value='@Pageview.Area.Item["MaxWattFilterVaerdi"].ToString()' @if (System.Web.HttpContext.Current.Request.QueryString["WattEnd"] != null) {<text>data-query-value='@System.Web.HttpContext.Current.Request.QueryString["WattEnd"].ToString()'</text>} /> } } } </form></div></div>
Tilmeld vores nyhedsbrev

Tilmeld dig nu til LITE's nyhedsbrev og høst fordelene af inspirerende belysningsløsninger, gode råd og nye produkter. Gratis og direkte i din inbox.

Spørgsmål?

Spørgsmål omkring LED, vores produkter eller brug for hjælp? Vi vil med glæde hjælpe dig. Udfyld vores formular og vi kontakter dig.

Kundelogin

Som kunde hos LITE, har du mulighed for at handle på vores webshop og købe produkter fra vores store udvalg, præcis når det passer dig!

Kontakt os

LITE A/S
Østre Fælledvej 11
DK-9400 Nørresundby
Danmark

Tlf.: +45 8872 8800
info@lite-led.dk

Åbningstider
Mandag - torsdag: 8:00 - 16:00
Fredag: 8:00 - 14:00

ShowroomKontakt os og bestil en tid for fremvisning

Login

Få direkte adgang til vores webshop. Indtast dit brugernavn og kodeord.

Glemt kodeord?Ny bruger
Vælg variant af produkt

Brug pilene til hurtigt at finde den ønskede variant.

Fragtpriser

Listen er opdateret oktober 2016

  • Fragt af colliOp til 30 kg325,00 DKK
  • Fragt-pakke 5 kg.Max 200 cm. Op til 5 kg40,00 DKK
  • Fragt-pakke 10 kg.Max 200 cm. Op til 10 kg.50,00 DKK
  • Fragt-pakke 15 kg.Max 200 cm. Op til 15 kg.65,00 DKK
  • Fragt-pakke 20 kg.Max 200 cm. Op til 20 kg.75,00 DKK
  • Fragt-pakke 30 kg.Max 200 cm. Op til 30 kg.85,00 DKK
  • Fragt af lang pakkeMax 400 cm. Op til 5 kg.75,00 DKK
  • Fragt af lang pakkeMax 400 cm. Op til 10 kg.90,00 DKK
  • Fragt af lang pakkeMax 400 cm. op til 15 kg.110,00 DKK
  • Fragt af 1 1/1 palle80x120 cm. Op til 600 kg.400,00 DKK
  • Fragt af 2 1/1 palle80x120 cm. Op til 600 kg.350,00 DKK
  • Fragt af 3 1/1 palle80x120 cm. Op til 600 kg.275,00 DKK
  • Fragt af 4-5 1/1 palle80x120cm. Op til 600 kg.260,00 DKK
  • Fragt af 6-99 1/1 palle80x120 cm. Op til 600 kg.225,00 DKK
  • Fragt af 1-99 1/2 palle60x80 cm. Op til 350 kg.300,00 DKK
  • Fragt af 1 1/1 palle80x100cm. Op til 350 kg.355,00 DKK
  • Fragt af 1-99 1/4 palle30x40 cm. Op til 200 kg.240,00 DKK
  • Fragt af industripalle120x120 cm. Op til 600 kg.525,00 DKK
  • Fragt af stor palle80x160 cm. Op til 600 kg.500,00 DKK
Tilmeld vores nyhedsbrev

Tilmeld dig nu til LITE's nyhedsbrev og høst fordelene af inspirerende belysningsløsninger, gode råd og nye produkter. Gratis og direkte i din inbox.

Spørgsmål?

Spørgsmål omkring LED, vores produkter eller brug for hjælp? Vi vil med glæde hjælpe dig. Udfyld vores formular og vi kontakter dig.