Error executing template "Designs/Tefcold/_parsed/Basic_Page.parsed.cshtml"
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(GroupCollection groups, Page page, NavigationItem parentNode, Int32 thisLevel, Int32 maxLevel, Page productPage)
   at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(Page page, NavigationItem parentNode)
   at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.Process(NavigationItem node)
   at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.ProcessTree(RootNavigationItem rootNode, NavigationType navigationType)
   at Dynamicweb.Frontend.XmlNavigation.MakeXml(Int32 parentId, Int32 levelStart, Int32 levelStop, Expand expand, Int32 selectedAreaId)
   at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(Int32 parentId, Int32 levelStart, Int32 levelStop, Expand expand, String name, String xsltPath, Int32 selectedAreaId, Boolean sitemapMode, NameValueCollection settings, NameValueCollection attributes, IncludeMode mode)
   at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(NameValueCollection settings, NameValueCollection attributes)
   at Dynamicweb.Rendering.TemplateBase`1.RenderNavigation(Object settings)
   at CompiledRazorTemplates.Dynamic.RazorEngine_b45690f3eb054d119c37dc3595b2e7cf.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\_parsed\Basic_Page.parsed.cshtml:line 600
   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.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @using System.Globalization 2 @using Dynamicweb 3 @using Dynamicweb.Content 4 @using Dynamicweb.Frontend; 5 @using Dynamicweb.Security.UserManagement 6 @using NLWI.Core.Factory 7 @using NORRIQ.SalesPersonLogin.Services 8 @using Dynamicweb.Ecommerce.International 9 @using Tefcold.Web.CustomCode.Extensions 10 @using Tefcold.Web.CustomCode.Items.Properties 11 @using Tefcold.Web.CustomCode.Items.Settings 12 @using Tefcold.Web.CustomCode.LanguageSwitch 13 @using Tefcold.Web.CustomCode.Razor 14 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 15 @{ 16 //Heine: Understående kan bruges såfremt der skal tjekkes på om man er i impersonation mode: 17 var isImpersonating = ImpersonationService.IsCurrentlyImpersonating(); 18 var locationName = Pageview.User?.Name; 19 var websiteSettings = Pageview.Area.Item.ToCodeFirstItem<Websites>(); 20 LanguageService languageService = new LanguageService(); 21 var languagesJson = Newtonsoft.Json.JsonConvert.SerializeObject(languageService.GetLanguages()); 22 } 23 24 <!DOCTYPE html> 25 <html lang="@Pageview.Area.Culture"> 26 <head> 27 <meta charset='utf-8' /> 28 <meta name="description" content="@Model.Description" /> 29 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, shrink-to-fit=no" /> 30 <meta http-equiv="x-ua-compatible" content="ie=edge"> 31 @if (Model.Area.Item.GetBoolean("NoIndex")) 32 { 33 <!-- TODO: remove on launch--> 34 <meta name="robots" content="noindex, nofollow" /> 35 } 36 37 @if (!string.IsNullOrWhiteSpace(websiteSettings.HeaderScript)) 38 { 39 @websiteSettings.HeaderScript 40 } 41 42 @if (!string.IsNullOrWhiteSpace(websiteSettings.GoogleTagManagerId)) 43 { 44 <script> 45 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 46 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 47 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 48 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 49 })(window,document,'script','dataLayer','@websiteSettings.GoogleTagManagerId'); 50 </script> 51 } 52 53 <!-- Begin Mailchimp Signup Form --> 54 <link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css"> 55 <style type="text/css"> 56 #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; } 57 /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block. 58 We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */ 59 60 </style> 61 62 <title>@Model.Title</title> 63 @Model.MetaTags 64 @if (Model.Area.Item.GetFile("Icon") != null) 65 { 66 <link href="@Model.Area.Item.GetFile("Icon").Path" rel="icon" type="image/png"> 67 } 68 <link rel="preload" href="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/css/Tefcold-min.css")" as="style" /> 69 <link rel="stylesheet" async href="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/css/Tefcold-min.css")" /> 70 @*<link href="/Files/dist/css/Tefcold-min.css" rel="stylesheet" />*@ 71 </head> 72 <body> 73 @if (!string.IsNullOrWhiteSpace(websiteSettings.GoogleTagManagerId)) 74 { 75 <!-- Google Tag Manager (noscript) --> 76 <noscript> 77 <iframe src="https://www.googletagmanager.com/ns.html?id=@websiteSettings.GoogleTagManagerId" 78 height="0" width="0" style="display: none; visibility: hidden"></iframe> 79 </noscript> 80 <!-- End Google Tag Manager (noscript) --> 81 } 82 <div id="app"> 83 @{ 84 string basicNavbarPrefix = "Header "; 85 var logo = Model.Area.Item.GetFile("Logo"); 86 var currencyCode = Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId; 87 } 88 <header class="basic_navbar@(websiteSettings.EcomNav ? " has-groupsnavbar":"")" id="header"> 89 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("Notice"))) 90 { 91 <div class="notice-bar"> 92 <div class="basic_navbar-container"> 93 <p class="text-center">@Model.Area.Item.GetString("Notice")</p> 94 </div> 95 </div> 96 } 97 @if (isImpersonating) 98 { 99 <div class="impersonation-bar"> 100 <div class="basic_navbar-container"> 101 <p> 102 @Translate(basicNavbarPrefix + "debitor", "Debitor"): <b>@locationName</b> | <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("impersonation-choose-customer")?action=changeuser">@Translate("Change customer")</a> 103 </p> 104 </div> 105 </div> 106 } 107 <div class="basic_navbar-main"> 108 <div class="basic_navbar-container"> 109 <a href="/" class="basic_navbar-logo" title="@Translate(basicNavbarPrefix + "Go to frontpage", "Go to frontpage")"> 110 @if (logo != null) 111 { 112 <img class="img-fluid" src="@logo.Path" alt="@Translate(basicNavbarPrefix + "Website Logo Alttext", "Website Logo Alttext")" /> 113 } 114 else 115 { 116 <i>@Translate(basicNavbarPrefix + "No logo found", "No logo found, please configure it in the Dynamicweb Administration")</i> 117 } 118 </a> 119 <collapse-hack inline-template> 120 <b-collapse class="basic_navbar-navigation" id="basic_navigation" tag="@(websiteSettings.EcomNav ? "div" : "nav")"> 121 @if (!websiteSettings.EcomNav) 122 { 123 @RenderNavigation(new { Template = "basic_navbar.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4 }) 124 } 125 else 126 { 127 @RenderNavigation(new { Template = "basic_navbar-extreme.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4 }) 128 } 129 <ul class="basic_navbar-subnav"> 130 <li> 131 <button type="button" 132 v-b-toggle.languages 133 aria-label="@Translate(basicNavbarPrefix + "Choose Language", "Choose Language")" 134 title="@Translate(basicNavbarPrefix + "Choose Language", "Choose Language")"> 135 <img src="/Admin/Public/GetImage.ashx?Width=32&amp;Compression=85&amp;Format=webp&amp;Quality=85&amp;Image=@Pageview.Area.Flag32X32" alt="@Pageview.Area.CultureInfo.EnglishName" /> 136 <span class="sr-only">@Pageview.Area.CultureInfo.EnglishName</span> 137 </button> 138 </li> 139 <li> 140 <button v-b-toggle.contacts 141 type="button" 142 aria-label="@Translate(basicNavbarPrefix + "Show contacts", "Show contacts")" 143 title="@Translate(basicNavbarPrefix + "Show contacts", "Show contacts")"> 144 <svg> 145 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 146 </svg> 147 <span class="sr-only">@Translate(basicNavbarPrefix + "Contacts", "Contacts")</span> 148 </button> 149 </li> 150 <li> 151 <button v-b-toggle.customer-center 152 type="button" 153 aria-label="@Translate(basicNavbarPrefix + "Show Webshop Login", "Show Webshop Login")" 154 title="@Translate(basicNavbarPrefix + "Show Webshop Login", "Show Webshop Login")"> 155 @if (Pageview.User == null) 156 { 157 <svg> 158 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user"></use> 159 </svg> 160 } 161 else 162 { 163 <svg style="width: 30px; height: 30px;"> 164 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user-check"></use> 165 </svg> 166 } 167 <span class="sr-only">@Translate(basicNavbarPrefix + "Login", "Login")</span> 168 </button> 169 </li> 170 @if (Pageview.User != null) 171 { 172 <li> 173 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("quickorder")" title="@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")"> 174 <svg width="28px" height="28px"> 175 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#quickorder"></use> 176 </svg> 177 <span class="sr-only">@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")</span> 178 </a> 179 </li> 180 } 181 @if (Pageview.User != null && Pageview.User.AllowMediaBank()) 182 { 183 @*<media-bank inline-template> 184 <li> 185 <form id="mediabankform" action="https://imagebank.tefcold.com/Home/LoginUser" method="post"> 186 <input id="mediabankformname" type="hidden" name="username" /> 187 <input id="mediabankformpassword" type="hidden" name="password" /> 188 <input type="hidden" value="false" name="persistent" /> 189 </form> 190 <a v-on:click="connect($event)" href="#" title="@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")"> 191 <svg width="28px" height="28px" fill="currentColor"> 192 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#photo-video"></use> 193 </svg> 194 <span class="sr-only">@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")</span> 195 </a> 196 </li> 197 </media-bank>*@ 198 <li> 199 <a href="@Translate(basicNavbarPrefix + "Mediabank Link", "http://media.tefcold.com")" target="_blank" title="@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")"> 200 <svg width="28px" height="28px" fill="currentColor"> 201 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#photo-video"></use> 202 </svg> 203 <span class="sr-only">@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")</span> 204 </a> 205 </li> 206 } 207 <li> 208 <button type="button" 209 class="btn-close" 210 @@click="collapseAll" 211 aria-label="@Translate(basicNavbarPrefix + "Close Navigation", "Close Navigation")" 212 title="@Translate(basicNavbarPrefix + "Close Navigation", "Close Navigation")"> 213 <span></span> 214 <span></span> 215 </button> 216 </li> 217 </ul> 218 </b-collapse> 219 </collapse-hack> 220 @if (websiteSettings.SearchAheadActivated) 221 { 222 <instant-search base-class="basic_navbar-search" :min-search-length="@websiteSettings.KeyStrokes" :number-of-hits="@websiteSettings.SearchHits" :product-search-paragraph-id="@websiteSettings.ProductSearchParagraphId" 223 :content-search-paragraph-id="@websiteSettings.ContentSearchParagraphId"></instant-search> 224 } 225 else 226 { 227 228 <form class="basic_navbar-search" action="/Default.aspx"> 229 <search-shortcut inline-template> 230 <div style="display: none"></div> 231 </search-shortcut> 232 <label for="productsearch">Search</label> 233 <input name="ID" type="hidden" value="@NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("searchresult")"> 234 <input name="PageSize" type="hidden" value="99" /> 235 <input type="search" placeholder="@Translate(basicNavbarPrefix + "Search", "Search")" id="productsearch" name="productsearch"> 236 <button type="submit"> 237 <span class="sr-only">@Translate(basicNavbarPrefix + "Search", "Search")</span> 238 <svg> 239 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#search"></use> 240 </svg> 241 </button> 242 </form> 243 } 244 245 <ul class="basic_navbar-functions"> 246 <li class="basic_navbar-languages relative"> 247 <button type="button" v-b-toggle.languages aria-label="@Translate(basicNavbarPrefix + "Choose Language", "Choose Language")" title="@Translate(basicNavbarPrefix + "Choose Language", "Choose Language")"> 248 <span class="sr-only">@Pageview.Area.CultureInfo.EnglishName</span> 249 @if (Pageview.Area.Culture == "en-GB") 250 { 251 <img src="/Admin/Public/GetImage.ashx?Width=32&amp;Compression=85&amp;Format=webp&amp;Quality=85&amp;Image=/Files/Images/globe-flag.png" alt="@Pageview.Area.Culture - Flag" width="32" height="32" /> 252 } 253 else 254 { 255 <img src="/Admin/Public/GetImage.ashx?Width=32&amp;Compression=85&amp;Format=webp&amp;Quality=85&amp;Image=@Pageview.Area.Flag32X32" alt="@Pageview.Area.Culture - Flag" width="32" height="32" /> 256 } 257 @*@if (Pageview.Area.Culture == "en-GB") 258 { 259 <svg width="32" height="32" fill="currentColor"> 260 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#globe"></use> 261 </svg> 262 } 263 else 264 { 265 <img src="@Pageview.Area.Flag32X32" alt="@Pageview.Area.Culture - Flag" /> 266 }*@ 267 </button> 268 <b-collapse id="languages" class="basic_navbar-dropdown" accordion="header" v-auto-close> 269 <div class="basic_navbar-body languages-dropdown"> 270 <ul class="master-area"> 271 <li class="head"> 272 @if (Pageview.AreaID == 12 || Pageview.AreaID == 13) 273 { 274 <strong>@Translate(basicNavbarPrefix + "Tefcold Cz Languages", "TEFCOLD CZ s.r.o.")</strong> 275 } 276 else 277 { 278 <strong>@Translate(basicNavbarPrefix + "Tefcol Group Languages", "TEFCOLD A/S")</strong> 279 } 280 </li> 281 @foreach (var lang in Model.Languages) 282 { 283 @RenderLanguage(lang) 284 } 285 </ul> 286 <ul class="sub-area"> 287 288 @foreach (var masterArea in Dynamicweb.Services.Areas.GetMasterAreas().Where(a => !Model.Languages.Any(s => a.ID == s.ID))) 289 { 290 <li class="head"> 291 @if (Pageview.AreaID == 12 || Pageview.AreaID == 13) 292 { 293 <strong>@Translate(basicNavbarPrefix + "Tefcol Group Languages", "TEFCOLD A/S")</strong> 294 } 295 else 296 { 297 <strong>@Translate(basicNavbarPrefix + "Tefcold Cz Languages", "TEFCOLD CZ s.r.o.")</strong> 298 } 299 </li> 300 if (Pageview.AreaID != masterArea.ID) 301 { 302 <li class="@masterArea.ID"> 303 @renderArea(masterArea, websiteSettings) 304 </li> 305 } 306 foreach (var lang in masterArea.Languages.Where(s => s.Active && s.ID != Pageview.AreaID)) 307 { 308 <li class="is-lang"> 309 @renderArea(lang, websiteSettings) 310 </li> 311 } 312 } 313 314 </ul> 315 <ul class="uk-area"> 316 <li class="head"><strong>@Translate(basicNavbarPrefix + "Tefcol UK Languages", "TEFCOLD UK")</strong></li> 317 <li> 318 <a href="@Translate(basicNavbarPrefix + "Tefcold UK Url", "//tefcold.co.uk")" target="_blank"> 319 320 <img src="/Admin/Public/GetImage.ashx?Width=32&amp;Compression=85&amp;Format=webp&amp;Quality=85&amp;Background=dee0e2&amp;Image=/Admin/Images/Flags/flag_GB.png" alt="en-GB - Flag" loading="lazy" /> 321 <span>@Translate(basicNavbarPrefix + "Tefcold UK Label", "tefcold.co.uk")</span> 322 </a> 323 </li> 324 </ul> 325 </div> 326 </b-collapse> 327 </li> 328 <li class="basic_navbar-contacts @(Pageview.User != null ? "static" : "relative")"> 329 <button v-b-toggle.contacts 330 type="button" 331 aria-label="@Translate(basicNavbarPrefix + "Show contacts", "Show contacts")" 332 title="@Translate(basicNavbarPrefix + "Show contacts", "Show contacts")"> 333 <svg> 334 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 335 </svg> 336 <span class="sr-only">@Translate(basicNavbarPrefix + "Contacts", "Contacts")</span> 337 </button> 338 @{ 339 var impersonationGroupId = websiteSettings.ImpersonationGroup.FirstOrDefault(); 340 IEnumerable<User> users = null; 341 IEnumerable<User> salesPersons = new List<User>(); 342 if (Pageview.User != null) 343 { 344 var salesPersonCode = Pageview.User.CustomFieldValues.FirstOrDefault(field => field.CustomField.Name == "Sales Person Code"); 345 var salesPersonsInitials = salesPersonCode?.Value?.ToString().Split(',') ?? new string[] { }; 346 salesPersonsInitials = salesPersonsInitials.Select(x => x.ToLower()).ToArray(); 347 348 if (!string.IsNullOrEmpty(impersonationGroupId)) 349 { 350 users = Group.GetGroupByID(int.Parse(impersonationGroupId)).Users; 351 } 352 if (users == null || Pageview.User == null) 353 { 354 salesPersons = new List<User>(); 355 } 356 else 357 { 358 salesPersons = users.Where(user => salesPersonsInitials.Contains(user.Email.ToLower().Split('@').FirstOrDefault() ?? "")); 359 } 360 } 361 362 } 363 <b-collapse id="contacts" class="@(Pageview.User != null ? "basic_navbar-megamenu" : "basic_navbar-dropdown")" v-auto-close accordion="header"> 364 <div class="basic_navbar-body"> 365 @if (Pageview.User != null) 366 { 367 if (salesPersons.Any()) 368 { 369 <p class="tefcold_salesperson-byline h1">@Translate(basicNavbarPrefix + "Your Sales Team", "Your Sales Team")</p> 370 } 371 foreach (var salesPerson in salesPersons) 372 { 373 <div class="tefcold_salesperson" itemscope itemtype="http://schema.org/Person"> 374 <figure> 375 <img src="@salesPerson.Image" class="img-fluid" alt="@salesPerson.Name" itemprop="image" loading="lazy" /> 376 </figure> 377 <p itemprop="name">@salesPerson.Name</p> 378 <p itemprop="jobTitle">@salesPerson.JobTitle</p> 379 <p itemprop="telephone"> 380 <svg> 381 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 382 </svg> 383 <span>@salesPerson.PhonePrivate</span> 384 </p> 385 <p itemprop="telephone"> 386 <svg> 387 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#mobile-alt"></use> 388 </svg> 389 <span>@salesPerson.PhoneMobile</span> 390 </p> 391 <a href="@("mailto:" + @salesPerson.Email)" itemprop="email"> 392 <svg> 393 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#envelope"></use> 394 </svg> 395 <span>@salesPerson.Email</span> 396 </a> 397 </div> 398 } 399 } 400 <ul> 401 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("PhoneLabel")) 402 && !string.IsNullOrEmpty(Model.Area.Item.GetString("Phonenumber"))) 403 { 404 <li class="head"> 405 <strong> 406 @Model.Area.Item.GetString("PhoneLabel") 407 </strong> 408 <strong> 409 @Model.Area.Item.GetString("Phonenumber") 410 </strong> 411 </li> 412 } 413 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("ContactPage")) 414 && !string.IsNullOrEmpty(Model.Area.Item.GetString("ContactLabel"))) 415 { 416 <li> 417 <a href="@Model.Area.Item.GetString("ContactPage")"> 418 @Model.Area.Item.GetString("ContactLabel") 419 </a> 420 </li> 421 } 422 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("SalesPage")) 423 && !string.IsNullOrEmpty(Model.Area.Item.GetString("SalesLabel"))) 424 { 425 <li> 426 <a href="@Model.Area.Item.GetString("SalesPage")"> 427 @Model.Area.Item.GetString("SalesLabel") 428 </a> 429 </li> 430 } 431 </ul> 432 433 </div> 434 </b-collapse> 435 </li> 436 <li class="basic_navbar-user"> 437 <button v-b-toggle.customer-center type="button" aria-label="@Translate(basicNavbarPrefix + "Show Webshop Login", "Show Webshop Login")" title="@Translate(basicNavbarPrefix + "Show Webshop Login", "Show Webshop Login")"> 438 @if (Pageview.User == null) 439 { 440 <svg> 441 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user"></use> 442 </svg> 443 } 444 else 445 { 446 <svg style="width: 30px; height: 30px;"> 447 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user-check"></use> 448 </svg> 449 } 450 <span class="sr-only">@Translate(basicNavbarPrefix + "Login", "Login")</span> 451 </button> 452 453 454 <b-collapse id="customer-center" class="basic_navbar-dropdown" accordion="header" v-auto-close> 455 <div class="basic_navbar-body"> 456 @if (Pageview.User == null) 457 { 458 <head-login-form inline-template> 459 <form name="ExtUserForm" id="loginForm" method="post" class="form" role="form" v-on:submit="submitLogin"> 460 <p> 461 <strong> 462 @Translate(basicNavbarPrefix + "Webshop Login", "Webshop Login") 463 </strong> 464 </p> 465 <input type="hidden" name="ID" id="ID" value="" /> 466 <div class="form-group"> 467 <label for="Username">@Translate(basicNavbarPrefix + "Username", "Username")</label> 468 <input id="Username" v-model="username" name="Username" type="text" value="" class="form-control" autocomplete="off"> 469 </div> 470 <div class="form-group"> 471 <label for="Password">@Translate(basicNavbarPrefix + "Password", "Password")</label> 472 <input id="Password" v-model="password" name="Password" type="password" value="" class="form-control" autocomplete="off"> 473 </div> 474 <div v-if="loginFailed"> 475 <p class="alert alert-warning"> 476 @Translate("Login failed", "Invalid credentials") 477 </p> 478 </div> 479 <div v-if="redirecting" class="alert alert-warning"> 480 <p> 481 @Translate("Login wrong shop", "Your login belongs to another language, redirecting you in:") 482 483 </p> 484 <span class="basic_login"><b>{{counter}}</b></span> 485 </div> 486 487 <div class="basic_login-buttons"> 488 <button type="submit" role="button" class="btn btn-primary btn-block" v-bind:class='{"loading": loading}' v-on:click="loading=true" id="loginBtn"> 489 @Translate(basicNavbarPrefix + "Login", "Login") 490 </button> 491 </div> 492 </form> 493 </head-login-form> 494 <ul> 495 <li> 496 <a href="/Default.aspx?ID=@NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("forgotpassword")&amp;LoginAction=Recovery"> 497 @Translate(basicNavbarPrefix + "Forgot password", "Forgot password") 498 </a> 499 </li> 500 <li> 501 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("contact")"> 502 @Translate(basicNavbarPrefix + "Create Webshop Account", "Create Webshop Account") 503 </a> 504 </li> 505 </ul> 506 } 507 else 508 { 509 <div class="active-user"> 510 <p><strong>@Pageview.User.Name</strong></p> 511 <p> 512 <a v-clear-cache:click.user href='/admin/public/extranetlogoff.aspx?ID=@(NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("home"))'> 513 @Translate(basicNavbarPrefix + "Sign out", "Sign out") 514 </a> 515 </p> 516 </div> 517 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = "customer-portal" }) 518 } 519 </div> 520 </b-collapse> 521 </li> 522 @if (Pageview.User != null && Pageview.User.AllowMediaBank()) 523 { 524 @*<media-bank inline-template> 525 <li> 526 <form id="mediabankform" action="https://imagebank.tefcold.com/Home/LoginUser" method="post"> 527 <input id="mediabankformname" type="hidden" name="username" /> 528 <input id="mediabankformpassword" type="hidden" name="password" /> 529 <input type="hidden" value="false" name="persistent" /> 530 </form> 531 <a v-on:click="connect($event)" href="#" title="@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")"> 532 <svg width="28px" height="28px" fill="currentColor"> 533 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#photo-video"></use> 534 </svg> 535 <span class="sr-only">@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")</span> 536 </a> 537 </li> 538 </media-bank>*@ 539 <li> 540 <a href="@Translate(basicNavbarPrefix + "Mediabank Link", "http://media.tefcold.com")" target="_blank" title="@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")"> 541 <svg width="28px" height="28px" fill="currentColor"> 542 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#photo-video"></use> 543 </svg> 544 <span class="sr-only">@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")</span> 545 </a> 546 </li> 547 548 } 549 @if (Pageview.User != null) 550 { 551 <li class="basic_navbar-quick"> 552 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("quickorder")" title="@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")"> 553 <svg width="28px" height="28px"> 554 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#quickorder"></use> 555 </svg> 556 <span class="sr-only">@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")</span> 557 </a> 558 </li> 559 } 560 @if (websiteSettings.b2cshopping || Pageview.User != null) 561 { 562 <cart-icon cartlink="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("checkout")"></cart-icon> 563 } 564 <li class="basic_navbar-toggle"> 565 <button type="button" 566 aria-label="@Translate(basicNavbarPrefix + "Open main navigation", "Open main navigation")" 567 title="@Translate(basicNavbarPrefix + "Open main navigation", "Open main navigation")" 568 v-b-toggle.basic_navigation> 569 <svg width="28px" height="28px"> 570 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#bars"></use> 571 </svg> 572 <span class="sr-only">@Translate(basicNavbarPrefix + "Open main navigation", "Open main navigation")</span> 573 </button> 574 </li> 575 </ul> 576 577 </div> 578 </div> 579 </header> 580 @using Dynamicweb.Frontend; 581 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 582 583 @Title("Page") 584 @Description("Default page template") 585 @{ 586 string basicPagePrefix = "Page "; 587 } 588 @if (Pageview.IsCurrentUserAllowed) 589 { 590 var pageLayout = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("Layout").SelectedValue) ? Model.Item.GetValue<ListViewModel>("Layout").SelectedValue : "content-page-sidebar"; 591 var pageClass = pageLayout == "page-wide" ? "basic_page-wide" : "basic_page"; 592 if (!Model.Item.GetBoolean("HideBreadcrumb")) 593 { 594 if (Model.Area.Item.GetFile("TopImage") != null) 595 { 596 <figure> 597 <img src="/Admin/Public/GetImage.ashx?Height=200&amp;Compression=85&amp;Crop=6&amp;Image=@Model.Area.Item.GetFile("TopImage").Path" class="img-fluid" alt="webbanner" /> 598 </figure> 599 } 600 @RenderNavigation(new { Template = "basic_Breadcrumb.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 5 }) 601 } 602 <main class="@pageClass"> 603 @if (pageLayout == "content-page-sidebar" || pageLayout == "module-page-sidebar") 604 { 605 <aside class="basic_page-sidebar"> 606 @RenderNavigation(new { Template = "basic_Page.xslt", StartLevel = 1, EndLevel = 3 }) 607 </aside> 608 <div class="basic_page-content"> 609 @if (pageLayout == "content-page-sidebar" && !string.IsNullOrEmpty(Model.Item.GetString("Title").ToString()) || !string.IsNullOrEmpty(Model.Item.GetString("Text").ToString())) 610 { 611 <section class="basic_paragraph"> 612 @if (!string.IsNullOrEmpty(Model.Item.GetString("Title").ToString())) 613 { 614 <header> 615 <h1> 616 @Model.Item.GetString("Title") 617 </h1> 618 </header> 619 } 620 @if (Model.Item.GetFile("Image") != null) 621 { 622 <figure> 623 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" /> 624 </figure> 625 } 626 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text").ToString())) 627 { 628 @Model.Item.GetString("Text") 629 } 630 </section> 631 } 632 @RenderPlaceholder() 633 </div> 634 } 635 else 636 { 637 @RenderPlaceholder() 638 } 639 </main> 640 } 641 else 642 { 643 <main class="basic_page"> 644 @RenderPlaceholder() 645 </main> 646 } 647 @helper RenderPlaceholder() 648 { 649 @Model.Placeholder("Content", "Content", "unwrap:true;default:true") 650 if (!String.IsNullOrEmpty(Model.Placeholder("Boxed"))) 651 { 652 <div class="grouped"> 653 @Model.Placeholder("Boxed", "Grouped Content", "unwrap:true") 654 </div> 655 } 656 } 657 658 @{ 659 string footerPrefix = "Footer "; 660 } 661 <footer class="basic_footer"> 662 <div class="basic_footer-wrap basic_footer-main"> 663 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterOneTitle")) && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterOneText"))) 664 { 665 <div class="basic_footer-box"> 666 <div class="basic_footer-head" role="button" v-b-toggle.footer-one> 667 <h3>@Model.Area.Item.GetString("FooterOneTitle")</h3> 668 </div> 669 <b-collapse id="footer-one" class="basic_footer-collapse"> 670 <div class="basic_footer-body"> 671 @Model.Area.Item.GetString("FooterOneText") 672 </div> 673 </b-collapse> 674 </div> 675 } 676 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTitle")) 677 && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoText")) 678 || !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTag"))) 679 { 680 <div class="basic_footer-box"> 681 <div class="basic_footer-head" role="button" v-b-toggle.footer-two> 682 <h3>@Model.Area.Item.GetString("FooterTwoTitle")</h3> 683 </div> 684 <b-collapse id="footer-two" class="basic_footer-collapse"> 685 <div class="basic_footer-body"> 686 @Model.Area.Item.GetString("FooterTwoText") 687 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTag"))) 688 { 689 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = @Model.Area.Item.GetString("FooterTwoTag").ToString() }) 690 } 691 </div> 692 </b-collapse> 693 </div> 694 } 695 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTitle")) 696 && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeText")) 697 || !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTag"))) 698 { 699 <div class="basic_footer-box"> 700 <div class="basic_footer-head" role="button" v-b-toggle.footer-three> 701 <h3>@Model.Area.Item.GetString("FooterThreeTitle")</h3> 702 </div> 703 <b-collapse id="footer-three" class="basic_footer-collapse"> 704 <div class="basic_footer-body"> 705 @Model.Area.Item.GetString("FooterThreeText") 706 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTag"))) 707 { 708 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = @Model.Area.Item.GetString("FooterThreeTag").ToString() }) 709 } 710 </div> 711 </b-collapse> 712 </div> 713 } 714 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterFourTitle")) && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterFourText"))) 715 { 716 <div class="basic_footer-box"> 717 <div class="basic_footer-head" role="button" v-b-toggle.footer-four> 718 <h3>@Model.Area.Item.GetString("FooterFourTitle")</h3> 719 </div> 720 <b-collapse id="footer-four" class="basic_footer-collapse"> 721 <div class="basic_footer-body"> 722 @Model.Area.Item.GetString("FooterFourText") 723 </div> 724 </b-collapse> 725 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FacebookUrl")) 726 || !string.IsNullOrEmpty(Model.Area.Item.GetString("LinkedInUrl")) 727 || !string.IsNullOrEmpty(Model.Area.Item.GetString("YoutubeUrl"))) 728 { 729 <div class="some"> 730 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FacebookUrl"))) 731 { 732 <a href="@Model.Area.Item.GetString("FacebookUrl")" target="_blank" aria-label="Facebook" rel="noreferrer"> 733 <svg> 734 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#facebook-square"></use> 735 </svg> 736 </a> 737 } 738 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("LinkedInUrl"))) 739 { 740 <a href="@Model.Area.Item.GetString("LinkedInUrl")" target="_blank" aria-label="LinkedIn" rel="noreferrer"> 741 <svg> 742 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#linkedin"></use> 743 </svg> 744 </a> 745 } 746 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("YoutubeUrl"))) 747 { 748 <a href="@Model.Area.Item.GetString("YoutubeUrl")" target="_blank" aria-label="Youtube" rel="noreferrer"> 749 <svg> 750 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#youtube-square"></use> 751 </svg> 752 </a> 753 } 754 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("SmileyUrl"))) 755 { 756 <a href="@Model.Area.Item.GetString("SmileyUrl")" target="_blank" aria-label="@Translate(footerPrefix + "smiley", "Elite Smiley")" rel="noreferrer"> 757 <svg> 758 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#happy-smiley"></use> 759 </svg> 760 </a> 761 } 762 </div> 763 } 764 </div> 765 } 766 </div> 767 @if (Model.Area.Item.GetFile("GroupLogo") != null) 768 { 769 <div class="basic_footer-group"> 770 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("GroupLogo"))) 771 { 772 <a href="@Model.Area.Item.GetString("GroupLink")" target="_blank" title="@Translate(footerPrefix + "tefcold group logo alt", "Part of Tefcold Group")"> 773 <img src="@Model.Area.Item.GetFile("GroupLogo").Path" class="img-fluid" alt="@Translate(footerPrefix + "tefcold group logo alt", "Part of Tefcold Group")" /> 774 </a> 775 } 776 else 777 { 778 <img src="@Model.Area.Item.GetFile("GroupLogo").Path" class="img-fluid" alt="@Translate(footerPrefix + "tefcold group logo alt", "Part of Tefcold Group")" /> 779 } 780 </div> 781 } 782 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterCopyright"))) 783 { 784 785 <div class="basic_footer-sub"> 786 <div class="basic_footer-wrap"> 787 788 <p> 789 &copy; @DateTime.Now.Year @Model.Area.Item.GetString("FooterCopyright") 790 </p> 791 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = "footer" }) 792 793 @if (Model.Area.Item.GetValue<ListViewModel>("Cards").SelectedValues.Any()) 794 { 795 <div class="text-center cards"> 796 @foreach (var cards in Model.Area.Item.GetValue<ListViewModel>("Cards").SelectedValues) 797 { 798 <img src="/Files/Images/cards/@cards" alt="@cards.Split('.').First()" loading="lazy" /> 799 } 800 </div> 801 } 802 803 </div> 804 </div> 805 } 806 </footer> 807 <compare-banner class="comparison-footer" inline-template> 808 <div v-if="productsToCompare >= 1" class="comparison-footer"> 809 @{ 810 string comparisonFooterPrefix = "Comparison "; 811 } 812 <template v-if="productsToCompare >= 2"> 813 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("compare")" class="btn btn-primary btn-lg btn-block"> 814 <svg class="icon"> 815 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#balance-scale"></use> 816 </svg> 817 <span> 818 @Translate(comparisonFooterPrefix + "Click to compare", "Click to compare") 819 <strong>{{productsToCompare}}</strong> 820 @Translate(comparisonFooterPrefix + "products", "products") 821 </span> 822 </a> 823 </template> 824 <template v-else> 825 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("compare")" class="btn btn-primary btn-lg btn-block no-click"> 826 <svg class="icon"> 827 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#balance-scale"></use> 828 </svg> 829 <span> 830 @Translate(comparisonFooterPrefix + "You need 2 product to compare", "You need <strong>2</strong> products to compare") 831 </span> 832 </a> 833 </template> 834 </div> 835 </compare-banner> 836 <basic-alert inline-template alertmessage='@Translate("Internet Explore Alert Message", "Website does not work properly on Internet Explorer, change browser for optimal user experience")' sessionstoragekey='IEHasBeenAlert'> 837 <div></div> 838 </basic-alert> 839 </div> 840 841 @helper RenderLanguage(PageLanguageViewModel lang) 842 { 843 if (Pageview.AreaID == lang.ID) 844 { 845 return; 846 847 } 848 849 if (Pageview.AreaID == lang.ID) 850 { 851 return; 852 853 } 854 855 var langCode = lang.Culture.Split('-').Last(); 856 var cultureInfo = CultureInfo.GetCultureInfo(lang.Culture); 857 var language = cultureInfo.NativeName.Split('(')[0]; 858 var url = SearchEngineFriendlyURLs.GetFriendlyUrl(lang.Page.ID); 859 var query = System.Web.HttpUtility.ParseQueryString(System.Web.HttpContext.Current.Request.QueryString.ToString()); 860 var allowedQuery = new HashSet<string> { "groupid", "productid", "variantid" }; 861 var shopIdSplit = "-at-SHOP"; 862 var shopId = Services.Pages.GetPage(lang.Page.ID).Area.EcomShopId; 863 foreach (var kv in query.AllKeys) 864 { 865 if (kv != null && allowedQuery.Contains(kv.ToLower())) 866 { 867 var queryValue = query[kv]; 868 var indexOfShopId = queryValue.IndexOf(shopIdSplit, StringComparison.InvariantCultureIgnoreCase); 869 if (indexOfShopId > 0) 870 { 871 var withOutShopId = queryValue.Substring(0, indexOfShopId); 872 query[kv] = withOutShopId + "-at-" + shopId; 873 } 874 } 875 else 876 { 877 query.Remove(kv); 878 } 879 } 880 881 882 var langArea = Dynamicweb.Services.Areas.GetArea(lang.ID); 883 var protocol = langArea.SslMode == 2 ? "https:" : "http"; 884 var host = lang.PrimaryDomain; 885 886 if (string.IsNullOrWhiteSpace(host)) 887 { 888 var domains = langArea.Domain.Split(new[] { "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()); 889 host = (domains.FirstOrDefault(s => !s.Equals("localhost")) ?? "").TrimEnd('/'); 890 } 891 var urlencodedQuery = $"{protocol}://{host}{url}{(query.HasKeys() ? "?" + query.ToString() : "")}"; 892 893 <li> 894 <a href="@urlencodedQuery"> 895 @if (lang.Culture == "en-GB") 896 { 897 <img src="/Files/Images/globe-flag.png" alt="@lang.Culture - Flag" width="32" height="32" loading="lazy" /> 898 } 899 else 900 { 901 <img src="/Admin/Public/GetImage.ashx?Width=32&amp;Compression=85&amp;Format=webp&amp;Quality=85&amp;Image=/Admin/Images/Flags/flag_@(langCode).png" alt="@lang.Culture - Flag" width="32" height="32" loading="lazy" /> 902 } 903 @*@if (lang.Culture == "en-GB") 904 { 905 <svg width="32" height="32" fill="#3a3b3c"> 906 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#globe"></use> 907 </svg> 908 } 909 else 910 { 911 <img src="/Admin/Images/Flags/flag_@(langCode).png" alt="@lang.Culture - Flag" loading="lazy" /> 912 }*@ 913 <span>@Translate("lang_" + lang.Culture.Split('-').First(), lang.Culture.Split('-').First())</span> 914 </a> 915 </li> 916 } 917 918 919 @helper renderArea(Area lang, Websites websiteSettings) 920 { 921 var protocol = lang.SslMode == 2 ? "https:" : "http"; 922 var host = lang.DomainLock; 923 string countryCode = lang.Culture.Split('-').Last(); 924 if (string.IsNullOrWhiteSpace(host)) 925 { 926 var domains = lang.Domain.Split(new[] { "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(s => s.Trim()); 927 host = (domains.FirstOrDefault(s => !s.Equals("localhost")) ?? "").TrimEnd('/'); 928 } 929 var langUrl = $"{protocol}://{host}"; 930 var langSettings = lang.Item.ToCodeFirstItem<Websites>(); 931 if (langSettings.NoIndex && !websiteSettings.NoIndex) 932 { 933 var pageId = NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag(countryCode + "Redirect"); 934 langUrl = pageId > 0 ? $"/Default.aspx?ID={pageId}" : ""; 935 } 936 <a href="@langUrl"> 937 @if (lang.Culture == "en-GB") 938 { 939 <img src="/Files/Images/globe-flag.png" alt="@lang.Culture - Flag" width="32" height="32" class="img-fluid" loading="lazy" /> 940 } 941 else 942 { 943 <img src="/Admin/Images/Flags/flag_@(countryCode).png" alt="@lang.Culture - Flag" width="32" height="32" class="img-fluid" loading="lazy" /> 944 } 945 <span>@Translate("lang_" + lang.Culture.Split('-').First(), lang.Culture.Split('-').First())</span> 946 </a> 947 948 } 949 950 <script type="text/x-template" id="cart-icon-template"> 951 @{ 952 string cartIconPrefix = "Minicart "; 953 } 954 <li> 955 <a :href="cartlink" title="@Translate(cartIconPrefix + "Checkout", "Checkout")"> 956 <svg> 957 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#shopping-cart"></use> 958 </svg> 959 <span class="label">@Translate(cartIconPrefix + "Checkout", "Checkout")</span> 960 <strong v-if="!cartEmpty" class="cart-quantity">{{quantity}}</strong> 961 </a> 962 </li> 963 </script> 964 965 966 967 <script type="text/x-template" id="basic-facet-filter-template"> 968 @{ 969 string basicFacetPrefix = "Filter "; 970 } 971 <aside> 972 <template v-if="HasActiveFilter()"> 973 974 <p id="selected-filter-label" class="sr-only"> 975 @Translate(basicFacetPrefix + "Active", "Active") 976 </p> 977 <div class="basic_filter-active" aria-labelledby="selected-filter-label"> 978 <template v-for="facetFilter in facetFilters"> 979 <span v-for="option in SelectedOptions(facetFilter)" class="custom-control custom-filter"> 980 <input type="checkbox" 981 :id="'Selected-' + facetFilter.name + '-' + option.name" 982 :name="facetFilter.name" 983 :value="option.value" 984 :v-model="option.selected" 985 :checked="option.selected" 986 v-on:click="ToggleFilter(facetFilter.name,option)" 987 class="custom-control-input" /> 988 <label :for="'Selected-' + facetFilter.name + '-' + option.name" class="custom-control-label" :data-name="facetFilter.name"> 989 <span> 990 {{option.label}} 991 </span> 992 <svg> 993 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#times"></use> 994 </svg> 995 </label> 996 </span> 997 </template> 998 </div> 999 </template> 1000 <b-collapse class="basic_filter" id="sidebar-filter"> 1001 <template v-if="!error && facetFilters"> 1002 <button type="button" class="btn-close" v-b-toggle.sidebar-filter.sidebar-overlay aria-label="@Translate(basicFacetPrefix + "Close Filter", "Close Filter")"> 1003 <span></span> 1004 <span></span> 1005 </button> 1006 <div class="basic_filter-groups"> 1007 <div class="basic_filter-group" v-for="(facetFilter, index) in facetFilters"> 1008 <p :id="'filter-group-' + facetFilter.name.toLowerCase().trim()" v-b-toggle="'filter-collapse-' + facetFilter.name.toLowerCase().trim()"> 1009 <template v-if="facetFilter.name === 'ModelType'"> 1010 @Translate(basicFacetPrefix + "ModelType", "Model / Type") 1011 </template> 1012 <template v-else-if="facetFilter.name === 'DoorType'"> 1013 @Translate(basicFacetPrefix + "DoorType", " Door type") 1014 </template> 1015 <template v-else-if="facetFilter.name === 'ExternalHeight'"> 1016 @Translate(basicFacetPrefix + "ExternalHeight", "External Height") (mm) 1017 </template> 1018 <template v-else-if="facetFilter.name === 'NetVolume'"> 1019 @Translate(basicFacetPrefix + "NetVolume", "Net Volume") (l) 1020 </template> 1021 <template v-else-if="facetFilter.name === 'DoorNumber'"> 1022 @Translate(basicFacetPrefix + "DoorNumber", " Number of doors") 1023 </template> 1024 <template v-else-if="facetFilter.name === 'ExteriorFinish'"> 1025 @Translate(basicFacetPrefix + "ExteriorFinish", "Exterior Finish") 1026 </template> 1027 <template v-else-if="facetFilter.name === 'ExternalWidth'"> 1028 @Translate(basicFacetPrefix + "ExternalWidth", "External Width") (mm) 1029 </template> 1030 <template v-else-if="facetFilter.name === 'GrossVolume'"> 1031 @Translate(basicFacetPrefix + "GrossVolume", "Gross Volume") (l) 1032 </template> 1033 <template v-else-if="facetFilter.name === 'Bottles330'"> 1034 @Translate(basicFacetPrefix + "Bottles330", "Capacity 330ml bottles") 1035 </template> 1036 <template v-else-if="facetFilter.name === 'Bottles500'"> 1037 @Translate(basicFacetPrefix + "Bottles500", "Capacity 500ml bottles") 1038 </template> 1039 <template v-else-if="facetFilter.name === 'Cans330'"> 1040 @Translate(basicFacetPrefix + "Cans330", "Capacity 300ml cans") 1041 </template> 1042 <template v-else-if="facetFilter.name === 'Cans500'"> 1043 @Translate(basicFacetPrefix + "Cans500", "Capacity 500ml cans") 1044 </template> 1045 <template v-else-if="facetFilter.name === 'TemperatureRange'"> 1046 @Translate(basicFacetPrefix + "TemperatureRange", "Temperature Range") 1047 </template> 1048 <template v-else-if="facetFilter.name === 'TemperatureRangeZone2'"> 1049 @Translate(basicFacetPrefix + "TemperatureRangeZone2", "Tempature Range 2") 1050 </template> 1051 <template v-else-if="facetFilter.name === 'ShelfNumber'"> 1052 @Translate(basicFacetPrefix + "ShelfNumber", "Number of shelfs") 1053 </template> 1054 <template v-else-if="facetFilter.name === 'LidType'"> 1055 @Translate(basicFacetPrefix + "LidType", "Lid Type") 1056 </template> 1057 <template v-else-if="facetFilter.name === 'InteriorFinish'"> 1058 @Translate(basicFacetPrefix + "InteriorFinish", "Interior Finish") 1059 </template> 1060 <template v-else-if="facetFilter.name === 'WineBottles750'"> 1061 @Translate(basicFacetPrefix + "WineBottles750", "Capacity 750ml winebottles") 1062 </template> 1063 <template v-else-if="facetFilter.name === 'CanopyType'"> 1064 @Translate(basicFacetPrefix + "CanopyType", "Canopy Type") 1065 </template> 1066 <template v-else-if="facetFilter.name === 'CoolingType'"> 1067 @Translate(basicFacetPrefix + "CoolingType", "Cooling Type") 1068 </template> 1069 <template v-else> 1070 {{facetFilter.name}} 1071 </template> 1072 <svg> 1073 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/dist/icons/icons.svg#chevron-up"></use> 1074 </svg> 1075 </p> 1076 <b-collapse :id="'filter-collapse-' + facetFilter.name.toLowerCase().trim()" :visible="ShowGroupIfSelected(facetFilter.options, index)" class="basic_filter-collapsing" :aria-labelledby="'filter-group-' + facetFilter.name.toLowerCase().trim()"> 1077 <template v-if="facetFilter.renderType === 'Range'"> 1078 <basic-range-slider @@change="updateRange(facetFilter,$event)" :min="getMinRange(facetFilter)" :max="getMaxRange(facetFilter)" :init-min="getInitMin(facetFilter)" :init-max="getInitMax(facetFilter)"></basic-range-slider> 1079 </template> 1080 1081 <template v-else-if="facetFilter.optionActiveCount > 5"> 1082 <span v-for="option in facetFilter.options.slice(0, 5)" class="custom-control custom-checkbox facet-option"> 1083 <input type="checkbox" class="custom-control-input" 1084 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 1085 :name="facetFilter.name" 1086 :value="option.value" 1087 :v-model="option.selected" 1088 :checked="option.selected" 1089 v-on:click="ToggleFilter(facetFilter.name,option)" /> 1090 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 1091 {{option.label}} <span class="count">({{option.count}})</span> 1092 </label> 1093 </span> 1094 <b-collapse class="basic_filter-expand" :id="'filter-expand-' + facetFilter.name.toLowerCase().trim()" :visible="ShowMoreIfSelected(facetFilter.options, index)"> 1095 <span v-for="option in facetFilter.options.slice(5)" class="custom-control custom-checkbox facet-option"> 1096 <input type="checkbox" class="custom-control-input" 1097 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 1098 :name="facetFilter.name" 1099 :value="option.value" 1100 :v-model="option.selected" 1101 :checked="option.selected" 1102 v-on:click="ToggleFilter(facetFilter.name,option)" /> 1103 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 1104 {{option.label}} <span class="count">({{option.count}})</span> 1105 </label> 1106 </span> 1107 </b-collapse> 1108 <a v-b-toggle="'filter-expand-' + facetFilter.name.toLowerCase().trim()" class="basic_filter-expanding" v-if="facetFilter.optionActiveCount > 6"> 1109 <span class="show-more">+ @Translate(basicFacetPrefix + "show more", "show more")</span> 1110 <span class="show-less">- @Translate(basicFacetPrefix + "show less", "show less")</span> 1111 </a> 1112 </template> 1113 <template v-else> 1114 <span v-for="option in facetFilter.options" class="custom-control custom-checkbox facet-option"> 1115 <input type="checkbox" class="custom-control-input" 1116 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 1117 :name="facetFilter.name" 1118 :value="option.value" 1119 :v-model="option.selected" 1120 :checked="option.selected" 1121 v-on:click="ToggleFilter(facetFilter.name,option)" /> 1122 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 1123 {{option.label}} <span class="count">({{option.count}})</span> 1124 </label> 1125 </span> 1126 </template> 1127 </b-collapse> 1128 </div> 1129 </div> 1130 </template> 1131 </b-collapse> 1132 </aside> 1133 </script> 1134 <script type="text/x-template" id="add-to-basket-simple-template"> 1135 @{ 1136 string addToBasketSimplePrifix = "BuyButton "; 1137 } 1138 <div class="form-flex" v-if="renderBuy" v-bind:class="[{added: IsAdded}, {adding: IsAdding}, {disabled: !canAdd}]"> 1139 1140 <label for="quantity">@Translate(addToBasketSimplePrifix + "Quantity", "Quantity")</label> 1141 <input class="form-control" type="tel" name="quantity" v-model="quantity" autocomplete="off" onclick="this.setSelectionRange(0, this.value.length)"> 1142 <button :disabled="!canAdd" :class="buttonClass" v-on:click="addToBasketAndResetQuantity()" aria-label="@Translate(addToBasketSimplePrifix + "Add", "Add")"> 1143 <slot> 1144 <svg> 1145 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#shopping-cart"> 1146 </use> 1147 </svg> 1148 <span> 1149 @Translate(addToBasketSimplePrifix + "Add to basket", "Add to basket") 1150 </span> 1151 </slot> 1152 1153 </button> 1154 1155 <span v-if="itemStockLocationState == 5" v-b-tooltip.hover.focus="'@Translate(addToBasketSimplePrifix + "The item is out of stock","The item is out of stock").Replace(System.Environment.NewLine,"").Replace("'","\\'")'" class="addtobasket-help">?</span> 1156 <span v-if="itemStockLocationState == 4" v-b-tooltip.hover.focus="'@Translate(addToBasketSimplePrifix + "cant buy this product info","This product is not available from the currently chosen stock location!").Replace(System.Environment.NewLine,"").Replace("'","\\'")'" class="addtobasket-help">?</span> 1157 <span v-if="itemStockLocationState == 50" v-b-tooltip.hover.focus="'@Translate(addToBasketSimplePrifix + "no stock information available","Could not find any stock information on this product!").Replace(System.Environment.NewLine,"").Replace("'","\\'")'" class="addtobasket-help">?</span> 1158 </div> 1159 </script> 1160 1161 <script type="text/x-template" id="quick-add-template"> 1162 @{ 1163 string quickAddPrifix = "BuyButton "; 1164 } 1165 <div v-bind:class="[{added: IsAdded}, {adding: IsAdding}]"> 1166 <label for="quantity">@Translate(quickAddPrifix + "Quantity", "Quantity")</label> 1167 <input class="form-control" type="number" id="quantity" name="quantity" v-model="quantity" autocomplete="off"> 1168 </div> 1169 </script> 1170 1171 <script type="text/x-template" id="add-to-basket-button-only-template"> 1172 @{ 1173 string addToBasketPrefix = "BuyButton "; 1174 } 1175 <div v-bind:class="[{added: IsAdded}, {adding: IsAdding}]"> 1176 <button :class="buttonClass" v-on:click="addToBasket()"> 1177 <slot> 1178 @Translate(addToBasketPrefix + "Add to basket", "Add to basket") 1179 </slot> 1180 </button> 1181 </div> 1182 </script> 1183 @using Dynamicweb.Frontend 1184 @using Tefcold.Web.CustomCode.Items 1185 @{ 1186 string asyncPrefix = "Async "; 1187 var website = PageView.Current().Area.GetWebsiteSettings(); 1188 } 1189 <script type="text/x-template" id="async-price-template"> 1190 <div :class="classType + (loading ? ' loading' : '') + (hasDiscount ? ' has-discount' : '')"> 1191 <template> 1192 <p :class="classType + '--error'" v-if="error">{{error}}</p> 1193 </template> 1194 <template v-if="!loading"> 1195 @if (!website.ShowPriceWitVatAndDiscount) 1196 { 1197 <template v-if="!forceAskForPrice && price.netUnitPrice.priceWithoutVat"> 1198 <meta itemprop="price" :content="price.netUnitPrice.priceWithoutVat" /> 1199 <meta itemprop="priceCurrency" content="@(Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId)" /> 1200 <div class="price-withoutvat"> 1201 <span class="price-label">@Translate(asyncPrefix + "price without vat", "Price without VAT")</span> 1202 <p class="price"> 1203 <span class="unit-price">{{ price.netUnitPrice.priceWithoutVat | currency(price.currencyCode) }}</span> 1204 </p> 1205 </div> 1206 </template> 1207 } 1208 @if (website.ShowPriceWitVatAndDiscount) 1209 { 1210 <template v-if="listView &&!forceAskForPrice && price.netUnitPrice.priceWithVat"> 1211 <meta itemprop="price" :content="price.netUnitPrice.priceWithVat" /> 1212 <meta itemprop="priceCurrency" content="@(Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId)" /> 1213 <div class="price-withoutvat"> 1214 <span class="price-label">@Translate(asyncPrefix + "price with vat", "Price with VAT")</span> 1215 <p class="price"> 1216 <span class="unit-price">{{ price.netUnitPrice.priceWithVat | currency(price.currencyCode) }}</span> 1217 <small class="prev-price" v-if="hasDiscount && price.unitPrice.priceWithVat">{{ price.unitPrice.priceWithVat | currency(price.currencyCode) }}</small> 1218 </p> 1219 </div> 1220 </template> 1221 <template v-if="!listView"> 1222 <template v-if="!forceAskForPrice && price.netUnitPrice.priceWithoutVat"> 1223 <meta itemprop="price" :content="price.netUnitPrice.priceWithoutVat" /> 1224 <meta itemprop="priceCurrency" content="@(Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId)" /> 1225 <div class="price-withoutvat"> 1226 <span class="price-label">@Translate(asyncPrefix + "price without vat", "Price without VAT")</span> 1227 <p class="price"> 1228 <span class="unit-price">{{ price.netUnitPrice.priceWithoutVat | currency(price.currencyCode) }}</span> 1229 @if (website.ShowPriceWitVatAndDiscount) 1230 { 1231 <small class="prev-price" v-if="hasDiscount && price.unitPrice.priceWithoutVat">{{ price.unitPrice.priceWithoutVat | currency(price.currencyCode) }}</small> 1232 } 1233 </p> 1234 </div> 1235 </template> 1236 <div class="price-withvat"> 1237 <span class="price-label">@Translate(asyncPrefix + "price with vat", "Price with VAT")</span> 1238 <p class="price"> 1239 <span class="unit-price">{{ price.netUnitPrice.priceWithVat | currency(price.currencyCode) }}</span> 1240 <small class="prev-price" v-if="hasDiscount && !listView && price.unitPrice.priceWithVat">{{ price.unitPrice.priceWithVat | currency(price.currencyCode) }}</small> 1241 </p> 1242 1243 </div> 1244 <div class="weee-fee" v-if="price.weeeFee && price.weeeFee > 0"> 1245 <span class="price-label">@Translate("Weee fee", "Weee fee")</span> 1246 <p class="price"> 1247 <span class="unit-price">{{ price.weeeFee | currency(price.currencyCode) }}</span> 1248 </p> 1249 1250 </div> 1251 </template> 1252 } 1253 </template> 1254 <template v-if="!price?.netUnitPrice?.priceWithoutVat || forceAskForPrice"> 1255 <a :href="'mailto:@Translate("Ask for a price EMAIL.","info@tefcold.dk")?subject=' + '@Translate("Ask for a price.")' + ' - ' + product.product.name + ' - ' + product.product.shortDescription + '&body=@Translate("ProductName EMAIL (BODY)", "Produktnavn: ") ' + product.product.name + ' - @Translate("ProductShortName EMAIL (BODY)", "Kort produktnavn: ") ' + product.product.shortDescription" class="btn btn-outline-secondary btn-sm">@Translate("Ask for a price.", "Spørg om pris.")</a> 1256 </template> 1257 </template> 1258 </div> 1259 </script> 1260 <script type="text/x-template" id="pagination-template"> 1261 @{ 1262 string paginationPrefix = "Pagination "; 1263 } 1264 <nav aria-label="@Translate(paginationPrefix + "Productlist pagination", "Productlist pagination")"> 1265 <ul class="pagination"> 1266 <li :class="['page-item', currentPage == 1 ? 'disabled' : '' ]" v-if="currentPage > 1"> 1267 <a class="page-link" v-on:click="togglePrevPage()" aria-label="@Translate(paginationPrefix + "Previous Page", "Previous Page")" v-bind:aria-disabled="currentPage > 1 ? 'true' : null"> 1268 <svg> 1269 <use xmlns:xlink="http://www.w3.org/1999/xlink" 1270 xlink:href="/files/dist/icons/icons.svg#chevron-left"> 1271 </use> 1272 </svg> 1273 </a> 1274 </li> 1275 <template v-if="hasGroupId"> 1276 <li v-if="showPage(n)" v-for="n in totalPages" :key="n" :class="(n == currentPage ? 'page-item active' : 'page-item')"> 1277 <a v-on:click="togglePage(n)" v-bind:aria-current="(n == currentPage ? 'true' : '')" class="page-link"> 1278 {{n}} 1279 </a> 1280 </li> 1281 </template> 1282 <template v-else> 1283 <li class="page-item"> 1284 <span class="page-label"> 1285 {{currentPage}} 1286 </span> 1287 </li> 1288 <li class="page-item"> 1289 <span class="page-label"> 1290 @Translate(paginationPrefix + "of", "of") 1291 </span> 1292 </li> 1293 <li class="page-item"> 1294 <span class="page-label"> 1295 {{totalPages}} 1296 </span> 1297 </li> 1298 </template> 1299 <li :class="'page-item' + (currentPage >= totalPages ? ' disabled' : '')" v-if="currentPage < totalPages"> 1300 <a v-on:click="toggleNextPage()" aria-label="@Translate(paginationPrefix + "Next Page", "Next Page")" class="page-link" v-bind:aria-disabled="totalPages > currentPage ? 'true' : null"> 1301 <svg class="icon-pagination"> 1302 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#chevron-right"></use> 1303 </svg> 1304 </a> 1305 </li> 1306 </ul> 1307 </nav> 1308 </script> 1309 <script type="text/x-template" id="product-specification-list-view-template"> 1310 <div class="basic_listview-data"> 1311 <template v-if="!isSparePart"> 1312 <p itemprop="description"> 1313 {{ SpecificationHelpers.GetFirstSpecificationValueOrDefault('GrossNetVolume',productSpecifications)}} {{ SpecificationHelpers.GetSpecificationUnit(SpecificationHelpers.GetSpecificationByKey('GrossNetVolume',productSpecifications))}} 1314 <br /> 1315 {{ SpecificationHelpers.GetFirstSpecificationValueOrDefault('ExternalDimensionWeb',productSpecifications)}} 1316 1317 </p> 1318 </template> 1319 <p itemprop="sku">@Translate("PLP No.", "No.") {{productNumber}}</p> 1320 </div> 1321 </script> 1322 @using Tefcold.Web.CustomCode.Extensions 1323 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Ecommerce.ProductCatalog.ProductViewModel> 1324 <script type="text/x-template" id="product-spare-parts-view-template"> 1325 @{ 1326 string basicPimPrefix = "PDP "; 1327 } 1328 <div v-if="sparePartReportExist || hasExplodedDrawing || spareParts.length > 0"> 1329 <button class="btn-collapse" id="spareparts" v-b-toggle.spareparts-list> 1330 @Translate(basicPimPrefix + "spare parts", "Spare Parts") 1331 </button> 1332 <template> 1333 <b-collapse id="spareparts-list" visible accordion="specs2"> 1334 <template> 1335 <div class="body-collapse full pb-0"> 1336 <ul class="basic_pim-spares"> 1337 <template v-if="sparePartReportExist"> 1338 <li> 1339 <a href="#" v-on:click="getSparePartReport($event)" target="_blank"> 1340 <svg> 1341 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#download"></use> 1342 </svg> 1343 @Translate(basicPimPrefix + "spare part list", "Spare part list") 1344 </a> 1345 </li> 1346 </template> 1347 <li v-if="hasExplodedDrawing"> 1348 <a :href="explodedDrawing" target="_blank"> 1349 <svg> 1350 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#download"></use> 1351 </svg> 1352 @Translate(basicPimPrefix + "view exploded drawing of spare parts", "View exploded drawing of spare parts") 1353 </a> 1354 </li> 1355 <li :data-point="spare.product.position" class="basic_pim-spare" v-for="spare in spareParts"> 1356 <div class="head"> 1357 <a href="#" v-on:click="navigateToSpare($event,spare.product.id)" class="name">{{spare.product.productName}}</a> 1358 <p class="sku">{{spare.product.number}}</p> 1359 </div> 1360 1361 @if (Pageview.IsAllowedToShop()) 1362 { 1363 <div class="foot"> 1364 <async-price class-type="asyncprice-spare" 1365 :product="spare" 1366 :default-price="spare.product.price" 1367 list-price="true" 1368 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1369 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1370 1371 </async-price> 1372 <add-to-basket-simple :product="spare" 1373 :unit-of-measure="'PCS'" 1374 :sparepart-location="sparepartLocation" 1375 button-class="btn btn-primary" 1376 class="addtobasketsimple-plp" 1377 :price-without-vat="spare.product.price" 1378 language-id="@Pageview.Area.EcomLanguageId" 1379 :only-spare-parts="@(Pageview.User.OnlySpareParts().ToString().ToLower())" 1380 :is-marketing-user="@(Pageview.User.OnlyView().ToString().ToLower())" 1381 :ishvasuser="@(Pageview.User.IsHVACUser().ToString().ToLower())" 1382 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1383 </add-to-basket-simple> 1384 </div> 1385 } 1386 @*<p>DEBUG: {{spare}}</p>*@ 1387 </li> 1388 1389 </ul> 1390 </div> 1391 </template> 1392 </b-collapse> 1393 </template> 1394 </div> 1395 1396 </script> 1397 <script type="text/x-template" id="variant-list-template"> 1398 <ul class="variants" v-if="initialVariant.product.hasVariants" > 1399 <li> 1400 <input v-model="variantId" @@click="changeVariantClickHandler($event)" :value="initialVariant.product.variantId" type="radio" :name="'main-' + initialVariant.product.id" :id="'main-' + initialVariant.product.id" :disabled="readOnly"/> 1401 <label :for="'main-' + initialVariant.product.id" :style="getImageOrColor(initialVariant.product.variantImage,initialVariant.product.variantValue)"></label> 1402 </li> 1403 <li v-for="variant in initialVariant.product.simpleVariants"> 1404 <input v-model="variantId" @@click="changeVariantClickHandler($event)" :value="variant.product.variantId" type="radio" :name="'color-'+variant.product.id + '-' + variant.product.variantId" :id="'color-'+variant.product.id + '-' + variant.product.variantId" /> 1405 <label :for="'color-'+variant.product.id+ '-' + variant.product.variantId" :style="getImageOrColor(variant.product.variantImage,variant.product.variantValue)"> 1406 </label> 1407 </li> 1408 </ul> 1409 </script> 1410 @using Dynamicweb.Ecommerce.International 1411 @{ 1412 string plpProductPrefix2 = "PLP "; 1413 } 1414 <script type="text/x-template" id="product-template"> 1415 1416 <article itemscope itemtype="https://schema.org/Product" v-if="product.product" v-bind:key="product.product.number"> 1417 <span class="badge"> 1418 <img v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('Stickers',product.specifications)" :src="'/Admin/Public/GetImage.ashx?Height=50&amp;Compression=85&amp;Image=' + SpecificationHelpers.GetFirstSpecificationValueOrDefault('Stickers',product.specifications)" alt="@Translate(basicPimPrefix + "Sticker", "Sticker")" v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1419 </span> 1420 <a :href="product.product.url" itemprop="url"> 1421 <figure style="min-height: 1px;"> 1422 1423 <img v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" :src="'/Admin/Public/GetImage.ashx?Width=427&amp;Height=427&amp;Compression=85&amp;Crop=5&amp;Format=webp&amp;Quality=85&amp;fillcanvas=true&amp;Image=' + SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" 1424 v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1425 <img v-if="!SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" :src="'/Admin/Public/GetImage.ashx?Width=427&amp;Height=427&amp;Compression=85&amp;Crop=5&amp;Format=webp&amp;Quality=85&amp;fillcanvas=true&amp;Image=/Files/Images/default.jpg'" 1426 v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1427 </figure> 1428 <header> 1429 <h1 itemprop="name">{{product.product.name}}</h1> 1430 <p itemprop="category">{{product.product.shortDescription}}</p> 1431 <div class="flex-list"> 1432 <product-specification-list-view :product-specifications="product.specifications" 1433 :product-number="product.product.number" 1434 :is-spare-part="product.product.isSparePart"> 1435 </product-specification-list-view> 1436 @if (Pageview.IsAllowedToShop()) 1437 { 1438 <template v-if="plpClass=='basic_listview-grid'"> 1439 <buying-component inline-template :selected-product="product" :initial-product="initialProduct"> 1440 <template v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)"> 1441 <div class="energy-data"> 1442 <a :href="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyLabel',selectedProduct.specifications)" target="_blank" class="energy-label"> 1443 <img :src="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)" alt="Energy Label" class="img-fluid img-energy" height="25" /> 1444 </a> 1445 <a href="#" v-on:click="getProductReport($event,selectedProduct.product.number,selectedProduct.product.name,selectedProduct.product.languageId)" target="_blank" class="energy-link"> 1446 <small>@Translate("PDP product sheet", "Product Sheet")</small> 1447 </a> 1448 </div> 1449 </template> 1450 </buying-component> 1451 </template> 1452 } 1453 </div> 1454 </header> 1455 </a> 1456 <template v-if="plpClass=='basic_listview-list'"> 1457 <ul class="basic_listview-specs"> 1458 <li v-for="item in SpecificationHelpers.GetPrettyBulletPoints(product.specifications)"> 1459 {{item}} 1460 </li> 1461 </ul> 1462 @*{{ product.Product.LongDescription }}*@ 1463 </template> 1464 1465 1466 @if (!Pageview.IsAllowedToShop()) 1467 { 1468 <footer> 1469 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("contact")" class="btn btn-outline-secondary btn-sm"> 1470 @Translate("create account", "Create account") 1471 </a> 1472 <template v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',product.specifications)" > 1473 <buying-component inline-template :selected-product="product" :initial-product="initialProduct"> 1474 <div class="energy-price"> 1475 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1476 <div class="energy-data"> 1477 <a :href="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyLabel',selectedProduct.specifications)" class="energy-label" target="_blank"> 1478 <img :src="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)" alt="Energy Label" class="img-fluid img-energy" height="25" /> 1479 </a> 1480 <a href="#" v-on:click="getProductReport($event,selectedProduct.product.number,selectedProduct.product.name,selectedProduct.product.languageId)" target="_blank" class="energy-link"> 1481 <small>@Translate("PDP product sheet", "Product Sheet")</small> 1482 </a> 1483 </div> 1484 </div> 1485 </buying-component> 1486 </template> 1487 <template v-else> 1488 <buying-component inline-template :selected-product="product" :initial-product="initialProduct"> 1489 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1490 </buying-component> 1491 </template> 1492 </footer> 1493 } 1494 else 1495 { 1496 <buying-component inline-template :selected-product="product" :plp-class="plpClass" :initial-product="initialProduct"> 1497 <footer itemprop="offers" itemscope="" itemtype="https://schema.org/Offer"> 1498 1499 <template v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications) && plpClass == 'basic_listview-list'"> 1500 <div class="energy-price"> 1501 <div class="variant-price"> 1502 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1503 <async-price class-type="asyncprice-plp" 1504 :product="selectedProduct" 1505 :default-price="selectedProduct.product.defaultPrice.priceWithoutVat" 1506 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1507 list-price="true" 1508 :should-emit-warranties="@((Pageview.IsAllowedToShop()).ToString().ToLower())" 1509 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1510 </async-price> 1511 </div> 1512 <div class="energy-data"> 1513 <a :href="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyLabel',selectedProduct.specifications)" class="energy-label" target="_blank"> 1514 <img :src="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)" alt="Energy Label" class="img-fluid img-energy" height="25" /> 1515 </a> 1516 <a href="#" v-on:click="getProductReport($event,selectedProduct.product.number,selectedProduct.product.name,selectedProduct.product.languageId)" target="_blank" class="energy-link"> 1517 <small>@Translate("PDP product sheet", "Product Sheet")</small> 1518 </a> 1519 </div> 1520 </div> 1521 </template> 1522 <template v-else> 1523 <div class="variant-price"> 1524 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1525 <async-price class-type="asyncprice-plp" 1526 :product="selectedProduct" 1527 :default-price="selectedProduct.product.defaultPrice.priceWithoutVat" 1528 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1529 list-price="true" 1530 :should-emit-warranties="@((Pageview.IsAllowedToShop()).ToString().ToLower())" 1531 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1532 </async-price> 1533 </div> 1534 </template> 1535 <div class="plp-buttons"> 1536 <div class="btn-group"> 1537 <add-to-compare :product-number="selectedProduct.product.number"></add-to-compare> 1538 @if (Pageview.IsCurrentlyB2B()) 1539 { 1540 <favorite-lists :ui-error-message-translation="'@Translate(plpProductPrefix2 + " Error while retrieving favorite list","Error while retrieving favorite list")'" :is-favorite-mode="@NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("favorites") == @Pageview.ID" :product="selectedProduct"></favorite-lists> 1541 } 1542 </div> 1543 <add-to-basket-simple :product="selectedProduct" 1544 :unit-of-measure="'PCS'" 1545 button-class="btn btn-primary" 1546 class="addtobasketsimple-plp" 1547 :price-without-vat="currentItemPriceWithoutVat" 1548 language-id="@Pageview.Area.EcomLanguageId" 1549 :only-spare-parts="@(Pageview.User.OnlySpareParts().ToString().ToLower())" 1550 :is-marketing-user="@(Pageview.User.OnlyView().ToString().ToLower())" 1551 :ishvasuser="@(Pageview.User.IsHVACUser().ToString().ToLower())" 1552 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1553 </add-to-basket-simple> 1554 </div> 1555 </footer> 1556 </buying-component> 1557 } 1558 1559 </article> 1560 1561 </script> 1562 <script type="text/x-template" id="product-template-cz"> 1563 @{ 1564 string plpProductPrefix = "PLP "; 1565 } 1566 <article itemscope itemtype="https://schema.org/Product" v-if="product.product" v-bind:key="product.product.number"> 1567 <span class="stickers"> 1568 <template v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('StickersCZ',product.specifications)"> 1569 <img :src="'/Admin/Public/GetImage.ashx?Height=24&amp;Compression=85&amp;Image=' + SpecificationHelpers.GetFirstSpecificationValueOrDefault('StickersCZ',product.specifications)" 1570 alt="@Translate(basicPimPrefix + "Sticker", "Sticker")" 1571 class="img-fluid" /> 1572 </template> 1573 <span v-if="ShowDiscount" class="sticker discount"> 1574 -{{discount}}% 1575 </span> 1576 </span> 1577 <a :href="product.product.url" itemprop="url" :title="['@Translate(plpProductPrefix + "More info about", "More info about") ' + product.product.name]"> 1578 <figure style="min-height: 1px;"> 1579 1580 <img v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" :src="'/Admin/Public/GetImage.ashx?Width=427&amp;Height=427&amp;Compression=85&amp;Crop=5&amp;Format=webp&amp;Quality=85&amp;fillcanvas=true&amp;Image=' + SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" 1581 v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1582 <img v-if="!SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" :src="'/Admin/Public/GetImage.ashx?Width=427&amp;Height=427&amp;Compression=85&amp;Crop=5&amp;Format=webp&amp;Quality=85&amp;fillcanvas=true&amp;Image=/Files/Images/default.jpg'" 1583 v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1584 </figure> 1585 <header> 1586 <h1 itemprop="name">{{product.product.name}}</h1> 1587 <p itemprop="category">{{product.product.shortDescription}}</p> 1588 <div class="flex-list"> 1589 <product-specification-list-view :product-specifications="product.specifications" 1590 :product-number="product.product.number" 1591 :is-spare-part="product.product.isSparePart"> 1592 </product-specification-list-view> 1593 <template v-if="plpClass=='basic_listview-grid'"> 1594 <buying-component inline-template :selected-product="product" :initial-product="initialProduct"> 1595 <template v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)"> 1596 <div class="energy-data"> 1597 <a :href="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyLabel',selectedProduct.specifications)" target="_blank" class="energy-label"> 1598 <img :src="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)" alt="Energy Label" class="img-fluid img-energy" height="25" /> 1599 </a> 1600 <a href="#" v-on:click="getProductReport($event,selectedProduct.product.number,selectedProduct.product.name,selectedProduct.product.languageId)" target="_blank" class="energy-link"> 1601 <small>@Translate("PDP product sheet", "Product Sheet")</small> 1602 </a> 1603 </div> 1604 </template> 1605 </buying-component> 1606 </template> 1607 </div> 1608 </header> 1609 </a> 1610 <template v-if="plpClass=='basic_listview-list'"> 1611 <ul class="basic_listview-specs"> 1612 <li v-for="item in SpecificationHelpers.GetPrettyBulletPoints(product.specifications)"> 1613 {{item}} 1614 </li> 1615 </ul> 1616 </template> 1617 <buying-component @@discount="onDiscount($event)" inline-template :selected-product="product" :plp-class="plpClass" :initial-product="initialProduct"> 1618 <footer itemprop="offers" itemscope="" itemtype="https://schema.org/Offer"> 1619 1620 1621 <template v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications) && plpClass == 'basic_listview-list'"> 1622 <div class="energy-price"> 1623 <div class="variant-price"> 1624 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1625 <async-price class-type="asyncprice-plp" 1626 :product="selectedProduct" 1627 :default-price="selectedProduct.product.defaultPrice.priceWithoutVat" 1628 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1629 list-price="true" 1630 :should-emit-warranties="@((Pageview.IsAllowedToShop()).ToString().ToLower())" 1631 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))" 1632 @@discount="onDiscount($event)" 1633 :list-view="true"> 1634 </async-price> 1635 </div> 1636 <div class="energy-data"> 1637 <a :href="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyLabel',selectedProduct.specifications)" class="energy-label" target="_blank"> 1638 <img :src="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)" alt="Energy Label" class="img-fluid img-energy" height="25" /> 1639 </a> 1640 <a href="#" v-on:click="getProductReport($event,selectedProduct.product.number,selectedProduct.product.name,selectedProduct.product.languageId)" target="_blank" class="energy-link"> 1641 <small>@Translate("PDP product sheet", "Product Sheet")</small> 1642 </a> 1643 </div> 1644 </div> 1645 </template> 1646 <template v-else> 1647 <div class="variant-price"> 1648 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1649 <async-price class-type="asyncprice-plp" 1650 :product="selectedProduct" 1651 :default-price="selectedProduct.product.defaultPrice.priceWithoutVat" 1652 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1653 list-price="true" 1654 :should-emit-warranties="@((Pageview.IsAllowedToShop()).ToString().ToLower())" 1655 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))" 1656 @@discount="onDiscount($event)" 1657 :list-view="true"> 1658 </async-price> 1659 </div> 1660 </template> 1661 <div class="btn-group"> 1662 <add-to-compare :product-number="selectedProduct.product.number"></add-to-compare> 1663 @if (Pageview.IsCurrentlyB2B()) 1664 { 1665 <favorite-lists :ui-error-message-translation="'@Translate(plpProductPrefix + " Error while retrieving favorite list","Error while retrieving favorite list")'" :is-favorite-mode="@NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("favorites") == @Pageview.ID" :product="selectedProduct"></favorite-lists> 1666 } 1667 </div> 1668 <add-to-basket-simple :product="selectedProduct" 1669 :unit-of-measure="'PCS'" 1670 button-class="btn btn-primary" 1671 class="addtobasketsimple-plp" 1672 :price-without-vat="currentItemPriceWithoutVat" 1673 language-id="@Pageview.Area.EcomLanguageId" 1674 :only-spare-parts="@(Pageview.User.OnlySpareParts().ToString().ToLower())" 1675 :is-marketing-user="@(Pageview.User.OnlyView().ToString().ToLower())" 1676 :ishvasuser="@(Pageview.User.IsHVACUser().ToString().ToLower())" 1677 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1678 </add-to-basket-simple> 1679 </footer> 1680 </buying-component> 1681 </article> 1682 </script> 1683 <script type="text/x-template" id="quick-search-template"> 1684 <div class="quicksearch-component"> 1685 <div class="quickorder-form"> 1686 <slot name="right-box"></slot> 1687 <div class="quickorder-box"> 1688 <h2>@Translate("Find products")</h2> 1689 <div class="quickorder-input"> 1690 <label for="quickOrderSearch">@Translate("Product name or number")</label> 1691 <input type="text" 1692 :id="id" 1693 v-model="search" 1694 @@keydown.enter="enter" 1695 @@keydown.down="down" 1696 @@keydown.up="up" 1697 @@input="onSearchInput" 1698 class="form-control form-control-lg" 1699 autocomplete="chrome-off" 1700 placeholder="@Translate("Quick order search term")" 1701 :disabled="disabled"/> 1702 <label for="quickOrderQty">@Translate("Quantity")</label> 1703 <input type="number" 1704 v-model.number="quantity" 1705 @@change="chosenProduct()" 1706 @@keydown.enter="chosenProduct()" 1707 class="form-control form-control-lg" 1708 id="quickOrderQty" 1709 placeholder="0" 1710 autocomplete="chrome-off" 1711 :disabled="disabled"/> 1712 1713 </div> 1714 <ul v-if="filterList.length > 0 && open" class="quickorder-list"> 1715 <li v-for="(product,index) in filterList" 1716 :class="{'active': isSelected(index)}"> 1717 <button @@click="suggestClick(index)"> 1718 {{concatNameAndNumber(product)}} 1719 </button> 1720 1721 </li> 1722 </ul> 1723 1724 <div class="quickorder-product" v-if="currentChosenProduct"> 1725 <p><strong>{{currentChosenProduct.name}}</strong><small>{{currentChosenProduct.shortDescription}}</small></p> 1726 <product-specification-list-view v-if="searchProductSpecs !== null" 1727 :product-specifications="searchProductSpecs" 1728 :product-number="currentChosenProduct.number"> 1729 </product-specification-list-view> 1730 <async-price class-type="quickorder-product-price" 1731 :product="currentChosenProduct" 1732 unit-of-measure="" 1733 :only-price="true" 1734 default-price-without-vat="0" 1735 @@price="handlePriceUpdate" 1736 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1737 </async-price> 1738 </div> 1739 </div> 1740 </div> 1741 <p v-if="showPriceError">@Translate("QuickOrderZeroPriceError","Can not add product with zero price")</p> 1742 <div class="quickorder-cart" v-if="productsToOrder.length > 0"> 1743 <table class="table table-striped table-flex"> 1744 <thead> 1745 <tr> 1746 <th>@Translate("Product")</th> 1747 <th>@Translate("Specifications")</th> 1748 <th>@Translate("Quantity")</th> 1749 <th class="cell-right">@Translate("Price")</th> 1750 <th>&nbsp;</th> 1751 </tr> 1752 </thead> 1753 <tbody> 1754 <tr v-for="(product,index) in productsToOrder"> 1755 <td class="cell-prod"> 1756 <strong>{{product.name}}</strong> 1757 <small>{{product.shortDescription}}</small> 1758 </td> 1759 <td class="cell-specs"> 1760 <product-specification-list-view :product-specifications="product.productSpecifications" 1761 :product-number="product.number"> 1762 </product-specification-list-view> 1763 </td> 1764 <td class="cell-specs"> 1765 <input class="form-control" type="number" v-model="product.quantity" @@input="updateQuantity()" /> 1766 </td> 1767 <td class="cell-price cell-right"> 1768 <async-price class-type="quickorder-product-price" 1769 :product="quickOrderProductToSimpleProduct(product)" 1770 unit-of-measure="" 1771 :only-price="true" 1772 default-price-without-vat="0" 1773 :should-emit-warranties="true" 1774 @@qo-warranty-update="setWarranty($event,product)" 1775 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1776 1777 </async-price> 1778 </td> 1779 <td class="cell-trash"> 1780 <button @@click="removeOrderline(index)" aria-label="@Translate("Delete product")" class="text-danger"> 1781 <svg> 1782 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#trash-alt"></use> 1783 </svg> 1784 </button> 1785 </td> 1786 </tr> 1787 </tbody> 1788 </table> 1789 <slot name="button"></slot> 1790 1791 </div> 1792 </div> 1793 </script> 1794 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 1795 @{ 1796 //This template contains everything for the favoritelist items. 1797 string favoriteListPrefix = "FavoriteList "; 1798 } 1799 <span id="favoritelistitem_confirm_delete_on_all" style="display: none; visibility: hidden">@Translate(favoriteListPrefix + "_confirm_delete_all", "Er du sikker på at du vil fjerne produktet {0} fra alle lister ?")</span> 1800 1801 <script type="text/x-template" id="favorite-item-template"> 1802 <div class="custom-control custom-checkbox"> 1803 <input type="checkbox" :checked="isActive" v-on:change="toggleItem()" :id="'fav-' +favoriteList.id" class="custom-control-input" /> 1804 <label :for="'fav-' + favoriteList.id" class="custom-control-label"> 1805 {{favoriteList.name}} 1806 </label> 1807 1808 @*<input type="checkbox" :value="favoriteList.id" :checked="isItemAddedToThisList(favoriteList)" v-on:change="toggleItem($event, favoriteList.id)" class="form-check-input" /> 1809 <label :for="'fav-' + favoriteList.id" class="form-check-label"> 1810 {{favoriteList.name}} 1811 </label>*@ 1812 </div> 1813 </script> 1814 <!-- 1815 1816 <button class="btn btn-favorite favorite" title="Add to favorite" aria-label="@Translate("Favorite", "Favorite" )" v-on:click="toggleItem()"> 1817 <svg> 1818 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#snowflake"></use> 1819 </svg> 1820 </button> 1821 --> 1822 <script type="text/x-template" id="favorite-list-template"> 1823 <div class="fav"> 1824 <button :aria-controls="'favorite' + product.product.id" :class="['btn btn-favorite', {'is-open': showingMenu}, {'is-selected': isActive}]" aria-label="@Translate(favoriteListPrefix + "Favorite", "Favorite" )" :title="isActive ? '@Translate(favoriteListPrefix + "Remove from favorites","Remove from favorites")' : '@Translate(favoriteListPrefix + "Add to favorites","Add to favorites")'" v-on:click="toggleItem()"> 1825 <svg> 1826 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#snowflake"></use> 1827 </svg> 1828 </button> 1829 <div class="fav-overlay" v-autoClose.nonPath="closeToggle" :id="'favorite' + product.product.id"> 1830 <div class="fav-arrow" v-if="showingMenu"></div> 1831 <div class="fav-inwrap" v-if="showingMenu"> 1832 <template v-if="loading"> 1833 <div class="text-center"> 1834 <span class="spinner-md-default"></span> 1835 </div> 1836 </template> 1837 <em class="error" v-if="uiErrorMessage">{{uiErrorMessage}}</em> 1838 <template v-if="!loading && !uiErrorMessage"> 1839 <p class="fav-title">@Translate(favoriteListPrefix + "Favoritliste", "Favoritliste")</p> 1840 <template v-if="favoriteLists && favoriteLists.length > '0'"> 1841 <p class="fav-teaser"> 1842 @Translate(favoriteListPrefix + "Tilføj eller fjern markering.", "Tilføj eller fjern markering.") 1843 </p> 1844 <div class="fav-lists"> 1845 <favorite-item v-for="favoriteList in favoriteLists" :favorite-list="favoriteList" :product="product" :key="favoriteList.id" /> 1846 </div> 1847 <div class="fav-new"> 1848 <div class="custom-control custom-checkbox"> 1849 <input type="checkbox" v-model="addNewList" id="addNewListCheckbox" class="custom-control-input" /> 1850 <label for="addNewListCheckbox" class="custom-control-label"> 1851 @Translate(favoriteListPrefix + "Ny favoritliste", "Ny favoritliste") 1852 </label> 1853 </div> 1854 </div> 1855 <div v-if="addNewList" class="fav-form"> 1856 <label for="addNewListNameInput" class="sr-only">@Translate(favoriteListPrefix + "Navn", "Navn")</label> 1857 <input type="text" id="addNewListNameInput" v-model="addNewListNameInput" class="form-control form-control-sm new-list-name-input" placeholder="@Translate(favoriteListPrefix + "Navn", "Navn")" v-on:keyup.enter="saveAsNewList" /> 1858 <button v-on:click="saveAsNewList" class="btn btn-secondary btn-sm">@Translate(favoriteListPrefix + "Gem", "Gem")</button> 1859 </div> 1860 </template> 1861 <template v-else> 1862 <p class="fav-teaser">@Translate(favoriteListPrefix + "NoFavoritliste", "Du har endnu ingen favoritlister, angiv navn for at oprette en.")</p> 1863 <div class="fav-form"> 1864 <label for="addNewListNameInput" class="sr-only">@Translate(favoriteListPrefix + "Navn", "Navn")</label> 1865 <input type="text" id="addNewListNameInput" v-model="addNewListNameInput" class="form-control form-control-sm new-list-name-input" placeholder="@Translate(favoriteListPrefix + "Navn", "Navn")" v-on:keyup.enter="saveAsNewList" /> 1866 <button v-on:click="saveAsNewList" class="btn btn-secondary btn-sm">@Translate(favoriteListPrefix + "Gem", "Gem")</button> 1867 </div> 1868 </template> 1869 </template> 1870 </div> 1871 </div> 1872 </div> 1873 </script> 1874 1875 <script type="text/x-template" id="basic-range-slider-template"> 1876 @{ 1877 string rangeFacetPrefix = "Filter "; 1878 } 1879 <div class="facet-option"> 1880 <vue-slider :key="key" @@drag-end="onChange" @@click="onChange" :min-range="1" v-model="value" :dotSize="20" :min="min" :max="max" :clickable="false"></vue-slider> 1881 <div class="vue-slider-fields"> 1882 <div class="form-group"> 1883 <label for="minValue" class="sr-only">@Translate(rangeFacetPrefix + "Minimum Value", "Minimum Value")</label> 1884 <input class="form-control form-control-sm" type="number" @@blur="onChange" id="minValue" name="minValue" v-model="minValue" /> 1885 </div> 1886 <div class="form-group"> 1887 <label for="maxValue" class="sr-only">@Translate(rangeFacetPrefix + "Maximum Value", "Maximum Value")</label> 1888 <input class="form-control form-control-sm" type="number" @@blur="onChange" id="maxValue" name="maxValue" v-model="maxValue" /> 1889 </div> 1890 </div> 1891 </div> 1892 </script> 1893 1894 1895 1896 <script type="text/x-template" id="add-compare-template"> 1897 <button @@click="onClick" :class="['btn btn-compare', {'is-selected':isInCompare}]" :title="[isInCompare ? '@Translate(plpProductPrefix + "Remove from Compare", "Remove from Compare")' : '@Translate(plpProductPrefix + "Add to compare", "Add to compare")']"> 1898 <svg> 1899 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#balance-scale"></use> 1900 </svg> 1901 </button> 1902 </script> 1903 @using Dynamicweb.Frontend 1904 @{ 1905 string instantSearchPrefix = "InstantSearch "; 1906 } 1907 <script type="text/x-template" id="instant-search-template"> 1908 <form v-bind:class="baseClass" action="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("searchresult")" v-autoClose="closeFoldOut"> 1909 <div class="basic_instantsearch"> 1910 <label for="searchTerm" class="sr-only">@Translate(instantSearchPrefix + "Search", "Search")</label> 1911 <input type="search" 1912 placeholder="@Translate(instantSearchPrefix + "Search", "Search")" 1913 id="searchTerm" 1914 name="search" 1915 autocomplete="off" 1916 v-model="searchTerm" 1917 @*v-on:focus="openSearch"*@ 1918 @*v-on:blur="closeFoldOut()"*@ 1919 autofocus> 1920 <button type="submit"> 1921 <span class="sr-only">@Translate(instantSearchPrefix + "Search", "Search")</span> 1922 <svg> 1923 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/dist/icons/icons.svg#search"></use> 1924 </svg> 1925 </button> 1926 <div class="fold-out" id="fold-popup" aria-controls="fold-popup" v-bind:class="{ active: foldActive && showResults, 'has-results': showResults }" v-auto-close> 1927 <template v-if="searchTerm == null"> 1928 <p class="search-string">@Translate(instantSearchPrefix + "Type something", "Type something")</p> 1929 </template> 1930 <template v-else-if="queryLoading"> 1931 <div class="is-loading"> 1932 <span class="spinner-lg-default"></span> 1933 </div> 1934 </template> 1935 <template v-else-if="!showResults"> 1936 <p class="search-string"> 1937 @Translate(instantSearchPrefix + "Empty search...", "Empty search...") 1938 </p> 1939 </template> 1940 <div class="fold-out-grid" v-else> 1941 <div class="fold-out-col is-content"> 1942 <ul v-if="groups?.length>0" class="fold-out-content"> 1943 <li> 1944 <strong>@Translate(instantSearchPrefix + "Categories", "Categories")</strong> 1945 </li> 1946 <li v-for="group in groups"> 1947 <a :href="group.url"> 1948 {{group.groupName}} 1949 </a> 1950 </li> 1951 </ul> 1952 <ul v-if="contents?.length>0" class="fold-out-content"> 1953 <li> 1954 <strong>@Translate(instantSearchPrefix + "Content", "Content")</strong> 1955 </li> 1956 <li v-for="content in contents"> 1957 <a :href="content.url"> 1958 {{content.pageTitle}} 1959 </a> 1960 </li> 1961 <li v-if="hasMoreContent" class="show-all"> 1962 <a :href="'@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("searchresult")?search=' + searchTerm + '&show=content'">@Translate(instantSearchPrefix + "See all", "Se alle")</a> 1963 </li> 1964 </ul> 1965 </div> 1966 <div class="fold-out-col is-products" v-if="products?.length > 0"> 1967 <ul class="fold-out-products"> 1968 <li> 1969 <strong>@Translate(instantSearchPrefix + "Products", "Products")</strong> 1970 </li> 1971 <li v-for="product in products"> 1972 <figure> 1973 <img :src="'/Admin/Public/GetImage.ashx?Width=50&amp;Height=50&amp;fillcanvas=true&amp;Compression=85&amp;Crop=5&amp;Image=' + (product.imageLink ? product.imageLink : '/Files/Images/Default.jpg')" /> 1974 </figure> 1975 <div> 1976 <a :href="product.url"> 1977 {{product.name}} 1978 </a> 1979 <small>{{product.number}}</small> 1980 </div> 1981 </li> 1982 <li v-if="hasMoreProducts" class="show-all"> 1983 <a :href="'@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("searchresult")?search=' + searchTerm + '&show=products'">@Translate(instantSearchPrefix + "See all", "Se alle")</a> 1984 </li> 1985 </ul> 1986 1987 </div> 1988 <div class="fold-out-col is-spareparts" v-if="spareParts?.length > 0"> 1989 <ul class="fold-out-products"> 1990 <li> 1991 <strong>@Translate(instantSearchPrefix + "Spareparts", "Spare parts")</strong> 1992 </li> 1993 <li v-for="product in spareParts"> 1994 <figure> 1995 <img :src="'/Admin/Public/GetImage.ashx?Width=50&amp;Height=50&amp;fillcanvas=true&amp;Compression=85&amp;Crop=5&amp;Image=' + (product.imageLink ? product.imageLink : '/Files/Images/Default.jpg')" /> 1996 </figure> 1997 <div> 1998 <a :href="product.url"> 1999 {{product.name}} 2000 </a> 2001 <small>{{product.number}}</small> 2002 </div> 2003 </li> 2004 <li v-if="hasMoreSpares" class="show-all"> 2005 <a :href="'@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("searchresult")?search=' + searchTerm + '&show=spares'">@Translate(instantSearchPrefix + "See all", "Se alle")</a> 2006 </li> 2007 </ul> 2008 </div> 2009 </div> 2010 @*<div v-if="searchTerm != '' && showResults && !queryLoading" class="actions"> 2011 <a :href="'@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("searchresult")?search=' + searchTerm">@Translate(instantSearchPrefix + "See all", "Se alle")</a> 2012 </div>*@ 2013 </div> 2014 </div> 2015 </form> 2016 </script> 2017 2018 2019 2020 <script src="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/scripts/vendors~bundle.min.js")"></script> 2021 <script src="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/scripts/bundle.min.js")"></script> 2022 @{ 2023 var currentUser = NORRIQ.Universal.Identity.Dw.UserViewModel.GetCurrentUser<Tefcold.Web.Api.Models.UserViewModelWithMediaBank>(); 2024 var jsonUser = Newtonsoft.Json.JsonConvert.SerializeObject(currentUser); 2025 } 2026 <script async> 2027 AppStart.VueProvider.init({ 2028 webApiUrl: '@System.Web.Configuration.WebConfigurationManager.AppSettings["WebApiProxyUrl"]', 2029 user: @jsonUser, 2030 currencyCode: '@currencyCode', 2031 locale: '@Pageview.Area.Culture', 2032 currencyLeft: false, 2033 currencySpacing: true, 2034 currencySymbol: '@currencyCode', 2035 currencyDecimalSeparator: ',', 2036 currencyGroupSeparator: '.', 2037 currencyDecimalDigits: 2, 2038 dateFormatShort: '@Pageview.Area.Dateformat', 2039 shopId: '@Pageview.Area.EcomShopId', 2040 languages: `@languagesJson`, 2041 langId: '@Pageview.Area.EcomLanguageId', 2042 areaId: '@Pageview.Area.ID' 2043 }); 2044 </script> 2045 2046 <script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script> 2047 <script type='text/javascript'>(function ($) { window.fnames = new Array(); window.ftypes = new Array(); fnames[0] = 'EMAIL'; ftypes[0] = 'email'; fnames[11] = 'INTEREST'; ftypes[11] = 'dropdown'; fnames[8] = 'COMPANY'; ftypes[8] = 'text'; fnames[12] = 'FNAME'; ftypes[12] = 'text'; fnames[1] = 'LNAME'; ftypes[1] = 'text'; fnames[2] = 'PHONE'; ftypes[2] = 'phone'; fnames[4] = 'COUNTRY'; ftypes[4] = 'dropdown'; fnames[5] = 'WEBSITE'; ftypes[5] = 'url'; fnames[9] = 'COMMENT'; ftypes[9] = 'text'; fnames[10] = 'HEARABOUT2'; ftypes[10] = 'dropdown'; }(jQuery)); var $mcj = jQuery.noConflict(true);</script> 2048 2049 <script append="replace"></script> 2050 @if (!string.IsNullOrEmpty(Model.PropertyItem.GetString("FormScript"))) 2051 { 2052 2053 @Model.PropertyItem.GetString("FormScript") 2054 2055 } 2056 </body> 2057 </html>