Error executing template "Designs/identity_v2/ecom/product/partials/images_swiper.cshtml" System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Co3.ID.Dw.Services.ProductService.GetFrontImage(IdentityProduct product) at Co3.ID.Dw.Models.Frontend.Ecommerce.IdentityProduct.get_FrontImage() at CompiledRazorTemplates.Dynamic.RazorEngine_c55962dd654641839aed60d284987e58.Execute() in D:\dynamicweb.net\Solutions\id.espresso4.dk-e5\Files\Templates\Designs\identity_v2\ecom\product\partials\images_swiper.cshtml:line 60 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 ViewModelTemplate<Co3.ID.Dw.Models.Frontend.Ecommerce.IdentityProduct> 2 @using Co3.Espresso.Website.Models.FrontEnd.Ecommerce 3 @using Co3.Espresso.Website.Services 4 @using Dynamicweb.Rendering 5 @using System.Web 6 @using Co3.Espresso.Base.Extensions 7 @using Co3.Espresso.Base.Models 8 @using Co3.Espresso.Website.Models.FrontEnd.Settings 9 @using Co3.ID.Dw.Models.Frontend.Ecommerce 10 @using Co3.ID.Dw.Services 11 @using Dynamicweb.Frontend 12 @using RenderingService = Co3.Espresso.Website.Services.RenderingService 13 @using System.IO 14 15 @{ 16 bool isCustomerShop = (PageView.Current().Area.Item["IsCustomerShop"] != null && (bool)PageView.Current().Area.Item["IsCustomerShop"] == true); 17 } 18 <div class="swiper position-relative js-identity-swiper"> 19 <div class="productlist-brand-wrapper"> 20 @if (Model.BrandCode == "SS") 21 { 22 @ImageService.Instance.GetSvgMarkup("/Files/Images/products/Labels/SevenSeasByID.svg") 23 } 24 @if (Model.BrandCode == "GEYSER") 25 { 26 @ImageService.Instance.GetSvgMarkup("/Files/Images/products/Labels/GEYSER.svg") 27 } 28 @if (Model.BrandCode == "PRO WEAR") 29 { 30 @ImageService.Instance.GetSvgMarkup("/Files/Images/products/Labels/ProWearByID.svg") 31 } 32 </div> 33 34 <div class="productlist-label-container"> 35 @foreach (IdentityProductLabel productLabel in Model.ProductLabels) 36 { 37 <span class="productlist-label label-@productLabel.ClassName ">@productLabel.Text</span> 38 } 39 </div> 40 <div class="swiper-scroll-icon"> 41 @ImageService.Instance.GetSvgMarkup($"/Files/Templates/Designs/{PageView.Current().Area.Layout.Design.Folder.Name}/_assets/img/mouse-scroll.svg") 42 </div> 43 <div class="swiper-wrapper"> 44 <div class="swiper-slide"> 45 <div class="swiper-zoom-container"> 46 <img src="@Model.ImagePrimary.Large" alt="@Model.Name" class="e-product-image"> 47 </div> 48 </div> 49 @if (Model.ImageDetails.Any()) 50 { 51 foreach (ElementWithIndex<IdentityProductImageUrl> image in Model.ImageDetails.WithIndex()) 52 { 53 <div class="swiper-slide"> 54 <div class="swiper-zoom-container"> 55 <img src="@image.Element.Large" alt="@Model.Name" class="e-product-image"> 56 </div> 57 </div> 58 } 59 60 if (Model.FrontImage != null && Model.FrontImage.Any()) 61 { 62 foreach (ElementWithIndex<IdentityProductImageUrl> image in Model.FrontImage.WithIndex()) 63 { 64 <div class="swiper-slide"> 65 <div class="swiper-zoom-container"> 66 <img src="@image.Element.Large" alt="@Model.Name" class="e-product-image"> 67 </div> 68 </div> 69 } 70 } 71 72 if (string.IsNullOrEmpty(Model.ProductVideo) == false) 73 { 74 string fullPath = HttpContext.Current.Server.MapPath( Model.ProductVideo ); 75 if (File.Exists( fullPath )) 76 { 77 int slideTo = 0; 78 if (Model.FrontImage != null && Model.FrontImage.Any()) 79 { 80 slideTo = Model.ImageDetails.Count + Model.FrontImage.Count + 1; 81 } 82 else 83 { 84 slideTo = Model.ImageDetails.Count + 1; 85 } 86 87 <div class="swiper-slide js-identity-video-item"> 88 <video class="identity-video-medium js-identity-video-medium js-identity-video-in-carousel" playsinline muted loop data-slide-to="@slideTo" style="max-width: 100%;"> 89 <source src="@Model.ProductVideo" type="video/mp4"> 90 </video> 91 </div> 92 } 93 94 } 95 } 96 97 </div> 98 <div class="swiper-scrollbar"></div> 99 </div> 100
Vask med omtanke
Med den rigtige vask, tørring og pleje kan du forlænge levetiden på dit tøj.
Ikke noget tøj, der matcher jeres behov?
Med en Private Label løsning har I alle muligheder for at designe jeres egne styles med jeres navn/brand.
ID® Ansvarlighedsrapport 2023/2024 Redegørelse for samfundsansvar, jf. årsregnskabslovens § 99 a". Se her