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 Jar w/Lid, Blue, StonewareKhai Jar w/Lid, Blue, Stoneware
 

CREATIVE COLLECTION

Khai Jar w/Lid, Blue, Stoneware

82061994

D11xH8 cm

RRP 21,90

Kili Mug, Grey, StonewareKili Mug, Grey, Stoneware
 

CREATIVE COLLECTION

Kili Mug, Grey, Stoneware

82061406

D9xH9 cm

RRP 16,90

Kiyomi Egg Cup, Clear, Recycled GlassKiyomi Egg Cup, Clear, Recycled Glass
 

CREATIVE COLLECTION

Kiyomi Egg Cup, Clear, Recycled Glass

82068198

D8xH5,5 cm

RRP 8,50

Kiyomi Wine Glass, Clear, Recycled GlassKiyomi Wine Glass, Clear, Recycled Glass
 

CREATIVE COLLECTION

Kiyomi Wine Glass, Clear, Recycled Glass

82068196

D7,5xH13 cm

RRP 16,90

Largs Throw, Blue, Recycled CottonLargs Throw, Blue, Recycled Cotton
 

CREATIVE COLLECTION

Largs Throw, Blue, Recycled Cotton

82062207

L160xW130 cm

RRP 21,90

Laval Cushion, Blue, CottonLaval Cushion, Blue, Cotton
 

CREATIVE COLLECTION

Laval Cushion, Blue, Cotton

82066536

L50xW50 cm

RRP 54,90

Leonie Bowl, Blue, StonewareLeonie Bowl, Blue, Stoneware
 

CREATIVE COLLECTION

Leonie Bowl, Blue, Stoneware

82060835

D15xH5 cm

RRP 13,90

Leonie Plate, Blue, StonewareLeonie Plate, Blue, Stoneware
 

CREATIVE COLLECTION

Leonie Plate, Blue, Stoneware

82060837

D16xH2 cm

RRP 9,90

Linley Candle Holder, Blue, GlassLinley Candle Holder, Blue, Glass
 

CREATIVE COLLECTION

Linley Candle Holder, Blue, Glass

82061821

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

RRP 19,90

Linora Bowl, Blue, StonewareLinora Bowl, Blue, Stoneware
 

CREATIVE COLLECTION

Linora Bowl, Blue, Stoneware

82061846

D12,5xH8 cm, Set of 3

RRP 51,90

Linora Bowl, Brown, StonewareLinora Bowl, Brown, Stoneware
 

CREATIVE COLLECTION

Linora Bowl, Brown, Stoneware

82061845

D12,5xH8 cm, Set of 3

RRP 51,90

keyboard_arrow_up