GEYSER striped T-shirt | seamless | dame

Nr. G11024

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_f4a67e17e84a4aa8828726002efd48f8.Execute() in D:\dynamicweb.net\Solutions\id.espresso4.dk-e5\Files\Templates\Designs\identity_v2\ecom\product\partials\prices.cshtml:line 16
   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.Ecommerce 6 @using Co3.ID.Dw.Models.Frontend.Users 7 @using Dynamicweb.Frontend 8 @using Dynamicweb.Security.UserManagement 9 @inherits Dynamicweb.Rendering.ViewModelTemplate<Co3.ID.Dw.Models.Frontend.Ecommerce.IdentityProduct> 10 11 @{ 12 ShopType shopContext = SiteContext.CurrentSiteContext(); 13 User currentUser = PageView.Current().User; 14 bool isCustomerShop = (PageView.Current().Area.Item["IsCustomerShop"] != null && (bool) PageView.Current().Area.Item["IsCustomerShop"] == true); 15 string discountGroup = currentUser != null ? currentUser.GetCustomFieldValue<string>("DiscountGroup") : string.Empty; 16 bool showPrices = !isCustomerShop || (isCustomerShop && UserContext.Current.CustomerShop.Settings.ShowPrices == true); 17 PriceDetails priceDetails = Model.PriceDetails; 18 19 } 20 21 @if (shopContext == ShopType.B2B && !string.IsNullOrEmpty(discountGroup) && priceDetails != null && Model.ListPrices != null && Model.ListPrices.Any()) 22 { 23 bool isAltPriceGroup = string.Equals(priceDetails.PriceGroup, "GRP A") || string.Equals(priceDetails.PriceGroup, "GRP AB"); 24 25 <div class="mb-2 e-product-price "> 26 27 @if (SiteContext.ShowPrices()) 28 { 29 <span class="h2 text-primary mb-1"> 30 <span class="font-weight-bold js-e-price"> 31 @priceDetails.CurrentPrice.Formatted 32 </span> 33 </span> 34 if ( priceDetails.DiscountPercentage > 0) 35 { 36 <p class="text-muted small id-product-details-list-price mb-0"> 37 <span class="small"> 38 39 @if (!priceDetails.IsBasePriceFromAll && isAltPriceGroup) 40 { 41 @Translate("Product List Price - Text", "Listepris") 42 } 43 else 44 { 45 @Translate("Product Your Price - Text", "Din pris") 46 } 47 <span> 48 <span class="font-weight-bold" style="text-decoration: line-through;">@priceDetails.BasePrice.Formatted</span> 49 <span class="font-weight-bold text-primary"> - @priceDetails.DiscountPercentageFormatted</span> 50 </span> 51 52 </span> 53 </p> 54 } 55 56 if ( !priceDetails.IsBasePriceFromAll && !isAltPriceGroup) 57 { 58 <p class="text-muted small id-product-details-list-price mb-0"> 59 <span class="small"> 60 ( 61 @Translate("Product List Price - Text", "Listepris") 62 <span class="js-e-product-listprice"> 63 @PriceService.Instance.GetPrice(new PriceSettings() 64 { 65 Value = Model.ListPrices.FirstOrDefault()?.Amount 66 }) 67 </span> 68 ) 69 </span> 70 </p> 71 } 72 73 74 } 75 else 76 { 77 <span class="text-muted"> 78 @Translate("Product List Price - Text", "Listepris") 79 <span class="js-e-product-listprice"> 80 @PriceService.Instance.GetPrice(new PriceSettings() 81 { 82 Value = Model.ListPrices.FirstOrDefault()?.Amount 83 }) 84 </span> 85 </span> 86 } 87 </div> 88 } 89 90 91 @if (shopContext == ShopType.B2C) 92 { 93 <p class="e-product-price mb-1 mt-0"> 94 <span class="h2 font-weight-bold text-primary mr-1">@Model.Price.Format()</span> 95 <span class="font-family-headings font-weight-semibold small text-muted"> 96 <small>(@Model.PriceWithoutVat.Formatted @Translate("Ecom - Price without VAT - text", "ekskl. moms"))</small> 97 </span> 98 </p> 99 } 100 101 @if (shopContext == ShopType.CustomerShop) 102 { 103 <p class="e-product-price mb-1 mt-0 @(showPrices == false ? "hidden-price" : string.Empty)"> 104 <span class="h2 font-weight-bold text-primary">@Model.Price.Format()</span> 105 <span class="font-family-headings font-weight-semibold small text-muted"> 106 <small>(@Translate("Ecom - Price without VAT - text", "ekskl. moms"))</small> 107 </span> 108 </p> 109 }
Stribet T-shirt i 2 farver til en aktiv hverdag eller sport. T-shirten har et sømløst design, der sikrer tætsiddende og komfortabel pasform. Materialet er let, blødt og permanent s...Vis mere
Stribet T-shirt i 2 farver til en aktiv hverdag eller sport. T-shirten har et sømløst design, der sikrer tætsiddende og komfortabel pasform. Materialet er let, blødt og permanent svedtransporterende samt hurtigttørrende. For optimal åndbarhed er der specialstrikkede ventilationsområder. Kvalitetsforstærkning af nakke og skuldersømme.
  • checkFri fragt over kr. 499,00 · Info
  • check1-2 dages levering · Info
  • check14 dages fortrydelsesret · Info
by ID®
GEYSER striped T-shirt | seamless | dame
GEYSER striped T-shirt | seamless | dame
GEYSER striped T-shirt | seamless | dame
GEYSER striped T-shirt | seamless | dame
GEYSER striped T-shirt | seamless | dame
GEYSER striped T-shirt | seamless | dame
keyboard_arrow_up