Error executing template "Designs/Swift/Paragraph/Swift_ProductListGroupPoster.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_88e93fe859f14ecbbb59690d95193dce.ExecuteAsync()
   at RazorEngine.Templating.TemplateBase.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineCore.RunTemplate(ICompiledTemplate template, TextWriter writer, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineService.Run(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.DynamicWrapperService.Run(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.Run(IRazorEngineService service, String name, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass23_0.<Run>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at RazorEngine.Templating.RazorEngineServiceExtensions.Run(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Frontend.Navigation 3 @using Dynamicweb.Ecommerce.ProductCatalog 4 @using Dynamicweb.Environment 5 @using Dynamicweb.Frontend 6 7 @{ 8 ProductListViewModel productList = null; 9 if (Dynamicweb.Context.Current.Items.Contains("ProductList")) 10 { 11 productList = (ProductListViewModel)Dynamicweb.Context.Current.Items["ProductList"]; 12 } 13 else if (Pageview.Page.Item["DummyProductGroup"] != null && Pageview.IsVisualEditorMode) 14 { 15 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 16 ProductListViewModel groupList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 17 18 if (groupList?.Products is object) 19 { 20 productList = groupList; 21 } 22 } 23 } 24 25 @if (productList is object) 26 { 27 string layout = Model.Item.GetRawValueString("Layout", "align-middle-center-text-center"); 28 string alignment = ""; 29 30 string searchParameter = Dynamicweb.Context.Current.Request.GetString("q"); 31 32 bool hideTitle = Model.Item.GetBoolean("HideGroupTitle"); 33 string titleFontSize = Model.Item.GetRawValueString("TitleFontSize", "display-4"); 34 35 string groupName = productList?.Group?.Name != null ? productList.Group.Name : ""; 36 string headerName = searchParameter != "" ? Translate("Search results for") + ": " + searchParameter : groupName; 37 38 bool hideDescription = Model.Item.GetBoolean("HideGroupDescription"); 39 string groupDescription = productList?.Group?.Description != null ? productList.Group.Description : ""; 40 string descriptionFontSize = Model.Item.GetRawValueString("DescriptionFontSize", "fs-6"); 41 42 string groupImage = productList?.Group?.Assets != null ? productList.Group.Assets.FirstOrDefault(x => x.Name == "LargeImage").Value : ""; 43 if (groupImage.StartsWith("/") && !groupImage.StartsWith("/Files", StringComparison.OrdinalIgnoreCase)) 44 { 45 groupImage = $"/Files{groupImage}"; 46 } 47 48 string posterHeight = Model.Item.GetRawValueString("PosterHeight", ""); 49 posterHeight = posterHeight == "small" ? "min-vh-25" : posterHeight; 50 posterHeight = posterHeight == "medium" ? "min-vh-50" : posterHeight; 51 posterHeight = posterHeight == "large" ? "min-vh-75" : posterHeight; 52 53 string contentPadding = Model.Item.GetRawValueString("ContentPadding", ""); 54 contentPadding = contentPadding == "none" ? "p-3 px-xl-3 py-xl-4" : contentPadding; 55 contentPadding = contentPadding == "small" ? "p-3 p-xl-4" : contentPadding; 56 contentPadding = contentPadding == "large" ? "p-4 p-xl-5" : contentPadding; 57 58 string maxWidth = Model.Item.GetRawValueString("TextReadability", "max-width-on"); 59 maxWidth = maxWidth == "max-width-on" ? " mw-75ch" : maxWidth; 60 maxWidth = maxWidth == "max-width-off" ? "" : maxWidth; 61 62 string theme = !string.IsNullOrWhiteSpace(Model.Item.GetRawValueString("Theme")) ? " theme " + Model.Item.GetRawValueString("Theme").Replace(" ", "").Trim().ToLower() : ""; 63 64 if (!string.IsNullOrEmpty(groupImage)) 65 { 66 var parms = new Dictionary<string, object>(); 67 parms.Add("cssClass", "h-100 w-100"); 68 parms.Add("columns", Model.GridRowColumnCount); 69 70 parms.Add("fullwidth", true); 71 72 switch (layout) 73 { 74 case "align-top-left-text-left": 75 alignment = "text-start justify-content-start align-items-start"; 76 break; 77 case "align-top-center-text-center": 78 alignment = "text-center justify-content-center align-items-start"; 79 break; 80 case "align-top-right-text-right": 81 alignment = "text-end justify-content-end align-items-start"; 82 break; 83 case "align-middle-left-text-left": 84 alignment = "text-start justify-content-start align-items-center"; 85 break; 86 case "align-middle-center-text-center": 87 alignment = "text-center justify-content-center align-items-center"; 88 break; 89 case "align-middle-right-text-right": 90 alignment = "text-end justify-content-end align-items-center"; 91 break; 92 case "align-bottom-left-text-left": 93 alignment = "text-start justify-content-start align-items-end"; 94 break; 95 case "align-bottom-center-text-center": 96 alignment = "text-center justify-content-center align-items-end"; 97 break; 98 case "align-bottom-right-text-right": 99 alignment = "text-end justify-content-end align-items-end"; 100 break; 101 } 102 103 <div class="position-relative h-100@(theme) @(posterHeight) item_@Model.Item.SystemName.ToLower()"> 104 @if (!string.IsNullOrEmpty(groupImage)) 105 { 106 string imageFilter = Model.Item.GetRawValueString("ImageFilter", ""); 107 imageFilter = imageFilter == "no-filter" ? "" : imageFilter; 108 imageFilter = imageFilter == "filter" ? " image-filter" : imageFilter; 109 110 <div class="position-absolute top-0 bottom-0 end-0 start-0@(imageFilter)"> 111 @RenderPartial("Components/Image.cshtml", new FileViewModel { Path = groupImage }, parms) 112 </div> 113 } 114 115 @if (!hideTitle || !hideDescription) 116 { 117 <div class="container-xl h-100 @(contentPadding)"> 118 <div class="h-100 w-100 position-relative d-flex @(alignment)"> 119 <div class="@(maxWidth)"> 120 @if (!hideTitle) 121 { 122 <h1 class="@titleFontSize">@headerName</h1> 123 } 124 125 @if (!hideDescription && !string.IsNullOrEmpty(groupDescription)) 126 { 127 <div class="@descriptionFontSize mb-0-last-child"> 128 @groupDescription 129 </div> 130 } 131 </div> 132 </div> 133 </div> 134 } 135 136 </div> 137 } 138 else if (Pageview.IsVisualEditorMode) 139 { 140 <div class="alert alert-dark m-0" role="alert"> 141 <span>@Translate("Product group poster: The poster paragraph will be shown here, if any")</span> 142 </div> 143 } 144 } 145 else if (Pageview.IsVisualEditorMode) 146 { 147 <div class="alert alert-dark m-0" role="alert"> 148 <span>@Translate("Product group poster: The poster paragraph will be shown here, if any")</span> 149 </div> 150 } 151

Lagersalg-old-outdated

JA-NI Hair Accessories - Hair elastics, The Lavender Purple
JA-NI Hair Accessories - Hair elastics, The Lavender Purple
-60%

JA-NI Hair Accessories - Hair elastics, The Lavender Purple

20,00 kr.
8,00 kr. InStock
JA-NI Hair Accessories - Hair elastics, The Orange & Coral
JA-NI Hair Accessories - Hair elastics, The Orange & Coral
-60%

JA-NI Hair Accessories - Hair elastics, The Orange & Coral

20,00 kr.
8,00 kr. InStock
Youngblood Pressed Mineral Rice Powder Light, 10 g.
Youngblood Pressed Mineral Rice Powder Light, 10 g.
-29%

Youngblood Pressed Mineral Rice Powder Light, 10 g.

295,00 kr.
209,00 kr.
InStock
Fudge Luminizer Moisture Boost Shampoo, 250ml
Fudge Luminizer Moisture Boost Shampoo, 250ml
-56%

Fudge Luminizer Moisture Boost Shampoo, 250ml

229,00 kr.
100,00 kr.
InStock
Insight Antioxidant Rejuvenating Conditioner, 400 ml.
Insight Antioxidant Rejuvenating Conditioner, 400 ml.
-41%

Insight Antioxidant Rejuvenating Conditioner, 400 ml.

250,00 kr.
147,00 kr.
InStock
Epiic nr. 29 Moisturize'it Conditioner, 250 ml.
Epiic nr. 29 Moisturize'it Conditioner, 250 ml.
-50%

Epiic nr. 29 Moisturize'it Conditioner, 250 ml.

225,00 kr.
112,00 kr. InStock
Color Wow Dream Coat Supernatural Spray, 200 ml.
Color Wow Dream Coat Supernatural Spray, 200 ml.
-39%

Color Wow Dream Coat Supernatural Spray, 200 ml.

299,00 kr.
181,00 kr.
InStock
Epiic nr. 5 Volumize’it Shampoo, 250 ml.
Epiic nr. 5 Volumize’it Shampoo, 250 ml.
-21%

Epiic nr. 5 Volumize’it Shampoo, 250 ml.

216,00 kr.
170,00 kr.
InStock
Epiic nr. 16 Beach'it Sea Salt Spray, 150 ml.
Epiic nr. 16 Beach'it Sea Salt Spray, 150 ml.
-50%

Epiic nr. 16 Beach'it Sea Salt Spray, 150 ml.

225,00 kr.
112,00 kr. OutOfStock
Fudge Matte Hed GAS, 135 ml.
Fudge Matte Hed GAS, 135 ml.
-47%

Fudge Matte Hed GAS, 135 ml.

179,00 kr.
94,00 kr.
OutOfStock
Epiic nr. 6 Volumize’it Conditioner, 250 ml.
Epiic nr. 6 Volumize’it Conditioner, 250 ml.
-24%

Epiic nr. 6 Volumize’it Conditioner, 250 ml.

225,00 kr.
170,00 kr.
InStock
Fudge Clean Blonde Violet-Toning Shampoo, 1000ml.
Fudge Clean Blonde Violet-Toning Shampoo, 1000ml.
-54%

Fudge Clean Blonde Violet-Toning Shampoo, 1000ml.

539,00 kr.
248,00 kr.
InStock
Fudge Blow Dry Aqua Primer, 150 ml.
Fudge Blow Dry Aqua Primer, 150 ml.
-55%

Fudge Blow Dry Aqua Primer, 150 ml.

209,00 kr.
94,00 kr.
InStock
Insight Antioxidant Protective Hair Spray, 100 ml.
Insight Antioxidant Protective Hair Spray, 100 ml.
-63%

Insight Antioxidant Protective Hair Spray, 100 ml.

498,75 kr.
187,00 kr.
InStock
Mauboussin, A la folie EDP, 30 ml.
Mauboussin, A la folie EDP, 30 ml.
-55%

Mauboussin, A la folie EDP, 30 ml.

259,00 kr.
117,00 kr.
InStock
IdHAIR Mé2 More Colourful Shampoo, 1000 ml.
IdHAIR Mé2 More Colourful Shampoo, 1000 ml.
-55%

IdHAIR Mé2 More Colourful Shampoo, 1000 ml.

399,00 kr.
181,00 kr.
InStock
M2 Beauté Ultra Pure Solutions Vitamin C Facial Nano Spray, 75ml.
M2 Beauté Ultra Pure Solutions Vitamin C Facial Nano Spray, 75ml.
-46%

M2 Beauté Ultra Pure Solutions Vitamin C Facial Nano Spray, 75ml.

750,00 kr.
403,00 kr.
InStock
Ce-Cé Hair Spray Normal, 200 ml.
Ce-Cé Hair Spray Normal, 200 ml.
-25%

Ce-Cé Hair Spray Normal, 200 ml.

135,00 kr.
101,00 kr.
InStock
Color Wow One Minute Transformation Styling Cream, 120 ml.
Color Wow One Minute Transformation Styling Cream, 120 ml.
-40%

Color Wow One Minute Transformation Styling Cream, 120 ml.

229,00 kr.
137,00 kr. InStock
Dr. Hauschka Regenerating Intensive Treatment, 40 ml.
Dr. Hauschka Regenerating Intensive Treatment, 40 ml.
-46%

Dr. Hauschka Regenerating Intensive Treatment, 40 ml.

570,00 kr.
306,00 kr.
InStock
Revlon Nutri Color Filters 600 Red, 100 ml. (udgår)
Revlon Nutri Color Filters 600 Red, 100 ml. (udgår)
-30%

Revlon Nutri Color Filters 600 Red, 100 ml. (udgår)

115,00 kr.
80,00 kr.
InStock
The Wet Brush Original - Lilla
The Wet Brush Original - Lilla

The Wet Brush Original - Lilla

Ikke medlem
89,00 kr.
Medlemspris
39,00 kr.
InStock
Annemarie Börlind Energynature Facial Gel, 150 ml.
Annemarie Börlind Energynature Facial Gel, 150 ml.
-43%

Annemarie Börlind Energynature Facial Gel, 150 ml.

229,00 kr.
131,00 kr.
InStock
Evo Soap Dodger Body Wash, 300 ml.
Evo Soap Dodger Body Wash, 300 ml.
-24%

Evo Soap Dodger Body Wash, 300 ml.

219,00 kr.
166,00 kr.
InStock
Falengreen Conditioner mild perfume No. 07, 250ml
Falengreen Conditioner mild perfume No. 07, 250ml
-76%

Falengreen Conditioner mild perfume No. 07, 250ml

219,00 kr.
53,00 kr.
InStock
Falengreen Hand gel Sanitizer, 250 ml.
Falengreen Hand gel Sanitizer, 250 ml.
-42%

Falengreen Hand gel Sanitizer, 250 ml.

99,00 kr.
57,00 kr.
InStock
Fudge Clean Blonde Violet Conditioner, 1000 ml.
Fudge Clean Blonde Violet Conditioner, 1000 ml.
-70%

Fudge Clean Blonde Violet Conditioner, 1000 ml.

519,00 kr.
157,00 kr.
InStock
Fudge Cool Brunette Blue-Toning Conditioner, 1000ml
Fudge Cool Brunette Blue-Toning Conditioner, 1000ml
-50%

Fudge Cool Brunette Blue-Toning Conditioner, 1000ml

519,00 kr.
262,00 kr.
InStock
Insight Colored Hair Protective Conditioner, 400 ml.
Insight Colored Hair Protective Conditioner, 400 ml.
-41%

Insight Colored Hair Protective Conditioner, 400 ml.

250,00 kr.
147,00 kr.
InStock
Insight Rebalancing Scalp Exfoliating Cream, 180 ml.
Insight Rebalancing Scalp Exfoliating Cream, 180 ml.
-50%

Insight Rebalancing Scalp Exfoliating Cream, 180 ml.

252,50 kr.
126,00 kr. InStock
Insight Incolor Anti-yellow Shampoo, 400 ml.
Insight Incolor Anti-yellow Shampoo, 400 ml.
-50%

Insight Incolor Anti-yellow Shampoo, 400 ml.

250,00 kr.
125,00 kr. InStock
Insight Protective Shampoo Colored Hair, 400 ml.
Insight Protective Shampoo Colored Hair, 400 ml.
-35%

Insight Protective Shampoo Colored Hair, 400 ml.

250,00 kr.
162,50 kr.
InStock
Jane Iredale Beyond Matte Liquid Foundation M12, 27 ml.
Jane Iredale Beyond Matte Liquid Foundation M12, 27 ml.
-18%

Jane Iredale Beyond Matte Liquid Foundation M12, 27 ml.

365,00 kr.
299,00 kr.
InStock
Matrix Total Results A Curl Can Dream Manuka Honey Infused Shampoo, 300 ml.
Matrix Total Results A Curl Can Dream Manuka Honey Infused Shampoo, 300 ml.
-30%

Matrix Total Results A Curl Can Dream Manuka Honey Infused Shampoo, 300 ml.

142,00 kr.
99,00 kr. InStock
Matrix Total Results The Re-Bond 2 Pre-Conditioner, 200 ml.
Matrix Total Results The Re-Bond 2 Pre-Conditioner, 200 ml.
-30%

Matrix Total Results The Re-Bond 2 Pre-Conditioner, 200 ml.

159,00 kr.
111,00 kr. InStock
Matrix Unbreak My Blonde Conditioner, 300 ml.
Matrix Unbreak My Blonde Conditioner, 300 ml.
-19%

Matrix Unbreak My Blonde Conditioner, 300 ml.

135,00 kr.
109,00 kr.
OutOfStock
36 ud af 82 produkter
Hent flere produkter