Cottage

Error executing template "Designs/bloomingville/ecom/productlist/partials/item.cshtml"System.FormatException: Input string was not in a correct format.at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)at Co3.Bloomingville.Website.Models.Frontend.Ecommerce.BloomingvilleProduct.<>c.b__35_1(EspressoProductImageUrl epiu) in C:\projects\bloomingville\Bloomingville\Co3.Bloomingville.Website\Models\Frontend\Ecommerce\BloomingvilleProduct.cs:line 207at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)at System.Linq.OrderedEnumerable`1.d__1.MoveNext()at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)at Co3.Bloomingville.Website.Models.Frontend.Ecommerce.BloomingvilleProduct.get_LifeStyleImages() in C:\projects\bloomingville\Bloomingville\Co3.Bloomingville.Website\Models\Frontend\Ecommerce\BloomingvilleProduct.cs:line 206at Co3.Bloomingville.Website.Models.Frontend.Ecommerce.BloomingvilleProduct.get_HoverImage() in C:\projects\bloomingville\Bloomingville\Co3.Bloomingville.Website\Models\Frontend\Ecommerce\BloomingvilleProduct.cs:line 226at CompiledRazorTemplates.Dynamic.RazorEngine_08915048c1584ee0a72c16b51c1d2c8a.Execute() in E:\Dynamicweb.NET\Solutions\bloomingville.espresso4.dk\Files\Templates\Designs\bloomingville\ecom\productlist\partials\item.cshtml:line 31at 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.b__0(TextWriter writer)at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits ViewModelTemplate<Co3.Bloomingville.Website.Models.Frontend.Ecommerce.BloomingvilleProduct> 2 @using Co3.Espresso.Website.Models.FrontEnd.Ecommerce 3 @using Co3.Espresso.Website.Models.FrontEnd.Handlebars 4 @using Co3.Espresso.Website.Services 5 @using Dynamicweb.Ecommerce.CustomerCenter 6 @using Dynamicweb.Frontend 7 @using Dynamicweb.Rendering 8 @using Dynamicweb.Security.UserManagement 9 10 @{ 11 bool isUserAuthenticated = User.IsExtranetUserLoggedIn(); 12 } 13 14 <div class="e-productlist-item js-e-productlist-item js-e-productlist-item-@Model.Id mb-4" data-product-id="@Model.Id" data-variant-id="@Model.VariantId"> 15 <div class="e-productlist-item-container"> 16 <div class="e-productlist-item-image-container"> 17 18 <div class="position-absolute m-1" style="bottom: 0; right: 0"> 19 @if (Model.Found != null) 20 { 21 <img class="bloomingville-product-label-icon-authentic-founds" src="/Files/Templates/Designs/bloomingville/_assets/img/authentic-founds_icon.svg"/> 22 } 23 else if (Model.OekoTex != null) 24 { 25 <img class="bloomingville-product-label-icon-oekotex" src="/Files/Templates/Designs/bloomingville/_assets/img/oeko-tex-label.svg"/> 26 } 27 </div> 28 29 <a class="e-productlist-item-image-wrapper" href="@Model.Link"> 30 <img alt="@Model.Name" class="e-productlist-item-image p-2" src="@(Model.ImagePrimary?.Medium)"> 31 @if ( Model?.HoverImage.Any() == true ) 32 { 33 <img alt="@Model.Name" class="e-productlist-item-image e-productlist-item-image-hover" src="@ImageService.Instance.GetImageURL(Model.HoverImage.FirstOrDefault().Original, 480, 640)"> 34 } 35 else 36 { 37 if (Model.Images.Any() == true ) 38 { 39 <img alt="@Model.Name" class="e-productlist-item-image e-productlist-item-image-hover" src="@ImageService.Instance.GetImageURL(Model.Images.FirstOrDefault().Small, 480, 640)"> 40 } 41 } 42 </a> 43 </div> 44 @if (isUserAuthenticated) 45 { 46 @RenderingService.Instance.PartialView("ecom/product/partials/add-to-cart.cshtml", Model) 47 } 48 49 <div class="e-productlist-item-text-container small"> 50 @if (isUserAuthenticated != true) 51 { 52 <span class="mb-1">&nbsp;</span> 53 } 54 <h4 class="float-left">@Model.Brand</h4> 55 @if (isUserAuthenticated) 56 { 57 <div class="small float-right d-flex justify-content-end bloomingville-delivery-info"> 58 @RenderingService.Instance.PartialView("ecom/product/partials/delivery-info.cshtml", Model) 59 </div> 60 } 61 62 <p class="e-productlist-item-name mb-0" style="clear: both;"> 63 <a href="@Model.Link">@Model.Name</a> 64 </p> 65 <p class="small mb-0">@Model.Number</p> 66 <p class="small mb-0" style="padding-top: 5px;">@Model.Description2</p> 67 68 @if (isUserAuthenticated) 69 { 70 <p class="e-product-price h3 mt-0" style="padding-top: 5px;"> 71 <span class="mr-1"> 72 @Model.Price.Format() 73 </span> 74 @if (Model.SuggestedRetailPrice.Value > Model.Price.Value) 75 { 76 <span class="text-muted" style="text-decoration: line-through;"> 77 @Model.SuggestedRetailPrice.Format() 78 </span> 79 } 80 </p> 81 82 <p class="e-product-price mt-0" style="padding-top: 5px;"> 83 <span class="d-block small text-muted">@Translate("eCom Product - Vejl. udsalgspris - Text")</span> 84 <span class="mr-1"> 85 @Model.WholesalePrice.Format() 86 </span> 87 </p> 88 89 IEnumerable<CustomerProductList> userFavoriteLists = CustomerProductList.GetAllProductLists(PageView.Current().User.ID); 90 string isInAnyList = userFavoriteLists.Any(fl => Model.IsInFavoriteList(fl.ID)) == true ? "isInAnyList" : ""; 91 92 <div class="bloomingville-addtolist-wrapper js-bloomingville-addtolist-wrapper @isInAnyList"> 93 <div class="dropdown js-e-productlist-favorite-list-container" data-product-id="@Model.Id" data-variant-id="@Model.VariantId"> 94 <span class="dropdown-toggle" data-toggle="dropdown"> 95 <span class="bloomingville-productlist-addtolist label-favorite"></span> 96 </span> 97 <div class="dropdown-menu dropdown-menu-left pt-0"> 98 @RenderingService.Instance.PartialView("ecom/productlist/partials/add-to-favorites.cshtml", Model) 99 </div>100 </div>101 </div>102 }103 else104 {105 <p class="e-product-price h3 mt-0" style="padding-top: 5px;">106 <span class="d-block small text-muted">@Translate("eCom Product - Vejl. udsalgspris - Text")</span>107 <span class="mr-1">108 @Model.WholesalePrice.Format()109 </span>110 </p>111 }112 </div>113 </div>114 </div>115
Khai Krukke m/låg, Blå, StentøjKhai Krukke m/låg, Blå, Stentøj
 

CREATIVE COLLECTION

Khai Krukke m/låg, Blå, Stentøj

82061994

D11xH8 cm

Vejl. udsalgspris149,00 DKK

Kili Krus, Grå, StentøjKili Krus, Grå, Stentøj
 

CREATIVE COLLECTION

Kili Krus, Grå, Stentøj

82061406

D9xH9 cm

Vejl. udsalgspris119,00 DKK

Kiyomi Vinglas, Klar, Genanvendt GlasKiyomi Vinglas, Klar, Genanvendt Glas
 

CREATIVE COLLECTION

Kiyomi Vinglas, Klar, Genanvendt Glas

82068196

D7,5xH13 cm

Vejl. udsalgspris119,00 DKK

Kiyomi Æggebæger, Klar, Genanvendt GlasKiyomi Æggebæger, Klar, Genanvendt Glas
 

CREATIVE COLLECTION

Kiyomi Æggebæger, Klar, Genanvendt Glas

82068198

D8xH5,5 cm

Vejl. udsalgspris59,00 DKK

Largs Plaid, Blå, Genanvendt BomuldLargs Plaid, Blå, Genanvendt Bomuld
 

CREATIVE COLLECTION

Largs Plaid, Blå, Genanvendt Bomuld

82062207

L160xW130 cm

Vejl. udsalgspris169,00 DKK

Laval Pude, Blå, BomuldLaval Pude, Blå, Bomuld
 

CREATIVE COLLECTION

Laval Pude, Blå, Bomuld

82066536

L50xW50 cm

Vejl. udsalgspris399,00 DKK

Leonie Skål, Blå, StentøjLeonie Skål, Blå, Stentøj
 

CREATIVE COLLECTION

Leonie Skål, Blå, Stentøj

82060835

D15xH5 cm

Vejl. udsalgspris99,00 DKK

Leonie Tallerken, Blå, StentøjLeonie Tallerken, Blå, Stentøj
 

CREATIVE COLLECTION

Leonie Tallerken, Blå, Stentøj

82060837

D16xH2 cm

Vejl. udsalgspris79,00 DKK

Linley Lysestage, Blå, GlasLinley Lysestage, Blå, Glas
 

CREATIVE COLLECTION

Linley Lysestage, Blå, Glas

82061821

L13xH2,5xW7,5/D8xH12 cm, Set of 2

Vejl. udsalgspris149,00 DKK

Linora Krus, Brun, StentøjLinora Krus, Brun, Stentøj
 

CREATIVE COLLECTION

Linora Krus, Brun, Stentøj

82060557

D11xH8,5 cm, Set of 3

Vejl. udsalgspris339,00 DKK

Linora Skål, Blå, StentøjLinora Skål, Blå, Stentøj
 

CREATIVE COLLECTION

Linora Skål, Blå, Stentøj

82061846

D12,5xH8 cm, Set of 3

Vejl. udsalgspris379,00 DKK

keyboard_arrow_up