To add products to your collection, simply search for products, click 'product details' and from the product page select 'add to my collection'. This can be found either within the product options panel or below the product image.

Search Advanced Close
Error compiling template "Designs/HagsCore/eCom/Productlist/ProductList.cshtml"
Line 121: There is no argument given that corresponds to the required formal parameter 'variantOptions' of 'HagsPages.GetThisPageNavigation(string, string, string, string)'

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 2 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 3 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 4 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 5 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 32 using HagsWeb.Library.Methods.AssetManager; 33 34 #line default 35 #line hidden 36 37 #line 6 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 38 using HagsWeb.Library.BusinessObjects.UsersLists; 39 40 #line default 41 #line hidden 42 43 #line 7 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 44 using HagsWeb.Library.State; 45 46 #line default 47 #line hidden 48 49 50 public class RazorEngine_78cac9a0b8cd4452aaf2b99ba6a3bde0 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 51 52 #line hidden 53 54 public RazorEngine_78cac9a0b8cd4452aaf2b99ba6a3bde0() { 55 } 56 57 public override void Execute() { 58 59 #line 8 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 60 61 Dynamicweb.Frontend.PageView thisPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 62 string pageUrl = GetGlobalValue("Global:Request.Scheme") + "://" + GetGlobalValue("Global:Request.Host") + thisPage.SearchFriendlyUrl; 63 64 //HagsWeb.Library.Methods.Page.HagsPages.CheckThePageProperties(thisPage, GetString("Global:DwAreaSearchPageID")); 65 66 string currentCulture = GetGlobalValue("Global:Area.LongLang"); 67 string currentCountry = currentCulture.Substring(currentCulture.Length - 2); // GB, SE 68 69 List<ProductCollectionItem> productCollectionItems = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection : new List<ProductCollectionItem>(); 70 var siteSection = HagsWeb.Library.Methods.Page.HagsPages.GetSiteSection(thisPage.AreaID, thisPage.ID); 71 72 var grouplink = "/Default.aspx?ID=" + GetValue("Ecom:ProductList:Page.ID") + "&GroupID=" + GetValue("Ecom:ProductList:Page.GroupID"); 73 string ipPriceAllowed = string.Empty; 74 75 if (thisPage.AreaID == 2 || thisPage.AreaID == 7) // Sweden and UK 76 { 77 ipPriceAllowed = HagsWeb.Library.Services.IPService.IPCheck.CountryPriceAllowed(currentCountry); // ZZZ,Hags_GB,Hags_SE and Hags_, Anon_GB, Anon_SE network range checker (Web.config) 78 } 79 80 81 #line default 82 #line hidden 83 WriteLiteral("\r\n\r\n<!--Templates/HagsCore/eCom/ProductList/ProductList.cshtml-->\r\n\r\n<script"); 84 85 WriteLiteral(" type=\"text/javascript\""); 86 87 WriteLiteral(">\r\n\r\n function SortProductsBy(sortcode) {\r\n var Page = \""); 88 89 90 #line 34 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 91 Write(grouplink); 92 93 94 #line default 95 #line hidden 96 WriteLiteral("\";\r\n if (sortcode !== \'Default\') {\r\n SetCookie(\"Request" + 97 "OrderBy\", sortcode, 1);\r\n }\r\n document.location.href = Pag" + 98 "e + \"&SortBy=\" + sortcode;\r\n }\r\n</script>\r\n\r\n<div"); 99 100 WriteLiteral(" class=\"m-heading m-theme-background-yellow m-theme-color-white breadcrumb\""); 101 102 WriteLiteral(">\r\n <div"); 103 104 WriteLiteral(" class=\"l-page\""); 105 106 WriteLiteral(">\r\n <div"); 107 108 WriteLiteral(" class=\"container-fluid\""); 109 110 WriteLiteral(">\r\n"); 111 112 113 #line 45 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 114 115 116 #line default 117 #line hidden 118 119 #line 45 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 120 121 string breadcrumb = HagsWeb.Library.Methods.Page.HagsPages.GetThisPageNavigation(pageUrl, GetGlobalValue("Global:Area.LongLang"), null); 122 123 124 #line default 125 #line hidden 126 WriteLiteral("\r\n <div"); 127 128 WriteLiteral(" class=\"m-menu-primary breadcrumb\""); 129 130 WriteLiteral(">\r\n <nav"); 131 132 WriteLiteral(" class=\"text-centre text-uppercase\""); 133 134 WriteLiteral(">\r\n"); 135 136 WriteLiteral(" "); 137 138 139 #line 50 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 140 Write(breadcrumb); 141 142 143 #line default 144 #line hidden 145 WriteLiteral("\r\n </nav>\r\n </div>\r\n\r\n </div> <!-- container-flu" + 146 "id -->\r\n </div> <!-- l-page -->\r\n</div> <!-- m-heading -->\r\n\r\n <div"); 147 148 WriteLiteral(" class=\"m-sort m-theme-background-lightgrey\""); 149 150 WriteLiteral(">\r\n <div"); 151 152 WriteLiteral(" class=\"l-page\""); 153 154 WriteLiteral(">\r\n <div"); 155 156 WriteLiteral(" class=\"container-fluid\""); 157 158 WriteLiteral(">\r\n <div"); 159 160 WriteLiteral(" class=\"row\""); 161 162 WriteLiteral(">\r\n <div"); 163 164 WriteLiteral(" class=\"col-sm-6\""); 165 166 WriteLiteral(">\r\n "); 167 168 WriteLiteral("\r\n \r\n <form"); 169 170 WriteLiteral(" class=\"form-inline\""); 171 172 WriteLiteral(">\r\n <div"); 173 174 WriteLiteral(" class=\"form-group\""); 175 176 WriteLiteral(">\r\n <div"); 177 178 WriteLiteral(" class=\"btn-group\""); 179 180 WriteLiteral(">\r\n"); 181 182 183 #line 68 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 184 185 186 #line default 187 #line hidden 188 189 #line 68 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 190 if (GetLoop("Products").Count > 1) 191 { 192 193 194 #line default 195 #line hidden 196 WriteLiteral(" <button"); 197 198 WriteLiteral(" type=\"button\""); 199 200 WriteLiteral(" class=\"btn btn-m btn-default dropdown-toggle\""); 201 202 WriteLiteral(" data-toggle=\"dropdown\""); 203 204 WriteLiteral(" aria-expanded=\"false\""); 205 206 WriteLiteral(">\r\n"); 207 208 WriteLiteral(" "); 209 210 211 #line 71 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 212 Write(Translate("SortBy", "Sort by")); 213 214 215 #line default 216 #line hidden 217 WriteLiteral(" <span"); 218 219 WriteLiteral(" class=\"caret\""); 220 221 WriteLiteral("></span>\r\n </button>\r\n"); 222 223 224 #line 73 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 225 226 227 228 #line default 229 #line hidden 230 WriteLiteral(" <ul"); 231 232 WriteLiteral(" class=\"dropdown-menu\""); 233 234 WriteLiteral(" role=\"menu\""); 235 236 WriteLiteral(">\r\n <li><a"); 237 238 WriteLiteral(" onclick=\"SortProductsBy(\'Default\')\""); 239 240 WriteLiteral(">"); 241 242 243 #line 75 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 244 Write(Translate("Default", "Default")); 245 246 247 #line default 248 #line hidden 249 WriteLiteral("</a></li>\r\n <li"); 250 251 WriteLiteral(" class=\"divider\""); 252 253 WriteLiteral("></li>\r\n <li><a"); 254 255 WriteLiteral(" onclick=\"SortProductsBy(\'ProductName&amp;SortOrder=Asc\')\""); 256 257 WriteLiteral(">"); 258 259 260 #line 77 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 261 Write(Translate("NameA-Z", "Name A-Z")); 262 263 264 #line default 265 #line hidden 266 WriteLiteral("</a></li>\r\n <li><a"); 267 268 WriteLiteral(" onclick=\"SortProductsBy(\'ProductName&amp;SortOrder=Desc\')\""); 269 270 WriteLiteral(">"); 271 272 273 #line 78 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 274 Write(Translate("NameZ-A", "Name Z-A")); 275 276 277 #line default 278 #line hidden 279 WriteLiteral("</a></li>\r\n <li"); 280 281 WriteLiteral(" class=\"divider\""); 282 283 WriteLiteral("></li>\r\n <li><a"); 284 285 WriteLiteral(" onclick=\"SortProductsBy(\'AgeRange&amp;SortOrder=Asc\')\""); 286 287 WriteLiteral(">"); 288 289 290 #line 80 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 291 Write(Translate("AgeAscending", "Age Ascending")); 292 293 294 #line default 295 #line hidden 296 WriteLiteral("</a></li>\r\n <li><a"); 297 298 WriteLiteral(" onclick=\"SortProductsBy(\'AgeRange&amp;SortOrder=Desc\')\""); 299 300 WriteLiteral(">"); 301 302 303 #line 81 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 304 Write(Translate("AgeDescending", "Age Descending")); 305 306 307 #line default 308 #line hidden 309 WriteLiteral("</a></li>\r\n <li"); 310 311 WriteLiteral(" class=\"divider\""); 312 313 WriteLiteral("></li>\r\n <li><a"); 314 315 WriteLiteral(" onclick=\"SortProductsBy(\'SafetyArea&amp;SortOrder=Asc\')\""); 316 317 WriteLiteral(">"); 318 319 320 #line 83 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 321 Write(Translate("SafetyAreaAscending", "Safety Area Ascending")); 322 323 324 #line default 325 #line hidden 326 WriteLiteral("</a></li>\r\n <li><a"); 327 328 WriteLiteral(" onclick=\"SortProductsBy(\'SafetyArea&amp;SortOrder=Desc\')\""); 329 330 WriteLiteral(">"); 331 332 333 #line 84 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 334 Write(Translate("SafetyAreaDescending", "Safety Area Descending")); 335 336 337 #line default 338 #line hidden 339 WriteLiteral("</a></li>\r\n <li"); 340 341 WriteLiteral(" class=\"divider\""); 342 343 WriteLiteral("></li>\r\n <li><a"); 344 345 WriteLiteral(" onclick=\"SortProductsBy(\'FallHeight&amp;SortOrder=Asc\')\""); 346 347 WriteLiteral(">"); 348 349 350 #line 86 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 351 Write(Translate("FallHeightAscending", "Fall Height Ascending")); 352 353 354 #line default 355 #line hidden 356 WriteLiteral(" </a></li>\r\n <li><a"); 357 358 WriteLiteral(" onclick=\"SortProductsBy(\'FallHeight&amp;SortOrder=Desc\')\""); 359 360 WriteLiteral(">"); 361 362 363 #line 87 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 364 Write(Translate("FallHeightDescending", "Fall Height Descending")); 365 366 367 #line default 368 #line hidden 369 WriteLiteral(" </a></li>\r\n "); 370 371 WriteLiteral("\r\n "); 372 373 WriteLiteral("\r\n "); 374 375 WriteLiteral("\r\n"); 376 377 378 #line 96 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 379 380 381 #line default 382 #line hidden 383 384 #line 96 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 385 if (((thisPage.AreaID == 2)) && (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_"))) 386 { 387 388 389 #line default 390 #line hidden 391 WriteLiteral(" <li"); 392 393 WriteLiteral(" class=\"divider\""); 394 395 WriteLiteral("></li>\r\n"); 396 397 WriteLiteral(" <li><a"); 398 399 WriteLiteral(" onclick=\"SortProductsBy(\'Price&amp;SortOrder=Asc\')\""); 400 401 WriteLiteral(">"); 402 403 404 #line 99 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 405 Write(Translate("Pricelow-high", "Price low-high")); 406 407 408 #line default 409 #line hidden 410 WriteLiteral("</a></li>\r\n"); 411 412 WriteLiteral(" <li><a"); 413 414 WriteLiteral(" onclick=\"SortProductsBy(\'Price&amp;SortOrder=Desc\')\""); 415 416 WriteLiteral(">"); 417 418 419 #line 100 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 420 Write(Translate("Pricehigh-low", "Price high-low")); 421 422 423 #line default 424 #line hidden 425 WriteLiteral("</a></li>\r\n"); 426 427 428 #line 101 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 429 } 430 431 432 #line default 433 #line hidden 434 WriteLiteral("\r\n </ul>\r\n"); 435 436 437 #line 104 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 438 } 439 440 441 #line default 442 #line hidden 443 WriteLiteral("\r\n </div>\r\n </div>\r\n " + 444 " </form>\r\n </div>\r\n <d" + 445 "iv"); 446 447 WriteLiteral(" class=\"col-sm-6 clearfix\""); 448 449 WriteLiteral(">\r\n\r\n <a"); 450 451 WriteLiteral(" class=\"btn btn-default pull-right text-uppercase\""); 452 453 WriteLiteral(" style=\"margin-left: 12px;\""); 454 455 WriteLiteral(" href=\"#advancedsearch-ui\""); 456 457 WriteLiteral(" data-toggle=\"tab\""); 458 459 WriteLiteral(" role=\"button\""); 460 461 WriteLiteral(">"); 462 463 464 #line 112 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 465 Write(Translate("AdvancedSearch", "Advanced Search")); 466 467 468 #line default 469 #line hidden 470 WriteLiteral("</a>\r\n\r\n <nav"); 471 472 WriteLiteral(" class=\"pull-right\""); 473 474 WriteLiteral(">\r\n <ul"); 475 476 WriteLiteral(" class=\"pagination\""); 477 478 WriteLiteral(" style=\"margin: 0;\""); 479 480 WriteLiteral(">\r\n <li><a"); 481 482 WriteLiteral(" id=\"prevpage\""); 483 484 WriteAttribute("href", Tuple.Create(" href=\"", 7823), Tuple.Create("\"", 7875) 485 486 #line 116 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 487 , Tuple.Create(Tuple.Create("", 7830), Tuple.Create<System.Object, System.Int32>(GetString("Ecom:ProductList.PrevPage.Clean") 488 489 #line default 490 #line hidden 491 , 7830), false) 492 ); 493 494 WriteLiteral(" aria-label=\"Previous\""); 495 496 WriteLiteral(" "); 497 498 499 #line 116 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 500 Write(GetString("Ecom:ProductList.PrevPage")); 501 502 503 #line default 504 #line hidden 505 WriteLiteral("><span"); 506 507 WriteLiteral(" aria-hidden=\"true\""); 508 509 WriteLiteral(">&laquo; "); 510 511 512 #line 116 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 513 Write(Translate("page_Previous", "Previous")); 514 515 516 #line default 517 #line hidden 518 WriteLiteral("</span></a></li>\r\n <li"); 519 520 WriteLiteral(" class=\"active\""); 521 522 WriteLiteral("><a>"); 523 524 525 #line 117 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 526 Write(GetString("Ecom:ProductList.CurrentPage")); 527 528 529 #line default 530 #line hidden 531 WriteLiteral(" "); 532 533 534 #line 117 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 535 Write(Translate("page_Of", "of")); 536 537 538 #line default 539 #line hidden 540 WriteLiteral(" "); 541 542 543 #line 117 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 544 Write(GetString("Ecom:ProductList.TotalPages")); 545 546 547 #line default 548 #line hidden 549 WriteLiteral("</a></li>\r\n <li>\r\n " + 550 " <a"); 551 552 WriteLiteral(" id=\"nextpage\""); 553 554 WriteAttribute("href", Tuple.Create(" href=\"", 8296), Tuple.Create("\"", 8348) 555 556 #line 119 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 557 , Tuple.Create(Tuple.Create("", 8303), Tuple.Create<System.Object, System.Int32>(GetString("Ecom:ProductList.NextPage.Clean") 558 559 #line default 560 #line hidden 561 , 8303), false) 562 ); 563 564 WriteLiteral(" aria-label=\"Next\""); 565 566 WriteLiteral(" "); 567 568 569 #line 119 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 570 Write(GetString("Ecom:ProductList.NextPage")); 571 572 573 #line default 574 #line hidden 575 WriteLiteral("><span"); 576 577 WriteLiteral(" aria-hidden=\"true\""); 578 579 WriteLiteral(">"); 580 581 582 #line 119 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 583 Write(Translate("page_Next", "Next")); 584 585 586 #line default 587 #line hidden 588 WriteLiteral(@" &raquo;</span></a> 589 </li> 590 </ul> 591 </nav> 592 </div> 593 </div> <!-- row --> 594 </div> <!-- container-fluid --> 595 </div> <!-- l-page --> 596 </div> <!-- m-sort --> 597 598 599 "); 600 601 WriteLiteral("\r\n\r\n<div"); 602 603 WriteLiteral(" class=\"m-attractor-group\""); 604 605 WriteLiteral(">\r\n <div"); 606 607 WriteLiteral(" class=\"l-page\""); 608 609 WriteLiteral(">\r\n <div"); 610 611 WriteLiteral(" class=\"container-fluid\""); 612 613 WriteLiteral(">\r\n <div"); 614 615 WriteLiteral(" class=\"l-group-4 row\""); 616 617 WriteLiteral(">\r\n\r\n"); 618 619 620 #line 137 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 621 622 623 #line default 624 #line hidden 625 626 #line 137 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 627 foreach (LoopItem item in GetLoop("Products")) 628 { 629 // Use imageUrl = HagsWeb.Library.Utilities.DWUtilities.GetSingleProductImageUrl(prod); 630 IEnumerable<ProductAsset> productImages = AssetManager_Repository.GetAssets(item.GetString("Ecom:Product.Number"), AssetType.Images, true) 631 .Where(n => n.FileName.StartsWith("medium_")); 632 633 ProductAsset image = productImages.FirstOrDefault(); 634 635 // item.GetLoop("AgeRange.Options") is unreliable in the latest release DW 9.7.2 636 List<string> ageRanges = new List<string>(); 637 if (!string.IsNullOrEmpty(item.GetString("Ecom:Product:Field.AgeRange"))) 638 { 639 ageRanges = HagsWeb.Library.Methods.ProductProperties.ProductAgeRanges.GetAgeRanges(item.GetString("Ecom:Product:Field.AgeRange"), item.GetString("Ecom:Product.LanguageID")); 640 } 641 642 string ageRange = item.GetString("Ecom:Product:Field.AgeRange"); 643 string safetyArea = item.GetString("Ecom:Product:Field.SafetyArea"); 644 string fallHeight = item.GetString("Ecom:Product:Field.FallHeight"); 645 646 //item.GetString("Ecom:Product:Field.AgeRange"); 647 //item.GetString("Ecom:Product:Field.SafetyArea"); 648 //item.GetString("Ecom:Product:Field.FallHeight"); 649 650 bool isProductCollection = productCollectionItems.Any(n => n.ProductNumber == item.GetString("Ecom:Product.Number")); 651 //var s = HagsWeb.Library.Utilities.DWUtilities.GetProductUrl((item.GetString("Ecom:Product.Number"), thisPage.AreaID); 652 //string productLink = thisPage.SearchFriendlyUrl; 653 //var collectionLink = String.Format(productLink + "?ProductID={0}", item.GetString("Ecom:Product.ID")); 654 string collectionData = string.Format("CCAddToMyLists={0}&CCAddToListVariantID={1}&CCAddToListLanguageID={2}#{3}", item.GetString("Ecom:Product.Number"), item.GetString("Ecom:Product.VariantID"), thisPage.Area.GetByKey("areaecomlanguageid"), siteSection); 655 656 657 #line default 658 #line hidden 659 WriteLiteral(" <div"); 660 661 WriteLiteral(" class=\"l-group-content col-xs-12 col-ms-6 col-sm-4 col-md-3\""); 662 663 WriteLiteral(">\r\n <div"); 664 665 WriteLiteral(" class=\"m-attractor\""); 666 667 WriteLiteral(">\r\n <div"); 668 669 WriteLiteral(" class=\"m-attractor-visual\""); 670 671 WriteLiteral(">\r\n"); 672 673 674 #line 168 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 675 676 677 #line default 678 #line hidden 679 680 #line 168 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 681 if (image != null && !String.IsNullOrEmpty(image.uri)) 682 { 683 684 685 #line default 686 #line hidden 687 WriteLiteral(" <a"); 688 689 WriteAttribute("href", Tuple.Create(" href=\"", 11594), Tuple.Create("\"", 11642) 690 691 #line 170 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 692 , Tuple.Create(Tuple.Create("", 11601), Tuple.Create<System.Object, System.Int32>(item.GetValue("Ecom:Product.Link.Clean") 693 694 #line default 695 #line hidden 696 , 11601), false) 697 ); 698 699 WriteLiteral("><img"); 700 701 WriteAttribute("src", Tuple.Create(" src=\"", 11648), Tuple.Create("\"", 11664) 702 703 #line 170 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 704 , Tuple.Create(Tuple.Create("", 11654), Tuple.Create<System.Object, System.Int32>(image.uri 705 706 #line default 707 #line hidden 708 , 11654), false) 709 ); 710 711 WriteLiteral(" class=\"img-responsive m-product-thumb\""); 712 713 WriteLiteral(" /></a>\r\n"); 714 715 716 #line 171 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 717 } 718 else 719 { 720 721 722 #line default 723 #line hidden 724 WriteLiteral(" <a"); 725 726 WriteAttribute("href", Tuple.Create(" href=\"", 11859), Tuple.Create("\"", 11907) 727 728 #line 174 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 729 , Tuple.Create(Tuple.Create("", 11866), Tuple.Create<System.Object, System.Int32>(item.GetValue("Ecom:Product.Link.Clean") 730 731 #line default 732 #line hidden 733 , 11866), false) 734 ); 735 736 WriteLiteral("><img"); 737 738 WriteLiteral(" src=\"/Files/Templates/Designs/HagsCore/res/img/image-not-found.png\""); 739 740 WriteLiteral(" class=\"img-responsive\""); 741 742 WriteLiteral(" /></a>\r\n"); 743 744 745 #line 175 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 746 } 747 748 749 #line default 750 #line hidden 751 WriteLiteral("\r\n </div>\r\n\r\n\r\n "); 752 753 WriteLiteral("\r\n\r\n <div"); 754 755 WriteLiteral(" class=\"m-attractor-info m-attractor-info-product\""); 756 757 WriteLiteral(">\r\n <h3"); 758 759 WriteLiteral(" class=\"m-theme-after-yellow m-theme-border-yellow\""); 760 761 WriteLiteral("><a"); 762 763 WriteAttribute("href", Tuple.Create(" href=\"", 12752), Tuple.Create("\"", 12801) 764 765 #line 189 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 766 , Tuple.Create(Tuple.Create("", 12759), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product.Link.Clean") 767 768 #line default 769 #line hidden 770 , 12759), false) 771 ); 772 773 WriteLiteral(">"); 774 775 776 #line 189 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 777 Write(item.GetString("Ecom:Product.Name")); 778 779 780 #line default 781 #line hidden 782 WriteLiteral("</a></h3>\r\n "); 783 784 WriteLiteral("\r\n <!--<p><strong>"); 785 786 787 #line 191 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 788 Write(Translate("ProductNumber", "Product Number")); 789 790 791 #line default 792 #line hidden 793 WriteLiteral(":</strong> "); 794 795 796 #line 191 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 797 Write(item.GetValue("Ecom:Product.Number")); 798 799 800 #line default 801 #line hidden 802 WriteLiteral("</p>-->\r\n "); 803 804 WriteLiteral("\r\n"); 805 806 807 #line 193 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 808 809 810 #line default 811 #line hidden 812 813 #line 193 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 814 if (thisPage.Area.ID == 2 && (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_"))) /*Sweden - would like no ,00 in dwFormattedPrice*/ 815 { 816 string krPrice = item.GetInteger("Ecom:Product.DBPrice") == 0 ? Translate("RequestAQuote", "Kontakta oss") : item.GetString("Ecom:Product.Price.PriceFormatted").Replace(",00", ""); 817 818 819 #line default 820 #line hidden 821 WriteLiteral(" <p><strong>"); 822 823 824 #line 196 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 825 Write(Translate("Price", "Price")); 826 827 828 #line default 829 #line hidden 830 WriteLiteral(":</strong> "); 831 832 833 #line 196 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 834 Write(krPrice); 835 836 837 #line default 838 #line hidden 839 WriteLiteral("</p>\r\n"); 840 841 842 #line 197 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 843 } 844 845 846 #line default 847 #line hidden 848 WriteLiteral(" "); 849 850 851 #line 198 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 852 if (thisPage.Area.ID == 7) /*UK has special pricing and special product number*/ 853 { 854 if (!string.IsNullOrEmpty(item.GetString("Ecom:Product:Field.UKProductNumber"))) 855 { 856 857 858 #line default 859 #line hidden 860 WriteLiteral(" <p><strong>"); 861 862 863 #line 202 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 864 Write(Translate("ProductNumber", "Product Number")); 865 866 867 #line default 868 #line hidden 869 WriteLiteral(":</strong> "); 870 871 872 #line 202 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 873 Write(item.GetValue("Ecom:Product:Field.UKProductNumber")); 874 875 876 #line default 877 #line hidden 878 WriteLiteral("</p>\r\n"); 879 880 881 #line 203 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 882 } 883 else if (!string.IsNullOrEmpty(item.GetString("Ecom:Product.Number"))) 884 { 885 886 887 #line default 888 #line hidden 889 WriteLiteral(" <p><strong>"); 890 891 892 #line 206 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 893 Write(Translate("ProductNumber", "Product Number")); 894 895 896 #line default 897 #line hidden 898 WriteLiteral(":</strong> "); 899 900 901 #line 206 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 902 Write(item.GetValue("Ecom:Product.Number")); 903 904 905 #line default 906 #line hidden 907 WriteLiteral("</p>\r\n"); 908 909 910 #line 207 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 911 } 912 913 914 #line default 915 #line hidden 916 917 #line 208 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 918 919 920 921 #line default 922 #line hidden 923 924 #line 213 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 925 926 927 } 928 929 930 #line default 931 #line hidden 932 WriteLiteral("\r\n\r\n <div"); 933 934 WriteLiteral(" class=\"m-decal-container\""); 935 936 WriteLiteral(">\r\n\r\n <div"); 937 938 WriteLiteral(" class=\"m-decal\""); 939 940 WriteLiteral(">\r\n <ul"); 941 942 WriteLiteral(" class=\"list-inline\""); 943 944 WriteLiteral(">\r\n"); 945 946 947 #line 222 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 948 949 950 #line default 951 #line hidden 952 953 #line 222 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 954 if (!String.IsNullOrWhiteSpace(item.GetString("Ecom:Product:Field.AgeRange")) && ageRanges.Any()) 955 { 956 foreach (var range in ageRanges) 957 { 958 if (range.Trim() != "-") 959 { 960 961 962 #line default 963 #line hidden 964 WriteLiteral(" <li"); 965 966 WriteLiteral(" class=\"decal\""); 967 968 WriteLiteral(">\r\n <div"); 969 970 WriteLiteral(" class=\"decal-header\""); 971 972 WriteLiteral(" data-toggle=\"tooltip\""); 973 974 WriteLiteral(" data-placement=\"top\""); 975 976 WriteAttribute("title", Tuple.Create(" title=\"", 16196), Tuple.Create("\"", 16262) 977 978 #line 229 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 979 , Tuple.Create(Tuple.Create("", 16204), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.AgeRange.Name") 980 981 #line default 982 #line hidden 983 , 16204), false) 984 985 #line 229 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 986 , Tuple.Create(Tuple.Create(" ", 16255), Tuple.Create<System.Object, System.Int32>(range 987 988 #line default 989 #line hidden 990 , 16256), false) 991 ); 992 993 WriteLiteral(">\r\n <img"); 994 995 WriteLiteral(" src=\"Files/Templates/Designs/HagsCore/res/img/decals/agerange.png\""); 996 997 WriteAttribute("alt", Tuple.Create(" alt=\"", 16401), Tuple.Create("\"", 16465) 998 999 #line 230 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1000 , Tuple.Create(Tuple.Create("", 16407), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.AgeRange.Name") 1001 1002 #line default 1003 #line hidden 1004 , 16407), false) 1005 1006 #line 230 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1007 , Tuple.Create(Tuple.Create(" ", 16458), Tuple.Create<System.Object, System.Int32>(range 1008 1009 #line default 1010 #line hidden 1011 , 16459), false) 1012 ); 1013 1014 WriteLiteral(" />\r\n <span"); 1015 1016 WriteLiteral(" class=\"decalvalue\""); 1017 1018 WriteLiteral(">"); 1019 1020 1021 #line 231 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1022 Write(range); 1023 1024 1025 #line default 1026 #line hidden 1027 WriteLiteral("</span>\r\n </div>\r\n " + 1028 " </li>\r\n"); 1029 1030 1031 #line 234 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1032 } 1033 } 1034 } 1035 1036 1037 #line default 1038 #line hidden 1039 WriteLiteral("\r\n"); 1040 1041 1042 #line 238 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1043 1044 1045 #line default 1046 #line hidden 1047 1048 #line 238 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1049 if (item.GetDouble("Ecom:Product:Field.AssemblyTime.Value.Raw") > 0) 1050 { 1051 1052 1053 #line default 1054 #line hidden 1055 WriteLiteral(" <li"); 1056 1057 WriteLiteral(" class=\"decal\""); 1058 1059 WriteLiteral(">\r\n <div"); 1060 1061 WriteLiteral(" class=\"decal-header\""); 1062 1063 WriteLiteral(" data-toggle=\"tooltip\""); 1064 1065 WriteLiteral(" data-placement=\"top\""); 1066 1067 WriteAttribute("title", Tuple.Create(" title=\"", 17211), Tuple.Create("\"", 17353) 1068 1069 #line 241 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1070 , Tuple.Create(Tuple.Create("", 17219), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.AssemblyTime.Name") 1071 1072 #line default 1073 #line hidden 1074 , 17219), false) 1075 1076 #line 241 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1077 , Tuple.Create(Tuple.Create(" ", 17274), Tuple.Create<System.Object, System.Int32>(Math.Ceiling(item.GetDouble("Ecom:Product:Field.AssemblyTime.Value.Raw")) 1078 1079 #line default 1080 #line hidden 1081 , 17275), false) 1082 , Tuple.Create(Tuple.Create(" ", 17349), Tuple.Create("hrs", 17350), true) 1083 ); 1084 1085 WriteLiteral(">\r\n\r\n <img"); 1086 1087 WriteLiteral(" src=\"Files/Templates/Designs/HagsCore/res/img/decals/time.png\""); 1088 1089 WriteAttribute("alt", Tuple.Create(" alt=\"", 17482), Tuple.Create("\"", 17622) 1090 1091 #line 243 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1092 , Tuple.Create(Tuple.Create("", 17488), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.AssemblyTime.Name") 1093 1094 #line default 1095 #line hidden 1096 , 17488), false) 1097 1098 #line 243 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1099 , Tuple.Create(Tuple.Create(" ", 17543), Tuple.Create<System.Object, System.Int32>(Math.Ceiling(item.GetDouble("Ecom:Product:Field.AssemblyTime.Value.Raw")) 1100 1101 #line default 1102 #line hidden 1103 , 17544), false) 1104 , Tuple.Create(Tuple.Create(" ", 17618), Tuple.Create("hrs", 17619), true) 1105 ); 1106 1107 WriteLiteral(" />\r\n\r\n <span"); 1108 1109 WriteLiteral(" class=\"decalvalue\""); 1110 1111 WriteLiteral(">"); 1112 1113 1114 #line 245 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1115 Write(Math.Ceiling(item.GetDouble("Ecom:Product:Field.AssemblyTime.Value.Raw"))); 1116 1117 1118 #line default 1119 #line hidden 1120 WriteLiteral("</span>\r\n\r\n </div>\r\n " + 1121 " </li>\r\n"); 1122 1123 1124 #line 249 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1125 } 1126 1127 1128 #line default 1129 #line hidden 1130 WriteLiteral("\r\n"); 1131 1132 1133 #line 251 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1134 1135 1136 #line default 1137 #line hidden 1138 1139 #line 251 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1140 if (item.GetDouble("Ecom:Product:Field.FallHeight.Value.Raw") > 0) 1141 { 1142 1143 1144 #line default 1145 #line hidden 1146 WriteLiteral(" <li"); 1147 1148 WriteLiteral(" class=\"decal\""); 1149 1150 WriteLiteral(">\r\n <div"); 1151 1152 WriteLiteral(" class=\"decal-header\""); 1153 1154 WriteLiteral(" data-toggle=\"tooltip\""); 1155 1156 WriteLiteral(" data-placement=\"top\""); 1157 1158 WriteAttribute("title", Tuple.Create(" title=\"", 18308), Tuple.Create("\"", 18428) 1159 1160 #line 254 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1161 , Tuple.Create(Tuple.Create("", 18316), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.FallHeight.Name") 1162 1163 #line default 1164 #line hidden 1165 , 18316), false) 1166 1167 #line 254 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1168 , Tuple.Create(Tuple.Create(" ", 18369), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.FallHeight.Value.Raw") 1169 1170 #line default 1171 #line hidden 1172 , 18370), false) 1173 ); 1174 1175 WriteLiteral(">\r\n\r\n <img"); 1176 1177 WriteLiteral(" src=\"Files/Templates/Designs/HagsCore/res/img/decals/fall.png\""); 1178 1179 WriteAttribute("alt", Tuple.Create(" alt=\"", 18557), Tuple.Create("\"", 18675) 1180 1181 #line 256 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1182 , Tuple.Create(Tuple.Create("", 18563), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.FallHeight.Name") 1183 1184 #line default 1185 #line hidden 1186 , 18563), false) 1187 1188 #line 256 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1189 , Tuple.Create(Tuple.Create(" ", 18616), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.FallHeight.Value.Raw") 1190 1191 #line default 1192 #line hidden 1193 , 18617), false) 1194 ); 1195 1196 WriteLiteral(" />\r\n\r\n <span"); 1197 1198 WriteLiteral(" class=\"decalvalue\""); 1199 1200 WriteLiteral(">"); 1201 1202 1203 #line 258 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1204 Write(item.GetString("Ecom:Product:Field.FallHeight.Value.Raw")); 1205 1206 1207 #line default 1208 #line hidden 1209 WriteLiteral("</span>\r\n\r\n </div>\r\n " + 1210 " </li>\r\n"); 1211 1212 1213 #line 262 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1214 } 1215 1216 1217 #line default 1218 #line hidden 1219 WriteLiteral("\r\n"); 1220 1221 1222 #line 264 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1223 1224 1225 #line default 1226 #line hidden 1227 1228 #line 264 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1229 if (item.GetDouble("Ecom:Product:Field.SafetyArea.Value.Raw") > 0) 1230 { 1231 1232 1233 #line default 1234 #line hidden 1235 WriteLiteral(" <li"); 1236 1237 WriteLiteral(" class=\"decal\""); 1238 1239 WriteLiteral(">\r\n <div"); 1240 1241 WriteLiteral(" class=\"decal-header\""); 1242 1243 WriteLiteral(" data-toggle=\"tooltip\""); 1244 1245 WriteLiteral(" data-placement=\"top\""); 1246 1247 WriteAttribute("title", Tuple.Create(" title=\"", 19345), Tuple.Create("\"", 19469) 1248 1249 #line 267 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1250 , Tuple.Create(Tuple.Create("", 19353), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.SafetyArea.Name") 1251 1252 #line default 1253 #line hidden 1254 , 19353), false) 1255 1256 #line 267 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1257 , Tuple.Create(Tuple.Create(" ", 19406), Tuple.Create<System.Object, System.Int32>(item.GetDouble("Ecom:Product:Field.SafetyArea.Value") 1258 1259 #line default 1260 #line hidden 1261 , 19408), false) 1262 , Tuple.Create(Tuple.Create("", 19462), Tuple.Create("m&#178;", 19462), true) 1263 ); 1264 1265 WriteLiteral(">\r\n\r\n <img"); 1266 1267 WriteLiteral(" src=\"Files/Templates/Designs/HagsCore/res/img/decals/area.png\""); 1268 1269 WriteAttribute("alt", Tuple.Create(" alt=\"", 19598), Tuple.Create("\"", 19720) 1270 1271 #line 269 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1272 , Tuple.Create(Tuple.Create("", 19604), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product:Field.SafetyArea.Name") 1273 1274 #line default 1275 #line hidden 1276 , 19604), false) 1277 1278 #line 269 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1279 , Tuple.Create(Tuple.Create(" ", 19657), Tuple.Create<System.Object, System.Int32>(item.GetDouble("Ecom:Product:Field.SafetyArea.Value") 1280 1281 #line default 1282 #line hidden 1283 , 19659), false) 1284 , Tuple.Create(Tuple.Create("", 19713), Tuple.Create("m&#178;", 19713), true) 1285 ); 1286 1287 WriteLiteral(" />\r\n\r\n <span"); 1288 1289 WriteLiteral(" class=\"decalvalue\""); 1290 1291 WriteLiteral(">"); 1292 1293 1294 #line 271 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1295 Write(item.GetDouble("Ecom:Product:Field.SafetyArea.Value")); 1296 1297 1298 #line default 1299 #line hidden 1300 WriteLiteral("</span>\r\n\r\n </div>\r\n " + 1301 " </li>\r\n"); 1302 1303 1304 #line 275 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1305 } 1306 1307 1308 #line default 1309 #line hidden 1310 WriteLiteral(" </ul>\r\n " + 1311 " </div> <!-- m-decals -->\r\n\r\n </div>\r\n\r\n " + 1312 " <a"); 1313 1314 WriteLiteral(" class=\"m-btn-xs-more btn btn-default btn-xs text-uppercase\""); 1315 1316 WriteAttribute("href", Tuple.Create(" href=\"", 20283), Tuple.Create("\"", 20332) 1317 1318 #line 281 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1319 , Tuple.Create(Tuple.Create("", 20290), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product.Link.Clean") 1320 1321 #line default 1322 #line hidden 1323 , 20290), false) 1324 ); 1325 1326 WriteLiteral(" role=\"button\""); 1327 1328 WriteLiteral(">"); 1329 1330 1331 #line 281 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1332 Write(Translate("ProductDetails", "Product Details")); 1333 1334 1335 #line default 1336 #line hidden 1337 WriteLiteral("</a>\r\n\r\n "); 1338 1339 WriteLiteral("\r\n\r\n"); 1340 1341 1342 #line 286 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1343 1344 1345 #line default 1346 #line hidden 1347 1348 #line 286 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1349 if (GetBoolean("Ecom:CatalogPublishing.UseCatalogPublishing")) 1350 { 1351 1352 1353 #line default 1354 #line hidden 1355 WriteLiteral(" <a"); 1356 1357 WriteLiteral(" class=\"hide\""); 1358 1359 WriteAttribute("href", Tuple.Create(" href=\"", 20922), Tuple.Create("\"", 21071) 1360 , Tuple.Create(Tuple.Create("", 20929), Tuple.Create("/default.aspx?id=", 20929), true) 1361 1362 #line 288 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1363 , Tuple.Create(Tuple.Create("", 20946), Tuple.Create<System.Object, System.Int32>(GetString("Ecom:ProductList:Page.ID") 1364 1365 #line default 1366 #line hidden 1367 , 20946), false) 1368 , Tuple.Create(Tuple.Create("", 20984), Tuple.Create("&amp;productid=", 20984), true) 1369 1370 #line 288 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1371 , Tuple.Create(Tuple.Create("", 20999), Tuple.Create<System.Object, System.Int32>(item.GetString("Ecom:Product.ID") 1372 1373 #line default 1374 #line hidden 1375 , 20999), false) 1376 , Tuple.Create(Tuple.Create("", 21033), Tuple.Create("&amp;CatalogPublishingcmd=addtocatalog", 21033), true) 1377 ); 1378 1379 WriteLiteral(">Add to catalog</a>\r\n"); 1380 1381 1382 #line 289 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1383 } 1384 1385 1386 #line default 1387 #line hidden 1388 WriteLiteral("\r\n\r\n\r\n"); 1389 1390 1391 #line 293 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1392 1393 1394 #line default 1395 #line hidden 1396 1397 #line 293 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1398 if (GetBoolean("Ecom:CatalogPublishing.UseCatalogPublishing")) 1399 { 1400 1401 1402 #line default 1403 #line hidden 1404 WriteLiteral(" <div"); 1405 1406 WriteLiteral(" class=\"hide\""); 1407 1408 WriteLiteral(" style=\"clear: both; width: 100%;padding-bottom:5px; text-align: right;\""); 1409 1410 WriteLiteral(">\r\n <a"); 1411 1412 WriteLiteral(" href=\"/default.aspx?CatalogPublishingcmd=preview\""); 1413 1414 WriteLiteral(">Catalog Publishing</a>\r\n </div>\r\n"); 1415 1416 1417 #line 298 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1418 } 1419 1420 1421 #line default 1422 #line hidden 1423 WriteLiteral("\r\n </div> <!-- attractor-info -->\r\n " + 1424 " <!--<div class=\"m-attractor-options\">\r\n\r\n " + 1425 " <ul class=\"m-icon-links list-unstyled\">\r\n\r\n"); 1426 1427 1428 #line 305 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1429 1430 1431 #line default 1432 #line hidden 1433 1434 #line 305 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1435 if (isProductCollection) 1436 { 1437 1438 1439 #line default 1440 #line hidden 1441 WriteLiteral(" <li><a"); 1442 1443 WriteLiteral(" href=\"#\""); 1444 1445 WriteLiteral(" class=\"clearfix\""); 1446 1447 WriteLiteral(" data-removeproductlist=\""); 1448 1449 1450 #line 307 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1451 Write(item.GetString("Ecom:Product.Number")); 1452 1453 1454 #line default 1455 #line hidden 1456 WriteLiteral("\""); 1457 1458 WriteLiteral(" data-addproductlist=\"\""); 1459 1460 WriteLiteral("><img"); 1461 1462 WriteLiteral(" src=\"/Files/Templates/Designs/HagsCore/res/img/icons/plus.svg\""); 1463 1464 WriteLiteral(" data-nosvg=\"/Files/Templates/Designs/HagsCore/res/img/icons/plus.png\""); 1465 1466 WriteLiteral(" class=\"m-icon pull-left\""); 1467 1468 WriteLiteral(" /><span>"); 1469 1470 1471 #line 307 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1472 Write(Translate("RemoveFromCollection", "Remove from my Collection")); 1473 1474 1475 #line default 1476 #line hidden 1477 WriteLiteral("</span></a></li>\r\n"); 1478 1479 1480 #line 308 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1481 } 1482 else 1483 { 1484 1485 1486 #line default 1487 #line hidden 1488 WriteLiteral(" <li><a"); 1489 1490 WriteLiteral(" href=\"#\""); 1491 1492 WriteLiteral(" class=\"clearfix\""); 1493 1494 WriteLiteral(" data-addproductlist=\""); 1495 1496 1497 #line 311 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1498 Write(collectionData); 1499 1500 1501 #line default 1502 #line hidden 1503 WriteLiteral("\""); 1504 1505 WriteLiteral(" data-removeproductlist=\"\""); 1506 1507 WriteLiteral("><img"); 1508 1509 WriteLiteral(" src=\"/Files/Templates/Designs/HagsCore/res/img/icons/plus.svg\""); 1510 1511 WriteLiteral(" data-nosvg=\"/Files/Templates/Designs/HagsCore/res/img/icons/plus.png\""); 1512 1513 WriteLiteral(" class=\"m-icon pull-left\""); 1514 1515 WriteLiteral(" /><span>"); 1516 1517 1518 #line 311 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1519 Write(Translate("AddToCollection", "Add to my collection")); 1520 1521 1522 #line default 1523 #line hidden 1524 WriteLiteral("</span></a></li>\r\n"); 1525 1526 1527 #line 312 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1528 } 1529 1530 1531 #line default 1532 #line hidden 1533 WriteLiteral("\r\n </ul>\r\n </div> <!-- " + 1534 "m-attractor-options -->\r\n </div> <!-- attractor -->\r\n " + 1535 " </div>\r\n"); 1536 1537 1538 #line 318 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1539 } 1540 1541 1542 #line default 1543 #line hidden 1544 WriteLiteral(" </div> <!-- row -->\r\n </div> <!-- container-fluid -->\r\n </d" + 1545 "iv> <!-- l-page -->\r\n</div> <!-- m-attractor-group -->\r\n\r\n\r\n <div"); 1546 1547 WriteLiteral(" class=\"m-sort bottom m-theme-background-lightgrey\""); 1548 1549 WriteLiteral(">\r\n <div"); 1550 1551 WriteLiteral(" class=\"l-page\""); 1552 1553 WriteLiteral(">\r\n <div"); 1554 1555 WriteLiteral(" class=\"container-fluid\""); 1556 1557 WriteLiteral(">\r\n <div"); 1558 1559 WriteLiteral(" class=\"row\""); 1560 1561 WriteLiteral(">\r\n <div"); 1562 1563 WriteLiteral(" class=\"col-sm-6\""); 1564 1565 WriteLiteral(">\r\n\r\n <form"); 1566 1567 WriteLiteral(" class=\"form-inline\""); 1568 1569 WriteLiteral(">\r\n <div"); 1570 1571 WriteLiteral(" class=\"form-group\""); 1572 1573 WriteLiteral(">\r\n <div"); 1574 1575 WriteLiteral(" class=\"btn-group\""); 1576 1577 WriteLiteral(">\r\n"); 1578 1579 1580 #line 334 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1581 1582 1583 #line default 1584 #line hidden 1585 1586 #line 334 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1587 if (GetLoop("Products").Count() > 1) 1588 { 1589 1590 1591 #line default 1592 #line hidden 1593 WriteLiteral(" <button"); 1594 1595 WriteLiteral(" type=\"button\""); 1596 1597 WriteLiteral(" class=\"btn btn-m btn-default dropdown-toggle\""); 1598 1599 WriteLiteral(" data-toggle=\"dropdown\""); 1600 1601 WriteLiteral(" aria-expanded=\"false\""); 1602 1603 WriteLiteral(">\r\n"); 1604 1605 WriteLiteral(" "); 1606 1607 1608 #line 337 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1609 Write(Translate("SortBy", "Sort by")); 1610 1611 1612 #line default 1613 #line hidden 1614 WriteLiteral(" <span"); 1615 1616 WriteLiteral(" class=\"caret\""); 1617 1618 WriteLiteral("></span>\r\n </button>\r\n"); 1619 1620 1621 #line 339 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1622 1623 1624 1625 #line default 1626 #line hidden 1627 WriteLiteral(" <ul"); 1628 1629 WriteLiteral(" class=\"dropdown-menu\""); 1630 1631 WriteLiteral(" role=\"menu\""); 1632 1633 WriteLiteral(">\r\n <li><a"); 1634 1635 WriteLiteral(" onclick=\"SortProductsBy(\'Default\')\""); 1636 1637 WriteLiteral(">Default</a></li>\r\n <li"); 1638 1639 WriteLiteral(" class=\"divider\""); 1640 1641 WriteLiteral("></li>\r\n <li><a"); 1642 1643 WriteLiteral(" onclick=\"SortProductsBy(\'ProductName&amp;SortOrder=Asc\')\""); 1644 1645 WriteLiteral(">"); 1646 1647 1648 #line 343 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1649 Write(Translate("NameA-Z", "Name A-Z")); 1650 1651 1652 #line default 1653 #line hidden 1654 WriteLiteral("</a></li>\r\n <li><a"); 1655 1656 WriteLiteral(" onclick=\"SortProductsBy(\'ProductName&amp;SortOrder=Desc\')\""); 1657 1658 WriteLiteral(">"); 1659 1660 1661 #line 344 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1662 Write(Translate("NameZ-A", "Name Z-A")); 1663 1664 1665 #line default 1666 #line hidden 1667 WriteLiteral("</a></li>\r\n <li"); 1668 1669 WriteLiteral(" class=\"divider\""); 1670 1671 WriteLiteral("></li>\r\n <li><a"); 1672 1673 WriteLiteral(" onclick=\"SortProductsBy(\'AgeRange&amp;SortOrder=Asc\')\""); 1674 1675 WriteLiteral(">"); 1676 1677 1678 #line 346 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1679 Write(Translate("AgeAscending", "Age Ascending")); 1680 1681 1682 #line default 1683 #line hidden 1684 WriteLiteral("</a></li>\r\n <li><a"); 1685 1686 WriteLiteral(" onclick=\"SortProductsBy(\'AgeRange&amp;SortOrder=Desc\')\""); 1687 1688 WriteLiteral(">"); 1689 1690 1691 #line 347 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1692 Write(Translate("AgeDescending", "Age Descending")); 1693 1694 1695 #line default 1696 #line hidden 1697 WriteLiteral("</a></li>\r\n <li"); 1698 1699 WriteLiteral(" class=\"divider\""); 1700 1701 WriteLiteral("></li>\r\n <li><a"); 1702 1703 WriteLiteral(" onclick=\"SortProductsBy(\'SafetyArea&amp;SortOrder=Asc\')\""); 1704 1705 WriteLiteral(">"); 1706 1707 1708 #line 349 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1709 Write(Translate("SafetyAreaAscending", "Safety Area Ascending")); 1710 1711 1712 #line default 1713 #line hidden 1714 WriteLiteral("</a></li>\r\n <li><a"); 1715 1716 WriteLiteral(" onclick=\"SortProductsBy(\'SafetyArea&amp;SortOrder=Desc\')\""); 1717 1718 WriteLiteral(">"); 1719 1720 1721 #line 350 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1722 Write(Translate("SafetyAreaDescending", "Safety Area Descending")); 1723 1724 1725 #line default 1726 #line hidden 1727 WriteLiteral("</a></li>\r\n <li"); 1728 1729 WriteLiteral(" class=\"divider\""); 1730 1731 WriteLiteral("></li>\r\n <li><a"); 1732 1733 WriteLiteral(" onclick=\"SortProductsBy(\'FallHeight&amp;SortOrder=Asc\')\""); 1734 1735 WriteLiteral(">"); 1736 1737 1738 #line 352 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1739 Write(Translate("FallHeightAscending", "Fall Height Ascending")); 1740 1741 1742 #line default 1743 #line hidden 1744 WriteLiteral(" </a></li>\r\n <li><a"); 1745 1746 WriteLiteral(" onclick=\"SortProductsBy(\'FallHeight&amp;SortOrder=Desc\')\""); 1747 1748 WriteLiteral(">"); 1749 1750 1751 #line 353 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1752 Write(Translate("FallHeightDescending", "Fall Height Descending")); 1753 1754 1755 #line default 1756 #line hidden 1757 WriteLiteral(" </a></li>\r\n "); 1758 1759 WriteLiteral("\r\n "); 1760 1761 WriteLiteral("\r\n "); 1762 1763 WriteLiteral("\r\n"); 1764 1765 1766 #line 362 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1767 1768 1769 #line default 1770 #line hidden 1771 1772 #line 362 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1773 if (((thisPage.AreaID == 2)) && (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_"))) 1774 { 1775 1776 1777 #line default 1778 #line hidden 1779 WriteLiteral(" <li"); 1780 1781 WriteLiteral(" class=\"divider\""); 1782 1783 WriteLiteral("></li>\r\n"); 1784 1785 WriteLiteral(" <li><a"); 1786 1787 WriteLiteral(" onclick=\"SortProductsBy(\'Price&amp;SortOrder=Asc\')\""); 1788 1789 WriteLiteral(">"); 1790 1791 1792 #line 365 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1793 Write(Translate("Pricelow-high", "Price low-high")); 1794 1795 1796 #line default 1797 #line hidden 1798 WriteLiteral("</a></li>\r\n"); 1799 1800 WriteLiteral(" <li><a"); 1801 1802 WriteLiteral(" onclick=\"SortProductsBy(\'Price&amp;SortOrder=Desc\')\""); 1803 1804 WriteLiteral(">"); 1805 1806 1807 #line 366 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1808 Write(Translate("Pricehigh-low", "Price high-low")); 1809 1810 1811 #line default 1812 #line hidden 1813 WriteLiteral("</a></li>\r\n"); 1814 1815 1816 #line 367 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1817 } 1818 1819 1820 #line default 1821 #line hidden 1822 WriteLiteral("\r\n </ul>\r\n"); 1823 1824 1825 #line 370 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1826 } 1827 1828 1829 #line default 1830 #line hidden 1831 WriteLiteral("\r\n\r\n </div>\r\n </div>\r\n " + 1832 " </form>\r\n </div>\r\n " + 1833 "<div"); 1834 1835 WriteLiteral(" class=\"col-sm-6 clearfix\""); 1836 1837 WriteLiteral(">\r\n\r\n <!--<a class=\"btn btn-default pull-right text-upperc" + 1838 "ase\" style=\"margin-left: 12px;\" href=\"#advancedsearch-ui\" data-toggle=\"tab\" role" + 1839 "=\"button\">"); 1840 1841 1842 #line 379 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1843 Write(Translate("AdvancedSearch", "Advanced Search")); 1844 1845 1846 #line default 1847 #line hidden 1848 WriteLiteral("</a>-->\r\n\r\n <nav"); 1849 1850 WriteLiteral(" class=\"pull-right\""); 1851 1852 WriteLiteral(">\r\n <ul"); 1853 1854 WriteLiteral(" class=\"pagination\""); 1855 1856 WriteLiteral(" style=\"margin: 0;\""); 1857 1858 WriteLiteral(">\r\n <li><a"); 1859 1860 WriteLiteral(" id=\"prevpage\""); 1861 1862 WriteAttribute("href", Tuple.Create(" href=\"", 28069), Tuple.Create("\"", 28121) 1863 1864 #line 383 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1865 , Tuple.Create(Tuple.Create("", 28076), Tuple.Create<System.Object, System.Int32>(GetString("Ecom:ProductList.PrevPage.Clean") 1866 1867 #line default 1868 #line hidden 1869 , 28076), false) 1870 ); 1871 1872 WriteLiteral(" aria-label=\"Previous\""); 1873 1874 WriteLiteral(" "); 1875 1876 1877 #line 383 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1878 Write(GetString("Ecom:ProductList.PrevPage")); 1879 1880 1881 #line default 1882 #line hidden 1883 WriteLiteral("><span"); 1884 1885 WriteLiteral(" aria-hidden=\"true\""); 1886 1887 WriteLiteral(">&laquo; "); 1888 1889 1890 #line 383 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1891 Write(Translate("page_Previous", "Previous")); 1892 1893 1894 #line default 1895 #line hidden 1896 WriteLiteral("</span></a></li>\r\n <li"); 1897 1898 WriteLiteral(" class=\"active\""); 1899 1900 WriteLiteral("><a>"); 1901 1902 1903 #line 384 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1904 Write(GetString("Ecom:ProductList.CurrentPage")); 1905 1906 1907 #line default 1908 #line hidden 1909 WriteLiteral(" "); 1910 1911 1912 #line 384 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1913 Write(Translate("page_Of", "of")); 1914 1915 1916 #line default 1917 #line hidden 1918 WriteLiteral(" "); 1919 1920 1921 #line 384 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1922 Write(GetString("Ecom:ProductList.TotalPages")); 1923 1924 1925 #line default 1926 #line hidden 1927 WriteLiteral("</a></li>\r\n <li>\r\n " + 1928 " <a"); 1929 1930 WriteLiteral(" id=\"nextpage\""); 1931 1932 WriteAttribute("href", Tuple.Create(" href=\"", 28542), Tuple.Create("\"", 28594) 1933 1934 #line 386 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1935 , Tuple.Create(Tuple.Create("", 28549), Tuple.Create<System.Object, System.Int32>(GetString("Ecom:ProductList.NextPage.Clean") 1936 1937 #line default 1938 #line hidden 1939 , 28549), false) 1940 ); 1941 1942 WriteLiteral(" aria-label=\"Next\""); 1943 1944 WriteLiteral(" "); 1945 1946 1947 #line 386 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1948 Write(GetString("Ecom:ProductList.NextPage")); 1949 1950 1951 #line default 1952 #line hidden 1953 WriteLiteral("><span"); 1954 1955 WriteLiteral(" aria-hidden=\"true\""); 1956 1957 WriteLiteral(">"); 1958 1959 1960 #line 386 "C:\Projects\Hags_Dw9\Files\Templates\Designs\HagsCore\eCom\Productlist\ProductList.cshtml" 1961 Write(Translate("page_Next", "Next")); 1962 1963 1964 #line default 1965 #line hidden 1966 WriteLiteral(@" &raquo;</span></a> 1967 </li> 1968 </ul> 1969 </nav> 1970 </div> 1971 </div> <!-- row --> 1972 </div> <!-- container-fluid --> 1973 </div> <!-- l-page --> 1974 </div> <!-- m-sort --> 1975 "); 1976 1977 } 1978 } 1979 } 1980

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using System 3 @using System.Collections.Generic 4 @using System.Linq 5 @using HagsWeb.Library.Methods.AssetManager; 6 @using HagsWeb.Library.BusinessObjects.UsersLists; 7 @using HagsWeb.Library.State; 8 @{ 9 Dynamicweb.Frontend.PageView thisPage = Dynamicweb.Frontend.PageView.Current() ?? Dynamicweb.Frontend.PageView.Current(); 10 string pageUrl = GetGlobalValue("Global:Request.Scheme") + "://" + GetGlobalValue("Global:Request.Host") + thisPage.SearchFriendlyUrl; 11 12 //HagsWeb.Library.Methods.Page.HagsPages.CheckThePageProperties(thisPage, GetString("Global:DwAreaSearchPageID")); 13 14 string currentCulture = GetGlobalValue("Global:Area.LongLang"); 15 string currentCountry = currentCulture.Substring(currentCulture.Length - 2); // GB, SE 16 17 List<ProductCollectionItem> productCollectionItems = SessionManager.UsersMyProductCollection != null ? SessionManager.UsersMyProductCollection : new List<ProductCollectionItem>(); 18 var siteSection = HagsWeb.Library.Methods.Page.HagsPages.GetSiteSection(thisPage.AreaID, thisPage.ID); 19 20 var grouplink = "/Default.aspx?ID=" + GetValue("Ecom:ProductList:Page.ID") + "&GroupID=" + GetValue("Ecom:ProductList:Page.GroupID"); 21 string ipPriceAllowed = string.Empty; 22 23 if (thisPage.AreaID == 2 || thisPage.AreaID == 7) // Sweden and UK 24 { 25 ipPriceAllowed = HagsWeb.Library.Services.IPService.IPCheck.CountryPriceAllowed(currentCountry); // ZZZ,Hags_GB,Hags_SE and Hags_, Anon_GB, Anon_SE network range checker (Web.config) 26 } 27 } 28 29 <!--Templates/HagsCore/eCom/ProductList/ProductList.cshtml--> 30 31 <script type="text/javascript"> 32 33 function SortProductsBy(sortcode) { 34 var Page = "@grouplink"; 35 if (sortcode !== 'Default') { 36 SetCookie("RequestOrderBy", sortcode, 1); 37 } 38 document.location.href = Page + "&SortBy=" + sortcode; 39 } 40 </script> 41 42 <div class="m-heading m-theme-background-yellow m-theme-color-white breadcrumb"> 43 <div class="l-page"> 44 <div class="container-fluid"> 45 @{ 46 string breadcrumb = HagsWeb.Library.Methods.Page.HagsPages.GetThisPageNavigation(pageUrl, GetGlobalValue("Global:Area.LongLang"), null); 47 } 48 <div class="m-menu-primary breadcrumb"> 49 <nav class="text-centre text-uppercase"> 50 @breadcrumb 51 </nav> 52 </div> 53 54 </div> <!-- container-fluid --> 55 </div> <!-- l-page --> 56 </div> <!-- m-heading --> 57 58 <div class="m-sort m-theme-background-lightgrey"> 59 <div class="l-page"> 60 <div class="container-fluid"> 61 <div class="row"> 62 <div class="col-sm-6"> 63 @*<p>Page Flag: @ipPriceAllowed || session is set: @HagsWeb.Library.State.SessionManager.IsSessionValueSet("HagsAllowedPricing") || session Value: @HagsWeb.Library.State.SessionManager.GetSessionItem("HagsAllowedPricing").ToString()</p>*@ 64 65 <form class="form-inline"> 66 <div class="form-group"> 67 <div class="btn-group"> 68 @if (GetLoop("Products").Count > 1) 69 { 70 <button type="button" class="btn btn-m btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> 71 @Translate("SortBy", "Sort by") <span class="caret"></span> 72 </button> 73 74 <ul class="dropdown-menu" role="menu"> 75 <li><a onclick="SortProductsBy('Default')">@Translate("Default", "Default")</a></li> 76 <li class="divider"></li> 77 <li><a onclick="SortProductsBy('ProductName&amp;SortOrder=Asc')">@Translate("NameA-Z", "Name A-Z")</a></li> 78 <li><a onclick="SortProductsBy('ProductName&amp;SortOrder=Desc')">@Translate("NameZ-A", "Name Z-A")</a></li> 79 <li class="divider"></li> 80 <li><a onclick="SortProductsBy('AgeRange&amp;SortOrder=Asc')">@Translate("AgeAscending", "Age Ascending")</a></li> 81 <li><a onclick="SortProductsBy('AgeRange&amp;SortOrder=Desc')">@Translate("AgeDescending", "Age Descending")</a></li> 82 <li class="divider"></li> 83 <li><a onclick="SortProductsBy('SafetyArea&amp;SortOrder=Asc')">@Translate("SafetyAreaAscending", "Safety Area Ascending")</a></li> 84 <li><a onclick="SortProductsBy('SafetyArea&amp;SortOrder=Desc')">@Translate("SafetyAreaDescending", "Safety Area Descending")</a></li> 85 <li class="divider"></li> 86 <li><a onclick="SortProductsBy('FallHeight&amp;SortOrder=Asc')">@Translate("FallHeightAscending", "Fall Height Ascending") </a></li> 87 <li><a onclick="SortProductsBy('FallHeight&amp;SortOrder=Desc')">@Translate("FallHeightDescending", "Fall Height Descending") </a></li> 88 @*<li>@thisPage.AreaID || @ipPriceAllowed || @currentCountry</li>*@ 89 @*@if (((thisPage.AreaID == 7) || (thisPage.AreaID == 2)) && (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_"))) 90 { 91 <li class="divider"></li> 92 <li><a onclick="SortProductsBy('Price&amp;SortOrder=Asc')">@Translate("Pricelow-high", "Price low-high")</a></li> 93 <li><a onclick="SortProductsBy('Price&amp;SortOrder=Desc')">@Translate("Pricehigh-low", "Price high-low")</a></li> 94 }*@ 95 @*GL 15/02/2021 now remove all pricing for the UK (Also check pdf templates)*@ 96 @if (((thisPage.AreaID == 2)) && (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_"))) 97 { 98 <li class="divider"></li> 99 <li><a onclick="SortProductsBy('Price&amp;SortOrder=Asc')">@Translate("Pricelow-high", "Price low-high")</a></li> 100 <li><a onclick="SortProductsBy('Price&amp;SortOrder=Desc')">@Translate("Pricehigh-low", "Price high-low")</a></li> 101 } 102 103 </ul> 104 } 105 106 </div> 107 </div> 108 </form> 109 </div> 110 <div class="col-sm-6 clearfix"> 111 112 <a class="btn btn-default pull-right text-uppercase" style="margin-left: 12px;" href="#advancedsearch-ui" data-toggle="tab" role="button">@Translate("AdvancedSearch", "Advanced Search")</a> 113 114 <nav class="pull-right"> 115 <ul class="pagination" style="margin: 0;"> 116 <li><a id="prevpage" href="@GetString("Ecom:ProductList.PrevPage.Clean")" aria-label="Previous" @GetString("Ecom:ProductList.PrevPage")><span aria-hidden="true">&laquo; @Translate("page_Previous", "Previous")</span></a></li> 117 <li class="active"><a>@GetString("Ecom:ProductList.CurrentPage") @Translate("page_Of", "of") @GetString("Ecom:ProductList.TotalPages")</a></li> 118 <li> 119 <a id="nextpage" href="@GetString("Ecom:ProductList.NextPage.Clean")" aria-label="Next" @GetString("Ecom:ProductList.NextPage")><span aria-hidden="true">@Translate("page_Next", "Next") &raquo;</span></a> 120 </li> 121 </ul> 122 </nav> 123 </div> 124 </div> <!-- row --> 125 </div> <!-- container-fluid --> 126 </div> <!-- l-page --> 127 </div> <!-- m-sort --> 128 129 130 @*<p>PriceAllowed: @ipPriceAllowed and AreaId=@thisPage.AreaID</p>*@ 131 132 <div class="m-attractor-group"> 133 <div class="l-page"> 134 <div class="container-fluid"> 135 <div class="l-group-4 row"> 136 137 @foreach (LoopItem item in GetLoop("Products")) 138 { 139 // Use imageUrl = HagsWeb.Library.Utilities.DWUtilities.GetSingleProductImageUrl(prod); 140 IEnumerable<ProductAsset> productImages = AssetManager_Repository.GetAssets(item.GetString("Ecom:Product.Number"), AssetType.Images, true) 141 .Where(n => n.FileName.StartsWith("medium_")); 142 143 ProductAsset image = productImages.FirstOrDefault(); 144 145 // item.GetLoop("AgeRange.Options") is unreliable in the latest release DW 9.7.2 146 List<string> ageRanges = new List<string>(); 147 if (!string.IsNullOrEmpty(item.GetString("Ecom:Product:Field.AgeRange"))) 148 { 149 ageRanges = HagsWeb.Library.Methods.ProductProperties.ProductAgeRanges.GetAgeRanges(item.GetString("Ecom:Product:Field.AgeRange"), item.GetString("Ecom:Product.LanguageID")); 150 } 151 152 string ageRange = item.GetString("Ecom:Product:Field.AgeRange"); 153 string safetyArea = item.GetString("Ecom:Product:Field.SafetyArea"); 154 string fallHeight = item.GetString("Ecom:Product:Field.FallHeight"); 155 156 //item.GetString("Ecom:Product:Field.AgeRange"); 157 //item.GetString("Ecom:Product:Field.SafetyArea"); 158 //item.GetString("Ecom:Product:Field.FallHeight"); 159 160 bool isProductCollection = productCollectionItems.Any(n => n.ProductNumber == item.GetString("Ecom:Product.Number")); 161 //var s = HagsWeb.Library.Utilities.DWUtilities.GetProductUrl((item.GetString("Ecom:Product.Number"), thisPage.AreaID); 162 //string productLink = thisPage.SearchFriendlyUrl; 163 //var collectionLink = String.Format(productLink + "?ProductID={0}", item.GetString("Ecom:Product.ID")); 164 string collectionData = string.Format("CCAddToMyLists={0}&CCAddToListVariantID={1}&CCAddToListLanguageID={2}#{3}", item.GetString("Ecom:Product.Number"), item.GetString("Ecom:Product.VariantID"), thisPage.Area.GetByKey("areaecomlanguageid"), siteSection); 165 <div class="l-group-content col-xs-12 col-ms-6 col-sm-4 col-md-3"> 166 <div class="m-attractor"> 167 <div class="m-attractor-visual"> 168 @if (image != null && !String.IsNullOrEmpty(image.uri)) 169 { 170 <a href="@item.GetValue("Ecom:Product.Link.Clean")"><img src="@image.uri" class="img-responsive m-product-thumb" /></a> 171 } 172 else 173 { 174 <a href="@item.GetValue("Ecom:Product.Link.Clean")"><img src="/Files/Templates/Designs/HagsCore/res/img/image-not-found.png" class="img-responsive" /></a> 175 } 176 177 </div> 178 179 180 @*@foreach (var age in item.GetLoop("AgeRange.Options")) 181 { 182 if (age.GetBoolean("AgeRange.Option.IsSelected") && age.GetString("AgeRange.Option.Value") != "25") 183 { 184 ageRanges.Add(age.GetString("AgeRange.Option.Name").Replace("+", "_")); 185 } 186 }*@ 187 188 <div class="m-attractor-info m-attractor-info-product"> 189 <h3 class="m-theme-after-yellow m-theme-border-yellow"><a href="@item.GetString("Ecom:Product.Link.Clean")">@item.GetString("Ecom:Product.Name")</a></h3> 190 @*<p>@item.GetValue("Ecom:Product.ShortDescription")</p>*@ 191 <!--<p><strong>@Translate("ProductNumber", "Product Number"):</strong> @item.GetValue("Ecom:Product.Number")</p>--> 192 @*Only UK and Sweden have Pricing at the moment*@ 193 @if (thisPage.Area.ID == 2 && (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_"))) /*Sweden - would like no ,00 in dwFormattedPrice*/ 194 { 195 string krPrice = item.GetInteger("Ecom:Product.DBPrice") == 0 ? Translate("RequestAQuote", "Kontakta oss") : item.GetString("Ecom:Product.Price.PriceFormatted").Replace(",00", ""); 196 <p><strong>@Translate("Price", "Price"):</strong> @krPrice</p> 197 } 198 @if (thisPage.Area.ID == 7) /*UK has special pricing and special product number*/ 199 { 200 if (!string.IsNullOrEmpty(item.GetString("Ecom:Product:Field.UKProductNumber"))) 201 { 202 <p><strong>@Translate("ProductNumber", "Product Number"):</strong> @item.GetValue("Ecom:Product:Field.UKProductNumber")</p> 203 } 204 else if (!string.IsNullOrEmpty(item.GetString("Ecom:Product.Number"))) 205 { 206 <p><strong>@Translate("ProductNumber", "Product Number"):</strong> @item.GetValue("Ecom:Product.Number")</p> 207 } 208 @*GL 15/02/2021 now remove all pricing for the UK (Also check pdf templates)*@ 209 @*if (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_")) 210 { 211 string ukPrice = (item.GetDouble("Ecom:Product:Field.UKProductPrice") == 0) ? "On Application" : "&pound;" + string.Format(new System.Globalization.CultureInfo("en-GB", false), "{0:c}", item.GetValue("Ecom:Product:Field.UKProductPrice")); 212 <p><strong>@Translate("Price", "Price"):</strong> @ukPrice</p> 213 }*@ 214 215 } 216 217 218 <div class="m-decal-container"> 219 220 <div class="m-decal"> 221 <ul class="list-inline"> 222 @if (!String.IsNullOrWhiteSpace(item.GetString("Ecom:Product:Field.AgeRange")) && ageRanges.Any()) 223 { 224 foreach (var range in ageRanges) 225 { 226 if (range.Trim() != "-") 227 { 228 <li class="decal"> 229 <div class="decal-header" data-toggle="tooltip" data-placement="top" title="@item.GetString("Ecom:Product:Field.AgeRange.Name") @range"> 230 <img src="Files/Templates/Designs/HagsCore/res/img/decals/agerange.png" alt="@item.GetString("Ecom:Product:Field.AgeRange.Name") @range" /> 231 <span class="decalvalue">@range</span> 232 </div> 233 </li> 234 } 235 } 236 } 237 238 @if (item.GetDouble("Ecom:Product:Field.AssemblyTime.Value.Raw") > 0) 239 { 240 <li class="decal"> 241 <div class="decal-header" data-toggle="tooltip" data-placement="top" title="@item.GetString("Ecom:Product:Field.AssemblyTime.Name") @Math.Ceiling(item.GetDouble("Ecom:Product:Field.AssemblyTime.Value.Raw")) hrs"> 242 243 <img src="Files/Templates/Designs/HagsCore/res/img/decals/time.png" alt="@item.GetString("Ecom:Product:Field.AssemblyTime.Name") @Math.Ceiling(item.GetDouble("Ecom:Product:Field.AssemblyTime.Value.Raw")) hrs" /> 244 245 <span class="decalvalue">@Math.Ceiling(item.GetDouble("Ecom:Product:Field.AssemblyTime.Value.Raw"))</span> 246 247 </div> 248 </li> 249 } 250 251 @if (item.GetDouble("Ecom:Product:Field.FallHeight.Value.Raw") > 0) 252 { 253 <li class="decal"> 254 <div class="decal-header" data-toggle="tooltip" data-placement="top" title="@item.GetString("Ecom:Product:Field.FallHeight.Name") @item.GetString("Ecom:Product:Field.FallHeight.Value.Raw")"> 255 256 <img src="Files/Templates/Designs/HagsCore/res/img/decals/fall.png" alt="@item.GetString("Ecom:Product:Field.FallHeight.Name") @item.GetString("Ecom:Product:Field.FallHeight.Value.Raw")" /> 257 258 <span class="decalvalue">@item.GetString("Ecom:Product:Field.FallHeight.Value.Raw")</span> 259 260 </div> 261 </li> 262 } 263 264 @if (item.GetDouble("Ecom:Product:Field.SafetyArea.Value.Raw") > 0) 265 { 266 <li class="decal"> 267 <div class="decal-header" data-toggle="tooltip" data-placement="top" title="@item.GetString("Ecom:Product:Field.SafetyArea.Name") @item.GetDouble("Ecom:Product:Field.SafetyArea.Value")m&#178;"> 268 269 <img src="Files/Templates/Designs/HagsCore/res/img/decals/area.png" alt="@item.GetString("Ecom:Product:Field.SafetyArea.Name") @item.GetDouble("Ecom:Product:Field.SafetyArea.Value")m&#178;" /> 270 271 <span class="decalvalue">@item.GetDouble("Ecom:Product:Field.SafetyArea.Value")</span> 272 273 </div> 274 </li> 275 } 276 </ul> 277 </div> <!-- m-decals --> 278 279 </div> 280 281 <a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="@item.GetString("Ecom:Product.Link.Clean")" role="button">@Translate("ProductDetails", "Product Details")</a> 282 283 @*<a class="m-btn-xs-more btn btn-default btn-xs text-uppercase" href="Default.aspx?ID=@thisPage.ID&ProductID=@item.GetString("Ecom:Product.ID")" role="button">@Translate("ProductDetails", "Product Details") XXY</a> 284 <p>@GetGlobalValue("Global:Pageview.Url")</p>*@ 285 286 @if (GetBoolean("Ecom:CatalogPublishing.UseCatalogPublishing")) 287 { 288 <a class="hide" href="/default.aspx?id=@GetString("Ecom:ProductList:Page.ID")&amp;productid=@item.GetString("Ecom:Product.ID")&amp;CatalogPublishingcmd=addtocatalog">Add to catalog</a> 289 } 290 291 292 293 @if (GetBoolean("Ecom:CatalogPublishing.UseCatalogPublishing")) 294 { 295 <div class="hide" style="clear: both; width: 100%;padding-bottom:5px; text-align: right;"> 296 <a href="/default.aspx?CatalogPublishingcmd=preview">Catalog Publishing</a> 297 </div> 298 } 299 300 </div> <!-- attractor-info --> 301 <!--<div class="m-attractor-options"> 302 303 <ul class="m-icon-links list-unstyled"> 304 305 @if (isProductCollection) 306 { 307 <li><a href="#" class="clearfix" data-removeproductlist="@item.GetString("Ecom:Product.Number")" data-addproductlist=""><img src="/Files/Templates/Designs/HagsCore/res/img/icons/plus.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/plus.png" class="m-icon pull-left" /><span>@Translate("RemoveFromCollection", "Remove from my Collection")</span></a></li> 308 } 309 else 310 { 311 <li><a href="#" class="clearfix" data-addproductlist="@collectionData" data-removeproductlist=""><img src="/Files/Templates/Designs/HagsCore/res/img/icons/plus.svg" data-nosvg="/Files/Templates/Designs/HagsCore/res/img/icons/plus.png" class="m-icon pull-left" /><span>@Translate("AddToCollection", "Add to my collection")</span></a></li> 312 } 313 314 </ul> 315 </div> <!-- m-attractor-options --> 316 </div> <!-- attractor --> 317 </div> 318 } 319 </div> <!-- row --> 320 </div> <!-- container-fluid --> 321 </div> <!-- l-page --> 322 </div> <!-- m-attractor-group --> 323 324 325 <div class="m-sort bottom m-theme-background-lightgrey"> 326 <div class="l-page"> 327 <div class="container-fluid"> 328 <div class="row"> 329 <div class="col-sm-6"> 330 331 <form class="form-inline"> 332 <div class="form-group"> 333 <div class="btn-group"> 334 @if (GetLoop("Products").Count() > 1) 335 { 336 <button type="button" class="btn btn-m btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> 337 @Translate("SortBy", "Sort by") <span class="caret"></span> 338 </button> 339 340 <ul class="dropdown-menu" role="menu"> 341 <li><a onclick="SortProductsBy('Default')">Default</a></li> 342 <li class="divider"></li> 343 <li><a onclick="SortProductsBy('ProductName&amp;SortOrder=Asc')">@Translate("NameA-Z", "Name A-Z")</a></li> 344 <li><a onclick="SortProductsBy('ProductName&amp;SortOrder=Desc')">@Translate("NameZ-A", "Name Z-A")</a></li> 345 <li class="divider"></li> 346 <li><a onclick="SortProductsBy('AgeRange&amp;SortOrder=Asc')">@Translate("AgeAscending", "Age Ascending")</a></li> 347 <li><a onclick="SortProductsBy('AgeRange&amp;SortOrder=Desc')">@Translate("AgeDescending", "Age Descending")</a></li> 348 <li class="divider"></li> 349 <li><a onclick="SortProductsBy('SafetyArea&amp;SortOrder=Asc')">@Translate("SafetyAreaAscending", "Safety Area Ascending")</a></li> 350 <li><a onclick="SortProductsBy('SafetyArea&amp;SortOrder=Desc')">@Translate("SafetyAreaDescending", "Safety Area Descending")</a></li> 351 <li class="divider"></li> 352 <li><a onclick="SortProductsBy('FallHeight&amp;SortOrder=Asc')">@Translate("FallHeightAscending", "Fall Height Ascending") </a></li> 353 <li><a onclick="SortProductsBy('FallHeight&amp;SortOrder=Desc')">@Translate("FallHeightDescending", "Fall Height Descending") </a></li> 354 @*<li>@thisPage.AreaID || @ipPriceAllowed || @currentCountry</li>*@ 355 @*@if (((thisPage.AreaID == 7) || (thisPage.AreaID == 2)) && (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_"))) 356 { 357 <li class="divider"></li> 358 <li><a onclick="SortProductsBy('Price&amp;SortOrder=Asc')">@Translate("Pricelow-high", "Price low-high")</a></li> 359 <li><a onclick="SortProductsBy('Price&amp;SortOrder=Desc')">@Translate("Pricehigh-low", "Price high-low")</a></li> 360 }*@ 361 @*GL 15/02/2021 now remove all pricing for the UK (Also check pdf templates)*@ 362 @if (((thisPage.AreaID == 2)) && (ipPriceAllowed.Contains(currentCountry) || ipPriceAllowed.Contains("Hags_"))) 363 { 364 <li class="divider"></li> 365 <li><a onclick="SortProductsBy('Price&amp;SortOrder=Asc')">@Translate("Pricelow-high", "Price low-high")</a></li> 366 <li><a onclick="SortProductsBy('Price&amp;SortOrder=Desc')">@Translate("Pricehigh-low", "Price high-low")</a></li> 367 } 368 369 </ul> 370 } 371 372 373 </div> 374 </div> 375 </form> 376 </div> 377 <div class="col-sm-6 clearfix"> 378 379 <!--<a class="btn btn-default pull-right text-uppercase" style="margin-left: 12px;" href="#advancedsearch-ui" data-toggle="tab" role="button">@Translate("AdvancedSearch", "Advanced Search")</a>--> 380 381 <nav class="pull-right"> 382 <ul class="pagination" style="margin: 0;"> 383 <li><a id="prevpage" href="@GetString("Ecom:ProductList.PrevPage.Clean")" aria-label="Previous" @GetString("Ecom:ProductList.PrevPage")><span aria-hidden="true">&laquo; @Translate("page_Previous", "Previous")</span></a></li> 384 <li class="active"><a>@GetString("Ecom:ProductList.CurrentPage") @Translate("page_Of", "of") @GetString("Ecom:ProductList.TotalPages")</a></li> 385 <li> 386 <a id="nextpage" href="@GetString("Ecom:ProductList.NextPage.Clean")" aria-label="Next" @GetString("Ecom:ProductList.NextPage")><span aria-hidden="true">@Translate("page_Next", "Next") &raquo;</span></a> 387 </li> 388 </ul> 389 </nav> 390 </div> 391 </div> <!-- row --> 392 </div> <!-- container-fluid --> 393 </div> <!-- l-page --> 394 </div> <!-- m-sort --> 395