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_7c7498864c4445c7ada08b577e021647.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\_parsed\Basic_Page.parsed.cshtml:line 105
   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 Dynamicweb.Content 2 @using Dynamicweb.Frontend; 3 @using Dynamicweb.Security.UserManagement 4 @using NLWI.Core.Factory 5 @using NORRIQ.SalesPersonLogin.Services 6 @using Tefcold.Web.CustomCode.Extensions 7 @using Tefcold.Web.CustomCode.Items.Properties 8 @using Tefcold.Web.CustomCode.LanguageSwitch 9 @using Tefcold.Web.CustomCode.Razor 10 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 11 @{ 12 //Heine: Understående kan bruges såfremt der skal tjekkes på om man er i impersonation mode: 13 var isImpersonating = ImpersonationService.IsCurrentlyImpersonating(); 14 var locationName = Pageview.User?.Name; 15 var websiteSettings = Pageview.Area.Item.ToCodeFirstItem<Websites>(); 16 } 17 18 <!DOCTYPE html> 19 <html lang="@Pageview.Area.Culture"> 20 <head> 21 <meta charset='utf-8' /> 22 <meta name="description" content="@Model.Description" /> 23 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, shrink-to-fit=no" /> 24 <meta http-equiv="x-ua-compatible" content="ie=edge"> 25 @if (Model.Area.Item.GetBoolean("NoIndex")) 26 { 27 <!-- TODO: remove on launch--> 28 <meta name="robots" content="noindex, nofollow" /> 29 } 30 31 @if (!string.IsNullOrWhiteSpace(websiteSettings.HeaderScript)) 32 { 33 @websiteSettings.HeaderScript 34 } 35 36 @if (!string.IsNullOrWhiteSpace(websiteSettings.GoogleTagManagerId)) 37 { 38 <script> 39 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 40 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 41 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 42 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 43 })(window,document,'script','dataLayer','@websiteSettings.GoogleTagManagerId'); 44 </script> 45 } 46 47 <title>@Model.Title</title> 48 @Model.MetaTags 49 @if (Model.Area.Item.GetFile("Icon") != null) 50 { 51 <link href="@Model.Area.Item.GetFile("Icon").Path" rel="icon" type="image/png"> 52 } 53 <link async href="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/css/Tefcold-min.css")" rel="stylesheet" /> 54 </head> 55 <body> 56 @if (!string.IsNullOrWhiteSpace(websiteSettings.GoogleTagManagerId)) 57 { 58 <!-- Google Tag Manager (noscript) --> 59 <noscript> 60 <iframe src="https://www.googletagmanager.com/ns.html?id=@websiteSettings.GoogleTagManagerId" 61 height="0" width="0" style="display: none; visibility: hidden"></iframe> 62 </noscript> 63 <!-- End Google Tag Manager (noscript) --> 64 } 65 <div id="app"> 66 @{ 67 string basicNavbarPrefix = "Header "; 68 var logo = Model.Area.Item.GetFile("Logo"); 69 var currencyCode = Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId; 70 } 71 <header class="basic_navbar" id="header"> 72 @if (isImpersonating) 73 { 74 <div class="impersonation-bar"> 75 <div class="basic_navbar-container"> 76 <p> 77 @Translate(basicNavbarPrefix + "debitor", "Debitor"): <b>@locationName</b> | <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("impersonation-choose-customer")?action=changeuser">@Translate("Change customer")</a> 78 </p> 79 </div> 80 </div> 81 } 82 <div class="basic_navbar-main"> 83 <div class="basic_navbar-container"> 84 85 <button type="button" 86 class="basic_navbar-burger" 87 aria-label="@Translate(basicNavbarPrefix + "Open main navigation", "Open main navigation")" 88 v-b-toggle.basic_navigation> 89 <span></span> 90 <span></span> 91 <span></span> 92 </button> 93 <a href="/" class="basic_navbar-logo" title="@Translate(basicNavbarPrefix + "Go to frontpage", "Go to frontpage")"> 94 @if (logo != null) 95 { 96 <img class="img-fluid" src="@logo.Path" alt="@Translate(basicNavbarPrefix + "Website Logo Alttext", "Website Logo Alttext")" /> 97 } 98 else 99 { 100 <i>@Translate(basicNavbarPrefix + "No logo found", "No logo found, please configure it in the Dynamicweb Administration")</i> 101 } 102 </a> 103 <collapse-hack inline-template> 104 <b-collapse class="basic_navbar-navigation" id="basic_navigation" tag="nav"> 105 @RenderNavigation(new { Template = "basic_navbar.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4 }) 106 <ul class="basic_navbar-subnav"> 107 <li> 108 <button type="button" 109 v-b-toggle.languages 110 aria-label="@Translate(basicNavbarPrefix + "Choose Language", "Choose Language")"> 111 <img src="@Pageview.Area.Flag32X32" alt="@Pageview.Area.CultureInfo.EnglishName" /> 112 <span class="sr-only">@Pageview.Area.CultureInfo.EnglishName</span> 113 </button> 114 </li> 115 <li> 116 <button v-b-toggle.contacts 117 type="button" 118 aria-label="@Translate(basicNavbarPrefix + "Show contacts", "Show contacts")"> 119 <svg> 120 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 121 </svg> 122 <span class="sr-only">@Translate(basicNavbarPrefix + "Contacts", "Contacts")</span> 123 </button> 124 </li> 125 <li> 126 <button v-b-toggle.customer-center 127 type="button" 128 aria-label="@Translate(basicNavbarPrefix + "Show Webshop Login", "Show Webshop Login")"> 129 @if (Pageview.User == null) 130 { 131 <svg> 132 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user"></use> 133 </svg> 134 } 135 else 136 { 137 <svg style="width: 30px; height: 30px;"> 138 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user-check"></use> 139 </svg> 140 } 141 <span class="sr-only">@Translate(basicNavbarPrefix + "Login", "Login")</span> 142 </button> 143 </li> 144 @if (Pageview.User != null) 145 { 146 <li> 147 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("quickorder")" title="@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")"> 148 <svg width="28px" height="28px"> 149 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#quickorder"></use> 150 </svg> 151 <span class="sr-only">@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")</span> 152 </a> 153 </li> 154 } 155 @if (Pageview.User != null && Pageview.User.AllowMediaBank()) 156 { 157 <media-bank inline-template> 158 <li> 159 160 <form id="mediabankform" action="https://imagebank.tefcold.com/Home/LoginUser" method="post"> 161 <input id="mediabankformname" type="hidden" name="username" /> 162 <input id="mediabankformpassword" type="hidden" name="password" /> 163 <input type="hidden" value="false" name="persistent" /> 164 </form> 165 <a v-on:click="connect($event)" href="#"> 166 <svg width="28px" height="28px" fill="currentColor"> 167 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#photo-video"></use> 168 </svg> 169 <span class="sr-only">@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")</span> 170 </a> 171 </li> 172 </media-bank> 173 } 174 <li> 175 <button type="button" 176 class="btn-close" 177 @@click="collapseAll" 178 aria-label="@Translate(basicNavbarPrefix + "Close Navigation", "Close Navigation")"> 179 <span></span> 180 <span></span> 181 </button> 182 </li> 183 </ul> 184 </b-collapse> 185 </collapse-hack> 186 <form class="basic_navbar-search" action="/Default.aspx"> 187 <search-shortcut inline-template> 188 <div style="display: none"></div> 189 </search-shortcut> 190 <label for="productsearch">Search</label> 191 <input name="ID" type="hidden" value="@NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("searchresult")"> 192 <input name="PageSize" type="hidden" value="99" /> 193 <input type="search" placeholder="@Translate(basicNavbarPrefix + "Search", "Search")" id="productsearch" name="productsearch"> 194 <button type="submit"> 195 <span class="sr-only">@Translate(basicNavbarPrefix + "Search", "Search")</span> 196 <svg> 197 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#search"></use> 198 </svg> 199 </button> 200 </form> 201 <ul class="basic_navbar-functions"> 202 <li class="basic_navbar-languages relative"> 203 <button type="button" v-b-toggle.languages aria-label="@Translate(basicNavbarPrefix + "Choose Language", "Choose Language")"> 204 <span class="sr-only">@Pageview.Area.CultureInfo.EnglishName</span> 205 <img src="@Pageview.Area.Flag32X32" alt="@Pageview.Area.Culture - Flag" /> 206 </button> 207 <b-collapse id="languages" class="basic_navbar-dropdown" accordion="header" v-auto-close> 208 <div class="basic_navbar-body"> 209 <ul> 210 @foreach (var lang in Model.Area.Languages.Where(a => !a.IsCurrent)) 211 { 212 string langUrl; 213 string countryCode = lang.Culture.Split('-').Last(); 214 215 if (Dynamicweb.Context.Current.Request["GroupID"] != null) 216 { 217 langUrl = this.GetGroupUrl(Dynamicweb.Context.Current.Request["GroupID"], countryCode); 218 } 219 else //if (!string.IsNullOrEmpty(lang.PrimaryDomain)) 220 { 221 try 222 { 223 var lss = ObjectFactory.GetInstance<LanguageSwitchService>(); 224 langUrl = lss.GetLanguagePage(lang.Culture, this.Pageview.ID); 225 } 226 catch (Exception) 227 { 228 langUrl = Pageview.SearchFriendlyUrl; 229 } 230 } 231 232 <li> 233 <a href="@langUrl"> 234 <img src="/Admin/Images/Flags/flag_@(countryCode).png" alt="@lang.Culture - Flag" loading="lazy" /> 235 <span>@Translate("lang_" + lang.Culture.Split('-').First(), lang.Culture.Split('-').First())</span> 236 </a> 237 </li> 238 } 239 <li> 240 <hr class="m-0" /> 241 <a href="/Default.aspx?ID=@GetPageIdByNavigationTag("CzechRedirect")"> 242 <img src="/Admin/Images/Flags/flag_cz.png" alt="cs-CZ - Flag" loading="lazy" /> 243 <span>@Translate("lang_cs", "cs")</span> 244 </a> 245 </li> 246 <li> 247 <a href="/Default.aspx?ID=@GetPageIdByNavigationTag("SlovakRedirect")"> 248 <img src="/Admin/Images/Flags/flag_sk.png" alt="sk-SK - Flag" loading="lazy" /> 249 <span>@Translate("lang_sk", "sk")</span> 250 </a> 251 </li> 252 253 </ul> 254 </div> 255 </b-collapse> 256 </li> 257 <li class="basic_navbar-contacts @(Pageview.User != null ? "static" : "relative")"> 258 <button v-b-toggle.contacts 259 type="button" 260 aria-label="@Translate(basicNavbarPrefix + "Show contacts", "Show contacts")"> 261 <svg> 262 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 263 </svg> 264 <span class="sr-only">@Translate(basicNavbarPrefix + "Contacts", "Contacts")</span> 265 </button> 266 @{ 267 var impersonationGroupId = websiteSettings.ImpersonationGroup.FirstOrDefault(); 268 IEnumerable<User> users = null; 269 IEnumerable<User> salesPersons = new List<User>(); 270 if (Pageview.User != null) 271 { 272 var salesPersonCode = Pageview.User.CustomFieldValues.FirstOrDefault(field => field.CustomField.Name == "Sales Person Code"); 273 var salesPersonsInitials = salesPersonCode?.Value?.ToString().Split(',') ?? new string[] { }; 274 salesPersonsInitials = salesPersonsInitials.Select(x => x.ToLower()).ToArray(); 275 276 if (!string.IsNullOrEmpty(impersonationGroupId)) 277 { 278 users = Group.GetGroupByID(int.Parse(impersonationGroupId)).Users; 279 } 280 if (users == null || Pageview.User == null) 281 { 282 salesPersons = new List<User>(); 283 } 284 else 285 { 286 salesPersons = users.Where(user => salesPersonsInitials.Contains(user.Email.ToLower().Split('@').FirstOrDefault() ?? "")); 287 } 288 } 289 290 } 291 <b-collapse id="contacts" class="@(Pageview.User != null ? "basic_navbar-megamenu" : "basic_navbar-dropdown")" v-auto-close accordion="header"> 292 <div class="basic_navbar-body"> 293 @if (Pageview.User != null) 294 { 295 if (salesPersons.Any()) 296 { 297 <p class="tefcold_salesperson-byline h1">@Translate(basicNavbarPrefix + "Your Sales Team", "Your Sales Team")</p> 298 } 299 foreach (var salesPerson in salesPersons) 300 { 301 <div class="tefcold_salesperson" itemscope itemtype="http://schema.org/Person"> 302 <figure> 303 <img src="@salesPerson.Image" class="img-fluid" alt="@salesPerson.Name" itemprop="image" loading="lazy" /> 304 </figure> 305 <p itemprop="name">@salesPerson.Name</p> 306 <p itemprop="jobTitle">@salesPerson.JobTitle</p> 307 <p itemprop="telephone"> 308 <svg> 309 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 310 </svg> 311 <span>@salesPerson.PhonePrivate</span> 312 </p> 313 <p itemprop="telephone"> 314 <svg> 315 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#mobile-alt"></use> 316 </svg> 317 <span>@salesPerson.PhoneMobile</span> 318 </p> 319 <a href="@("mailto:" + @salesPerson.Email)" itemprop="email"> 320 <svg> 321 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#envelope"></use> 322 </svg> 323 <span>@salesPerson.Email</span> 324 </a> 325 </div> 326 } 327 } 328 <ul> 329 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("PhoneLabel")) 330 && !string.IsNullOrEmpty(Model.Area.Item.GetString("Phonenumber"))) 331 { 332 <li class="head"> 333 <strong> 334 @Model.Area.Item.GetString("PhoneLabel") 335 </strong> 336 <strong> 337 @Model.Area.Item.GetString("Phonenumber") 338 </strong> 339 </li> 340 } 341 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("ContactPage")) 342 && !string.IsNullOrEmpty(Model.Area.Item.GetString("ContactLabel"))) 343 { 344 <li> 345 <a href="@Model.Area.Item.GetString("ContactPage")"> 346 @Model.Area.Item.GetString("ContactLabel") 347 </a> 348 </li> 349 } 350 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("SalesPage")) 351 && !string.IsNullOrEmpty(Model.Area.Item.GetString("SalesLabel"))) 352 { 353 <li> 354 <a href="@Model.Area.Item.GetString("SalesPage")"> 355 @Model.Area.Item.GetString("SalesLabel") 356 </a> 357 </li> 358 } 359 </ul> 360 361 </div> 362 </b-collapse> 363 </li> 364 <li class="basic_navbar-user"> 365 <button v-b-toggle.customer-center type="button" aria-label="@Translate(basicNavbarPrefix + "Show Webshop Login", "Show Webshop Login")"> 366 @if (Pageview.User == null) 367 { 368 <svg> 369 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user"></use> 370 </svg> 371 } 372 else 373 { 374 <svg style="width: 30px; height: 30px;"> 375 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user-check"></use> 376 </svg> 377 } 378 <span class="sr-only">@Translate(basicNavbarPrefix + "Login", "Login")</span> 379 </button> 380 381 382 <b-collapse id="customer-center" class="basic_navbar-dropdown" accordion="header" v-auto-close> 383 <div class="basic_navbar-body"> 384 @if (Pageview.User == null) 385 { 386 <head-login-form inline-template> 387 <form name="ExtUserForm" id="loginForm" method="post" class="form" role="form" v-on:submit="submitLogin"> 388 <p> 389 <strong> 390 @Translate(basicNavbarPrefix + "Webshop Login", "Webshop Login") 391 </strong> 392 </p> 393 <input type="hidden" name="ID" id="ID" value="" /> 394 <div class="form-group"> 395 <label for="Username">@Translate(basicNavbarPrefix + "Username", "Username")</label> 396 <input id="Username" v-model="username" name="Username" type="text" value="" class="form-control" autocomplete="off"> 397 </div> 398 <div class="form-group"> 399 <label for="Password">@Translate(basicNavbarPrefix + "Password", "Password")</label> 400 <input id="Password" v-model="password" name="Password" type="password" value="" class="form-control" autocomplete="off"> 401 </div> 402 <div v-if="loginFailed"> 403 <p class="alert alert-warning"> 404 @Translate("Login failed", "Invalid credentials") 405 </p> 406 </div> 407 <div class="basic_login-buttons"> 408 <button type="submit" role="button" class="btn btn-primary btn-block" v-bind:class='{"loading": loading}' v-on:click="loading=true" id="loginBtn"> 409 @Translate(basicNavbarPrefix + "Login", "Login") 410 </button> 411 </div> 412 </form> 413 </head-login-form> 414 <ul> 415 <li> 416 <a href="/Default.aspx?ID=@NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("forgotpassword")&amp;LoginAction=Recovery"> 417 @Translate(basicNavbarPrefix + "Forgot password", "Forgot password") 418 </a> 419 </li> 420 <li> 421 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("create-account")"> 422 @Translate(basicNavbarPrefix + "Create Webshop Account", "Create Webshop Account") 423 </a> 424 </li> 425 </ul> 426 } 427 else 428 { 429 <div class="active-user"> 430 <p><strong>@Pageview.User.Name</strong></p> 431 <p> 432 <a v-clear-cache:click.user href='/admin/public/extranetlogoff.aspx?ID=@(NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("home"))'> 433 @Translate(basicNavbarPrefix + "Sign out", "Sign out") 434 </a> 435 </p> 436 </div> 437 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = "customer-portal" }) 438 } 439 </div> 440 </b-collapse> 441 </li> 442 @if (Pageview.User != null && Pageview.User.AllowMediaBank()) 443 { 444 <media-bank inline-template> 445 <li class="basic_navbar-media"> 446 <form id="mediabankform" action="https://imagebank.tefcold.com/Home/LoginUser" method="post"> 447 <input id="mediabankformname" type="hidden" name="username" /> 448 <input id="mediabankformpassword" type="hidden" name="password" /> 449 <input type="hidden" value="false" name="persistent" /> 450 </form> 451 <a v-on:click="connect($event)" href="#" class="media"> 452 <svg width="28px" height="28px"> 453 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#photo-video"></use> 454 </svg> 455 <span class="sr-only">@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")</span> 456 </a> 457 </li> 458 </media-bank> 459 460 } 461 @if (Pageview.User != null) 462 { 463 <li class="basic_navbar-quick"> 464 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("quickorder")" title="@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")"> 465 <svg width="28px" height="28px"> 466 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#quickorder"></use> 467 </svg> 468 <span class="sr-only">@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")</span> 469 </a> 470 </li> 471 } 472 @if (Pageview.Area.Culture == "da-DK" || Pageview.User != null) 473 { 474 <cart-icon cartlink="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("checkout")"></cart-icon> 475 } 476 </ul> 477 </div> 478 </div> 479 </header> 480 @using Dynamicweb.Frontend; 481 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 482 483 @Title("Page") 484 @Description("Default page template") 485 @{ 486 string basicPagePrefix = "Page "; 487 } 488 @if (Pageview.IsCurrentUserAllowed) 489 { 490 var pageLayout = !string.IsNullOrEmpty(Model.Item.GetValue<ListViewModel>("Layout").SelectedValue) ? Model.Item.GetValue<ListViewModel>("Layout").SelectedValue : "content-page-sidebar"; 491 var pageClass = pageLayout == "page-wide" ? "basic_page-wide" : "basic_page"; 492 if (!Model.Item.GetBoolean("HideBreadcrumb")) 493 { 494 if (Model.Area.Item.GetFile("TopImage") != null) 495 { 496 <figure> 497 <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" /> 498 </figure> 499 } 500 @RenderNavigation(new { Template = "basic_Breadcrumb.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 5 }) 501 } 502 <main class="@pageClass"> 503 @if (pageLayout == "content-page-sidebar" || pageLayout == "module-page-sidebar") 504 { 505 <aside class="basic_page-sidebar"> 506 @RenderNavigation(new { Template = "basic_Page.xslt", StartLevel = 1, EndLevel = 3 }) 507 </aside> 508 <div class="basic_page-content"> 509 @if (pageLayout == "content-page-sidebar" && !string.IsNullOrEmpty(Model.Item.GetString("Title").ToString()) || !string.IsNullOrEmpty(Model.Item.GetString("Text").ToString())) 510 { 511 <section class="basic_paragraph"> 512 @if (!string.IsNullOrEmpty(Model.Item.GetString("Title").ToString())) 513 { 514 <header> 515 <h1> 516 @Model.Item.GetString("Title") 517 </h1> 518 </header> 519 } 520 @if (Model.Item.GetFile("Image") != null) 521 { 522 <figure> 523 <img src="@Model.Item.GetFile("Image").Path" alt="@Model.Item.GetString("Title")" class="img-fluid" /> 524 </figure> 525 } 526 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text").ToString())) 527 { 528 @Model.Item.GetString("Text") 529 } 530 </section> 531 } 532 @RenderPlaceholder() 533 </div> 534 } 535 else 536 { 537 @RenderPlaceholder() 538 } 539 </main> 540 } 541 else 542 { 543 <main class="basic_page"> 544 @RenderPlaceholder() 545 </main> 546 } 547 @helper RenderPlaceholder() 548 { 549 @Model.Placeholder("Content", "Content", "unwrap:true;default:true") 550 if (!String.IsNullOrEmpty(Model.Placeholder("Boxed"))) 551 { 552 <div class="grouped"> 553 @Model.Placeholder("Boxed", "Grouped Content", "unwrap:true") 554 </div> 555 } 556 } 557 558 @{ 559 string footerPrefix = "Footer "; 560 } 561 <footer class="basic_footer"> 562 <div class="basic_footer-wrap"> 563 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterOneTitle")) && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterOneText"))) 564 { 565 <div class="basic_footer-box"> 566 <div class="basic_footer-head" role="button" v-b-toggle.footer-one> 567 <h3>@Model.Area.Item.GetString("FooterOneTitle")</h3> 568 </div> 569 <b-collapse id="footer-one" class="basic_footer-collapse"> 570 <div class="basic_footer-body"> 571 @Model.Area.Item.GetString("FooterOneText") 572 </div> 573 </b-collapse> 574 </div> 575 } 576 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTitle")) 577 && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoText")) 578 || !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTag"))) 579 { 580 <div class="basic_footer-box"> 581 <div class="basic_footer-head" role="button" v-b-toggle.footer-two> 582 <h3>@Model.Area.Item.GetString("FooterTwoTitle")</h3> 583 </div> 584 <b-collapse id="footer-two" class="basic_footer-collapse"> 585 <div class="basic_footer-body"> 586 @Model.Area.Item.GetString("FooterTwoText") 587 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTag"))) 588 { 589 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = @Model.Area.Item.GetString("FooterTwoTag").ToString() }) 590 } 591 </div> 592 </b-collapse> 593 </div> 594 } 595 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTitle")) 596 && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeText")) 597 || !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTag"))) 598 { 599 <div class="basic_footer-box"> 600 <div class="basic_footer-head" role="button" v-b-toggle.footer-three> 601 <h3>@Model.Area.Item.GetString("FooterThreeTitle")</h3> 602 </div> 603 <b-collapse id="footer-three" class="basic_footer-collapse"> 604 <div class="basic_footer-body"> 605 @Model.Area.Item.GetString("FooterThreeText") 606 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTag"))) 607 { 608 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = @Model.Area.Item.GetString("FooterThreeTag").ToString() }) 609 } 610 </div> 611 </b-collapse> 612 </div> 613 } 614 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterFourTitle")) && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterFourText"))) 615 { 616 <div class="basic_footer-box"> 617 <div class="basic_footer-head" role="button" v-b-toggle.footer-four> 618 <h3>@Model.Area.Item.GetString("FooterFourTitle")</h3> 619 </div> 620 <b-collapse id="footer-four" class="basic_footer-collapse"> 621 <div class="basic_footer-body"> 622 @Model.Area.Item.GetString("FooterFourText") 623 </div> 624 </b-collapse> 625 </div> 626 } 627 </div> 628 629 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterCopyright"))) 630 { 631 632 <div class="basic_footer-sub"> 633 <div class="basic_footer-wrap"> 634 <div class="basic_footer-col"> 635 <p> 636 &copy; @DateTime.Now.Year @Model.Area.Item.GetString("FooterCopyright") 637 </p> 638 </div> 639 @if (Model.Area.Item.GetValue<ListViewModel>("Cards").SelectedValues.Any()) 640 { 641 <div class="basic_footer-col text-center cards"> 642 @foreach (var cards in Model.Area.Item.GetValue<ListViewModel>("Cards").SelectedValues) 643 { 644 <img src="/Files/Images/cards/@cards" alt="@cards.Split('.').First()" loading="lazy" /> 645 } 646 </div> 647 } 648 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FacebookUrl")) 649 || !string.IsNullOrEmpty(Model.Area.Item.GetString("LinkedInUrl")) 650 || !string.IsNullOrEmpty(Model.Area.Item.GetString("YoutubeUrl"))) 651 { 652 <div class="basic_footer-col text-right some"> 653 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FacebookUrl"))) 654 { 655 <a href="@Model.Area.Item.GetString("FacebookUrl")" target="_blank" aria-label="Facebook" rel="noreferrer"> 656 <svg> 657 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#facebook-square"></use> 658 </svg> 659 </a> 660 } 661 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("LinkedInUrl"))) 662 { 663 <a href="@Model.Area.Item.GetString("LinkedInUrl")" target="_blank" aria-label="LinkedIn" rel="noreferrer"> 664 <svg> 665 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#linkedin"></use> 666 </svg> 667 </a> 668 } 669 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("YoutubeUrl"))) 670 { 671 <a href="@Model.Area.Item.GetString("YoutubeUrl")" target="_blank" aria-label="Youtube" rel="noreferrer"> 672 <svg> 673 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#youtube-square"></use> 674 </svg> 675 </a> 676 } 677 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("SmileyUrl"))) 678 { 679 <a href="@Model.Area.Item.GetString("SmileyUrl")" target="_blank" aria-label="@Translate(footerPrefix + "smiley", "Elite Smiley")" rel="noreferrer"> 680 <svg> 681 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#elite-smiley-nocolor"></use> 682 </svg> 683 </a> 684 } 685 </div> 686 } 687 </div> 688 </div> 689 } 690 </footer> 691 <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'> 692 <div></div> 693 </basic-alert> 694 </div> 695 696 <script type="text/x-template" id="cart-icon-template"> 697 @{ 698 string cartIconPrefix = "Minicart "; 699 } 700 <li> 701 <a :href="cartlink"> 702 <svg> 703 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#shopping-cart"></use> 704 </svg> 705 <span class="label">@Translate(cartIconPrefix + "Checkout", "Checkout")</span> 706 <strong v-if="!cartEmpty" class="cart-quantity">{{quantity}}</strong> 707 </a> 708 </li> 709 </script> 710 711 712 713 <script type="text/x-template" id="basic-facet-filter-template"> 714 @{ 715 string basicFacetPrefix = "Filter "; 716 } 717 <aside> 718 <template v-if="HasActiveFilter()"> 719 720 <p id="selected-filter-label" class="sr-only"> 721 @Translate(basicFacetPrefix + "Active", "Active") 722 </p> 723 <div class="basic_filter-active" aria-labelledby="selected-filter-label"> 724 <template v-for="facetFilter in facetFilters"> 725 <span v-for="option in SelectedOptions(facetFilter)" class="custom-control custom-filter"> 726 <input type="checkbox" 727 :id="'Selected-' + facetFilter.name + '-' + option.name" 728 :name="facetFilter.name" 729 :value="option.value" 730 :v-model="option.selected" 731 :checked="option.selected" 732 v-on:click="ToggleFilter(facetFilter.name,option)" 733 class="custom-control-input" /> 734 <label :for="'Selected-' + facetFilter.name + '-' + option.name" class="custom-control-label" :data-name="facetFilter.name"> 735 <span> 736 {{option.label}} 737 </span> 738 <svg> 739 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#times"></use> 740 </svg> 741 </label> 742 </span> 743 </template> 744 </div> 745 </template> 746 <b-collapse class="basic_filter" id="sidebar-filter"> 747 <template v-if="!error && facetFilters"> 748 <button type="button" class="btn-close" v-b-toggle.sidebar-filter.sidebar-overlay aria-label="@Translate(basicFacetPrefix + "Close Filter", "Close Filter")"> 749 <span></span> 750 <span></span> 751 </button> 752 <div class="basic_filter-groups"> 753 <div class="basic_filter-group" v-for="(facetFilter, index) in facetFilters"> 754 <p :id="'filter-group-' + facetFilter.name.toLowerCase().trim()" v-b-toggle="'filter-collapse-' + facetFilter.name.toLowerCase().trim()"> 755 <template v-if="facetFilter.name === 'ModelType'"> 756 @Translate(basicFacetPrefix + "ModelType", "Model / Type") 757 </template> 758 <template v-else-if="facetFilter.name === 'DoorType'"> 759 @Translate(basicFacetPrefix + "DoorType", " Door type") 760 </template> 761 <template v-else-if="facetFilter.name === 'ExternalHeight'"> 762 @Translate(basicFacetPrefix + "ExternalHeight", "External Height") (mm) 763 </template> 764 <template v-else-if="facetFilter.name === 'NetVolume'"> 765 @Translate(basicFacetPrefix + "NetVolume", "Net Volume") (l) 766 </template> 767 <template v-else-if="facetFilter.name === 'DoorNumber'"> 768 @Translate(basicFacetPrefix + "DoorNumber", " Number of doors") 769 </template> 770 <template v-else-if="facetFilter.name === 'ExteriorFinish'"> 771 @Translate(basicFacetPrefix + "ExteriorFinish", "Exterior Finish") 772 </template> 773 <template v-else-if="facetFilter.name === 'ExternalWidth'"> 774 @Translate(basicFacetPrefix + "ExternalWidth", "External Width") (mm) 775 </template> 776 <template v-else-if="facetFilter.name === 'GrossVolume'"> 777 @Translate(basicFacetPrefix + "GrossVolume", "Gross Volume") (l) 778 </template> 779 <template v-else-if="facetFilter.name === 'Bottles330'"> 780 @Translate(basicFacetPrefix + "Bottles330", "Capacity 330ml bottles") 781 </template> 782 <template v-else-if="facetFilter.name === 'Bottles500'"> 783 @Translate(basicFacetPrefix + "Bottles500", "Capacity 500ml bottles") 784 </template> 785 <template v-else-if="facetFilter.name === 'Cans330'"> 786 @Translate(basicFacetPrefix + "Cans330", "Capacity 300ml cans") 787 </template> 788 <template v-else-if="facetFilter.name === 'Cans500'"> 789 @Translate(basicFacetPrefix + "Cans500", "Capacity 500ml cans") 790 </template> 791 <template v-else-if="facetFilter.name === 'TemperatureRange'"> 792 @Translate(basicFacetPrefix + "TemperatureRange", "Temperature Range") 793 </template> 794 <template v-else-if="facetFilter.name === 'TemperatureRangeZone2'"> 795 @Translate(basicFacetPrefix + "TemperatureRangeZone2", "Tempature Range 2") 796 </template> 797 <template v-else-if="facetFilter.name === 'ShelfNumber'"> 798 @Translate(basicFacetPrefix + "ShelfNumber", "Number of shelfs") 799 </template> 800 <template v-else-if="facetFilter.name === 'LidType'"> 801 @Translate(basicFacetPrefix + "LidType", "Lid Type") 802 </template> 803 <template v-else-if="facetFilter.name === 'InteriorFinish'"> 804 @Translate(basicFacetPrefix + "InteriorFinish", "Interior Finish") 805 </template> 806 <template v-else-if="facetFilter.name === 'WineBottles750'"> 807 @Translate(basicFacetPrefix + "WineBottles750", "Capacity 750ml winebottles") 808 </template> 809 <template v-else> 810 {{facetFilter.name}} 811 </template> 812 <svg> 813 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/dist/icons/icons.svg#chevron-up"></use> 814 </svg> 815 </p> 816 <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()"> 817 <template v-if="facetFilter.optionActiveCount > 5"> 818 <span v-for="option in facetFilter.options.slice(0, 5)" class="custom-control custom-checkbox facet-option"> 819 <input type="checkbox" class="custom-control-input" 820 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 821 :name="facetFilter.name" 822 :value="option.value" 823 :v-model="option.selected" 824 :checked="option.selected" 825 v-on:click="ToggleFilter(facetFilter.name,option)" /> 826 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 827 {{option.label}} <span class="count">({{option.count}})</span> 828 </label> 829 </span> 830 <b-collapse class="basic_filter-expand" :id="'filter-expand-' + facetFilter.name.toLowerCase().trim()" :visible="ShowMoreIfSelected(facetFilter.options, index)"> 831 <span v-for="option in facetFilter.options.slice(5)" class="custom-control custom-checkbox facet-option"> 832 <input type="checkbox" class="custom-control-input" 833 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 834 :name="facetFilter.name" 835 :value="option.value" 836 :v-model="option.selected" 837 :checked="option.selected" 838 v-on:click="ToggleFilter(facetFilter.name,option)" /> 839 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 840 {{option.label}} <span class="count">({{option.count}})</span> 841 </label> 842 </span> 843 </b-collapse> 844 <a v-b-toggle="'filter-expand-' + facetFilter.name.toLowerCase().trim()" class="basic_filter-expanding" v-if="facetFilter.optionActiveCount > 6"> 845 <span class="show-more">+ @Translate(basicFacetPrefix + "show more", "show more")</span> 846 <span class="show-less">- @Translate(basicFacetPrefix + "show less", "show less")</span> 847 </a> 848 </template> 849 <template v-else> 850 <span v-for="option in facetFilter.options" class="custom-control custom-checkbox facet-option"> 851 <input type="checkbox" class="custom-control-input" 852 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 853 :name="facetFilter.name" 854 :value="option.value" 855 :v-model="option.selected" 856 :checked="option.selected" 857 v-on:click="ToggleFilter(facetFilter.name,option)" /> 858 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 859 {{option.label}} <span class="count">({{option.count}})</span> 860 </label> 861 </span> 862 </template> 863 </b-collapse> 864 </div> 865 </div> 866 </template> 867 </b-collapse> 868 </aside> 869 </script> 870 <script type="text/x-template" id="add-to-basket-simple-template"> 871 @{ 872 string addToBasketSimplePrifix = "BuyButton "; 873 } 874 <div class="form-flex" v-if="priceWithoutVat > 0" v-bind:class="[{added: IsAdded}, {adding: IsAdding}, {disabled: !canAdd}]"> 875 876 <label for="quantity">@Translate(addToBasketSimplePrifix + "Quantity", "Quantity")</label> 877 <input class="form-control" type="number" name="quantity" v-model="quantity" autocomplete="off" onclick="this.setSelectionRange(0, this.value.length)"> 878 <button :disabled="!canAdd" :class="buttonClass" v-on:click="addToBasketAndResetQuantity()" aria-label="@Translate(addToBasketSimplePrifix + "Add", "Add")"> 879 <slot> 880 <svg> 881 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#shopping-cart"> 882 </use> 883 </svg> 884 <span> 885 @Translate(addToBasketSimplePrifix + "Add to basket", "Add to basket") 886 </span> 887 </slot> 888 889 </button> 890 891 <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> 892 <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> 893 <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> 894 </div> 895 </script> 896 897 <script type="text/x-template" id="quick-add-template"> 898 @{ 899 string quickAddPrifix = "BuyButton "; 900 } 901 <div v-bind:class="[{added: IsAdded}, {adding: IsAdding}]"> 902 <label for="quantity">@Translate(quickAddPrifix + "Quantity", "Quantity")</label> 903 <input class="form-control" type="number" id="quantity" name="quantity" v-model="quantity" autocomplete="off"> 904 </div> 905 </script> 906 907 <script type="text/x-template" id="add-to-basket-button-only-template"> 908 @{ 909 string addToBasketPrefix = "BuyButton "; 910 } 911 <div v-bind:class="[{added: IsAdded}, {adding: IsAdding}]"> 912 <button :class="buttonClass" v-on:click="addToBasket()"> 913 <slot> 914 @Translate(addToBasketPrefix + "Add to basket", "Add to basket") 915 </slot> 916 </button> 917 </div> 918 </script> 919 <script type="text/x-template" id="async-price-template"> 920 @{ 921 string asyncPrefix = "Async "; 922 923 } 924 925 <div :class="classType + (loading ? ' loading' : '')"> 926 <template> 927 <p :class="classType + '--error'" v-if="error">{{error}}</p> 928 </template> 929 <template v-if="!loading"> 930 <template v-if="!forceAskForPrice && price.netUnitPrice.priceWithoutVat"> 931 932 <p class="price"> 933 <span itemprop="price" :content="price.netUnitPrice.priceWithoutVat">{{ price.netUnitPrice.priceWithoutVat | currency(price.currencyCode) }}</span> 934 <span class="sr-only" itemprop="priceCurrency" content="@(Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId)">@(Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId)</span> 935 </p> 936 <small>@Translate(asyncPrefix + "price without vat", "Price without VAT")</small> 937 </template> 938 <template v-if="!price?.netUnitPrice?.priceWithoutVat || forceAskForPrice"> 939 <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> 940 </template> 941 </template> 942 </div> 943 </script> 944 <script type="text/x-template" id="pagination-template"> 945 @{ 946 string paginationPrefix = "Pagination "; 947 } 948 <nav aria-label="@Translate(paginationPrefix + "Productlist pagination", "Productlist pagination")"> 949 <ul class="pagination"> 950 <li :class="['page-item', currentPage == 1 ? 'disabled' : '' ]"> 951 <a class="page-link" v-on:click="togglePrevPage()" aria-label="@Translate(paginationPrefix + "Previous Page", "Previous Page")" v-bind:aria-disabled="currentPage > 1 ? 'true' : null"> 952 <svg> 953 <use xmlns:xlink="http://www.w3.org/1999/xlink" 954 xlink:href="/files/dist/icons/icons.svg#chevron-left"> 955 </use> 956 </svg> 957 </a> 958 </li> 959 <template v-if="hasGroupId"> 960 <li v-if="showPage(n)" v-for="n in totalPages" :key="n" :class="(n == currentPage ? 'page-item active' : 'page-item')"> 961 <a v-on:click="togglePage(n)" v-bind:aria-current="(n == currentPage ? 'true' : '')" class="page-link"> 962 {{n}} 963 </a> 964 </li> 965 </template> 966 <template v-else> 967 <li class="page-item"> 968 <span class="page-label"> 969 {{currentPage}} 970 </span> 971 </li> 972 <li class="page-item"> 973 <span class="page-label"> 974 @Translate(paginationPrefix + "of", "of") 975 </span> 976 </li> 977 <li class="page-item"> 978 <span class="page-label"> 979 {{totalPages}} 980 </span> 981 </li> 982 </template> 983 <li :class="'page-item' + (currentPage >= totalPages ? ' disabled' : '')"> 984 <a v-on:click="toggleNextPage()" aria-label="@Translate(paginationPrefix + "Next Page", "Next Page")" class="page-link" v-bind:aria-disabled="totalPages > currentPage ? 'true' : null"> 985 <svg class="icon-pagination"> 986 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#chevron-right"></use> 987 </svg> 988 </a> 989 </li> 990 </ul> 991 </nav> 992 </script> 993 <script type="text/x-template" id="product-specification-list-view-template"> 994 <div class="basic_listview-data"> 995 <template v-if="!isSparePart"> 996 <p itemprop="description"> 997 {{ SpecificationHelpers.GetFirstSpecificationValueOrDefault('GrossNetVolume',productSpecifications)}} {{ SpecificationHelpers.GetSpecificationUnit(SpecificationHelpers.GetSpecificationByKey('GrossNetVolume',productSpecifications))}} 998 <br /> 999 {{ SpecificationHelpers.GetFirstSpecificationValueOrDefault('ExternalDimensionWeb',productSpecifications)}} 1000 1001 </p> 1002 </template> 1003 <p itemprop="sku">@Translate("PLP No.", "No.") {{productNumber}}</p> 1004 </div> 1005 </script> 1006 <script type="text/x-template" id="product-spare-parts-view-template"> 1007 @{ 1008 string basicPimPrefix = "PDP "; 1009 } 1010 <div> 1011 <button class="btn-collapse" id="spareparts" v-b-toggle.spareparts-list> 1012 @Translate(basicPimPrefix + "spare parts", "Spare Parts") 1013 </button> 1014 <template> 1015 <b-collapse id="spareparts-list" accordion="specs2"> 1016 <template> 1017 <div class="body-collapse full pb-0"> 1018 <ul class="basic_pim-spares"> 1019 <template v-if="sparePartReportExist"> 1020 <li> 1021 <a href="#" v-on:click="getSparePartReport($event)" target="_blank"> 1022 <svg> 1023 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#download"></use> 1024 </svg> 1025 @Translate(basicPimPrefix + "spare part list", "Spare part list") 1026 </a> 1027 </li> 1028 </template> 1029 <li> 1030 <a :href="explodedDrawing" target="_blank"> 1031 <svg> 1032 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#download"></use> 1033 </svg> 1034 @Translate(basicPimPrefix + "view exploded drawing of spare parts", "View exploded drawing of spare parts") 1035 </a> 1036 </li> 1037 <li :data-point="spare.product.position" class="basic_pim-spare" v-for="spare in spareParts"> 1038 <div class="head"> 1039 <a href="#" v-on:click="navigateToSpare($event,spare.product.id)" class="name">{{spare.product.productName}}</a> 1040 <p class="sku">{{spare.product.number}}</p> 1041 </div> 1042 1043 @if (Pageview.IsAllowedToShop()) 1044 { 1045 <div class="foot"> 1046 <async-price class-type="asyncprice-spare" 1047 :product="spare" 1048 :default-price="spare.product.price" 1049 list-price="true" 1050 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1051 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1052 > 1053 </async-price> 1054 <add-to-basket-simple 1055 :product="spare" 1056 :unit-of-measure="'PCS'" 1057 button-class="btn btn-primary" 1058 class="addtobasketsimple-plp" 1059 :price-without-vat="spare.product.price" 1060 language-id="@Pageview.Area.EcomLanguageId" 1061 :only-spare-parts="@(Pageview.User.OnlySpareParts().ToString().ToLower())" 1062 :is-marketing-user="@(Pageview.User.OnlyView().ToString().ToLower())" 1063 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1064 </add-to-basket-simple> 1065 </div> 1066 } 1067 @*<p>DEBUG: {{spare}}</p>*@ 1068 </li> 1069 1070 </ul> 1071 </div> 1072 </template> 1073 </b-collapse> 1074 </template> 1075 </div> 1076 1077 </script> 1078 <script type="text/x-template" id="variant-list-template"> 1079 <ul class="variants" v-if="initialVariant.product.hasVariants" > 1080 <li> 1081 <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"/> 1082 <label :for="'main-' + initialVariant.product.id" :style="getImageOrColor(initialVariant.product.variantImage,initialVariant.product.variantValue)"></label> 1083 </li> 1084 <li v-for="variant in initialVariant.product.simpleVariants"> 1085 <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" /> 1086 <label :for="'color-'+variant.product.id+ '-' + variant.product.variantId" :style="getImageOrColor(variant.product.variantImage,variant.product.variantValue)"> 1087 </label> 1088 </li> 1089 </ul> 1090 </script> 1091 <script type="text/x-template" id="product-template"> 1092 <article itemscope itemtype="https://schema.org/Product" v-if="product.product" v-bind:key="product.product.number"> 1093 <span class="badge"> 1094 1095 <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" /> 1096 1097 </span> 1098 <a :href="product.product.url" itemprop="url"> 1099 <figure style="min-height: 1px;"> 1100 1101 <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;fillcanvas=true&amp;Image=' + SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" 1102 v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1103 <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;fillcanvas=true&amp;Image=/Files/Images/default.jpg'" 1104 v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1105 </figure> 1106 <header> 1107 <h1 itemprop="name">{{product.product.name}}</h1> 1108 <p itemprop="category">{{product.product.shortDescription}}</p> 1109 <product-specification-list-view :product-specifications="product.specifications" 1110 :product-number="product.product.number" 1111 :is-spare-part="product.product.isSparePart"> 1112 </product-specification-list-view> 1113 </header> 1114 </a> 1115 <template v-if="plpClass=='basic_listview-list'"> 1116 <ul class="basic_listview-specs"> 1117 <li v-for="item in SpecificationHelpers.GetPrettyBulletPoints(product.specifications)"> 1118 {{item}} 1119 </li> 1120 </ul> 1121 @*{{ product.Product.LongDescription }}*@ 1122 </template> 1123 1124 @if (!Pageview.IsAllowedToShop()) 1125 { 1126 <footer> 1127 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("create-account")" class="btn btn-outline-secondary btn-sm"> 1128 @Translate("create account", "Create account") 1129 </a> 1130 <buying-component inline-template :selected-product="product" :initial-product="initialProduct"> 1131 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1132 </buying-component> 1133 </footer> 1134 } 1135 else 1136 { 1137 <buying-component inline-template :selected-product="product" :initial-product="initialProduct"> 1138 <footer itemprop="offers" itemscope="" itemtype="https://schema.org/Offer"> 1139 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1140 <async-price class-type="asyncprice-plp" 1141 :product="selectedProduct" 1142 :default-price="selectedProduct.product.defaultPrice.priceWithoutVat" 1143 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1144 list-price="true" 1145 :should-emit-warranties="@((Pageview.IsAllowedToShop()).ToString().ToLower())" 1146 :force-ask-for-price="(!selectedProduct.product.isSparePart && @((Pageview.User.OnlySpareParts()).ToString().ToLower())) || @(Pageview.User.OnlyView().ToString().ToLower())" 1147 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1148 </async-price> 1149 <add-to-basket-simple :product="selectedProduct" 1150 :unit-of-measure="'PCS'" 1151 button-class="btn btn-primary" 1152 class="addtobasketsimple-plp" 1153 :price-without-vat="currentItemPriceWithoutVat" 1154 language-id="@Pageview.Area.EcomLanguageId" 1155 :only-spare-parts="@(Pageview.User.OnlySpareParts().ToString().ToLower())" 1156 :is-marketing-user="@(Pageview.User.OnlyView().ToString().ToLower())" 1157 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1158 </add-to-basket-simple> 1159 </footer> 1160 </buying-component> 1161 } 1162 1163 </article> 1164 1165 </script> 1166 <script type="text/x-template" id="quick-search-template"> 1167 <div class="quicksearch-component"> 1168 <div class="quickorder-form"> 1169 <slot name="right-box"></slot> 1170 <div class="quickorder-box"> 1171 <h2>@Translate("Find products")</h2> 1172 <div class="quickorder-input"> 1173 <label for="quickOrderSearch">@Translate("Product name or number")</label> 1174 <input type="text" 1175 :id="id" 1176 v-model="search" 1177 @@keydown.enter="enter" 1178 @@keydown.down="down" 1179 @@keydown.up="up" 1180 @@input="onSearchInput" 1181 class="form-control form-control-lg" 1182 autocomplete="chrome-off" 1183 placeholder="@Translate("Quick order search term")" 1184 :disabled="disabled"/> 1185 <label for="quickOrderQty">@Translate("Quantity")</label> 1186 <input type="number" 1187 v-model.number="quantity" 1188 @@change="chosenProduct()" 1189 @@keydown.enter="chosenProduct()" 1190 class="form-control form-control-lg" 1191 id="quickOrderQty" 1192 placeholder="0" 1193 autocomplete="chrome-off" 1194 :disabled="disabled"/> 1195 1196 </div> 1197 <ul v-if="filterList.length > 0 && open" class="quickorder-list"> 1198 <li v-for="(product,index) in filterList" 1199 :class="{'active': isSelected(index)}"> 1200 <button @@click="suggestClick(index)"> 1201 {{concatNameAndNumber(product)}} 1202 </button> 1203 1204 </li> 1205 </ul> 1206 1207 <div class="quickorder-product" v-if="currentChosenProduct"> 1208 <p><strong>{{currentChosenProduct.name}}</strong><small>{{currentChosenProduct.shortDescription}}</small></p> 1209 <product-specification-list-view v-if="searchProductSpecs !== null" 1210 :product-specifications="searchProductSpecs" 1211 :product-number="currentChosenProduct.number"> 1212 </product-specification-list-view> 1213 <async-price class-type="quickorder-product-price" 1214 :product="currentChosenProduct" 1215 unit-of-measure="" 1216 :only-price="true" 1217 default-price-without-vat="0" 1218 :force-ask-for-price="(!currentChosenProduct.isSparePart && @(Pageview.User.OnlySpareParts().ToString().ToLower())) || @(Pageview.User.OnlyView().ToString().ToLower())" 1219 @@price="handlePriceUpdate" 1220 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1221 </async-price> 1222 </div> 1223 </div> 1224 </div> 1225 <p v-if="showPriceError">@Translate("QuickOrderZeroPriceError","Can not add product with zero price")</p> 1226 <div class="quickorder-cart" v-if="productsToOrder.length > 0"> 1227 <table class="table table-striped table-flex"> 1228 <thead> 1229 <tr> 1230 <th>@Translate("Product")</th> 1231 <th>@Translate("Specifications")</th> 1232 <th>@Translate("Quantity")</th> 1233 <th class="cell-right">@Translate("Price")</th> 1234 <th>&nbsp;</th> 1235 </tr> 1236 </thead> 1237 <tbody> 1238 <tr v-for="(product,index) in productsToOrder"> 1239 <td class="cell-prod"> 1240 <strong>{{product.name}}</strong> 1241 <small>{{product.shortDescription}}</small> 1242 </td> 1243 <td class="cell-specs"> 1244 <product-specification-list-view :product-specifications="product.productSpecifications" 1245 :product-number="product.number"> 1246 </product-specification-list-view> 1247 </td> 1248 <td class="cell-specs"> 1249 <input class="form-control" type="number" v-model="product.quantity" @@input="updateQuantity()" /> 1250 </td> 1251 <td class="cell-price cell-right"> 1252 <async-price class-type="quickorder-product-price" 1253 :product="quickOrderProductToSimpleProduct(product)" 1254 unit-of-measure="" 1255 :only-price="true" 1256 default-price-without-vat="0" 1257 :should-emit-warranties="true" 1258 @@qo-warranty-update="setWarranty($event,product)" 1259 :force-ask-for-price="(!product.isSparePart && @(Pageview.User.OnlySpareParts().ToString().ToLower())) || @(Pageview.User.OnlyView().ToString().ToLower())" 1260 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1261 1262 </async-price> 1263 </td> 1264 <td class="cell-trash"> 1265 <button @@click="removeOrderline(index)" aria-label="@Translate("Delete product")" class="text-danger"> 1266 <svg> 1267 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#trash-alt"></use> 1268 </svg> 1269 </button> 1270 </td> 1271 </tr> 1272 </tbody> 1273 </table> 1274 <slot name="button"></slot> 1275 1276 </div> 1277 </div> 1278 </script> 1279 <script src="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/scripts/vendors~bundle.min.js")"></script> 1280 <script src="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/scripts/bundle.min.js")"></script> 1281 <script async> 1282 AppStart.VueProvider.init({ 1283 webApiUrl: '@System.Web.Configuration.WebConfigurationManager.AppSettings["WebApiProxyUrl"]', 1284 currencyCode: '@currencyCode', 1285 locale: '@Pageview.Area.Culture', 1286 currencyLeft: false, 1287 currencySpacing: true, 1288 currencySymbol: '@currencyCode', 1289 currencyDecimalSeparator: ',', 1290 currencyGroupSeparator: '.', 1291 currencyDecimalDigits: 2, 1292 dateFormatShort: '@Pageview.Area.Dateformat' 1293 }); 1294 </script> 1295 <script append="replace"></script> 1296 </body> 1297 </html>