Mööblikangas Lounge 12377 Grege

1017620

Leather Protection Cream Premium är en skydds och underhållskräm speciellt framtagen för exklusiva anilin eller vegetabiliska naturläder. Fungerar utmärkt även till andra läder som utsätts för hårt slitage. Används ej till mocka och nubuck. Rengör vid behov före behandling. Applicera kräm på duken och massera med lätta cirkulerande rörelser. Låt torka. Efterpolera med lätt tryck. rekommenderas 2-4 ggr per år eller vid behov

Kasutusvaldkonnad
  • Dekoratiivne polsterdus
  • Paat, haagissuvila
  • Mööbel, ühiskondlik ruum
  • Kardinad, drapeering
  • Mööbel, kodukasutus

Error executing template "Designs/Rapido/eCom/ProductCatalog/Partials/ProductIcons.cshtml"
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at CompiledRazorTemplates.Dynamic.RazorEngine_3a90f7f22e684bd99d38eceb36304cd6.Execute() in F:\sites\NevotexProd\WEB\Application\Files\Templates\Designs\Rapido\eCom\ProductCatalog\Partials\ProductIcons.cshtml:line 69
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 System 2 @using Dynamicweb.Rendering 3 @using Dynamicweb.Ecommerce.ProductCatalog 4 @using Dynamicweb.Ecommerce.CustomerCenter 5 @using Dynamicweb.Ecommerce.CustomerExperienceCenter.Favorites; 6 @using Nevotex.Data.Entities 7 @using Nevotex.Data.Helpers 8 @using Nevotex.Data.Services; 9 @using System.Collections.Generic; 10 @using System.Text; 11 @inherits ViewModelTemplate<ProductViewModel> 12 13 @{ 14 var productServiceForIcons = new ProductService(); 15 16 //var OkoTexLeather = Convert.ToBoolean(Model.ProductFields["OkoTexLeather"].Value); 17 18 var OkoTexLeather = productServiceForIcons.GetProductCategoryFieldValue("OkoTexLeather", Model.Id, true); 19 20 21 productServiceForIcons.GetProductCategoryFieldValue("Blue_Angel", Model.Id, true); 22 23 var IMO = productServiceForIcons.GetProductCategoryFieldValue("IMO", Model.Id, true); 24 var EcoLable = productServiceForIcons.GetProductCategoryFieldValue("EcoLable", Model.Id, true); 25 var Prop_65 = productServiceForIcons.GetProductCategoryFieldValue("Prop_65", Model.Id, true); 26 var GRS = productServiceForIcons.GetProductCategoryFieldValue("GRS", Model.Id, true); 27 var CradletoCradle = productServiceForIcons.GetProductCategoryFieldValue("CradletoCradle", Model.Id, true); 28 var LGW = productServiceForIcons.GetProductCategoryFieldValue("LGW", Model.Id, true); 29 var Olivenleder = productServiceForIcons.GetProductCategoryFieldValue("Olivenleder", Model.Id, true); 30 var blueAngel = productServiceForIcons.GetProductCategoryFieldValue("Blue_Angel", Model.Id, true); 31 } 32 33 <div class="product_LogoContainer grid__col-lg-12 grid__col-md-12 grid__col-sm-12 grid__col-xs-12"> 34 <div class="product_IconContainer"> 35 36 @{ 37 38 if (Model.ProductFields["OKOTexLogotyp"].Value is List<FieldOptionValueViewModel> listValues) 39 { 40 foreach (var field in listValues) 41 { 42 43 @RenderIcon3(@field.Value) 44 45 46 } 47 } 48 49 50 if (OkoTexLeather) 51 {@RenderIcon2("OkoTexLeather")} 52 if (IMO) 53 {@RenderIcon2("IMO")} 54 if (EcoLable) 55 {@RenderIcon2("EcoLable")} 56 if (Prop_65) 57 {@RenderIcon2("Prop_65")} 58 if (GRS) 59 {@RenderIcon2("GRS")} 60 if (CradletoCradle) 61 {@RenderIcon2("CradletoCradle")} 62 if (LGW) 63 {@RenderIcon2("LGW")} 64 if (Olivenleder) 65 {@RenderIcon2("Olivenleder")} 66 if (blueAngel) 67 {@RenderIcon2("Blue_Angel")} 68 69 if (Model.ProductFields["AdditionalProductIcons"].Value is List<FieldOptionValueViewModel> additionalIcons) 70 { 71 foreach (var field in additionalIcons) 72 { 73 var iconFolderPath = "/Files/Images/produktbilder/logotyper/"; 74 var imgPath = $"{field.Value}.svg"; 75 var fullImagePath = $"{iconFolderPath}{imgPath}"; 76 77 <img src="@fullImagePath" alt="@field.Name" title="@field.Name" /> 78 79 } 80 } 81 82 } 83 </div> 84 </div> 85 86 87 @helper RenderIcon2(string systemName) 88 { 89 var iconPath = "/Files/Images/produktbilder/logotyper/"; 90 var iconFullPath = string.Empty; 91 var iconText = string.Empty; 92 93 iconFullPath = $"{iconPath}{systemName}.png"; 94 iconText = Translate(systemName); 95 96 <img src="@iconFullPath" alt="@iconText" title="@iconText" /> 97 } 98 99 @helper RenderIcon3(string value) 100 { 101 var iconPath = "/Files/Images/produktbilder/logotyper/"; 102 var iconFullPath = string.Empty; 103 var iconText = string.Empty; 104105 var values = value.Split(';'); 106107 iconFullPath = $"{iconPath}{values[0]}.png"; 108 iconText = Translate(values[0]); 109 <a href="@values[1]" target="_blank" style="display:contents;"> 110 <img src="@iconFullPath" alt="@iconText" title="@iconText" /> 111 </a> 112113 } 114

Seotud tooted