T-TIME® T-Shirt
No. 0510
Error executing template "Designs/identity_v2/ecom/product/partials/prices.cshtml" System.NullReferenceException: Object reference not set to an instance of an object. at CompiledRazorTemplates.Dynamic.RazorEngine_d0cbabc7bbf04d849ee785cf0cebdc91.Execute() in D:\dynamicweb.net\Solutions\id.espresso4.dk-e5\Files\Templates\Designs\identity_v2\ecom\product\partials\prices.cshtml:line 15 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 Co3.Espresso.Base.Extensions 2 @using Co3.Espresso.Website.Models.FrontEnd.Settings 3 @using Co3.Espresso.Website.Services 4 @using Co3.ID.Dw.Helpers 5 @using Co3.ID.Dw.Models.Frontend.Users 6 @using Dynamicweb.Frontend 7 @using Dynamicweb.Security.UserManagement 8 @inherits Dynamicweb.Rendering.ViewModelTemplate<Co3.ID.Dw.Models.Frontend.Ecommerce.IdentityProduct> 9 10 @{ 11 ShopType shopContext = SiteContext.CurrentSiteContext(); 12 User currentUser = PageView.Current().User; 13 bool isCustomerShop = (PageView.Current().Area.Item["IsCustomerShop"] != null && (bool) PageView.Current().Area.Item["IsCustomerShop"] == true); 14 string discountGroup = currentUser != null ? currentUser.GetCustomFieldValue<string>("DiscountGroup") : string.Empty; 15 bool showPrices = !isCustomerShop || (isCustomerShop && UserContext.Current.CustomerShop.Settings.ShowPrices == true); 16 } 17 18 @if (shopContext == ShopType.B2B && string.IsNullOrEmpty(discountGroup) == false && Model.ListPrices != null && Model.ListPrices.Any()) 19 { 20 <p class="m-b-2 e-product-price "> 21 22 @if (SiteContext.ShowPrices()) 23 { 24 <span class="h2 text-primary"> 25 <span class="font-weight-bold js-e-price"> 26 @Model.Price.Formatted 27 </span> 28 </span> 29 30 <span class="text-muted small id-product-details-list-price ml-1"> 31 <span class="small"> 32 ( 33 @Translate("Product List Price - Text", "Listepris") 34 <span class="js-e-product-listprice"> 35 @PriceService.Instance.GetPrice(new PriceSettings() 36 { 37 Value = Model.ListPrices.FirstOrDefault()?.Amount 38 }) 39 </span> 40 ) 41 </span> 42 </span> 43 } 44 else 45 { 46 <span class="text-muted"> 47 @Translate("Product List Price - Text", "Listepris") 48 <span class="js-e-product-listprice"> 49 @PriceService.Instance.GetPrice(new PriceSettings() 50 { 51 Value = Model.ListPrices.FirstOrDefault()?.Amount 52 }) 53 </span> 54 </span> 55 } 56 </p> 57 } 58 59 60 @if (shopContext == ShopType.B2C) 61 { 62 <p class="e-product-price mb-1 mt-0"> 63 <span class="h2 font-weight-bold text-primary mr-1">@Model.Price.Format()</span> 64 <span class="font-family-headings font-weight-semibold small text-muted"> 65 <small>(@Model.PriceWithoutVat.Formatted @Translate("Ecom - Price without VAT - text", "ekskl. moms"))</small> 66 </span> 67 </p> 68 } 69 70 @if (shopContext == ShopType.CustomerShop) 71 { 72 <p class="e-product-price mb-1 mt-0 @(showPrices == false ? "hidden-price" : string.Empty)"> 73 <span class="h2 font-weight-bold text-primary">@Model.Price.Format()</span> 74 <span class="font-family-headings font-weight-semibold small text-muted"> 75 <small>(@Translate("Ecom - Price without VAT - text", "ekskl. moms"))</small> 76 </span> 77 </p> 78 }
Klassisches T-Shirt mit vierfachem Rippabschluss am Hals und Nacken- und Schulterband. Hält die Passform auch nach sehr häufigem Waschen.
Klassisches T-Shirt mit vierfachem Rippabschluss am Hals und Nacken- und Schulterband. Hält die Passform auch nach sehr häufigem Waschen.
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_30e467642566405f85858d6e4b08938b.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
ID® Ansvarlighedsrapport 2023/2024 Redegørelse for samfundsansvar, jf. årsregnskabslovens § 99 a". Se her