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_33972407cdf5464c8f811c8d745f37d3.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 10 @{ 11 var product = Dynamicweb.Ecommerce.Services.Products.GetProductById(Model.Id, Model.VariantId, Model.LanguageId); 12 } 13 14 @if (product == null) 15 { 16 <h3>The product is not available in the chosen language, please try another.</h3> 17 } 18 else 19 { 20 bool isOutletSite = PageExtensions.IsOutletArea(Pageview.AreaID); 21 var B2cSiteActive = PageExtensions.IsB2CArea(Pageview.AreaID); 22 //string groupIdQueryParameter = string.IsNullOrEmpty(Dynamicweb.Context.Current.Request["GroupID"]) 23 // ? string.Empty 24 // : "&GroupID=" + Dynamicweb.Context.Current.Request["GroupID"]; 25 var variantCombinations = product.VariantCombinations.Where(x => !x.VariantId.Contains("NA")); 26 27 string productLink = "/Default.aspx?ID=" + Pageview.Page.ID + "&ProductID=" + Model.Id; 28 var prodImage = ProductExtensions.GetProductImagePath(Model.Id, out bool isExternal); 29 var prodTypeName = Model.GetFieldName("ProductEgeType"); 30 var prodTypeValue = Model.GetFieldValue("ProductEgeType"); 31 var prodConceptName = Model.GetFieldName("ProductConcept"); 32 var prodConceptValue = Model.GetFieldValue("ProductConcept"); 33 var prodCollectionName = Model.PrimaryOrDefaultGroup.Name; 34 var prodCollectionLink = string.Empty; 35 var prodB2CCollectionLink = string.Empty; 36 var prodConceptLink = string.Empty; 37 int variantListCounter = 0; 38 var IsBulkCarpets = PageExtensions.IsBulkCarpets(prodTypeValue); 39 40 //EGEDR-769 41 bool isCircleBack = false; 42 string circleBackText = string.Empty; 43 if (Model.ProductCategories.Keys.Any()) 44 { 45 if (Model.ProductCategories.ContainsKey("CarpetCategory")) 46 { 47 isCircleBack = bool.Parse(product.GetCategoryValue("CarpetCategory", "IsCircleBack").ToString()); 48 var circleBackTextObj = product.GetCategoryValue("CarpetCategory", "CircleBackText"); 49 circleBackText = circleBackTextObj != null ? circleBackTextObj.ToString() : null; 50 51 } 52 53 } 54 55 var CurrencyCode = Dynamicweb.Ecommerce.Common.Context.Currency.Code; 56 57 if (Model.ProductCategories.Keys.Any()) 58 { 59 if (Model.ProductCategories.ContainsKey("CarpetCategory")) 60 { 61 var fields = Model.ProductCategories["CarpetCategory"]; 62 prodCollectionLink = fields.Fields["CollectionContentPage"].Value as string; 63 prodConceptLink = fields.Fields["ConceptContentPage"].Value as string; 64 prodB2CCollectionLink = fields.Fields["B2CCollectionContentPage"].Value as string; 65 } 66 67 } 68 var images = Model.GetImages(); 69 var sustainabilityChoices = string.Empty; 70 if (Model.ProductCategories.ContainsKey("CarpetCategory")) 71 { 72 var susChoiceList = (Model.ProductCategories["CarpetCategory"].Fields["PdfSustainBlocks"]?.Value as List<FieldOptionValueViewModel>); 73 74 foreach (var choice in susChoiceList) 75 { 76 sustainabilityChoices += choice.Value; 77 } 78 } 79 80 var variantsDivId = "js-product-details__variants"; 81 var prodNumber = ""; 82 var patternNumber = ""; 83 var backingAbbr = ""; 84 85 if (isOutletSite) 86 { 87 @TemplateHelper.RenderPartial("Ecom/Partials/Details_OutletData.cshtml", Model) 88 prodNumber = Model.GetCategoryValueAs<string>("M3ProductNumber", "OutletSpecs"); 89 patternNumber = Model.GetCategoryValueAs<string>("PatternNumber", "OutletSpecs"); 90 backingAbbr = Model.GetFieldValue("ProductBacking").ToString(); 91 } 92 else 93 { 94 @TemplateHelper.RenderPartial("Ecom/Partials/Details_Data.cshtml", Model) 95 } 96 97 var cartOrderLinesFeed = Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "CartOrderLinesFeed"); 98 var cartOrderLinesFeedUrl = ""; 99 if (cartOrderLinesFeed != null) 100 { 101 cartOrderLinesFeedUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(cartOrderLinesFeed.ID); 102 } 103 104 var isProductRug = EGE.Website.CustomModules.Extensions.ProductExtensions.IsRug(HttpContext.Current.Request["ProductID"]); 105 var showConfigurator = EGE.Website.CustomModules.Extensions.ProductExtensions.GetProductShowConfigurator(HttpContext.Current.Request["ProductID"]); 106 bool anyNonEmptyImagePath = false; 107 108 Dynamicweb.Content.PageService pageService = new Dynamicweb.Content.PageService(); 109 Dynamicweb.Content.Page configuratorLoginPage = pageService.GetPageByNavigationTag(Pageview.AreaID, "ConfiguratorLoginPage"); 110 string configuratorLoginPageUrl = configuratorLoginPage != null ? Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(configuratorLoginPage.ID) : null; 111 string productId = HttpContext.Current.Request["ProductID"]; 112 113 string configuratorFullLink = configuratorLoginPageUrl + "?configuratorId=" + productId; 114 115 var structureID = product.GetProductFieldValue("ProductStructureID").ToString(); 116 var colorID = product.GetProductFieldValue("ProductColorID").ToString(); 117 dynamic rugImageInfo = null; 118 var hasRugImages = false; 119 120 //Sorting images to make thumbnail first image in PDP main image slider 121 List<dynamic> imageArray = new List<dynamic>(); 122 123 if (!string.IsNullOrWhiteSpace(structureID) && !string.IsNullOrWhiteSpace(colorID) && isProductRug) 124 { 125 rugImageInfo = Model.GetRugImageInformation(); 126 127 foreach (var thumbnailImage in rugImageInfo.thumbnail) 128 { 129 imageArray.Add(thumbnailImage); 130 } 131 132 foreach (var webImage in rugImageInfo.webImages) 133 { 134 imageArray.Add(webImage); 135 } 136 137 hasRugImages = true; 138 } 139 140 <section class="product-details" id="js-product-details" 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")"> 141 142 <div class="container"> 143 <div class="product-details__inner"> 144 <div class="product-details__header-holder"> 145 <h1 class="header-in-component header-in-component--product-detail"> 146 @Model.Name 147 </h1> 148 <div class="product-details__header-id"> 149 @if (!isOutletSite) 150 { 151 @Model.Number 152 } 153 else 154 { 155 @:@prodNumber - @patternNumber - @backingAbbr 156 } 157 </div> 158 </div> 159 <div class="product-details__slider-holder"> 160 <div class="slider-with-counter slider-with-counter--main" id="slider-with-counter--wide"> 161 <div class="slider-with-counter__slider-holder"> 162 163 <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}")"> 164 165 @if (hasRugImages) 166 { 167 foreach (var image in imageArray) 168 { 169 string title = image.Title; 170 string imageSrc = image.ImagePath; 171 var imageIndex = 0; 172 173 if (!string.IsNullOrEmpty(imageSrc)) 174 { 175 anyNonEmptyImagePath = true; 176 <li class="slider-with-counter__item"> 177 <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))" 178 data-query-obj='{ "mode":"crop" }'> 179 <noscript v-if="false"> 180 <img src="@(ImageUiFormatHelper.Format(imageSrc, 542, 542))" alt="@title"> 181 </noscript> 182 183 <button @@click="showOverlay(@imageIndex+1)" class="slider-with-counter__button-lightbox" data-lightbox-image="test-slider.jpg"></button> 184 </li> 185 } 186 } 187 } 188 @if (!hasRugImages || !anyNonEmptyImagePath) 189 { 190 foreach (var image in images) 191 { 192 var imageIndex = 0; 193 <li class="slider-with-counter__item"> 194 @if (isCircleBack && !B2cSiteActive && image.Url.Contains("/Files/Files/Ecom/Images/Products/")) 195 { 196 <div class="product-details__circle-back-overlay-container"> 197 <div class="product-details__circle-back-overlay"> 198 <div class="product-details__circle-back-overlay--img-container"> 199 <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" /> 200 </div> 201 </div> 202 </div> 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 + "&mode=crop")" 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 + "&mode=crop")" 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 + "&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 726 if (Model.GetCadesignProperties().IsTile) 727 { 728 firstBtnText = Translate("Product | Tile", "Create your tile design"); 729 } 730 else if (Model.GetCadesignProperties().Recolour) 731 { 732 firstBtnText = Translate("Product | Customize", "Customize"); 733 } 734 else 735 { 736 firstBtnText = Translate("Product | Visualize", "Visualize"); 737 } 738 <button data-href="@Model.GetCadesignProperties().ToolUrl" @@click="openCustomizeOverlay" class="button button--ghost button--black js-customize-button" data-text="@firstBtnText"> 739 <span class="button__content"> 740 <span class="button__icon"> 741 <svg class="svg-icon button__svg"> 742 <use xlink:href="@Constants.DistPath/icons/icons.svg#magic-wand"></use> 743 </svg> 744 </span> 745 <span class="button__text">@firstBtnText</span> 746 </span> 747 <div class="product-details__hide js-customize-iframe-holder"> 748 <div class="product-details__iframe-holder"> 749 <iframe class="product-details__customize-iframe" frameborder="0"></iframe> 750 <span class="product-details__wait-animation"> 751 <span></span> 752 <span></span> 753 <span></span> 754 <span></span> 755 </span> 756 </div> 757 </div> 758 </button> 759 } 760 else if (isProductRug) 761 { 762 if (showConfigurator) 763 { 764 string firstBtnText = string.Empty; 765 firstBtnText = Translate("Product | Rug configurator", "Configure rug"); 766 <a href="@configuratorFullLink" target="_blank" class="button button--ghost button--black js-customize-button"> 767 <span class="button__content"> 768 <span class="button__icon"> 769 <svg class="svg-icon button__svg"> 770 <use xlink:href="@Constants.DistPath/icons/icons.svg#magic-wand"></use> 771 </svg> 772 </span> 773 <span class="button__text">@firstBtnText</span> 774 </span> 775 <div class="product-details__hide js-customize-iframe-holder"> 776 <div class="product-details__iframe-holder"> 777 <iframe class="product-details__customize-iframe" frameborder="0"></iframe> 778 <span class="product-details__wait-animation"> 779 <span></span> 780 <span></span> 781 <span></span> 782 <span></span> 783 </span> 784 </div> 785 </div> 786 </a> 787 } 788 } 789 790 791 else if (B2cSiteActive && !string.IsNullOrWhiteSpace(Model.GetFieldValue<string>("ProductBacking")) && !string.IsNullOrWhiteSpace(Model.GetFieldValue<string>("ProductSpecificationCode"))) 792 { 793 var prod = Dynamicweb.Ecommerce.Services.Products.GetProductByNumber(Model.GetFieldValue<string>("ProductBacking"), Model.LanguageId); 794 795 <form method="post" action="/api/specifications/getpdf" class="button-double__form"> 796 <input type="hidden" name="backingCode" value="@(Model.GetFieldValue<string>("ProductBacking"))" /> 797 <input type="hidden" name="backingName" value="@(ProductExtensions.GetProductName(product))" /> 798 <input type="hidden" name="qualityName" value="@prodCollectionName" /> 799 <input type="hidden" name="collectionCode" value="@Model.GetFieldValue("ProductCollectionCode")" /> 800 <input type="hidden" name="specificationCode" value="@(Model.GetFieldValue<string>("ProductSpecificationCode"))" /> 801 <input type="hidden" name="nationalityCode" value="@Dynamicweb.Ecommerce.Common.Context.Language.CountryCode" /> 802 <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) *@ 803 <input type="hidden" name="productName" value="@Model.Name" /> 804 <input type="hidden" name="sustainabilityChoice" value="@sustainabilityChoices" /> 805 <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"> 806 <span class="button__content"> 807 <span class="button__icon"> 808 <svg class="svg-icon button__svg"> 809 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow-down-in-circle"></use> 810 </svg> 811 </span> 812 <span class="button__text"> 813 @Translate("Product details | Specifications | Download full specifications", "Download full specifications") 814 </span> 815 </span> 816 </button> 817 </form> 818 } 819 @if (!B2cSiteActive && (variantCombinations.Any() || Model.GetRelatedGroupById("RELGRP1").Any())) 820 { 821 var nonVariantSamples = Model.GetRelatedGroupById("RELGRP1"); 822 var showSamplesVersion = ""; 823 if (variantCombinations.Any()) 824 { 825 showSamplesVersion = "showSamplesAdvanced"; 826 } 827 else if (nonVariantSamples.Any()) 828 { 829 showSamplesVersion = "showSamplesSimple"; 830 } 831 <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")"> 832 <span class="button__content"> 833 <span class="button__icon"> 834 <svg class="svg-icon button__svg"> 835 <use xlink:href="@Constants.DistPath/icons/icons.svg#samples"></use> 836 </svg> 837 </span> 838 <span class="button__text">@Translate("Product | Add to samples", "Add to samples")</span> 839 </span> 840 </button> 841 } 842 else if (B2cSiteActive) 843 { 844 if (IsBulkCarpets && prodCollectionName != "Geometrica Rugs") 845 { 846 var shapeOverlayBtnText = Translate("Product | See rug in room", "Se tæppet i rum"); 847 var shapeToolUrl = ProductExtensions.CadesignServiceUrl + "/rug-ui.html?prod=" + @Model.Id; 848 <button data-href="@shapeToolUrl" @@click="openCustomizeOverlay" 849 class="button button--solid button--black js-customize-button" 850 data-text="@shapeOverlayBtnText"> 851 <span class="button__content"> 852 <span class="button__icon"> 853 <svg class="svg-icon button__svg"> 854 <use xlink:href="@Constants.DistPath/icons/icons.svg#magic-wand"></use> 855 </svg> 856 </span> 857 <span class="button__text">@shapeOverlayBtnText</span> 858 </span> 859 <div class="product-details__hide js-customize-iframe-holder"> 860 <div class="product-details__iframe-holder"> 861 <iframe class="product-details__customize-iframe" frameborder="0"></iframe> 862 <span class="product-details__wait-animation"> 863 <span></span> 864 <span></span> 865 <span></span> 866 <span></span> 867 </span> 868 </div> 869 </div> 870 </button> 871 } 872 else 873 { 874 <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")"> 875 <span class="button__content"> 876 <span class="button__icon"> 877 <svg class="svg-icon button__svg"> 878 <use xlink:href="@Constants.DistPath/icons/icons.svg#contact"></use> 879 </svg> 880 </span> 881 <span class="button__text">@Translate("Product | B2C Kontakt Os Knap", "B2C Kontakt Os Knap")</span> 882 </span> 883 </button> 884 } 885 } 886 @if (!B2cSiteActive) 887 { 888 <div class="product-details__contact-form-link"> 889 <span class="product-details__contact-form-link-left">@Translate("Product | Do you need help", "Do you need help?")</span> 890 <span class="product-details__contact-form-link-right"> 891 <button type="button" id="js-product-details__contact-form-link-button" class="product-details__contact-form-link-button" @@click="scrollDown"> 892 @Translate("Product | Contact us", "Contact us") 893 <span class="product-details__contact-form-link-arrow"> 894 <svg class="svg-icon product-details__contact-form-link-arrow-svg"> 895 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 896 </svg> 897 </span> 898 </button> 899 </span> 900 </div> 901 } 902 else if (B2cSiteActive && !string.IsNullOrEmpty(prodB2CCollectionLink)) 903 { 904 <div class="product-details__contact-form-link product-details__contact-form-link--b2c"> 905 <a href="@prodB2CCollectionLink" type="button" class="product-details__contact-form-link-button"> 906 @Translate("Product | B2C Se vores Priser", "Se vores priser her!") 907 <span class="product-details__contact-form-link-arrow product-details__contact-form-link-arrow--b2c"> 908 <svg class="svg-icon product-details__contact-form-link-arrow-svg"> 909 <use xlink:href="@Constants.DistPath/icons/icons.svg#arrow"></use> 910 </svg> 911 </span> 912 </a> 913 </div> 914 } 915 </div> 916 </span> 917 <div> 918 @TemplateHelper.RenderPartial("Ecom/Partials/Details_SelectedSamplesOverlay.cshtml") 919 @TemplateHelper.RenderPartial("Ecom/Partials/Details_AddToSamples.cshtml", Model) 920 </div> 921 } 922 </div> 923 </div> 924 925 </div> 926 </section> 927 928 if (isOutletSite) 929 { 930 931 } 932 else if (B2cSiteActive) 933 { 934 @TemplateHelper.RenderPartial("Ecom/Partials/Details_B2CGuidesAndImages.cshtml", Model) 935 } 936 else 937 { 938 if (isProductRug) 939 { 940 @TemplateHelper.RenderPartial("Ecom/Partials/Details_RugShapeAndFinishingTypes.cshtml", Model) 941 @TemplateHelper.RenderPartial("Ecom/Partials/Details_DesignerInformation.cshtml", Model) 942 943 } 944 else 945 { 946 @TemplateHelper.RenderPartial("Ecom/Partials/Details_B2BGuidesAndImages.cshtml", Model) 947 } 948 949 @TemplateHelper.RenderPartial("Ecom/Partials/Details_SpecificationsAndHighlights.cshtml", Model) 950 951 } 952 } 953
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.