Men

PRO Wear T-shirt | women

No. 0312

Men
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_fdb359b26c0e498782c71b569e9e40f3.Execute() in D:\dynamicweb.net\Solutions\staging-id.espresso4.dk-e5\Files\Templates\Designs\identity_v2\ecom\product\partials\prices.cshtml:line 18
   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 bool isAltPriceGroup = string.Equals(priceDetails.PriceGroup, "GRP A") || string.Equals(priceDetails.PriceGroup, "GRP AB"); 19 } 20 21 @if (shopContext == ShopType.B2B && string.IsNullOrEmpty(discountGroup) == false && Model.ListPrices != null && Model.ListPrices.Any()) 22 { 23 <div class="mb-2 e-product-price "> 24 25 @if (SiteContext.ShowPrices()) 26 { 27 <span class="h2 text-primary mb-1"> 28 <span class="font-weight-bold js-e-price"> 29 @priceDetails.CurrentPrice.Formatted 30 </span> 31 </span> 32 if (priceDetails.DiscountPercentage > 0) 33 { 34 <p class="text-muted small id-product-details-list-price mb-0"> 35 <span class="small"> 36 37 @if (!priceDetails.IsBasePriceFromAll && isAltPriceGroup) 38 { 39 @Translate("Product List Price - Text", "Listepris") 40 } 41 else 42 { 43 @Translate("Product Your Price - Text", "Din pris") 44 } 45 <span> 46 <span class="font-weight-bold" style="text-decoration: line-through;">@priceDetails.BasePrice.Formatted</span> 47 <span class="font-weight-bold text-primary"> - @priceDetails.DiscountPercentageFormatted</span> 48 </span> 49 50 </span> 51 </p> 52 } 53 54 if (!priceDetails.IsBasePriceFromAll && !isAltPriceGroup) 55 { 56 <p class="text-muted small id-product-details-list-price mb-0"> 57 <span class="small"> 58 ( 59 @Translate("Product List Price - Text", "Listepris") 60 <span class="js-e-product-listprice"> 61 @PriceService.Instance.GetPrice(new PriceSettings() 62 { 63 Value = Model.ListPrices.FirstOrDefault()?.Amount 64 }) 65 </span> 66 ) 67 </span> 68 </p> 69 } 70 71 72 } 73 else 74 { 75 <span class="text-muted"> 76 @Translate("Product List Price - Text", "Listepris") 77 <span class="js-e-product-listprice"> 78 @PriceService.Instance.GetPrice(new PriceSettings() 79 { 80 Value = Model.ListPrices.FirstOrDefault()?.Amount 81 }) 82 </span> 83 </span> 84 } 85 </div> 86 } 87 88 89 @if (shopContext == ShopType.B2C) 90 { 91 <p class="e-product-price mb-1 mt-0"> 92 <span class="h2 font-weight-bold text-primary mr-1">@Model.Price.Format()</span> 93 <span class="font-family-headings font-weight-semibold small text-muted"> 94 <small>(@Model.PriceWithoutVat.Formatted @Translate("Ecom - Price without VAT - text", "ekskl. moms"))</small> 95 </span> 96 </p> 97 } 98 99 @if (shopContext == ShopType.CustomerShop) 100 { 101 <p class="e-product-price mb-1 mt-0 @(showPrices == false ? "hidden-price" : string.Empty)"> 102 <span class="h2 font-weight-bold text-primary">@Model.Price.Format()</span> 103 <span class="font-family-headings font-weight-semibold small text-muted"> 104 <small>(@Translate("Ecom - Price without VAT - text", "ekskl. moms"))</small> 105 </span> 106 </p> 107 }
Extra durable T-shirt with round neck and side slit. The T-shirt has been pre-shrunk at very high temperatures, both before and after dyeing, for extra stability and long life. Sli...Show more

Dealersearch

Extra durable T-shirt with round neck and side slit. The T-shirt has been pre-shrunk at very high temperatures, both before and after dyeing, for extra stability and long life. Slightly shaped.
New colour
PRO Wear T-shirt | women
PRO Wear T-shirt | women
PRO Wear T-shirt | women
PRO Wear T-shirt | women

Extend the life of Corporate Wear

We’ve put together 10 laundry and care tips for you to extend the product’s life and, at the same time, help make a difference for the environment.

Read the 10 laundry tips


No clothes to match your needs?

Do not worry. With our Private Label solution, you have the opportunity to design your very own unique styles. We help you through the entire process from idea to finished product.

Read about Private Label

Corporate wear

More than sportswear

Passion for shirts

Made to last

Timeless Corporate Wear

Corporate Wear with a classic
and timeless design, refined
since 1983

Common identity

Clothes that highlight a common
identity and promote a sense
of community

Find your colour

Choose from 60+ colours
there is definitely one
for you

No compromise

Designed to be worn again
and again – keeps its shape
and colour

keyboard_arrow_up