Error executing template "Designs/Ege/eCom/ProductCatalog/Ege_ProductViewDetail.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_cea6b08761074231baeeb99af7122ed6.Execute() in E:\Solutions\egecarpets.dk\Files\Templates\Designs\Ege\eCom\ProductCatalog\Ege_ProductViewDetail.cshtml:line 542
   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<ProductViewModel> 2 @using Dynamicweb.Rendering 3 @using Dynamicweb.Ecommerce.ProductCatalog 4 @using EGE.Website.CustomModules 5 @using EGE.Website.CustomModules.Models 6 @using EGE.Website.CustomModules.Extensions 7 @using EGE.Website.CustomModules.Helpers 8 @using System.Web 9 @using Newtonsoft.Json 10 @using Newtonsoft.Json.Linq 11 12 @{ 13 var product = Dynamicweb.Ecommerce.Services.Products.GetProductById(Model.Id, Model.VariantId, Model.LanguageId); 14 } 15 16 @if (product == null) 17 { 18 <h3>The product is not available in the chosen language, please try another.</h3> 19 } 20 else 21 { 22 bool isOutletSite = PageExtensions.IsOutletArea(Pageview.AreaID); 23 var B2cSiteActive = PageExtensions.IsB2CArea(Pageview.AreaID); 24 //string groupIdQueryParameter = string.IsNullOrEmpty(Dynamicweb.Context.Current.Request["GroupID"]) 25 // ? string.Empty 26 // : "&amp;GroupID=" + Dynamicweb.Context.Current.Request["GroupID"]; 27 var variantCombinations = product.VariantCombinations.Where(x => !x.VariantId.Contains("NA")); 28 29 string productLink = "/Default.aspx?ID=" + Pageview.Page.ID + "&amp;ProductID=" + Model.Id; 30 var prodImage = ProductExtensions.GetProductImagePath(Model.Id, out bool isExternal); 31 var prodTypeName = Model.GetFieldName("ProductEgeType"); 32 var prodTypeValue = Model.GetFieldValue("ProductEgeType"); 33 var prodConceptName = Model.GetFieldName("ProductConcept"); 34 var prodConceptValue = Model.GetFieldValue("ProductConcept"); 35 var prodCollectionName = Model.PrimaryOrDefaultGroup.Name; 36 var prodCollectionLink = string.Empty; 37 var prodB2CCollectionLink = string.Empty; 38 var prodConceptLink = string.Empty; 39 var prodColor = Model.GetFieldName("ProductColor"); 40 int variantListCounter = 0; 41 var IsBulkCarpets = PageExtensions.IsBulkCarpets(prodTypeValue); 42 43 //EGEDR-769 44 bool isCircleBack = false; 45 string circleBackText = string.Empty; 46 if (Model.ProductCategories.Keys.Any()) 47 { 48 if (Model.ProductCategories.ContainsKey("CarpetCategory")) 49 { 50 isCircleBack = bool.Parse(product.GetCategoryValue("CarpetCategory", "IsCircleBack").ToString()); 51 var circleBackTextObj = product.GetCategoryValue("CarpetCategory", "CircleBackText"); 52 circleBackText = circleBackTextObj != null ? circleBackTextObj.ToString() : null; 53 54 } 55 56 } 57 58 var CurrencyCode = Dynamicweb.Ecommerce.Common.Context.Currency.Code; 59 60 if (Model.ProductCategories.Keys.Any()) 61 { 62 if (Model.ProductCategories.ContainsKey("CarpetCategory")) 63 { 64 var fields = Model.ProductCategories["CarpetCategory"]; 65 prodCollectionLink = fields.Fields["CollectionContentPage"].Value as string; 66 prodConceptLink = fields.Fields["ConceptContentPage"].Value as string; 67 prodB2CCollectionLink = fields.Fields["B2CCollectionContentPage"].Value as string; 68 } 69 70 } 71 var images = Model.GetImages(); 72 var sustainabilityChoices = string.Empty; 73 if (Model.ProductCategories.ContainsKey("CarpetCategory")) 74 { 75 var susChoiceList = (Model.ProductCategories["CarpetCategory"].Fields["PdfSustainBlocks"]?.Value as List<FieldOptionValueViewModel>); 76 77 foreach (var choice in susChoiceList) 78 { 79 sustainabilityChoices += choice.Value; 80 } 81 } 82 83 var variantsDivId = "js-product-details__variants"; 84 var prodNumber = ""; 85 var patternNumber = ""; 86 var backingAbbr = ""; 87 88 if (isOutletSite) 89 { 90 @TemplateHelper.RenderPartial("Ecom/Partials/Details_OutletData.cshtml", Model) 91 prodNumber = Model.GetCategoryValueAs<string>("M3ProductNumber", "OutletSpecs"); 92 patternNumber = Model.GetCategoryValueAs<string>("PatternNumber", "OutletSpecs"); 93 backingAbbr = Model.GetFieldValue("ProductBacking").ToString(); 94 } 95 else 96 { 97 @TemplateHelper.RenderPartial("Ecom/Partials/Details_Data.cshtml", Model) 98 } 99 100 var cartOrderLinesFeed = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "CartOrderLinesFeed"); 101 var cartOrderLinesFeedUrl = ""; 102 if (cartOrderLinesFeed != null) 103 { 104 cartOrderLinesFeedUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartOrderLinesFeed.ID); 105 } 106 107 var isProductRug = EGE.Website.CustomModules.Extensions.ProductExtensions.IsRug(HttpContext.Current.Request["ProductID"]); 108 var showConfigurator = EGE.Website.CustomModules.Extensions.ProductExtensions.GetProductShowConfigurator(HttpContext.Current.Request["ProductID"]); 109 bool anyNonEmptyImagePath = false; 110 111 Dynamicweb.Content.PageService pageService = new Dynamicweb.Content.PageService(); 112 Dynamicweb.Content.Page configuratorLoginPage = pageService.GetPageByNavigationTag(Pageview.AreaID, "ConfiguratorLoginPage"); 113 string configuratorLoginPageUrl = configuratorLoginPage != null ? Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(configuratorLoginPage.ID) : null; 114 string productId = HttpContext.Current.Request["ProductID"]; 115 116 string configuratorFullLink = configuratorLoginPageUrl + "?configuratorId=" + productId; 117 118 var hasRugImages = false; 119 120 //Sorting images to make thumbnail first image in PDP main image slider 121 List<ImagePathModel> imageArray = new List<ImagePathModel>(); 122 ImagePathCollectionModel rugImageInfo = ProductExtensions.GetImagePaths(Model.Id); 123 124 if (rugImageInfo != null) 125 { 126 foreach (var thumbnailImage in rugImageInfo.Thumbnail) 127 { 128 imageArray.Add(thumbnailImage); 129 } 130 131 foreach (var webImage in rugImageInfo.WebImages) 132 { 133 imageArray.Add(webImage); 134 } 135 136 hasRugImages = imageArray.Any(); 137 } 138 139 <section class="product-details" id="js-product-details" data-model-color="@prodColor" data-model-category="@prodTypeName" data-model-currency="@CurrencyCode" data-model-id="@Model.Id" data-model-name="@Model.Name" data-non-variants="@Model.GetRelatedGroupById("RELGRP1").Any()" data-thumb="@ProductExtensions.GetProductImagePath(Model.Id, out isExternal, "XS")"> 140 141 <div class="container"> 142 <div class="product-details__inner"> 143 <div class="product-details__header-holder"> 144 <h1 class="header-in-component header-in-component--product-detail"> 145 @Model.Name 146 </h1> 147 <div class="product-details__header-id"> 148 @if (!isOutletSite) 149 { 150 @Model.Number 151 } 152 else 153 { 154 @:@prodNumber - @patternNumber - @backingAbbr 155 } 156 </div> 157 </div> 158 <div class="product-details__slider-holder"> 159 <div class="slider-with-counter slider-with-counter--main" id="slider-with-counter--wide"> 160 <div class="slider-with-counter__slider-holder"> 161 162 <ul class="slider-with-counter__list slider-with-counter__list--hidden" data-counter-text="@Translate("Product | You are viewing {X} of {Y} images", "You are viewing {X} of {Y} images").Replace("{X}", "{0}").Replace("{Y}", "{0}")"> 163 164 @if (hasRugImages) 165 { 166 foreach (var image in imageArray) 167 { 168 string title = image.Title; 169 string imageSrc = image.ImagePath; 170 var imageIndex = 0; 171 172 if (!string.IsNullOrEmpty(imageSrc)) 173 { 174 anyNonEmptyImagePath = true; 175 <li class="slider-with-counter__item"> 176 @{ 177 var isThumbnail = image.ImagePath.ToLower().Contains("thumbnail"); 178 if (isCircleBack && !B2cSiteActive && isThumbnail) 179 { 180 @CircleBackLogo(); 181 } 182 } 183 <img class="lazyload a-image lazyload-measure lazyload-bg " src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="@title" property="contentUrl" data-src="@(ImageUiFormatHelper.Format(imageSrc, 542, 542))" 184 data-query-obj='{ "mode":"crop" }'> 185 <noscript v-if="false"> 186 <img src="@(ImageUiFormatHelper.Format(imageSrc, 542, 542))" alt="@title"> 187 </noscript> 188 189 <button @@click="showOverlay(@imageIndex+1)" class="slider-with-counter__button-lightbox" data-lightbox-image="test-slider.jpg"></button> 190 </li> 191 } 192 } 193 } 194 @if (!hasRugImages || !anyNonEmptyImagePath) 195 { 196 foreach (var image in images) 197 { 198 var imageIndex = 0; 199 <li class="slider-with-counter__item"> 200 @if (isCircleBack && !B2cSiteActive && image.Url.Contains("/Files/Files/Ecom/Images/Products/")) 201 { 202 @CircleBackLogo() 203 } 204 <img class="lazyload a-image lazyload-measure lazyload-bg " src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="@image.AltText" property="contentUrl" data-src="@(image.IsExternal ? image.Url : ImageUiFormatHelper.Format(image.Url, 542, 542))" 205 data-query-obj='{ "mode":"crop" }'> 206 <noscript v-if="false"> 207 <img src="@(image.IsExternal ? image.Url : ImageUiFormatHelper.Format(image.Url, 542, 542))" alt="@image.AltText"> 208 </noscript> 209 210 <button @@click="showOverlay(@imageIndex+1)" class="slider-with-counter__button-lightbox" data-lightbox-image="test-slider.jpg"></button> 211 </li> 212 } 213 } 214 215 </ul> 216 <div class="slider-with-counter__navigation"> 217 <button @@click="slideToPrev(sliderMain)" v-bind:class="{ 'slider-with-counter__button--show': sliderMain.showButtonPrev}" class="slider-with-counter__button slider-with-counter__button--prev"> 218 <svg class="svg-icon slider-with-counter__svg"> 219 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 220 </svg> 221 </button> 222 <button @@click="slideToNext(sliderMain)" v-bind:class="{ 'slider-with-counter__button--show': sliderMain.showButtonNext }" class="slider-with-counter__button slider-with-counter__button--next"> 223 <svg class="svg-icon slider-with-counter__svg"> 224 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 225 </svg> 226 </button> 227 </div> 228 </div> 229 @if (!isOutletSite && !B2cSiteActive && !isProductRug) 230 { 231 <div v-if="sliderMain.currentSlide <= 1"> 232 <span id="ImageDownload" class="product-list-room-shot__item-image-download-product-detail"> 233 <figure class="product-list-room-shot__item-image-download-icon"><svg class="svg-icon product-list-room-shot__item-image-download-icon-arrow"><use xlink:href="/dist/icons/icons.svg#arrow-down-in-circle"></use></svg></figure> 234 <a href="@prodImage" download="@prodImage" class="product-list-room-shot__item-image-download-link">Low res</a> 235 236 @if (ProductExtensions.GetHighResolutionImagePath(Model.Id) != null && !string.IsNullOrEmpty(ProductExtensions.GetHighResolutionImagePath(Model.Id))) 237 { 238 <a href="@ProductExtensions.GetHighResolutionImagePath(Model.Id)" download="@ProductExtensions.GetHighResolutionImagePath(Model.Id)" class="product-list-room-shot__item-image-download-link">High res</a> 239 } 240 </span> 241 </div> 242 243 } 244 <div class="slider-with-counter__counter"> 245 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--plain" v-html="sliderMain.counterTextBefore"></span> 246 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--number" v-html="sliderMain.currentSlide"></span> 247 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--middle" v-html="sliderMain.counterTextMiddle"></span> 248 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--number" v-html="slidesAmount"></span> 249 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--plain" v-html="sliderMain.counterTextAfter"></span> 250 </div> 251 <div class="slider-with-counter__template"> 252 253 <div class="novi-backdrop novi-backdrop--hidden novi-backdrop--slider-with-counter" id="slider-with-counter__overlay"> 254 <div class="novi-overlay"> 255 <div class="novi-overlay__container"> 256 <div class="novi-overlay__content"> 257 <div class="slider-with-counter slider-with-counter--in-overlay slider-with-counter--zoom" id="slider-with-counter--wide"> 258 <div class="slider-with-counter__slider-holder"> 259 <ul class="slider-with-counter__list slider-with-counter__list--hidden slider-with-counter__list--zoom"> 260 @{ 261 int canvasCounter = 0; 262 } 263 264 @if (hasRugImages) 265 { 266 267 foreach (var image in imageArray) 268 { 269 string imageSrc = image.ImagePath; 270 if (!string.IsNullOrEmpty(imageSrc)) 271 { 272 anyNonEmptyImagePath = true; 273 <li class="slider-with-counter__item"> 274 <img class="lazyload a-image lazyload-measure lazyload-bg" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="@image.Title" property="contentUrl" data-src="@ImageUiFormatHelper.Format(imageSrc, 700, 700)" 275 data-query-obj='{ "mode":"crop" }'> 276 <noscript v-if="false"> 277 <img src="@ImageUiFormatHelper.Format(imageSrc, 700, 700)" 278 alt="@image.Title"> 279 </noscript> 280 <span class="button__wait-animation button__wait-animation--slider-with-counter"> 281 <span></span> 282 <span></span> 283 <span></span> 284 <span></span> 285 </span> 286 287 @if (canvasCounter == 0) 288 { 289 <canvas v-bind:class="{'slider-with-counter__zoom-canvas--loading':zoomElements[@canvasCounter] && zoomElements[@canvasCounter].isLoading}" @@touchend="zoomOnTouchEnd(@canvasCounter,$event)" @@mouseup="zoomOnTouchEnd(@canvasCounter,$event)" @@touchmove="zoomOnTouchMove(@canvasCounter,$event)" @@touchstart="zoomOnTouchStart(@canvasCounter,$event)" @@mousedown="zoomOnTouchStart(@canvasCounter,$event)" @@wheel="zoomOnWheel(@canvasCounter,$event)" @@mousemove="zoomOnTouchMove(@canvasCounter,$event)" @@mouseleave="zoomClear(@canvasCounter)" data-src="@(image.ImagePath)" data-no="@canvasCounter" class="slider-with-counter__zoom-canvas"></canvas> 290 <span class="slider-with-counter__zoom-loading" v-if="zoomElements[@canvasCounter] && zoomElements[@canvasCounter].isLoading"> 291 <span class="button__wait-animation button__wait-animation--zoom"> 292 <span></span> 293 <span></span> 294 <span></span> 295 <span></span> 296 </span> 297 <span class="slider-with-counter__zoom-loading-text">@Translate("Product | Zoom | Loading zoomable image", "Loading zoomable image")</span> 298 </span> 299 <div class="slider-with-counter__zoom-container"> 300 <div v-if="zoomElements[@canvasCounter]" class="slider-with-counter__zoom-level-indicator"> 301 <button @@click="zoomOnButton(@canvasCounter,true)" class="increase-decrease__button increase-decrease__button--up slider-with-counter__zoom-level-button slider-with-counter__zoom-level-button--plus"></button> 302 <div class="slider-with-counter__zoom-level-illustration"> 303 <span v-bind:style="'top:'+zoomDotPosition" class="slider-with-counter__zoom-level-illustration-dot"></span> 304 </div> 305 <button @@click="zoomOnButton(@canvasCounter,false)" class="increase-decrease__button increase-decrease__button--down slider-with-counter__zoom-level-button slider-with-counter__zoom-level-button--minus"></button> 306 </div> 307 <span class="slider-with-counter__zoom-indicator" style="background-image: url(@image.ImagePath)"> 308 <span v-if="zoomElements[@canvasCounter]" v-bind:style="{paddingTop: zoomElements[@canvasCounter].thumbnailRatio}" class="slider-with-counter__zoom-indicator-aspect-ratio"></span> 309 <span v-if="zoomElements[@canvasCounter]" v-bind:style="{width:zoomThumbnailSize[@canvasCounter],height:zoomThumbnailSize[@canvasCounter],left:zoomThumbnailPositionComp[@canvasCounter].left,top:zoomThumbnailPositionComp[@canvasCounter].top}" class="slider-with-counter__zoom-indicator-excerpt"><span></span></span> 310 </span> 311 </div> 312 } 313 @{canvasCounter++;} 314 </li> 315 } 316 } 317 } 318 @if (!hasRugImages || !anyNonEmptyImagePath) 319 { 320 foreach (var image in images) 321 { 322 <li class="slider-with-counter__item"> 323 <img class="lazyload a-image lazyload-measure @(image.IsFirst ? "slider-with-counter__real-image" : "lazyload-bg")" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="@image.AltText" property="contentUrl" data-src="@(image.IsExternal ? image.Url : ImageUiFormatHelper.Format(image.Url, 700, 700))" 324 data-query-obj='{ "mode":"crop" }'> 325 <noscript v-if="false"> 326 <img src="@(image.IsExternal ? image.Url + "?mode=crop" : ImageUiFormatHelper.Format(image.Url, 700, 700))" 327 alt="@image.AltText"> 328 </noscript> 329 <span class="button__wait-animation button__wait-animation--slider-with-counter"> 330 <span></span> 331 <span></span> 332 <span></span> 333 <span></span> 334 </span> 335 336 @if (canvasCounter == 0) 337 { 338 <canvas v-bind:class="{'slider-with-counter__zoom-canvas--loading':zoomElements[@canvasCounter] && zoomElements[@canvasCounter].isLoading}" @@touchend="zoomOnTouchEnd(@canvasCounter,$event)" @@mouseup="zoomOnTouchEnd(@canvasCounter,$event)" @@touchmove="zoomOnTouchMove(@canvasCounter,$event)" @@touchstart="zoomOnTouchStart(@canvasCounter,$event)" @@mousedown="zoomOnTouchStart(@canvasCounter,$event)" @@wheel="zoomOnWheel(@canvasCounter,$event)" @@mousemove="zoomOnTouchMove(@canvasCounter,$event)" @@mouseleave="zoomClear(@canvasCounter)" data-src="@(image.Url)" data-no="@canvasCounter" class="slider-with-counter__zoom-canvas"></canvas> 339 <span class="slider-with-counter__zoom-loading" v-if="zoomElements[@canvasCounter] && zoomElements[@canvasCounter].isLoading"> 340 <span class="button__wait-animation button__wait-animation--zoom"> 341 <span></span> 342 <span></span> 343 <span></span> 344 <span></span> 345 </span> 346 <span class="slider-with-counter__zoom-loading-text">@Translate("Product | Zoom | Loading zoomable image", "Loading zoomable image")</span> 347 </span> 348 <div class="slider-with-counter__zoom-container"> 349 <div v-if="zoomElements[@canvasCounter]" class="slider-with-counter__zoom-level-indicator"> 350 <button @@click="zoomOnButton(@canvasCounter,true)" class="increase-decrease__button increase-decrease__button--up slider-with-counter__zoom-level-button slider-with-counter__zoom-level-button--plus"></button> 351 <div class="slider-with-counter__zoom-level-illustration"> 352 <span v-bind:style="'top:'+zoomDotPosition" class="slider-with-counter__zoom-level-illustration-dot"></span> 353 </div> 354 <button @@click="zoomOnButton(@canvasCounter,false)" class="increase-decrease__button increase-decrease__button--down slider-with-counter__zoom-level-button slider-with-counter__zoom-level-button--minus"></button> 355 </div> 356 <span class="slider-with-counter__zoom-indicator" style="background-image: url(@image.Url)"> 357 <span v-if="zoomElements[@canvasCounter]" v-bind:style="{paddingTop: zoomElements[@canvasCounter].thumbnailRatio}" class="slider-with-counter__zoom-indicator-aspect-ratio"></span> 358 <span v-if="zoomElements[@canvasCounter]" v-bind:style="{width:zoomThumbnailSize[@canvasCounter],height:zoomThumbnailSize[@canvasCounter],left:zoomThumbnailPositionComp[@canvasCounter].left,top:zoomThumbnailPositionComp[@canvasCounter].top}" class="slider-with-counter__zoom-indicator-excerpt"><span></span></span> 359 </span> 360 </div> 361 } 362 @{canvasCounter++;} 363 </li> 364 } 365 } 366 </ul> 367 <div class="slider-with-counter__navigation"> 368 <button @@click="slideToPrev(sliderInOverlay)" v-bind:class="{ 'slider-with-counter__button--show': sliderInOverlay.showButtonPrev}" class="slider-with-counter__button slider-with-counter__button--prev"> 369 <svg class="svg-icon slider-with-counter__svg"> 370 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 371 </svg> 372 </button> 373 <button @@click="slideToNext(sliderInOverlay)" v-bind:class="{ 'slider-with-counter__button--show': sliderInOverlay.showButtonNext }" class="slider-with-counter__button slider-with-counter__button--next"> 374 <svg class="svg-icon slider-with-counter__svg"> 375 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 376 </svg> 377 </button> 378 </div> 379 </div> 380 <div class="slider-with-counter__counter"> 381 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--plain" v-html="sliderInOverlay.counterTextBefore"></span> 382 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--number" v-html="sliderInOverlay.currentSlide"></span> 383 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--middle" v-html="sliderInOverlay.counterTextMiddle"></span> 384 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--number" v-html="slidesAmount"></span> 385 <span class="slider-with-counter__counter-part slider-with-counter__counter-part--plain" v-html="sliderInOverlay.counterTextAfter"></span> 386 </div> 387 </div> 388 <div class="novi-overlay__close-area"> 389 <button class="close-button novi-overlay__close-button"> 390 <span class="close-button__icon"> 391 <svg class="svg-icon close-button__svg"> 392 <use xlink:href="@Constants.DistPath/icons/icons.svg#cross"></use> 393 </svg> 394 </span> 395 <span class="close-button__text">@Translate("Product | Image overlay | Close", "Close")</span> 396 </button> 397 </div> 398 </div> 399 </div> 400 </div> 401 402 </div> 403 </div> 404 405 </div> 406 407 </div> 408 409 <div class="product-details__details-holder"> 410 <h2 class="product-text__header">@(B2cSiteActive ? @Translate("Product | B2C Tags", "B2C Tags") : @Translate("Product | Tags", "Tags"))</h2> 411 <ul class="product-details__tag-list"> 412 <li class="product-details__tag-item"> 413 @if (B2cSiteActive) 414 { 415 <span class="product-details__tag-link">@prodTypeName</span> 416 } 417 else 418 { 419 420 <a href="@(Model.GetTypeUrl(prodTypeValue))" class="product-details__tag-link">@prodTypeName</a> 421 } 422 </li> 423 @if (!B2cSiteActive && !string.IsNullOrWhiteSpace(prodConceptLink)) 424 { 425 <li class="product-details__tag-item"> 426 <a href="@prodConceptLink" class="product-details__tag-link">@prodConceptName</a> 427 </li> 428 } 429 @if (B2cSiteActive) 430 { 431 <li class="product-details__tag-item"> 432 <span class="product-details__tag-link">@prodCollectionName</span> 433 </li> 434 435 } 436 else if (!string.IsNullOrWhiteSpace(prodCollectionLink)) 437 { 438 <li class="product-details__tag-item"> 439 <a href="@prodCollectionLink" class="product-details__tag-link">@prodCollectionName</a> 440 </li> 441 } 442 </ul> 443 444 <div id="@variantsDivId" ref="variantType_@variantListCounter" class="product-details__variants"> 445 @foreach (var designVariantLists in Model.ProduceListsOfDesignVariants()) 446 { 447 var activeProductId = HttpContext.Current.Request["ProductID"]; 448 var hideVariantsClass = "product-details__variant-type--hide"; 449 if (variantListCounter == 0) 450 { 451 hideVariantsClass = ""; 452 } 453 if (variantListCounter > 0) 454 { 455 <button ref="variantTypeButton_@variantListCounter" @@click="toggleVariantType(@variantListCounter)" class="product-text__read-more"><svg class="svg-icon product-text__svg"><use xlink:href="/dist/icons/icons.svg#arrow"></use></svg><span>@Translate(designVariantLists.TranslationKey, designVariantLists.TranslationDefaultValue)</span></button> 456 } 457 <div ref="variantType_@variantListCounter" class="product-details__variant-type @hideVariantsClass"> 458 <h2 class="product-text__header">@Translate(designVariantLists.TranslationKey, designVariantLists.TranslationDefaultValue)</h2> 459 <div class="product-details__variant-type-content"> 460 <div class="product-details__variant-truncate" :style="{'max-height':variantTruncateHeight[@variantListCounter]}"> 461 <ul class="product-details__variant-list"> 462 463 @foreach (var relatedProduct in designVariantLists.RelatedProducts.OrderBy(x => x.Id)) 464 { 465 var imagePath = ProductExtensions.GetProductImagePath(relatedProduct.Id, out bool relatedIsExternal, "XS"); 466 productLink = "/Default.aspx?ID=" + Pageview.Page.ID + "&amp;ProductID=" + relatedProduct.Id; 467 <li class="product-details__variant-item"> 468 <a href="@productLink" class="product-details__variant-link @(activeProductId == relatedProduct.Id ? "product-details__variant-link--active" : "")" title="@relatedProduct.Id"> 469 <figure class="product-details__variant-img"> 470 <img class="lazyload a-image lazyload-measure lazyload-bg " src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="@relatedProduct.Name" property="contentUrl" data-src="@(activeProductId == relatedProduct.Id ? (isExternal ? prodImage : ImageUiFormatHelper.Format(prodImage, 700, 700)) : (relatedIsExternal ? imagePath : ImageUiFormatHelper.Format(imagePath, 700, 700)))" 471 data-query-obj='{ }'> 472 <noscript v-if="false"> 473 <img src="@(activeProductId == relatedProduct.Id ? (isExternal ? prodImage : ImageUiFormatHelper.Format(prodImage, 700, 700)) : (relatedIsExternal ? imagePath : ImageUiFormatHelper.Format(imagePath, 700, 700)))" 474 alt="@relatedProduct.Name"> 475 </noscript> 476 </figure> 477 </a> 478 </li> 479 } 480 <li class="product-details__variant-item product-details__variant-item--adjustment"></li> 481 <li class="product-details__variant-item product-details__variant-item--adjustment"></li> 482 <li class="product-details__variant-item product-details__variant-item--adjustment"></li> 483 <li class="product-details__variant-item product-details__variant-item--adjustment"></li> 484 <li class="product-details__variant-item product-details__variant-item--adjustment"></li> 485 <li class="product-details__variant-item product-details__variant-item--adjustment"></li> 486 <li class="product-details__variant-item product-details__variant-item--adjustment"></li> 487 </ul> 488 </div> 489 </div> 490 <button class="product-details__see-all-variants" :class="{'product-details__see-all-variants--open':variantTypes[@variantListCounter].showAllVariants}" v-if="variantTypes[@variantListCounter] && variantTypes[@variantListCounter].moreVariantsThanOneLine" @@click="hideShowVariants(@variantListCounter)"> 491 <span class="product-details__see-all-variants-text product-details__see-all-variants-text--see-all"> 492 @Translate("Product | See all variants", "See all variants") 493 </span> 494 <span class="product-details__see-all-variants-text product-details__see-all-variants-text--see-less"> 495 @Translate("Product | See less variants", "See less variants") 496 </span> 497 498 <svg class="svg-icon product-details__see-all-variants-svg"> 499 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow-down-in-circle"></use> 500 </svg> 501 </button> 502 </div> 503 variantListCounter++; 504 } 505 </div> 506 @if (isCircleBack && !B2cSiteActive) 507 { 508 <div id="product-details__circle-back" class="product-details__variant-type"> 509 <img src="@ImageUiFormatHelper.Format("/Files/Files/Images/CircleBack/Ege_Circular_Black.png", 50, 55)" height="50" width="55" /> 510 <button ref="circleBackButton" v-show="!toggleCircleBack" @@click="initToggleCircleBack()" class="product-text__read-more"><svg class="svg-icon product-text__svg"><use xlink:href="/dist/icons/icons.svg#arrow"></use></svg><span>@Translate("EgeCircleBack:ReadMoreButtonText", "Ege CircleBack")</span></button> 511 <div v-show="toggleCircleBack" class="product-text__text"> 512 @circleBackText 513 </div> 514 </div> 515 } 516 <div class="product-text" data-button-text-1="@Translate("Read more", "Read more")" data-button-text-2="@Translate("Show less", "Show less")"> 517 <h2 class="product-text__header">@Model.ShortDescription</h2> 518 <div v-bind:style="{ maxHeight: maxHeight + 'px' }" class="product-text__text" v-bind:class="{'product-text__text--truncate':truncateText}"> 519 <div>@Model.LongDescription</div> 520 </div> 521 <button @@click="toggle" v-if="hasOverflow" class="product-text__read-more"> 522 <svg class="svg-icon product-text__svg"> 523 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 524 </svg><span v-html="buttonText"></span> 525 </button> 526 </div> 527 528 @if (B2cSiteActive) 529 { 530 531 var B2CFullWidthPrice = string.Empty; 532 var B2CCarvingPrice = string.Empty; 533 var B2CAnyShapePrice = string.Empty; 534 var B2CAnyShapeExtraText = string.Empty; 535 536 if (Model.ProductCategories.Keys.Any()) 537 { 538 if (Model.ProductCategories.ContainsKey("CarpetCategory")) 539 { 540 var fields2 = Model.ProductCategories["CarpetCategory"]; 541 542 B2CFullWidthPrice = product.GetCategoryValue("CarpetCategory", "B2CFullWidthPrice").ToString(); 543 B2CCarvingPrice = product.GetCategoryValue("CarpetCategory", "B2CCarvingPrice").ToString(); 544 B2CAnyShapePrice = product.GetCategoryValue("CarpetCategory", "B2CAnyShapePrice").ToString(); 545 B2CAnyShapeExtraText = fields2.Fields["B2CAnyShapeExtraText"].Value as string; 546 } 547 548 } 549 550 <div class="remnants"> 551 <div class="remnants__header"> 552 <div class="remnants__headline">@Translate("Product details B2C | Remnants | Priser", "Priser")</div> 553 </div> 554 <ul class="remnants__list"> 555 @if (!string.IsNullOrWhiteSpace(B2CFullWidthPrice) && B2CFullWidthPrice != "0") 556 { 557 // adding decimals if not already present 558 var B2CFillWidthPriceFormatted = (B2CFullWidthPrice.Contains(',') ? B2CFullWidthPrice : B2CFullWidthPrice + ",00"); 559 560 <li class="remnants__item"> 561 <div class="remnants__item-inner"> 562 <div class="remnants__info remnants__info--first-column"> 563 <div class="remnants__info-text">@Translate("Product details B2C | Remnants | B2CFullWidthText", "Fuld bredde, pr. m2 inkl. moms")</div> 564 </div> 565 <div class="remnants__price remnants__price--first-column">@CurrencyCode @B2CFillWidthPriceFormatted</div> 566 </div> 567 </li> 568 } 569 @if (!string.IsNullOrWhiteSpace(B2CCarvingPrice) && B2CCarvingPrice != "0") 570 { 571 // adding decimals if not already present 572 var B2CCarvingPriceFormatted = (B2CCarvingPrice.Contains(',') ? B2CCarvingPrice : B2CCarvingPrice + ",00"); 573 574 <li class="remnants__item"> 575 <div class="remnants__item-inner"> 576 <div class="remnants__info remnants__info--first-column"> 577 <div class="remnants__info-text">@Translate("Product details B2C | Remnants | B2CCarvingText", "Udskåret mål, pr. m2 inkl. moms")</div> 578 </div> 579 <div class="remnants__price remnants__price--first-column">@CurrencyCode @B2CCarvingPriceFormatted</div> 580 </div> 581 </li> 582 } 583 @if (!string.IsNullOrWhiteSpace(B2CAnyShapePrice) && B2CAnyShapePrice != "0") 584 { 585 // adding decimals if not already present 586 var B2CAnyShapePriceFormatted = (B2CAnyShapePrice.Contains(',') ? B2CAnyShapePrice : B2CAnyShapePrice + ",00"); 587 588 <li class="remnants__item"> 589 <div class="remnants__item-inner"> 590 <div class="remnants__info remnants__info--first-column"> 591 <div class="remnants__info-text">@B2CAnyShapeExtraText</div> 592 </div> 593 <div class="remnants__price remnants__price--first-column">@CurrencyCode @B2CAnyShapePriceFormatted</div> 594 </div> 595 </li> 596 } 597 </ul> 598 </div> 599 } 600 601 @if (isOutletSite) 602 { 603 var addToBasketString = Translate("Product details | Remnants | Add to basket", "Add to basket"); 604 605 <div id="js-remnants" v-cloak class="remnants" data-text-options-singular="@Translate("Product details | Remnants | option (singular)", "option")" data-text-options-plural="@Translate("Product details | Remnants | options (plural)", "options")" data-text-product-singular="@Translate("Product details | Remnants | fault (singular)", "fault")" data-text-product-plural="@Translate("Product details | Remnants | faults (plural)", "faults")"> 606 <div class="remnants__header"> 607 <div class="remnants__headline">@Translate("Product details | Remnants | Choose carpet remnants", "Choose carpet remnants")</div> 608 <div class="remnants__items-available">{{remnantItems.length}} <span v-html="remnantItems.length === 1 ? textOptionsSingular : textOptionsPlural"></span></div> 609 </div> 610 <ul class="remnants__list" :class="{'remnants__list--show-all':showAll}"> 611 <li class="remnants__item" v-for="remnantItem in remnantItems" :key="remnantItem.VariantId"> 612 <div class="remnants__item-inner"> 613 <div class="remnants__input"> 614 <label :for="'remnant-input-'+remnantItem.VariantId" class="form__checkbox-label"> 615 <input :id="'remnant-input-'+remnantItem.VariantId" :value="remnantItem.VariantId" v-model="chosenRemnants" name="remnants" type="checkbox" class="form__input-checkbox"> 616 <span class="form__checkbox-label-text"></span> 617 </label> 618 </div> 619 <div class="remnants__area">{{remnantItem.AvailableArea}} m<sup>2</sup></div> 620 <div class="remnants__info"> 621 <div class="remnants__info-text">{{remnantItem.RollCorners}} @Translate("Product details | Remnants | corners", "corners"), {{remnantItem.NumberOfFlaws}} <span v-html="remnantItem.NumberOfFlaws === 1 ? textProductSingular : textProductPlural"></span><span class="remnants__waste-carpet" v-if="remnantItem.IsWasteCarpet"> (@Translate("Product details | Remnants | waste carpet", "waste carpet"))</span><span v-if="remnantItem.UnitPrice">, </span><span class="remnants__unit-price" v-if="remnantItem.UnitPrice">{{remnantItem.UnitPrice}} {{remnantItem.CurrencyCode}} @Translate("Product details | Remnants | per m2", "per m2")</span></div> 622 <button class="remnants__preview" @@click="showCarpetProfile(remnantItem.ProductNumber,remnantItem.M3BatchNumber,remnantItem.M3ProductNumber)">@Translate("Product details | Remnants | Outlet | Roll profile", "Roll profile")</button> 623 @if (ProductExtensions.GetOutletPatternPDF(patternNumber) != "") 624 { 625 <a target="_blank" class="remnants__pattern-pdf" href="@ProductExtensions.GetOutletPatternPDF(patternNumber)">@Translate("Product details | Remnants | Outlet | Pattern PDF", "Pattern PDF")</a> 626 } 627 </div> 628 <div class="remnants__price">{{Number(remnantItem.Price).toLocaleString('en-GB') }} {{remnantItem.CurrencyCode}}</div> 629 </div> 630 </li> 631 <div class="remnants__additional-costs-msg" v-if="remnantItems.length > 0">@Translate("Product details | Remnants | Additional costs message", "Delivery costs will be added")</div> 632 </ul> 633 <div class="remnants__footer"> 634 <div class="remnants__show-all-holder"> 635 <button class="remnants__show-all" @@click="doShowAll" :class="{'remnants__show-all--show':showShowAll}">@Translate("Product details | Remnants | Show all", "Show all") ({{remnantItems.length}})</button> 636 </div> 637 <button @@click="addChosenToBasket" type="button" property="url" 638 class="button button--solid button--black button--wait-animation" 639 data-service="@cartOrderLinesFeedUrl" 640 v-bind:class="{'button--error':showErrorOnButton,'button--wait':showWaitAnimation}" 641 data-text="@addToBasketString"> 642 <span class="button__error-message"> 643 @Translate("Product details | Remnants | You haven't selected any products to add to basket", "You haven't selected any products to add to basket") 644 </span> 645 <span class="button__wait-animation"> 646 <span></span> 647 <span></span> 648 <span></span> 649 <span></span> 650 </span> 651 <span class="button__content"> 652 <span class="button__icon"> 653 <svg class="svg-icon button__svg"> 654 <use xlink:href="@Constants.DistPath/icons/icons.svg#samples"></use> 655 </svg> 656 </span> 657 <span class="button__text">@addToBasketString</span> 658 </span> 659 </button> 660 </div> 661 662 <div @@click="closeProfileOverlay" class="novi-backdrop novi-backdrop--hidden novi-backdrop--carpet-profile" :class="{'novi-backdrop--shown':showProfileOverlay}"> 663 <div class="novi-overlay"> 664 <div class="novi-overlay__container"> 665 <div class="novi-overlay__content" @@click="stopProp"> 666 <div class="carpet-profile"> 667 <header class="carpet-profile__header"> 668 <h2 class="subheader-in-component js-alt-color-gold"> 669 @Translate("Product details | Remnants | Error table | header | Error profile", "Error profile") 670 </h2> 671 <p v-if="currentChosenProfileIndex !== null">@Translate("Product details | Remnants | Profile overlay | For product number", "For product number"): <span v-html="remnantProfiles[currentChosenProfileIndex].M3productNumber"></span> @Translate("Product details | Remnants | Profile overlay | Batch number", "Batch number"): <span v-html="remnantProfiles[currentChosenProfileIndex].batchNumber"></span></p> 672 </header> 673 <div class="row"> 674 <div class="col-xs-12"> 675 <img class="carpet-profile__img" id='base64image' v-if="currentChosenProfileIndex !== null" 676 :src="'data:image/jpeg;base64, '+remnantProfiles[this.currentChosenProfileIndex].data.profileBase64" /> 677 <p class="carpet-profile__draw-outline" v-if="currentChosenProfileIndex !== null" v-html="remnantProfiles[this.currentChosenProfileIndex].data.profileText"></p> 678 679 <table class="carpet-profile__fault-list" v-if="currentChosenProfileIndex !== null && remnantProfiles[this.currentChosenProfileIndex].data.faults.length"> 680 <tr class="carpet-profile__fault-list-item carpet-profile__fault-list-item--header"> 681 <th class="carpet-profile__fault-list-cell carpet-profile__fault-list-cell--header">@Translate("Product details | Remnants | Error table | Error code", "Error code")</th> 682 <th class="carpet-profile__fault-list-cell carpet-profile__fault-list-cell--header">@Translate("Product details | Remnants | Error table | Error rank", "Error rank")</th> 683 <th class="carpet-profile__fault-list-cell carpet-profile__fault-list-cell--header">@Translate("Product details | Remnants | Error table | Text", "Text")</th> 684 <th class="carpet-profile__fault-list-cell carpet-profile__fault-list-cell--header">@Translate("Product details | Remnants | Error table | Width from", "Width from")</th> 685 <th class="carpet-profile__fault-list-cell carpet-profile__fault-list-cell--header">@Translate("Product details | Remnants | Error table | Width to", "Width to")</th> 686 <th class="carpet-profile__fault-list-cell carpet-profile__fault-list-cell--header">@Translate("Product details | Remnants | Error table | Length from", "Length from")</th> 687 <th class="carpet-profile__fault-list-cell carpet-profile__fault-list-cell--header">@Translate("Product details | Remnants | Error table | Length to", "Length to")</th> 688 </tr> 689 <tr class="carpet-profile__fault-list-item" v-for="fault in remnantProfiles[this.currentChosenProfileIndex].data.faults"> 690 <td data-header="@Translate("Product details | Remnants | Error table | Error code", "Error code")" class="carpet-profile__fault-list-cell" v-html="fault.reasonCode"></td> 691 <td data-header="@Translate("Product details | Remnants | Error table | Error rank", "Error rank")" class="carpet-profile__fault-list-cell" v-html="fault.errorRank"></td> 692 <td data-header="@Translate("Product details | Remnants | Error table | Text", "Text")" class="carpet-profile__fault-list-cell carpet-profile__fault-list-cell--text" v-html="fault.textForReason"></td> 693 <td data-header="@Translate("Product details | Remnants | Error table | Width from", "Width from")" class="carpet-profile__fault-list-cell" v-html="fault.brdStart"></td> 694 <td data-header="@Translate("Product details | Remnants | Error table | Width to", "Width to")" class="carpet-profile__fault-list-cell" v-html="fault.brdEnd"></td> 695 <td data-header="@Translate("Product details | Remnants | Error table | Length from", "Length from")" class="carpet-profile__fault-list-cell" v-html="fault.lgdStart"></td> 696 <td data-header="@Translate("Product details | Remnants | Error table | Length to", "Length to")" class="carpet-profile__fault-list-cell" v-html="fault.lgdEnd"></td> 697 </tr> 698 </table> 699 </div> 700 </div> 701 </div> 702 <div class="novi-overlay__close-area"> 703 <button @@click="closeProfileOverlay" class="close-button novi-overlay__close-button"> 704 <span class="close-button__icon"> 705 <svg class="svg-icon close-button__svg"> 706 <use xlink:href="@Constants.DistPath/icons/icons.svg#cross"></use> 707 </svg> 708 </span> 709 <span class="close-button__text">@Translate("Product | Sample overlay | Close", "Close")</span> 710 </button> 711 </div> 712 </div> 713 </div> 714 </div> 715 </div> 716 </div> 717 } 718 else 719 { 720 <span> 721 <div class="button-double product-details__buttons"> 722 @if (!B2cSiteActive && !string.IsNullOrWhiteSpace(Model.GetCadesignProperties().ToolUrl) && !isProductRug) 723 { 724 string firstBtnText = string.Empty; 725 string dataLayerTool = string.Empty; 726 727 if (Model.GetCadesignProperties().IsTile) 728 { 729 firstBtnText = Translate("Product | Tile", "Create your tile design"); 730 dataLayerTool = "tile tool"; 731 } 732 else if (Model.GetCadesignProperties().Recolour) 733 { 734 firstBtnText = Translate("Product | Customize", "Customize"); 735 dataLayerTool = "recolour tool"; 736 } 737 else 738 { 739 firstBtnText = Translate("Product | Visualize", "Visualize"); 740 dataLayerTool = "visualize tool"; 741 } 742 743 <script> 744 document.addEventListener('DOMContentLoaded', function () { 745 746 var button = document.getElementById("cadesign-custom-button"); 747 748 if (button) { 749 button.addEventListener('click', function (event) { 750 751 window.dataLayer = window.dataLayer || []; 752 window.dataLayer.push({ 753 "event": "tool_entry", 754 "tool": "@dataLayerTool", 755 }); 756 }); 757 } 758 }); 759 </script> 760 761 <button id="cadesign-custom-button" data-href="@Model.GetCadesignProperties().ToolUrl" @@click="openCustomizeOverlay" class="button button--ghost button--black js-customize-button" data-text="@firstBtnText"> 762 <span class="button__content"> 763 <span class="button__icon"> 764 <svg class="svg-icon button__svg"> 765 <use xlink:href="@Constants.DistPath/icons/icons.svg#magic-wand"></use> 766 </svg> 767 </span> 768 <span class="button__text">@firstBtnText</span> 769 </span> 770 <div class="product-details__hide js-customize-iframe-holder"> 771 <div class="product-details__iframe-holder"> 772 <iframe class="product-details__customize-iframe" frameborder="0"></iframe> 773 <span class="product-details__wait-animation"> 774 <span></span> 775 <span></span> 776 <span></span> 777 <span></span> 778 </span> 779 </div> 780 </div> 781 </button> 782 } 783 else if (isProductRug) 784 { 785 if (showConfigurator) 786 { 787 string firstBtnText = string.Empty; 788 firstBtnText = Translate("Product | Rug configurator", "Configure rug"); 789 <a href="@configuratorFullLink" target="_blank" class="button button--ghost button--black js-customize-button"> 790 <span class="button__content"> 791 <span class="button__icon"> 792 <svg class="svg-icon button__svg"> 793 <use xlink:href="@Constants.DistPath/icons/icons.svg#magic-wand"></use> 794 </svg> 795 </span> 796 <span class="button__text">@firstBtnText</span> 797 </span> 798 <div class="product-details__hide js-customize-iframe-holder"> 799 <div class="product-details__iframe-holder"> 800 <iframe class="product-details__customize-iframe" frameborder="0"></iframe> 801 <span class="product-details__wait-animation"> 802 <span></span> 803 <span></span> 804 <span></span> 805 <span></span> 806 </span> 807 </div> 808 </div> 809 </a> 810 } 811 } 812 813 814 else if (B2cSiteActive && !string.IsNullOrWhiteSpace(Model.GetFieldValue<string>("ProductBacking")) && !string.IsNullOrWhiteSpace(Model.GetFieldValue<string>("ProductSpecificationCode"))) 815 { 816 var prod = Dynamicweb.Ecommerce.Services.Products.GetProductByNumber(Model.GetFieldValue<string>("ProductBacking"), Model.LanguageId); 817 818 <form method="post" action="/api/specifications/getpdf" class="button-double__form"> 819 <input type="hidden" name="backingCode" value="@(Model.GetFieldValue<string>("ProductBacking"))" /> 820 <input type="hidden" name="backingName" value="@(ProductExtensions.GetProductName(product))" /> 821 <input type="hidden" name="qualityName" value="@prodCollectionName" /> 822 <input type="hidden" name="collectionCode" value="@Model.GetFieldValue("ProductCollectionCode")" /> 823 <input type="hidden" name="specificationCode" value="@(Model.GetFieldValue<string>("ProductSpecificationCode"))" /> 824 <input type="hidden" name="nationalityCode" value="@Dynamicweb.Ecommerce.Common.Context.Language.CountryCode" /> 825 <input type="hidden" name="areaId" value="@Pageview.AreaID" /> @* On the B2C site we hardcode the area id to the danish b2b site to pull the sustainability stores from there(these are defined in website settings) *@ 826 <input type="hidden" name="productName" value="@Model.Name" /> 827 <input type="hidden" name="sustainabilityChoice" value="@sustainabilityChoices" /> 828 <button type="submit" property="url" class="button button--ghost button--black" data-text="@Translate("Product details | Specifications | Download full specifications", "Download full specifications")" @@click="downloadFullSpecifications" ref="showFullSpecificationsSubmitButton"> 829 <span class="button__content"> 830 <span class="button__icon"> 831 <svg class="svg-icon button__svg"> 832 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow-down-in-circle"></use> 833 </svg> 834 </span> 835 <span class="button__text"> 836 @Translate("Product details | Specifications | Download full specifications", "Download full specifications") 837 </span> 838 </span> 839 </button> 840 </form> 841 } 842 @if (!B2cSiteActive && (variantCombinations.Any() || Model.GetRelatedGroupById("RELGRP1").Any())) 843 { 844 var nonVariantSamples = Model.GetRelatedGroupById("RELGRP1"); 845 var showSamplesVersion = ""; 846 if (variantCombinations.Any()) 847 { 848 showSamplesVersion = "showSamplesAdvanced"; 849 } 850 else if (nonVariantSamples.Any()) 851 { 852 showSamplesVersion = "showSamplesSimple"; 853 } 854 <button id="js-add-to-samples-button" type="button" class="button button--solid button--black " @@click="@showSamplesVersion" data-text="@Translate("Product | Add to samples", "Add to samples")"> 855 <span class="button__content"> 856 <span class="button__icon"> 857 <svg class="svg-icon button__svg"> 858 <use xlink:href="@Constants.DistPath/icons/icons.svg#samples"></use> 859 </svg> 860 </span> 861 <span class="button__text">@Translate("Product | Add to samples", "Add to samples")</span> 862 </span> 863 </button> 864 } 865 else if (B2cSiteActive) 866 { 867 if (IsBulkCarpets && prodCollectionName != "Geometrica Rugs") 868 { 869 var shapeOverlayBtnText = Translate("Product | See rug in room", "Se tæppet i rum"); 870 var shapeToolUrl = ProductExtensions.CadesignServiceUrl + "/rug-ui.html?prod=" + @Model.Id; 871 <button data-href="@shapeToolUrl" @@click="openCustomizeOverlay" 872 class="button button--solid button--black js-customize-button" 873 data-text="@shapeOverlayBtnText"> 874 <span class="button__content"> 875 <span class="button__icon"> 876 <svg class="svg-icon button__svg"> 877 <use xlink:href="@Constants.DistPath/icons/icons.svg#magic-wand"></use> 878 </svg> 879 </span> 880 <span class="button__text">@shapeOverlayBtnText</span> 881 </span> 882 <div class="product-details__hide js-customize-iframe-holder"> 883 <div class="product-details__iframe-holder"> 884 <iframe class="product-details__customize-iframe" frameborder="0"></iframe> 885 <span class="product-details__wait-animation"> 886 <span></span> 887 <span></span> 888 <span></span> 889 <span></span> 890 </span> 891 </div> 892 </div> 893 </button> 894 } 895 else 896 { 897 <button id="js-product-details__contact-form-link-button" @@click="scrollDown" type="button" class="button button--solid button--black " data-text="@Translate("Product | B2C Kontakt Os Knap", "B2C Kontakt Os Knap")"> 898 <span class="button__content"> 899 <span class="button__icon"> 900 <svg class="svg-icon button__svg"> 901 <use xlink:href="@Constants.DistPath/icons/icons.svg#contact"></use> 902 </svg> 903 </span> 904 <span class="button__text">@Translate("Product | B2C Kontakt Os Knap", "B2C Kontakt Os Knap")</span> 905 </span> 906 </button> 907 } 908 } 909 @if (!B2cSiteActive) 910 { 911 <div class="product-details__contact-form-link"> 912 <span class="product-details__contact-form-link-left">@Translate("Product | Do you need help", "Do you need help?")</span> 913 <span class="product-details__contact-form-link-right"> 914 <button type="button" id="js-product-details__contact-form-link-button" class="product-details__contact-form-link-button" @@click="scrollDown"> 915 @Translate("Product | Contact us", "Contact us") 916 <span class="product-details__contact-form-link-arrow"> 917 <svg class="svg-icon product-details__contact-form-link-arrow-svg"> 918 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 919 </svg> 920 </span> 921 </button> 922 </span> 923 </div> 924 } 925 else if (B2cSiteActive && !string.IsNullOrEmpty(prodB2CCollectionLink)) 926 { 927 <div class="product-details__contact-form-link product-details__contact-form-link--b2c"> 928 <a href="@prodB2CCollectionLink" type="button" class="product-details__contact-form-link-button"> 929 @Translate("Product | B2C Se vores Priser", "Se vores priser her!") 930 <span class="product-details__contact-form-link-arrow product-details__contact-form-link-arrow--b2c"> 931 <svg class="svg-icon product-details__contact-form-link-arrow-svg"> 932 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 933 </svg> 934 </span> 935 </a> 936 </div> 937 } 938 </div> 939 </span> 940 <div> 941 @TemplateHelper.RenderPartial("Ecom/Partials/Details_SelectedSamplesOverlay.cshtml") 942 @TemplateHelper.RenderPartial("Ecom/Partials/Details_AddToSamples.cshtml", Model) 943 </div> 944 } 945 </div> 946 </div> 947 948 </div> 949 </section> 950 951 if (isOutletSite) 952 { 953 954 } 955 else if (B2cSiteActive) 956 { 957 @TemplateHelper.RenderPartial("Ecom/Partials/Details_B2CGuidesAndImages.cshtml", Model) 958 } 959 else 960 { 961 if (isProductRug) 962 { 963 @TemplateHelper.RenderPartial("Ecom/Partials/Details_RugShapeAndFinishingTypes.cshtml", Model) 964 @TemplateHelper.RenderPartial("Ecom/Partials/Details_DesignerInformation.cshtml", Model) 965 966 } 967 else 968 { 969 @TemplateHelper.RenderPartial("Ecom/Partials/Details_B2BGuidesAndImages.cshtml", Model) 970 } 971 972 @TemplateHelper.RenderPartial("Ecom/Partials/Details_SpecificationsAndHighlights.cshtml", Model) 973 974 } 975 976 977 @helper CircleBackLogo() 978 { 979 <div class="product-details__circle-back-overlay-container"> 980 <div class="product-details__circle-back-overlay"> 981 <div class="product-details__circle-back-overlay--img-container"> 982 <img class="product-details__circle-back-overlay--img" src="@ImageUiFormatHelper.Format("/Files/Files/Images/CircleBack/Ege_Circular_Black.png", 123, 136)" height="123" width="136" /> 983 </div> 984 </div> 985 </div> 986 } 987 } 988

Vil du vide mere?

Så lad os kontakte dig

Har du spørgsmål eller forespørgsler om Ege Carpets eller vores tæpper, er du velkommen til at kontakte os.

Indsæt dine kontakt informationer og vi vil kontakte dig - eller du kan finde kontaktoplysningerne på en forhandler.