Search Results

Error compiling template "Designs/BioLegend/eCom/Productlist/productList_v2.cshtml"
Line 5049: A local variable or function named 'productType' is already defined in this scope
Line 6378: A local variable or function named 'productType' is already defined in this scope

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 659 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 661 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 2188 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 4 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 32 using Dynamicweb.Rendering; 33 34 #line default 35 #line hidden 36 37 #line 664 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 38 using System.Web; 39 40 #line default 41 #line hidden 42 43 #line 7 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 44 using BioLegend.Ecommerce.LiveIntegration; 45 46 #line default 47 #line hidden 48 49 #line 13 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 50 using System.Net.Http; 51 52 #line default 53 #line hidden 54 55 #line 276 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 56 using Dynamicweb; 57 58 #line default 59 #line hidden 60 61 #line 660 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 62 using System.Collections; 63 64 #line default 65 #line hidden 66 67 #line 663 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 68 using System.Text.RegularExpressions; 69 70 #line default 71 #line hidden 72 73 #line 665 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 74 using Dynamicweb.Core; 75 76 #line default 77 #line hidden 78 79 #line 666 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 80 using Dynamicweb.Frontend; 81 82 #line default 83 #line hidden 84 85 #line 667 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 86 using Dynamicweb.Security.UserManagement; 87 88 #line default 89 #line hidden 90 91 #line 2187 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 92 using System.Collections.Specialized; 93 94 #line default 95 #line hidden 96 97 98 public class RazorEngine_86e73e6dd2514550a9da538e0df0574e : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 99 100 #line hidden 101 102 #line 16 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 103 public RazorEngine.Templating.TemplateWriter RenderProductListViewSelector() 104 { 105 #line default 106 #line hidden 107 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 108 109 #line 17 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 110 111 //var listView = Context.Current.Request.Cookies["dataList"] != null ? Context.Current.Request.Cookies["dataList"].Value : ""; 112 //listView = Context.Current.Request.Params["altView"] != null ? (Context.Current.Request.Params["altView"] == "detail" ? "detailedView" : "") : listView; 113 var listView = HttpContext.Current.Request.Cookies["dataList"] != null ? HttpContext.Current.Request.Cookies["dataList"].Value : "list"; 114 115 var str_keywordsParam = Context.Current.Request.Params["Keywords"] ?? ""; 116 var contentSearchPage = Pageview.Area.Item["ContentSearchPage"]; 117 118 119 120 #line default 121 #line hidden 122 WriteLiteralTo(__razor_helper_writer, " <div"); 123 124 WriteLiteralTo(__razor_helper_writer, " class=\'col-xs-12 noPadding\'"); 125 126 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 127 128 WriteLiteralTo(__razor_helper_writer, " class=\"pull-left noPadding\""); 129 130 WriteLiteralTo(__razor_helper_writer, " id=\"moreInfo\""); 131 132 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 133 134 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 1204), Tuple.Create("\'", 1274) 135 , Tuple.Create(Tuple.Create("", 1212), Tuple.Create("btn-primary", 1212), true) 136 , Tuple.Create(Tuple.Create(" ", 1223), Tuple.Create("default", 1224), true) 137 138 #line 27 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 139 , Tuple.Create(Tuple.Create(" ", 1231), Tuple.Create<System.Object, System.Int32>(listView.Equals("list") ? "active" : "" 140 141 #line default 142 #line hidden 143 , 1232), false) 144 ); 145 146 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:changeView(\'list\');\""); 147 148 WriteLiteralTo(__razor_helper_writer, ">"); 149 150 151 #line 27 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 152 WriteTo(__razor_helper_writer, Translate("listView", "List View")); 153 154 155 #line default 156 #line hidden 157 WriteLiteralTo(__razor_helper_writer, "</a>\r\n <a"); 158 159 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 1369), Tuple.Create("\'", 1433) 160 , Tuple.Create(Tuple.Create("", 1377), Tuple.Create("btn-primary", 1377), true) 161 162 #line 28 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 163 , Tuple.Create(Tuple.Create(" ", 1388), Tuple.Create<System.Object, System.Int32>(listView.Equals("detail") ? "active" : "" 164 165 #line default 166 #line hidden 167 , 1389), false) 168 ); 169 170 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:changeView(\'detail\');\""); 171 172 WriteLiteralTo(__razor_helper_writer, ">"); 173 174 175 #line 28 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 176 WriteTo(__razor_helper_writer, Translate("detailView", "Detail View")); 177 178 179 #line default 180 #line hidden 181 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 182 183 184 #line 29 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 185 186 187 #line default 188 #line hidden 189 190 #line 29 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 191 if (!string.IsNullOrWhiteSpace(str_keywordsParam)) 192 { 193 194 195 #line default 196 #line hidden 197 WriteLiteralTo(__razor_helper_writer, " <a"); 198 199 WriteLiteralTo(__razor_helper_writer, " class=\'btn-primary\'"); 200 201 WriteLiteralTo(__razor_helper_writer, " id=\"searchForContent\""); 202 203 WriteLiteralTo(__razor_helper_writer, " onClick=\"searchForContent();\""); 204 205 WriteLiteralTo(__razor_helper_writer, " data-searchpageID=\""); 206 207 208 #line 31 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 209 WriteTo(__razor_helper_writer, contentSearchPage); 210 211 212 #line default 213 #line hidden 214 WriteLiteralTo(__razor_helper_writer, "\""); 215 216 WriteLiteralTo(__razor_helper_writer, ">"); 217 218 219 #line 31 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 220 WriteTo(__razor_helper_writer, Translate("contentPagesBTNText", "Find Content Pages")); 221 222 223 #line default 224 #line hidden 225 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 226 227 228 #line 32 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 229 } 230 231 232 #line default 233 #line hidden 234 WriteLiteralTo(__razor_helper_writer, " </div>\r\n <div"); 235 236 WriteLiteralTo(__razor_helper_writer, " class=\"noPadding\""); 237 238 WriteLiteralTo(__razor_helper_writer, ">\r\n <hr"); 239 240 WriteLiteralTo(__razor_helper_writer, " id=\"searchButtonDivider\""); 241 242 WriteLiteralTo(__razor_helper_writer, "/>\r\n </div>\r\n </div>\r\n"); 243 244 245 #line 38 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 246 247 248 #line default 249 #line hidden 250 }); 251 252 #line 38 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 253 } 254 #line default 255 #line hidden 256 257 258 #line 40 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 259 public RazorEngine.Templating.TemplateWriter RenderDidYouMean() 260 { 261 #line default 262 #line hidden 263 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 264 265 #line 41 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 266 267 var pageId = Pageview.Page.ID.ToString(); 268 var firstSuggestion = GetString("QueryResult.SpellCheck"); 269 270 271 #line default 272 #line hidden 273 274 #line 45 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 275 276 var freeTextSearchParameter = "Keywords"; 277 278 if (!string.IsNullOrWhiteSpace(firstSuggestion)) 279 { 280 281 282 #line default 283 #line hidden 284 WriteLiteralTo(__razor_helper_writer, " <div"); 285 286 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 287 288 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 289 290 WriteLiteralTo(__razor_helper_writer, " class=\"col-md-12\""); 291 292 WriteLiteralTo(__razor_helper_writer, ">\r\n Did you mean: \r\n"); 293 294 295 #line 53 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 296 297 298 #line default 299 #line hidden 300 301 #line 53 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 302 foreach (var suggestion in GetLoop("SpellCheckerSuggestions")) 303 { 304 var suggestionTerm = suggestion.GetString("Suggestion"); 305 306 307 #line default 308 #line hidden 309 WriteLiteralTo(__razor_helper_writer, " <a"); 310 311 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 2778), Tuple.Create("\"", 2849) 312 , Tuple.Create(Tuple.Create("", 2785), Tuple.Create("Default.aspx?ID=", 2785), true) 313 314 #line 56 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 315 , Tuple.Create(Tuple.Create("", 2801), Tuple.Create<System.Object, System.Int32>(pageId 316 317 #line default 318 #line hidden 319 , 2801), false) 320 , Tuple.Create(Tuple.Create("", 2808), Tuple.Create("&", 2808), true) 321 322 #line 56 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 323 , Tuple.Create(Tuple.Create("", 2809), Tuple.Create<System.Object, System.Int32>(freeTextSearchParameter 324 325 #line default 326 #line hidden 327 , 2809), false) 328 , Tuple.Create(Tuple.Create("", 2833), Tuple.Create("=", 2833), true) 329 330 #line 56 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 331 , Tuple.Create(Tuple.Create("", 2834), Tuple.Create<System.Object, System.Int32>(suggestionTerm 332 333 #line default 334 #line hidden 335 , 2834), false) 336 ); 337 338 WriteLiteralTo(__razor_helper_writer, " style=\"margin-right:5px; font-size: 12px !important\""); 339 340 WriteLiteralTo(__razor_helper_writer, ">"); 341 342 343 #line 56 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 344 WriteTo(__razor_helper_writer, suggestionTerm); 345 346 347 #line default 348 #line hidden 349 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 350 351 352 #line 57 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 353 } 354 355 356 #line default 357 #line hidden 358 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 359 360 361 #line 60 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 362 } 363 364 365 #line default 366 #line hidden 367 }); 368 369 #line 61 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 370 } 371 #line default 372 #line hidden 373 374 375 #line 63 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 376 public RazorEngine.Templating.TemplateWriter RenderProductGroupDescription() 377 { 378 #line default 379 #line hidden 380 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 381 382 #line 64 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 383 384 var groupDescription = GetString("Ecom:Group.Description"); 385 if (!string.IsNullOrWhiteSpace(groupDescription)) 386 { 387 388 389 #line default 390 #line hidden 391 WriteLiteralTo(__razor_helper_writer, " <div"); 392 393 WriteLiteralTo(__razor_helper_writer, " id=\"groupDescription\""); 394 395 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 396 397 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 398 399 WriteLiteralTo(__razor_helper_writer, " "); 400 401 402 #line 69 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 403 WriteTo(__razor_helper_writer, groupDescription); 404 405 406 #line default 407 #line hidden 408 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 409 410 411 #line 71 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 412 } 413 414 415 #line default 416 #line hidden 417 }); 418 419 #line 72 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 420 } 421 #line default 422 #line hidden 423 424 425 #line 74 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 426 public RazorEngine.Templating.TemplateWriter RenderSearchResultsNumbers(List<LoopItem> loopProduct) 427 { 428 #line default 429 #line hidden 430 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 431 432 #line 75 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 433 434 var loopProductCount = loopProduct.Count; 435 var totalProductCount = GetInteger("Ecom:ProductList.PageProdCnt"); 436 var startLoopProductCount = (loopProductCount * (GetInteger("Ecom:ProductList.CurrentPage") - 1)) + 1; 437 var endLoopProductCount = loopProductCount * GetInteger("Ecom:ProductList.CurrentPage"); 438 439 if (loopProductCount < GetInteger("Ecom:ProductList.PageSize")) 440 { 441 startLoopProductCount = (GetInteger("Ecom:ProductList.PageSize") * (GetInteger("Ecom:ProductList.CurrentPage") - 1)) + 1; 442 endLoopProductCount = totalProductCount; 443 } 444 445 446 447 #line default 448 #line hidden 449 WriteLiteralTo(__razor_helper_writer, " <span"); 450 451 WriteLiteralTo(__razor_helper_writer, " class=\"productListResume col-xs-3 noPadding\""); 452 453 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 454 455 WriteLiteralTo(__razor_helper_writer, " "); 456 457 458 #line 88 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 459 WriteTo(__razor_helper_writer, Translate("productListCount", "{{numberProducts}} of {{countAllProducts}} items").Replace("{{numberProducts}}", String.Format("{0}-{1}", startLoopProductCount, endLoopProductCount)).Replace("{{countAllProducts}}", totalProductCount.ToString())); 460 461 462 #line default 463 #line hidden 464 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n"); 465 466 467 #line 90 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 468 469 470 #line default 471 #line hidden 472 }); 473 474 #line 90 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 475 } 476 #line default 477 #line hidden 478 479 480 #line 92 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 481 public RazorEngine.Templating.TemplateWriter RenderResultPerPageOption() 482 { 483 #line default 484 #line hidden 485 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 486 487 #line 93 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 488 489 var str_pageSize = Context.Current.Request.Params["PageSize"] ?? "25"; 490 491 492 493 #line default 494 #line hidden 495 WriteLiteralTo(__razor_helper_writer, " <div"); 496 497 WriteLiteralTo(__razor_helper_writer, " class=\"pageBottom col-xs-3 noPadding\""); 498 499 WriteLiteralTo(__razor_helper_writer, ">\r\n <form"); 500 501 WriteLiteralTo(__razor_helper_writer, " id=\"bottom_pageSizeProdList\""); 502 503 WriteLiteralTo(__razor_helper_writer, " class=\"\""); 504 505 WriteLiteralTo(__razor_helper_writer, " action=\"/Default.aspx\""); 506 507 WriteLiteralTo(__razor_helper_writer, " name=\"ExtUserForm_Main\""); 508 509 WriteLiteralTo(__razor_helper_writer, " method=\"GET\""); 510 511 WriteLiteralTo(__razor_helper_writer, ">\r\n <fieldset>\r\n <label>"); 512 513 514 #line 99 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 515 WriteTo(__razor_helper_writer, Translate("Results Per Page")); 516 517 518 #line default 519 #line hidden 520 WriteLiteralTo(__razor_helper_writer, ":</label>\r\n <select"); 521 522 WriteLiteralTo(__razor_helper_writer, " name=\"PageSize\""); 523 524 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 525 526 WriteLiteralTo(__razor_helper_writer, " "); 527 528 529 #line 101 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 530 WriteTo(__razor_helper_writer, RenderResultsPerPageOption("25","25", true)); 531 532 533 #line default 534 #line hidden 535 WriteLiteralTo(__razor_helper_writer, "\r\n"); 536 537 WriteLiteralTo(__razor_helper_writer, " "); 538 539 540 #line 102 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 541 WriteTo(__razor_helper_writer, RenderResultsPerPageOption("50","50")); 542 543 544 #line default 545 #line hidden 546 WriteLiteralTo(__razor_helper_writer, "\r\n"); 547 548 WriteLiteralTo(__razor_helper_writer, " "); 549 550 551 #line 103 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 552 WriteTo(__razor_helper_writer, RenderResultsPerPageOption("100","100")); 553 554 555 #line default 556 #line hidden 557 WriteLiteralTo(__razor_helper_writer, "\r\n"); 558 559 WriteLiteralTo(__razor_helper_writer, " "); 560 561 562 #line 104 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 563 WriteTo(__razor_helper_writer, RenderResultsPerPageOption("200","200")); 564 565 566 #line default 567 #line hidden 568 WriteLiteralTo(__razor_helper_writer, "\r\n </select>\r\n </fieldset>\r\n </form>\r\n </div>" + 569 "\r\n"); 570 571 572 #line 109 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 573 574 575 #line default 576 #line hidden 577 }); 578 579 #line 109 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 580 } 581 #line default 582 #line hidden 583 584 585 #line 111 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 586 public RazorEngine.Templating.TemplateWriter RenderResultsPerPageOption(string sorByLabel, string sortByValue, bool isDefault = false) 587 { 588 #line default 589 #line hidden 590 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 591 592 #line 112 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 593 594 var str_pageSize = Context.Current.Request.Params["PageSize"] ?? "25"; 595 var isSelected = ((str_pageSize == sortByValue) || (isDefault && str_pageSize == "")) ? "selected=\"selected\"" : ""; 596 597 598 599 #line default 600 #line hidden 601 WriteLiteralTo(__razor_helper_writer, " <option "); 602 603 604 #line 116 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 605 WriteTo(__razor_helper_writer, isSelected); 606 607 608 #line default 609 #line hidden 610 WriteLiteralTo(__razor_helper_writer, " value=\""); 611 612 613 #line 116 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 614 WriteTo(__razor_helper_writer, sortByValue); 615 616 617 #line default 618 #line hidden 619 WriteLiteralTo(__razor_helper_writer, "\">"); 620 621 622 #line 116 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 623 WriteTo(__razor_helper_writer, sorByLabel); 624 625 626 #line default 627 #line hidden 628 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 629 630 631 #line 117 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 632 633 634 #line default 635 #line hidden 636 }); 637 638 #line 117 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 639 } 640 #line default 641 #line hidden 642 643 644 #line 119 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 645 public RazorEngine.Templating.TemplateWriter RenderPagination(string cssClass = "") 646 { 647 #line default 648 #line hidden 649 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 650 651 #line 120 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 652 653 var num_totalPages = GetInteger("Ecom:ProductList.TotalPages"); 654 var num_curPage = Context.Current.Request.Params["PageNum"] != null ? Convert.ToInt32(Context.Current.Request.Params["PageNum"]) : 1; 655 var prevPageClean = GetString("Ecom:ProductList.PrevPage.Clean"); 656 var nextPageClean = GetString("Ecom:ProductList.NextPage.Clean"); 657 var str_pagingHref = ""; 658 659 if (num_totalPages > 1) 660 { 661 var loop_productList3 = GetLoop("Ecom:ProductList.Pages3"); 662 var getGlobalRequest = GetGlobalValue("Global:Request.Url"); 663 664 665 666 #line default 667 #line hidden 668 WriteLiteralTo(__razor_helper_writer, " <ul"); 669 670 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6034), Tuple.Create("\"", 6062) 671 , Tuple.Create(Tuple.Create("", 6042), Tuple.Create("pagination", 6042), true) 672 673 #line 132 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 674 , Tuple.Create(Tuple.Create(" ", 6052), Tuple.Create<System.Object, System.Int32>(cssClass 675 676 #line default 677 #line hidden 678 , 6053), false) 679 ); 680 681 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 682 683 684 #line 133 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 685 686 687 #line default 688 #line hidden 689 690 #line 133 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 691 if (!string.IsNullOrWhiteSpace(prevPageClean)) 692 { 693 694 695 #line default 696 #line hidden 697 WriteLiteralTo(__razor_helper_writer, " <li"); 698 699 WriteLiteralTo(__razor_helper_writer, " class=\"previous\""); 700 701 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 702 703 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 6195), Tuple.Create("\'", 6216) 704 705 #line 136 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 706 , Tuple.Create(Tuple.Create("", 6202), Tuple.Create<System.Object, System.Int32>(prevPageClean 707 708 #line default 709 #line hidden 710 , 6202), false) 711 ); 712 713 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 714 715 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-angle-left\""); 716 717 WriteLiteralTo(__razor_helper_writer, "></i> "); 718 719 720 #line 137 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 721 WriteTo(__razor_helper_writer, Translate("Previous")); 722 723 724 #line default 725 #line hidden 726 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 727 728 729 #line 140 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 730 } 731 732 733 #line default 734 #line hidden 735 WriteLiteralTo(__razor_helper_writer, "\r\n"); 736 737 738 #line 142 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 739 740 741 #line default 742 #line hidden 743 744 #line 142 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 745 if (num_curPage > 2 && num_totalPages > 3) 746 { 747 for (var i = 1; i <= 1; i++) 748 { 749 var str_active = num_curPage == i ? "class=\"active\"" : ""; 750 str_pagingHref = getGlobalRequest.Contains("PageNum") ? getGlobalRequest.Replace("PageNum=" + num_curPage, "PageNum=" + i) : getGlobalRequest + "&PageNum=" + i; 751 752 753 #line default 754 #line hidden 755 WriteLiteralTo(__razor_helper_writer, " <li "); 756 757 758 #line 148 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 759 WriteTo(__razor_helper_writer, str_active); 760 761 762 #line default 763 #line hidden 764 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 765 766 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 6808), Tuple.Create("\"", 6830) 767 768 #line 149 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 769 , Tuple.Create(Tuple.Create("", 6815), Tuple.Create<System.Object, System.Int32>(str_pagingHref 770 771 #line default 772 #line hidden 773 , 6815), false) 774 ); 775 776 WriteLiteralTo(__razor_helper_writer, ">"); 777 778 779 #line 149 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 780 WriteTo(__razor_helper_writer, i); 781 782 783 #line default 784 #line hidden 785 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 786 787 788 #line 151 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 789 } 790 if (num_totalPages > 4 && num_curPage != 3) 791 { 792 793 794 #line default 795 #line hidden 796 WriteLiteralTo(__razor_helper_writer, " <li"); 797 798 WriteLiteralTo(__razor_helper_writer, " class=\"etc\""); 799 800 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>...</span>\r\n </li>\r\n"); 801 802 803 #line 157 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 804 } 805 } 806 807 808 #line default 809 #line hidden 810 WriteLiteralTo(__razor_helper_writer, " "); 811 812 813 #line 159 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 814 foreach (var i in loop_productList3) 815 { 816 if (i.GetBoolean("Ecom:ProductList.Pages3.Page.IsCurrent")) 817 { 818 819 820 #line default 821 #line hidden 822 WriteLiteralTo(__razor_helper_writer, " <li"); 823 824 WriteLiteralTo(__razor_helper_writer, " class=\"active\""); 825 826 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 827 828 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 7306), Tuple.Create("\"", 7372) 829 830 #line 164 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 831 , Tuple.Create(Tuple.Create("", 7313), Tuple.Create<System.Object, System.Int32>(i.GetString("Ecom:ProductList.Pages3.Page.UrlHtmlEncoded") 832 833 #line default 834 #line hidden 835 , 7313), false) 836 ); 837 838 WriteLiteralTo(__razor_helper_writer, ">"); 839 840 841 #line 164 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 842 WriteTo(__razor_helper_writer, i.GetString("Ecom:ProductList.Pages3.Page.Number")); 843 844 845 #line default 846 #line hidden 847 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 848 849 850 #line 166 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 851 } 852 else 853 { 854 855 856 #line default 857 #line hidden 858 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 859 860 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 7558), Tuple.Create("\"", 7624) 861 862 #line 170 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 863 , Tuple.Create(Tuple.Create("", 7565), Tuple.Create<System.Object, System.Int32>(i.GetString("Ecom:ProductList.Pages3.Page.UrlHtmlEncoded") 864 865 #line default 866 #line hidden 867 , 7565), false) 868 ); 869 870 WriteLiteralTo(__razor_helper_writer, ">"); 871 872 873 #line 170 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 874 WriteTo(__razor_helper_writer, i.GetString("Ecom:ProductList.Pages3.Page.Number")); 875 876 877 #line default 878 #line hidden 879 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 880 881 882 #line 172 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 883 } 884 } 885 886 887 #line default 888 #line hidden 889 WriteLiteralTo(__razor_helper_writer, " "); 890 891 892 #line 174 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 893 if (num_curPage < num_totalPages - 1 && num_totalPages > 3) 894 { 895 if (num_totalPages > 4) 896 { 897 898 899 #line default 900 #line hidden 901 WriteLiteralTo(__razor_helper_writer, " <li"); 902 903 WriteLiteralTo(__razor_helper_writer, " class=\"etc\""); 904 905 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>...</span>\r\n </li>\r\n"); 906 907 908 #line 181 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 909 } 910 for (var i = num_totalPages; i <= num_totalPages; i++) 911 { 912 var str_active = num_curPage == i ? "class=\"active\"" : ""; 913 str_pagingHref = getGlobalRequest.Contains("PageNum") ? getGlobalRequest.Replace("PageNum=" + num_curPage, "PageNum=" + i) : getGlobalRequest + "&PageNum=" + i; 914 915 916 #line default 917 #line hidden 918 WriteLiteralTo(__razor_helper_writer, " <li "); 919 920 921 #line 186 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 922 WriteTo(__razor_helper_writer, str_active); 923 924 925 #line default 926 #line hidden 927 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 928 929 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 8404), Tuple.Create("\"", 8426) 930 931 #line 187 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 932 , Tuple.Create(Tuple.Create("", 8411), Tuple.Create<System.Object, System.Int32>(str_pagingHref 933 934 #line default 935 #line hidden 936 , 8411), false) 937 ); 938 939 WriteLiteralTo(__razor_helper_writer, ">"); 940 941 942 #line 187 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 943 WriteTo(__razor_helper_writer, i); 944 945 946 #line default 947 #line hidden 948 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 949 950 951 #line 189 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 952 } 953 } 954 955 956 #line default 957 #line hidden 958 WriteLiteralTo(__razor_helper_writer, " "); 959 960 961 #line 191 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 962 if (!string.IsNullOrWhiteSpace(nextPageClean)) 963 { 964 965 966 #line default 967 #line hidden 968 WriteLiteralTo(__razor_helper_writer, " <li"); 969 970 WriteLiteralTo(__razor_helper_writer, " class=\"next\""); 971 972 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 973 974 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 8616), Tuple.Create("\'", 8637) 975 976 #line 194 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 977 , Tuple.Create(Tuple.Create("", 8623), Tuple.Create<System.Object, System.Int32>(nextPageClean 978 979 #line default 980 #line hidden 981 , 8623), false) 982 ); 983 984 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 985 986 WriteLiteralTo(__razor_helper_writer, " "); 987 988 989 #line 195 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 990 WriteTo(__razor_helper_writer, Translate("Next")); 991 992 993 #line default 994 #line hidden 995 WriteLiteralTo(__razor_helper_writer, " <i"); 996 997 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-angle-right\""); 998 999 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </a>\r\n </li>\r\n"); 1000 1001 1002 #line 198 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1003 } 1004 1005 1006 #line default 1007 #line hidden 1008 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n"); 1009 1010 1011 #line 200 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1012 } 1013 1014 1015 #line default 1016 #line hidden 1017 }); 1018 1019 #line 201 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1020 } 1021 #line default 1022 #line hidden 1023 1024 1025 #line 203 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1026 public RazorEngine.Templating.TemplateWriter RenderSelectedFilters() 1027 { 1028 #line default 1029 #line hidden 1030 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1031 1032 #line 204 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1033 1034 1035 1036 #line default 1037 #line hidden 1038 WriteLiteralTo(__razor_helper_writer, " <div"); 1039 1040 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 1041 1042 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1043 1044 WriteLiteralTo(__razor_helper_writer, " "); 1045 1046 1047 #line 206 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1048 WriteTo(__razor_helper_writer, RenderSelectedFacetOption("Keywords")); 1049 1050 1051 #line default 1052 #line hidden 1053 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 1054 1055 1056 #line 208 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1057 1058 1059 #line default 1060 #line hidden 1061 1062 #line 208 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1063 foreach (var group in GetLoop("FacetGroups")) 1064 { 1065 foreach (var facet in group.GetLoop("Facets")) 1066 { 1067 1068 1069 #line default 1070 #line hidden 1071 1072 #line 212 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1073 WriteTo(__razor_helper_writer, RenderSelectedFacetOption(facet.GetString("Facet.QueryParameter"), facet)); 1074 1075 1076 #line default 1077 #line hidden 1078 1079 #line 212 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1080 1081 } 1082 } 1083 1084 1085 #line default 1086 #line hidden 1087 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 1088 1089 1090 #line 216 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1091 1092 1093 #line default 1094 #line hidden 1095 }); 1096 1097 #line 216 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1098 } 1099 #line default 1100 #line hidden 1101 1102 1103 #line 218 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1104 public RazorEngine.Templating.TemplateWriter RenderSelectedFacetOption(string parameterName, LoopItem facet = null) 1105 { 1106 #line default 1107 #line hidden 1108 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1109 1110 #line 219 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1111 1112 var parameterValue = Context.Current.Request.Params[parameterName] ?? ""; 1113 1114 if (!string.IsNullOrEmpty(parameterValue)) 1115 { 1116 1117 1118 #line default 1119 #line hidden 1120 1121 #line 224 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1122 WriteTo(__razor_helper_writer, RenderSelectedFacetOptionName(parameterValue, facet)); 1123 1124 1125 #line default 1126 #line hidden 1127 1128 #line 224 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1129 1130 1131 1132 #line default 1133 #line hidden 1134 WriteLiteralTo(__razor_helper_writer, " <a"); 1135 1136 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 9500), Tuple.Create("\"", 9551) 1137 1138 #line 225 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1139 , Tuple.Create(Tuple.Create("", 9507), Tuple.Create<System.Object, System.Int32>(RenderSelectedFacetOptionUrl(parameterName) 1140 1141 #line default 1142 #line hidden 1143 , 9507), false) 1144 ); 1145 1146 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 1147 1148 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-times-circle\""); 1149 1150 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </a>\r\n"); 1151 1152 WriteLiteralTo(__razor_helper_writer, " "); 1153 1154 WriteLiteralTo(__razor_helper_writer, "/"); 1155 1156 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1157 1158 1159 #line 229 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1160 } 1161 1162 1163 #line default 1164 #line hidden 1165 }); 1166 1167 #line 230 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1168 } 1169 #line default 1170 #line hidden 1171 1172 1173 #line 232 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1174 public RazorEngine.Templating.TemplateWriter RenderSelectedFacetOptionUrl(string parameterName) 1175 { 1176 #line default 1177 #line hidden 1178 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1179 1180 #line 233 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1181 1182 var keywordLessUrl = "/Default.aspx?"; 1183 var currentUrlQueryString = Dynamicweb.Context.Current.Request.QueryString; 1184 1185 foreach (string key in currentUrlQueryString) { 1186 if (key == null) 1187 { 1188 continue; 1189 } 1190 if (!key.Equals(parameterName, StringComparison.InvariantCultureIgnoreCase)) 1191 { 1192 var value = currentUrlQueryString[key]; 1193 keywordLessUrl += key + "=" + value + "&"; 1194 } 1195 } 1196 1197 1198 1199 #line default 1200 #line hidden 1201 1202 #line 249 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1203 WriteTo(__razor_helper_writer, keywordLessUrl.TrimEnd('&')); 1204 1205 1206 #line default 1207 #line hidden 1208 1209 #line 249 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1210 ; 1211 1212 1213 #line default 1214 #line hidden 1215 }); 1216 1217 #line 250 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1218 } 1219 #line default 1220 #line hidden 1221 1222 1223 #line 252 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1224 public RazorEngine.Templating.TemplateWriter RenderSelectedFacetOptionName(string parameterValue, LoopItem facet = null) 1225 { 1226 #line default 1227 #line hidden 1228 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1229 1230 #line 253 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1231 1232 var facetOptionName = parameterValue; 1233 1234 if (facet != null) 1235 { 1236 facetOptionName = string.Empty; 1237 foreach (var value in parameterValue.Split(',')) 1238 { 1239 var facetOption = facet.GetLoop("FacetOptions").FirstOrDefault(x => x.GetString("FacetOption.Value").Equals(value, StringComparison.InvariantCultureIgnoreCase)); 1240 if (facetOption != null) 1241 { 1242 var label = facetOption.GetString("FacetOption.Label"); 1243 facetOptionName += (string.IsNullOrEmpty(facetOptionName) ? string.Empty : ", ") + label; 1244 } 1245 } 1246 } 1247 1248 1249 1250 #line default 1251 #line hidden 1252 1253 #line 270 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1254 WriteTo(__razor_helper_writer, facetOptionName); 1255 1256 1257 #line default 1258 #line hidden 1259 1260 #line 270 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1261 1262 1263 1264 #line default 1265 #line hidden 1266 }); 1267 1268 #line 271 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1269 } 1270 #line default 1271 #line hidden 1272 1273 1274 #line 279 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1275 1276 public Dictionary<string, Dictionary<string, string>> BreadcrumbSource = new Dictionary<string, Dictionary<string, string>>(); 1277 1278 public bool paramIsSet(string thisParameter){ 1279 var requestParams = Context.Current.Request.Params; 1280 var paramIsSet = !string.IsNullOrEmpty(requestParams[thisParameter]) ? true : false; 1281 return paramIsSet; 1282 } 1283 1284 #line default 1285 #line hidden 1286 1287 1288 #line 289 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1289 public RazorEngine.Templating.TemplateWriter RenderFacets() 1290 { 1291 #line default 1292 #line hidden 1293 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1294 1295 #line 290 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1296 1297 var str_pageSize = Context.Current.Request.Params["PageSize"] ?? "25"; 1298 var str_sortBy = Context.Current.Request.Params["SortBy"] ?? ""; 1299 //str_sortBy = str_sortBy.Replace("%2C", ","); 1300 1301 var loopFacetGroups = GetLoop("FacetGroups"); 1302 1303 if (loopFacetGroups.Any()) 1304 { 1305 var requestParams = Context.Current.Request.Params; 1306 var str_keywords = !string.IsNullOrEmpty(requestParams["Keywords"]) ? requestParams["Keywords"] : ""; 1307 var str_sortOrder = Context.Current.Request.Params["SortOrder"] ?? ""; 1308 var str_paramGroupID = Context.Current.Request.Params["groupid"] ?? ""; 1309 var str_GeneIDParam = Context.Current.Request.Params["GeneID"] ?? ""; 1310 var DateReleasedMin = !string.IsNullOrEmpty(requestParams["DateReleasedMin"]) ? requestParams["DateReleasedMin"] : ""; 1311 var DateReleasedMax = !string.IsNullOrEmpty(requestParams["DateReleasedMax"]) ? requestParams["DateReleasedMax"] : ""; 1312 var view = !string.IsNullOrEmpty(requestParams["altView"]) ? requestParams["altView"] : ""; 1313 var lst_parameters = GetLoop("Query.Parameters"); 1314 var bol_noResults = false; 1315 1316 1317 1318 #line default 1319 #line hidden 1320 WriteLiteralTo(__razor_helper_writer, " <div"); 1321 1322 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPadding\""); 1323 1324 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n <div"); 1325 1326 WriteLiteralTo(__razor_helper_writer, " class=\"headerBox filtersHead col-xs-12 noPadding\""); 1327 1328 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 1329 1330 WriteLiteralTo(__razor_helper_writer, " class=\"title\""); 1331 1332 WriteLiteralTo(__razor_helper_writer, ">"); 1333 1334 1335 #line 313 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1336 WriteTo(__razor_helper_writer, Translate("filterYourResults", "Filter your results")); 1337 1338 1339 #line default 1340 #line hidden 1341 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n\r\n <form"); 1342 1343 WriteLiteralTo(__razor_helper_writer, " id=\"filtersForm\""); 1344 1345 WriteLiteralTo(__razor_helper_writer, " action=\"/Default.aspx\""); 1346 1347 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPaddingLeft productSearchFilters\""); 1348 1349 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 1350 1351 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 1352 1353 WriteLiteralTo(__razor_helper_writer, " name=\"ID\""); 1354 1355 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 13203), Tuple.Create("\"", 13228) 1356 1357 #line 317 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1358 , Tuple.Create(Tuple.Create("", 13211), Tuple.Create<System.Object, System.Int32>(Pageview.Page.ID 1359 1360 #line default 1361 #line hidden 1362 , 13211), false) 1363 ); 1364 1365 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 1366 1367 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 1368 1369 WriteLiteralTo(__razor_helper_writer, " name=\"PageSize\""); 1370 1371 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 13285), Tuple.Create("\"", 13306) 1372 1373 #line 318 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1374 , Tuple.Create(Tuple.Create("", 13293), Tuple.Create<System.Object, System.Int32>(str_pageSize 1375 1376 #line default 1377 #line hidden 1378 , 13293), false) 1379 ); 1380 1381 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 1382 1383 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 1384 1385 WriteLiteralTo(__razor_helper_writer, " name=\"SortBy\""); 1386 1387 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 13361), Tuple.Create("\"", 13380) 1388 1389 #line 319 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1390 , Tuple.Create(Tuple.Create("", 13369), Tuple.Create<System.Object, System.Int32>(str_sortBy 1391 1392 #line default 1393 #line hidden 1394 , 13369), false) 1395 ); 1396 1397 WriteLiteralTo(__razor_helper_writer, "/>\r\n\r\n"); 1398 1399 WriteLiteralTo(__razor_helper_writer, " "); 1400 1401 1402 #line 321 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1403 WriteTo(__razor_helper_writer, RenderHiddenField("Keywords", str_keywords)); 1404 1405 1406 #line default 1407 #line hidden 1408 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1409 1410 WriteLiteralTo(__razor_helper_writer, " "); 1411 1412 1413 #line 322 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1414 WriteTo(__razor_helper_writer, RenderHiddenField("sortOrder", str_sortOrder)); 1415 1416 1417 #line default 1418 #line hidden 1419 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1420 1421 WriteLiteralTo(__razor_helper_writer, " "); 1422 1423 1424 #line 323 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1425 WriteTo(__razor_helper_writer, RenderHiddenField("GroupID", str_paramGroupID)); 1426 1427 1428 #line default 1429 #line hidden 1430 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1431 1432 WriteLiteralTo(__razor_helper_writer, " "); 1433 1434 1435 #line 324 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1436 WriteTo(__razor_helper_writer, RenderHiddenField("GeneID", str_GeneIDParam)); 1437 1438 1439 #line default 1440 #line hidden 1441 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1442 1443 WriteLiteralTo(__razor_helper_writer, " "); 1444 1445 1446 #line 325 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1447 WriteTo(__razor_helper_writer, RenderHiddenField("DateReleasedMin", DateReleasedMin)); 1448 1449 1450 #line default 1451 #line hidden 1452 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1453 1454 WriteLiteralTo(__razor_helper_writer, " "); 1455 1456 1457 #line 326 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1458 WriteTo(__razor_helper_writer, RenderHiddenField("DateReleasedMax", DateReleasedMax)); 1459 1460 1461 #line default 1462 #line hidden 1463 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n <input"); 1464 1465 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 1466 1467 WriteLiteralTo(__razor_helper_writer, " name=\"altView\""); 1468 1469 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 13838), Tuple.Create("\"", 13851) 1470 1471 #line 328 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1472 , Tuple.Create(Tuple.Create("", 13846), Tuple.Create<System.Object, System.Int32>(view 1473 1474 #line default 1475 #line hidden 1476 , 13846), false) 1477 ); 1478 1479 WriteLiteralTo(__razor_helper_writer, "/>\r\n\r\n"); 1480 1481 1482 #line 330 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1483 1484 1485 #line default 1486 #line hidden 1487 1488 #line 330 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1489 if (Pageview.Area.Item["ExploreNewProducts"].ToString() == Pageview.Page.ID.ToString()) 1490 { 1491 var currentMonth = DateTime.Today.ToString("MM"); 1492 var monthParameter = requestParams["month"] != null ? requestParams["month"] : ""; 1493 1494 1495 1496 #line default 1497 #line hidden 1498 WriteLiteralTo(__razor_helper_writer, " <fieldset>\r\n <label>"); 1499 1500 1501 #line 336 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1502 WriteTo(__razor_helper_writer, Translate("Month", "Month")); 1503 1504 1505 #line default 1506 #line hidden 1507 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <div"); 1508 1509 WriteLiteralTo(__razor_helper_writer, " class=\"filtersContainer\""); 1510 1511 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 1512 1513 WriteLiteralTo(__razor_helper_writer, " class=\"radioBoxContainer\""); 1514 1515 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 14377), Tuple.Create("\"", 14396) 1516 1517 #line 338 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1518 , Tuple.Create(Tuple.Create("", 14383), Tuple.Create<System.Object, System.Int32>(currentMonth 1519 1520 #line default 1521 #line hidden 1522 , 14383), false) 1523 ); 1524 1525 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 1526 1527 WriteLiteralTo(__razor_helper_writer, " class=\"month\""); 1528 1529 WriteLiteralTo(__razor_helper_writer, " data-min=\'"); 1530 1531 1532 #line 339 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1533 WriteTo(__razor_helper_writer, string.Format("{0}-{1}-01", DateTime.Today.Year, DateTime.Today.Month)); 1534 1535 1536 #line default 1537 #line hidden 1538 WriteLiteralTo(__razor_helper_writer, "\'"); 1539 1540 WriteLiteralTo(__razor_helper_writer, " data-max=\'"); 1541 1542 1543 #line 339 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1544 WriteTo(__razor_helper_writer, string.Format("{0}-{1}-{2}", DateTime.Today.Year, DateTime.Today.Month, DateTime.DaysInMonth(DateTime.Today.Year, DateTime.Today.Month))); 1545 1546 1547 #line default 1548 #line hidden 1549 WriteLiteralTo(__razor_helper_writer, "\'"); 1550 1551 WriteLiteralTo(__razor_helper_writer, " "); 1552 1553 1554 #line 339 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1555 WriteTo(__razor_helper_writer, monthParameter == currentMonth ? "checked='checked'" : ""); 1556 1557 1558 #line default 1559 #line hidden 1560 WriteLiteralTo(__razor_helper_writer, " type=\"radio\" value=\""); 1561 1562 1563 #line 339 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1564 WriteTo(__razor_helper_writer, currentMonth); 1565 1566 1567 #line default 1568 #line hidden 1569 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 1570 1571 1572 #line 339 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1573 WriteTo(__razor_helper_writer, currentMonth); 1574 1575 1576 #line default 1577 #line hidden 1578 WriteLiteralTo(__razor_helper_writer, "\" name=\"month\"> <span>"); 1579 1580 1581 #line 339 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1582 WriteTo(__razor_helper_writer, DateTime.Today.ToString("MMMM")); 1583 1584 1585 #line default 1586 #line hidden 1587 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n </div>\r\n"); 1588 1589 1590 #line 342 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1591 1592 1593 #line default 1594 #line hidden 1595 1596 #line 342 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1597 for (var i = 1; i < 6; i++) 1598 { 1599 var month = DateTime.Today.AddMonths(-i).ToString("MMMM"); 1600 var monthNumeric = DateTime.Today.AddMonths(-i).ToString("MM"); 1601 1602 1603 #line default 1604 #line hidden 1605 WriteLiteralTo(__razor_helper_writer, " <div"); 1606 1607 WriteLiteralTo(__razor_helper_writer, " class=\"filtersContainer\""); 1608 1609 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 1610 1611 WriteLiteralTo(__razor_helper_writer, " class=\"radioBoxContainer\""); 1612 1613 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 15317), Tuple.Create("\"", 15329) 1614 1615 #line 347 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1616 , Tuple.Create(Tuple.Create("", 15323), Tuple.Create<System.Object, System.Int32>(month 1617 1618 #line default 1619 #line hidden 1620 , 15323), false) 1621 ); 1622 1623 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 1624 1625 WriteLiteralTo(__razor_helper_writer, " class=\"month\""); 1626 1627 WriteLiteralTo(__razor_helper_writer, " data-min=\'"); 1628 1629 1630 #line 348 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1631 WriteTo(__razor_helper_writer, string.Format("{0}-{1}-01", DateTime.Today.AddMonths(-i).Year, DateTime.Today.AddMonths(-i).Month)); 1632 1633 1634 #line default 1635 #line hidden 1636 WriteLiteralTo(__razor_helper_writer, "\'"); 1637 1638 WriteLiteralTo(__razor_helper_writer, " data-max=\'"); 1639 1640 1641 #line 348 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1642 WriteTo(__razor_helper_writer, string.Format("{0}-{1}-{2}", DateTime.Today.AddMonths(-i).Year, DateTime.Today.AddMonths(-i).Month, DateTime.DaysInMonth(DateTime.Today.AddMonths(-i).Year, DateTime.Today.AddMonths(-i).Month))); 1643 1644 1645 #line default 1646 #line hidden 1647 WriteLiteralTo(__razor_helper_writer, "\'"); 1648 1649 WriteLiteralTo(__razor_helper_writer, " "); 1650 1651 1652 #line 348 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1653 WriteTo(__razor_helper_writer, monthParameter == monthNumeric ? "checked='checked'" : ""); 1654 1655 1656 #line default 1657 #line hidden 1658 WriteLiteralTo(__razor_helper_writer, " type=\"radio\" value=\""); 1659 1660 1661 #line 348 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1662 WriteTo(__razor_helper_writer, monthNumeric); 1663 1664 1665 #line default 1666 #line hidden 1667 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 1668 1669 1670 #line 348 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1671 WriteTo(__razor_helper_writer, month); 1672 1673 1674 #line default 1675 #line hidden 1676 WriteLiteralTo(__razor_helper_writer, "\" name=\"month\">\r\n <span>"); 1677 1678 1679 #line 349 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1680 WriteTo(__razor_helper_writer, month); 1681 1682 1683 #line default 1684 #line hidden 1685 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n </" + 1686 "div>\r\n"); 1687 1688 1689 #line 352 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1690 } 1691 1692 1693 #line default 1694 #line hidden 1695 WriteLiteralTo(__razor_helper_writer, " </fieldset>\r\n"); 1696 1697 1698 #line 354 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1699 } 1700 1701 1702 #line default 1703 #line hidden 1704 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1705 1706 1707 #line 356 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1708 1709 1710 #line default 1711 #line hidden 1712 1713 #line 356 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1714 foreach (var facetGroup in loopFacetGroups) 1715 { 1716 foreach (var facet in facetGroup.GetLoop("Facets")) 1717 { 1718 var str_parameterType = lst_parameters.Where(x => x.GetString("Parameter.Name") == facet.GetString("Facet.QueryParameter")).FirstOrDefault().GetString("Parameter.Type"); 1719 if (facet.GetString("Facet.RenderType") == "Checkboxes") 1720 { 1721 1722 1723 #line default 1724 #line hidden 1725 1726 #line 363 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1727 WriteTo(__razor_helper_writer, RenderCheckboxesFacet(facet)); 1728 1729 1730 #line default 1731 #line hidden 1732 1733 #line 363 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1734 1735 } 1736 1737 else if (str_parameterType.Contains("[]")) 1738 { 1739 1740 1741 #line default 1742 #line hidden 1743 1744 #line 368 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1745 WriteTo(__razor_helper_writer, RenderCheckboxesFacet(facet)); 1746 1747 1748 #line default 1749 #line hidden 1750 1751 #line 368 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1752 1753 } 1754 else if (str_parameterType.Contains("Boolean")) 1755 { 1756 1757 1758 #line default 1759 #line hidden 1760 1761 #line 372 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1762 WriteTo(__razor_helper_writer, RenderCheckboxFacet(facet, str_parameterType, bol_noResults)); 1763 1764 1765 #line default 1766 #line hidden 1767 1768 #line 372 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1769 1770 } 1771 else if (!string.IsNullOrWhiteSpace(facet.GetString("Facet.OptionCount"))) 1772 { 1773 1774 1775 #line default 1776 #line hidden 1777 1778 #line 376 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1779 WriteTo(__razor_helper_writer, RenderCheckboxesFacet(facet)); 1780 1781 1782 #line default 1783 #line hidden 1784 1785 #line 376 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1786 1787 } 1788 else 1789 { 1790 1791 1792 #line default 1793 #line hidden 1794 1795 #line 380 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1796 WriteTo(__razor_helper_writer, RenderFacet(facet, str_parameterType, "text", bol_noResults)); 1797 1798 1799 #line default 1800 #line hidden 1801 1802 #line 380 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1803 1804 } 1805 } 1806 } 1807 1808 1809 #line default 1810 #line hidden 1811 WriteLiteralTo(__razor_helper_writer, " </form>\r\n </div>\r\n"); 1812 1813 1814 #line 386 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1815 } 1816 1817 1818 #line default 1819 #line hidden 1820 }); 1821 1822 #line 387 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1823 } 1824 #line default 1825 #line hidden 1826 1827 1828 #line 389 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1829 public RazorEngine.Templating.TemplateWriter RenderHiddenField(string name, string value) 1830 { 1831 #line default 1832 #line hidden 1833 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1834 1835 #line 390 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1836 1837 if (value != "") 1838 { 1839 1840 1841 #line default 1842 #line hidden 1843 WriteLiteralTo(__razor_helper_writer, " <input"); 1844 1845 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 1846 1847 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 17606), Tuple.Create("\"", 17618) 1848 1849 #line 393 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1850 , Tuple.Create(Tuple.Create("", 17613), Tuple.Create<System.Object, System.Int32>(name 1851 1852 #line default 1853 #line hidden 1854 , 17613), false) 1855 ); 1856 1857 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 17619), Tuple.Create("\"", 17633) 1858 1859 #line 393 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1860 , Tuple.Create(Tuple.Create("", 17627), Tuple.Create<System.Object, System.Int32>(value 1861 1862 #line default 1863 #line hidden 1864 , 17627), false) 1865 ); 1866 1867 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 1868 1869 1870 #line 394 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1871 } 1872 1873 1874 #line default 1875 #line hidden 1876 }); 1877 1878 #line 395 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1879 } 1880 #line default 1881 #line hidden 1882 1883 1884 #line 397 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1885 public RazorEngine.Templating.TemplateWriter RenderCheckboxesFacet(LoopItem facet) 1886 { 1887 #line default 1888 #line hidden 1889 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1890 1891 #line 398 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1892 1893 var str_parameter = facet.GetString("Facet.QueryParameter"); 1894 var str_name = facet.GetString("Facet.Name"); 1895 var facetOptions = facet.GetLoop("FacetOptions"); 1896 1897 var extraClass = facet.GetString("Facet.QueryParameter").Equals("ExcitationLaser") || facet.GetString("Facet.QueryParameter").Equals("Isotype") ? "noCapitalize" : ""; 1898 var inputID = facet.GetString("Facet.QueryParameter") + "Search"; 1899 var inputDivID = facet.GetString("Facet.QueryParameter") + "Div"; 1900 var facetType = facet.GetString("Facet.Type"); 1901 1902 var thisParamIsSet = paramIsSet(str_parameter); 1903 var hiddenClass= "hide"; 1904 var fieldsetIsActive = ""; 1905 if(thisParamIsSet){ 1906 hiddenClass= ""; 1907 fieldsetIsActive = "class=\"active\""; 1908 } 1909 1910 if (facetOptions.Any()) 1911 { 1912 1913 1914 #line default 1915 #line hidden 1916 WriteLiteralTo(__razor_helper_writer, " <fieldset "); 1917 1918 1919 #line 418 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1920 WriteTo(__razor_helper_writer, fieldsetIsActive); 1921 1922 1923 #line default 1924 #line hidden 1925 WriteLiteralTo(__razor_helper_writer, " data-type=\""); 1926 1927 1928 #line 418 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1929 WriteTo(__razor_helper_writer, facet.GetString("Facet.QueryParameter.Type")); 1930 1931 1932 #line default 1933 #line hidden 1934 WriteLiteralTo(__razor_helper_writer, "\">\r\n <legend"); 1935 1936 WriteLiteralTo(__razor_helper_writer, " class=\"filterTitle\""); 1937 1938 WriteLiteralTo(__razor_helper_writer, ">"); 1939 1940 1941 #line 419 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1942 WriteTo(__razor_helper_writer, str_name); 1943 1944 1945 #line default 1946 #line hidden 1947 WriteLiteralTo(__razor_helper_writer, "</legend>\r\n\r\n <div"); 1948 1949 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 18679), Tuple.Create("\"", 18728) 1950 , Tuple.Create(Tuple.Create("", 18687), Tuple.Create("filtersContainer", 18687), true) 1951 1952 #line 421 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1953 , Tuple.Create(Tuple.Create(" ", 18703), Tuple.Create<System.Object, System.Int32>(extraClass 1954 1955 #line default 1956 #line hidden 1957 , 18704), false) 1958 1959 #line 421 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1960 , Tuple.Create(Tuple.Create(" ", 18715), Tuple.Create<System.Object, System.Int32>(hiddenClass 1961 1962 #line default 1963 #line hidden 1964 , 18716), false) 1965 ); 1966 1967 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 18729), Tuple.Create("\"", 18745) 1968 1969 #line 421 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1970 , Tuple.Create(Tuple.Create("", 18734), Tuple.Create<System.Object, System.Int32>(inputDivID 1971 1972 #line default 1973 #line hidden 1974 , 18734), false) 1975 ); 1976 1977 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1978 1979 1980 #line 422 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1981 1982 1983 #line default 1984 #line hidden 1985 1986 #line 422 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 1987 if (facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).Count() > 9) 1988 { 1989 1990 1991 #line default 1992 #line hidden 1993 WriteLiteralTo(__razor_helper_writer, " <div"); 1994 1995 WriteLiteralTo(__razor_helper_writer, " class=\"searchFilterContainer\""); 1996 1997 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 1998 1999 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-search\""); 2000 2001 WriteLiteralTo(__razor_helper_writer, "></span>\r\n <input"); 2002 2003 WriteLiteralTo(__razor_helper_writer, " class=\"searchFilterSearchBar\""); 2004 2005 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 19044), Tuple.Create("\"", 19057) 2006 2007 #line 426 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2008 , Tuple.Create(Tuple.Create("", 19049), Tuple.Create<System.Object, System.Int32>(inputID 2009 2010 #line default 2011 #line hidden 2012 , 19049), false) 2013 ); 2014 2015 WriteAttributeTo(__razor_helper_writer, "onkeyup", Tuple.Create(" onkeyup=\"", 19058), Tuple.Create("\"", 19120) 2016 , Tuple.Create(Tuple.Create("", 19068), Tuple.Create("filterSearchFilterOptions(\'", 19068), true) 2017 2018 #line 426 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2019 , Tuple.Create(Tuple.Create("", 19095), Tuple.Create<System.Object, System.Int32>(inputID 2020 2021 #line default 2022 #line hidden 2023 , 19095), false) 2024 , Tuple.Create(Tuple.Create("", 19103), Tuple.Create("\',\'", 19103), true) 2025 2026 #line 426 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2027 , Tuple.Create(Tuple.Create("", 19106), Tuple.Create<System.Object, System.Int32>(inputDivID 2028 2029 #line default 2030 #line hidden 2031 , 19106), false) 2032 , Tuple.Create(Tuple.Create("", 19117), Tuple.Create("\');", 19117), true) 2033 ); 2034 2035 WriteLiteralTo(__razor_helper_writer, ">\r\n </div>\r\n"); 2036 2037 2038 #line 428 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2039 } 2040 2041 2042 #line default 2043 #line hidden 2044 WriteLiteralTo(__razor_helper_writer, " "); 2045 2046 2047 #line 429 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2048 foreach (var option in facetOptions) 2049 { 2050 var bol_checked = option.GetBoolean("FacetOption.Selected"); 2051 var str_value = option.GetString("FacetOption.Value"); 2052 2053 2054 2055 #line default 2056 #line hidden 2057 WriteLiteralTo(__razor_helper_writer, " <label"); 2058 2059 WriteLiteralTo(__razor_helper_writer, " class=\"checkBoxContainer\""); 2060 2061 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 2062 2063 WriteAttributeTo(__razor_helper_writer, "checked", Tuple.Create(" checked=\"", 19490), Tuple.Create("\"", 19512) 2064 2065 #line 435 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2066 , Tuple.Create(Tuple.Create("", 19500), Tuple.Create<System.Object, System.Int32>(bol_checked 2067 2068 #line default 2069 #line hidden 2070 , 19500), false) 2071 ); 2072 2073 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 2074 2075 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 19529), Tuple.Create("\"", 19547) 2076 2077 #line 435 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2078 , Tuple.Create(Tuple.Create("", 19537), Tuple.Create<System.Object, System.Int32>(str_value 2079 2080 #line default 2081 #line hidden 2082 , 19537), false) 2083 ); 2084 2085 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 19548), Tuple.Create("\"", 19569) 2086 2087 #line 435 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2088 , Tuple.Create(Tuple.Create("", 19555), Tuple.Create<System.Object, System.Int32>(str_parameter 2089 2090 #line default 2091 #line hidden 2092 , 19555), false) 2093 ); 2094 2095 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>\r\n"); 2096 2097 WriteLiteralTo(__razor_helper_writer, " "); 2098 2099 2100 #line 437 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2101 WriteTo(__razor_helper_writer, option.GetString("FacetOption.Label")); 2102 2103 2104 #line default 2105 #line hidden 2106 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2107 2108 2109 #line 438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2110 2111 2112 #line default 2113 #line hidden 2114 2115 #line 438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2116 if (facetType != "Term" && option.GetInteger("FacetOption.Count") > 0) 2117 { 2118 var counter = string.Format("({0})", option.GetString("FacetOption.Count")); 2119 2120 2121 #line default 2122 #line hidden 2123 2124 #line 441 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2125 WriteTo(__razor_helper_writer, counter); 2126 2127 2128 #line default 2129 #line hidden 2130 2131 #line 441 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2132 2133 } 2134 2135 2136 #line default 2137 #line hidden 2138 WriteLiteralTo(__razor_helper_writer, " </span>\r\n </label>\r\n"); 2139 2140 2141 #line 445 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2142 } 2143 2144 2145 #line default 2146 #line hidden 2147 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </fieldset>\r\n"); 2148 2149 2150 #line 448 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2151 } 2152 2153 2154 #line default 2155 #line hidden 2156 }); 2157 2158 #line 449 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2159 } 2160 #line default 2161 #line hidden 2162 2163 2164 #line 451 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2165 public RazorEngine.Templating.TemplateWriter RenderCheckboxFacet(LoopItem i, string str_parameterType, bool bol_noResults) 2166 { 2167 #line default 2168 #line hidden 2169 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2170 2171 #line 452 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2172 2173 var str_parameter = i.GetString("Facet.QueryParameter"); 2174 var str_name = i.GetString("Facet.Name"); 2175 var facetOptions = i.GetLoop("FacetOptions"); 2176 2177 if (bol_noResults) 2178 { 2179 facetOptions = facetOptions.OrderByDescending(o => o.GetInteger("FacetOption.Count")).ThenBy(or => or.GetString("FacetOption.Label")).ToList(); 2180 } 2181 else 2182 { 2183 facetOptions = facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).OrderBy(o => o.GetString("FacetOption.Label")).ToList(); 2184 } 2185 2186 2187 2188 #line default 2189 #line hidden 2190 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 2191 2192 WriteLiteralTo(__razor_helper_writer, " data-type=\""); 2193 2194 2195 #line 466 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2196 WriteTo(__razor_helper_writer, str_parameterType); 2197 2198 2199 #line default 2200 #line hidden 2201 WriteLiteralTo(__razor_helper_writer, "\""); 2202 2203 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2204 2205 2206 #line 467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2207 2208 2209 #line default 2210 #line hidden 2211 2212 #line 467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2213 foreach (var option in facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).OrderByDescending(o => o.GetInteger("FacetOption.Count")).ThenBy(or => or.GetString("FacetOption.Label"))) 2214 { 2215 var bol_checked = option.GetBoolean("FacetOption.Selected"); 2216 var str_value = option.GetString("FacetOption.Value") == "True" ? "True" : ""; 2217 2218 if (str_value == "True") 2219 { 2220 2221 2222 #line default 2223 #line hidden 2224 WriteLiteralTo(__razor_helper_writer, " <legend"); 2225 2226 WriteLiteralTo(__razor_helper_writer, " class=\"filterTitle\""); 2227 2228 WriteLiteralTo(__razor_helper_writer, ">"); 2229 2230 2231 #line 474 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2232 WriteTo(__razor_helper_writer, str_name); 2233 2234 2235 #line default 2236 #line hidden 2237 WriteLiteralTo(__razor_helper_writer, "</legend>\r\n"); 2238 2239 WriteLiteralTo(__razor_helper_writer, " <div"); 2240 2241 WriteLiteralTo(__razor_helper_writer, " class=\"filtersContainer\""); 2242 2243 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 2244 2245 WriteLiteralTo(__razor_helper_writer, " class=\"checkBoxContainer\""); 2246 2247 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 2248 2249 WriteAttributeTo(__razor_helper_writer, "checked", Tuple.Create(" checked=\"", 21417), Tuple.Create("\"", 21439) 2250 2251 #line 477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2252 , Tuple.Create(Tuple.Create("", 21427), Tuple.Create<System.Object, System.Int32>(bol_checked 2253 2254 #line default 2255 #line hidden 2256 , 21427), false) 2257 ); 2258 2259 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 2260 2261 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 21456), Tuple.Create("\"", 21474) 2262 2263 #line 477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2264 , Tuple.Create(Tuple.Create("", 21464), Tuple.Create<System.Object, System.Int32>(str_value 2265 2266 #line default 2267 #line hidden 2268 , 21464), false) 2269 ); 2270 2271 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 21475), Tuple.Create("\"", 21496) 2272 2273 #line 477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2274 , Tuple.Create(Tuple.Create("", 21482), Tuple.Create<System.Object, System.Int32>(str_parameter 2275 2276 #line default 2277 #line hidden 2278 , 21482), false) 2279 ); 2280 2281 WriteLiteralTo(__razor_helper_writer, "> <span>"); 2282 2283 2284 #line 477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2285 WriteTo(__razor_helper_writer, str_name); 2286 2287 2288 #line default 2289 #line hidden 2290 WriteLiteralTo(__razor_helper_writer, " ("); 2291 2292 2293 #line 477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2294 WriteTo(__razor_helper_writer, option.GetString("FacetOption.Count")); 2295 2296 2297 #line default 2298 #line hidden 2299 WriteLiteralTo(__razor_helper_writer, ")</span>\r\n </label>\r\n </div>\r\n"); 2300 2301 2302 #line 480 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2303 } 2304 } 2305 2306 2307 #line default 2308 #line hidden 2309 WriteLiteralTo(__razor_helper_writer, " </fieldset>\r\n"); 2310 2311 2312 #line 483 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2313 2314 2315 #line default 2316 #line hidden 2317 }); 2318 2319 #line 483 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2320 } 2321 #line default 2322 #line hidden 2323 2324 2325 #line 485 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2326 public RazorEngine.Templating.TemplateWriter RenderFacet(LoopItem i, string str_parameterType, string str_templateOutput, bool bol_noResults) 2327 { 2328 #line default 2329 #line hidden 2330 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2331 2332 #line 486 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2333 2334 var str_parameter = i.GetString("Facet.QueryParameter"); 2335 var str_name = i.GetString("Facet.Name"); 2336 var facetOptions = i.GetLoop("FacetOptions"); 2337 2338 if (bol_noResults) 2339 { 2340 facetOptions = facetOptions.OrderByDescending(o => o.GetInteger("FacetOption.Count")).ThenBy(or => or.GetString("FacetOption.Label")).ToList(); 2341 } 2342 else 2343 { 2344 facetOptions = facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).OrderBy(o => o.GetString("FacetOption.Label")).ToList(); 2345 } 2346 2347 switch (str_templateOutput) 2348 { 2349 case "multiselect": 2350 if (facetOptions.Any()) 2351 { 2352 2353 2354 #line default 2355 #line hidden 2356 WriteLiteralTo(__razor_helper_writer, " <fieldset>\r\n <legend>"); 2357 2358 2359 #line 506 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2360 WriteTo(__razor_helper_writer, str_name); 2361 2362 2363 #line default 2364 #line hidden 2365 WriteLiteralTo(__razor_helper_writer, "</legend>\r\n <select"); 2366 2367 WriteLiteralTo(__razor_helper_writer, " data-selected-text-format=\"count\""); 2368 2369 WriteLiteralTo(__razor_helper_writer, " data-live-search=\"true\""); 2370 2371 WriteLiteralTo(__razor_helper_writer, " data-size=\"8\""); 2372 2373 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 22595), Tuple.Create("\"", 22616) 2374 2375 #line 507 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2376 , Tuple.Create(Tuple.Create("", 22602), Tuple.Create<System.Object, System.Int32>(str_parameter 2377 2378 #line default 2379 #line hidden 2380 , 22602), false) 2381 ); 2382 2383 WriteLiteralTo(__razor_helper_writer, " multiple>\r\n"); 2384 2385 2386 #line 508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2387 2388 2389 #line default 2390 #line hidden 2391 2392 #line 508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2393 foreach (var option in facetOptions.OrderByDescending(o => o.GetInteger("FacetOption.Label"))) 2394 { 2395 var bol_checked = option.GetBoolean("FacetOption.Selected"); 2396 var str_value = option.GetString("FacetOption.Value"); 2397 2398 2399 2400 #line default 2401 #line hidden 2402 WriteLiteralTo(__razor_helper_writer, " <option"); 2403 2404 WriteAttributeTo(__razor_helper_writer, "selected", Tuple.Create(" selected=\"", 22988), Tuple.Create("\"", 23011) 2405 2406 #line 513 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2407 , Tuple.Create(Tuple.Create("", 22999), Tuple.Create<System.Object, System.Int32>(bol_checked 2408 2409 #line default 2410 #line hidden 2411 , 22999), false) 2412 ); 2413 2414 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 23012), Tuple.Create("\"", 23030) 2415 2416 #line 513 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2417 , Tuple.Create(Tuple.Create("", 23020), Tuple.Create<System.Object, System.Int32>(str_value 2418 2419 #line default 2420 #line hidden 2421 , 23020), false) 2422 ); 2423 2424 WriteLiteralTo(__razor_helper_writer, ">"); 2425 2426 2427 #line 513 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2428 WriteTo(__razor_helper_writer, option.GetString("FacetOption.Label")); 2429 2430 2431 #line default 2432 #line hidden 2433 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 2434 2435 2436 #line 514 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2437 } 2438 2439 2440 #line default 2441 #line hidden 2442 WriteLiteralTo(__razor_helper_writer, " </select>\r\n </fieldset>\r\n"); 2443 2444 2445 #line 517 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2446 } 2447 2448 break; 2449 case "checkboxes": 2450 var extraClass = i.GetString("Facet.QueryParameter").Equals("ExcitationLaser") || i.GetString("Facet.QueryParameter").Equals("Isotype") ? "noCapitalize" : ""; 2451 var inputID = i.GetString("Facet.QueryParameter") + "Search"; 2452 var inputDivID = i.GetString("Facet.QueryParameter") + "Div"; 2453 var facetType = i.GetString("Facet.Type"); 2454 2455 if (facetOptions.Any()) 2456 { 2457 2458 2459 #line default 2460 #line hidden 2461 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 2462 2463 WriteLiteralTo(__razor_helper_writer, " data-type=\""); 2464 2465 2466 #line 528 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2467 WriteTo(__razor_helper_writer, str_parameterType); 2468 2469 2470 #line default 2471 #line hidden 2472 WriteLiteralTo(__razor_helper_writer, "\""); 2473 2474 WriteLiteralTo(__razor_helper_writer, ">\r\n <legend"); 2475 2476 WriteLiteralTo(__razor_helper_writer, " class=\"filterTitle\""); 2477 2478 WriteLiteralTo(__razor_helper_writer, ">"); 2479 2480 2481 #line 529 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2482 WriteTo(__razor_helper_writer, str_name); 2483 2484 2485 #line default 2486 #line hidden 2487 WriteLiteralTo(__razor_helper_writer, "</legend>\r\n\r\n <div"); 2488 2489 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 23818), Tuple.Create("\"", 23859) 2490 , Tuple.Create(Tuple.Create("", 23826), Tuple.Create("filtersContainer", 23826), true) 2491 2492 #line 531 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2493 , Tuple.Create(Tuple.Create(" ", 23842), Tuple.Create<System.Object, System.Int32>(extraClass 2494 2495 #line default 2496 #line hidden 2497 , 23843), false) 2498 , Tuple.Create(Tuple.Create(" ", 23854), Tuple.Create("hide", 23855), true) 2499 ); 2500 2501 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 23860), Tuple.Create("\"", 23876) 2502 2503 #line 531 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2504 , Tuple.Create(Tuple.Create("", 23865), Tuple.Create<System.Object, System.Int32>(inputDivID 2505 2506 #line default 2507 #line hidden 2508 , 23865), false) 2509 ); 2510 2511 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2512 2513 2514 #line 532 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2515 2516 2517 #line default 2518 #line hidden 2519 2520 #line 532 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2521 if (facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).Count() > 9) 2522 { 2523 2524 2525 #line default 2526 #line hidden 2527 WriteLiteralTo(__razor_helper_writer, " <div"); 2528 2529 WriteLiteralTo(__razor_helper_writer, " class=\"searchFilterContainer\""); 2530 2531 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 2532 2533 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-search\""); 2534 2535 WriteLiteralTo(__razor_helper_writer, "></span>\r\n <input"); 2536 2537 WriteLiteralTo(__razor_helper_writer, " class=\"searchFilterSearchBar\""); 2538 2539 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 24215), Tuple.Create("\"", 24228) 2540 2541 #line 536 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2542 , Tuple.Create(Tuple.Create("", 24220), Tuple.Create<System.Object, System.Int32>(inputID 2543 2544 #line default 2545 #line hidden 2546 , 24220), false) 2547 ); 2548 2549 WriteAttributeTo(__razor_helper_writer, "onkeyup", Tuple.Create(" onkeyup=\"", 24229), Tuple.Create("\"", 24291) 2550 , Tuple.Create(Tuple.Create("", 24239), Tuple.Create("filterSearchFilterOptions(\'", 24239), true) 2551 2552 #line 536 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2553 , Tuple.Create(Tuple.Create("", 24266), Tuple.Create<System.Object, System.Int32>(inputID 2554 2555 #line default 2556 #line hidden 2557 , 24266), false) 2558 , Tuple.Create(Tuple.Create("", 24274), Tuple.Create("\',\'", 24274), true) 2559 2560 #line 536 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2561 , Tuple.Create(Tuple.Create("", 24277), Tuple.Create<System.Object, System.Int32>(inputDivID 2562 2563 #line default 2564 #line hidden 2565 , 24277), false) 2566 , Tuple.Create(Tuple.Create("", 24288), Tuple.Create("\');", 24288), true) 2567 ); 2568 2569 WriteLiteralTo(__razor_helper_writer, ">\r\n </div>\r\n"); 2570 2571 2572 #line 538 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2573 } 2574 2575 2576 #line default 2577 #line hidden 2578 WriteLiteralTo(__razor_helper_writer, " "); 2579 2580 2581 #line 539 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2582 foreach (var option in facetOptions) 2583 { 2584 var bol_checked = option.GetBoolean("FacetOption.Selected"); 2585 var str_value = option.GetString("FacetOption.Value"); 2586 if (bol_checked) 2587 { 2588 var breadcrumbSourceTemp = new Dictionary<string, string>(); 2589 var thisFilter = i.GetString("Facet.QueryParameter") + str_value; 2590 breadcrumbSourceTemp.Add("val", str_value); 2591 breadcrumbSourceTemp.Add("label", option.GetString("FacetOption.Label")); 2592 breadcrumbSourceTemp.Add("filter", i.GetString("Facet.QueryParameter")); 2593 BreadcrumbSource.Add(thisFilter, breadcrumbSourceTemp); 2594 } 2595 2596 2597 2598 #line default 2599 #line hidden 2600 WriteLiteralTo(__razor_helper_writer, " <label"); 2601 2602 WriteLiteralTo(__razor_helper_writer, " class=\"checkBoxContainer\""); 2603 2604 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 2605 2606 WriteAttributeTo(__razor_helper_writer, "checked", Tuple.Create(" checked=\"", 25405), Tuple.Create("\"", 25427) 2607 2608 #line 554 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2609 , Tuple.Create(Tuple.Create("", 25415), Tuple.Create<System.Object, System.Int32>(bol_checked 2610 2611 #line default 2612 #line hidden 2613 , 25415), false) 2614 ); 2615 2616 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 2617 2618 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 25444), Tuple.Create("\"", 25462) 2619 2620 #line 554 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2621 , Tuple.Create(Tuple.Create("", 25452), Tuple.Create<System.Object, System.Int32>(str_value 2622 2623 #line default 2624 #line hidden 2625 , 25452), false) 2626 ); 2627 2628 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 25463), Tuple.Create("\"", 25484) 2629 2630 #line 554 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2631 , Tuple.Create(Tuple.Create("", 25470), Tuple.Create<System.Object, System.Int32>(str_parameter 2632 2633 #line default 2634 #line hidden 2635 , 25470), false) 2636 ); 2637 2638 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>\r\n"); 2639 2640 WriteLiteralTo(__razor_helper_writer, " "); 2641 2642 2643 #line 556 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2644 WriteTo(__razor_helper_writer, option.GetString("FacetOption.Label")); 2645 2646 2647 #line default 2648 #line hidden 2649 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2650 2651 2652 #line 557 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2653 2654 2655 #line default 2656 #line hidden 2657 2658 #line 557 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2659 if (facetType != "Term" && option.GetInteger("FacetOption.Count") > 0) 2660 { 2661 var counter = string.Format("({0})", option.GetString("FacetOption.Count")); 2662 2663 2664 #line default 2665 #line hidden 2666 2667 #line 560 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2668 WriteTo(__razor_helper_writer, counter); 2669 2670 2671 #line default 2672 #line hidden 2673 2674 #line 560 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2675 2676 } 2677 2678 2679 #line default 2680 #line hidden 2681 WriteLiteralTo(__razor_helper_writer, " </span>\r\n </label>\r\n"); 2682 2683 2684 #line 564 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2685 } 2686 2687 2688 #line default 2689 #line hidden 2690 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </fieldset>\r\n"); 2691 2692 2693 #line 567 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2694 } 2695 2696 break; 2697 case "select": 2698 2699 break; 2700 case "checkbox": 2701 2702 if (facetOptions.Any()) 2703 { 2704 2705 2706 #line default 2707 #line hidden 2708 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 2709 2710 WriteLiteralTo(__razor_helper_writer, " data-type=\""); 2711 2712 2713 #line 577 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2714 WriteTo(__razor_helper_writer, str_parameterType); 2715 2716 2717 #line default 2718 #line hidden 2719 WriteLiteralTo(__razor_helper_writer, "\""); 2720 2721 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2722 2723 2724 #line 578 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2725 2726 2727 #line default 2728 #line hidden 2729 2730 #line 578 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2731 foreach (var option in facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).OrderByDescending(o => o.GetInteger("FacetOption.Count")).ThenBy(or => or.GetString("FacetOption.Label"))) 2732 { 2733 var bol_checked = option.GetBoolean("FacetOption.Selected"); 2734 var str_value = option.GetString("FacetOption.Value") == "True" ? "True" : ""; 2735 2736 if (str_value == "True") 2737 { 2738 2739 2740 #line default 2741 #line hidden 2742 WriteLiteralTo(__razor_helper_writer, " <legend"); 2743 2744 WriteLiteralTo(__razor_helper_writer, " class=\"filterTitle\""); 2745 2746 WriteLiteralTo(__razor_helper_writer, ">"); 2747 2748 2749 #line 585 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2750 WriteTo(__razor_helper_writer, str_name); 2751 2752 2753 #line default 2754 #line hidden 2755 WriteLiteralTo(__razor_helper_writer, "</legend>\r\n"); 2756 2757 WriteLiteralTo(__razor_helper_writer, " <div"); 2758 2759 WriteLiteralTo(__razor_helper_writer, " class=\"filtersContainer\""); 2760 2761 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 2762 2763 WriteLiteralTo(__razor_helper_writer, " class=\"checkBoxContainer\""); 2764 2765 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 2766 2767 WriteAttributeTo(__razor_helper_writer, "checked", Tuple.Create(" checked=\"", 27097), Tuple.Create("\"", 27119) 2768 2769 #line 588 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2770 , Tuple.Create(Tuple.Create("", 27107), Tuple.Create<System.Object, System.Int32>(bol_checked 2771 2772 #line default 2773 #line hidden 2774 , 27107), false) 2775 ); 2776 2777 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 2778 2779 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 27136), Tuple.Create("\"", 27154) 2780 2781 #line 588 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2782 , Tuple.Create(Tuple.Create("", 27144), Tuple.Create<System.Object, System.Int32>(str_value 2783 2784 #line default 2785 #line hidden 2786 , 27144), false) 2787 ); 2788 2789 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 27155), Tuple.Create("\"", 27176) 2790 2791 #line 588 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2792 , Tuple.Create(Tuple.Create("", 27162), Tuple.Create<System.Object, System.Int32>(str_parameter 2793 2794 #line default 2795 #line hidden 2796 , 27162), false) 2797 ); 2798 2799 WriteLiteralTo(__razor_helper_writer, "> <span>"); 2800 2801 2802 #line 588 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2803 WriteTo(__razor_helper_writer, str_name); 2804 2805 2806 #line default 2807 #line hidden 2808 WriteLiteralTo(__razor_helper_writer, " ("); 2809 2810 2811 #line 588 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2812 WriteTo(__razor_helper_writer, option.GetString("FacetOption.Count")); 2813 2814 2815 #line default 2816 #line hidden 2817 WriteLiteralTo(__razor_helper_writer, ")</span>\r\n </label>\r\n <" + 2818 "/div>\r\n"); 2819 2820 2821 #line 591 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2822 } 2823 } 2824 2825 2826 #line default 2827 #line hidden 2828 WriteLiteralTo(__razor_helper_writer, " </fieldset>\r\n"); 2829 2830 2831 #line 594 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2832 } 2833 2834 break; 2835 case "radio": 2836 2837 break; 2838 case "radios": 2839 2840 break; 2841 case "autocomplete": 2842 2843 break; 2844 default: 2845 2846 2847 #line default 2848 #line hidden 2849 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 2850 2851 WriteLiteralTo(__razor_helper_writer, " data-type=\""); 2852 2853 2854 #line 607 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2855 WriteTo(__razor_helper_writer, str_parameterType); 2856 2857 2858 #line default 2859 #line hidden 2860 WriteLiteralTo(__razor_helper_writer, "\""); 2861 2862 WriteLiteralTo(__razor_helper_writer, ">\r\n <legend"); 2863 2864 WriteLiteralTo(__razor_helper_writer, " class=\"filterTitle\""); 2865 2866 WriteLiteralTo(__razor_helper_writer, ">"); 2867 2868 2869 #line 608 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2870 WriteTo(__razor_helper_writer, str_name); 2871 2872 2873 #line default 2874 #line hidden 2875 WriteLiteralTo(__razor_helper_writer, "</legend>\r\n <div"); 2876 2877 WriteLiteralTo(__razor_helper_writer, " class=\"filtersContainer\""); 2878 2879 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 2880 2881 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 2882 2883 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 27804), Tuple.Create("\"", 27825) 2884 2885 #line 610 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2886 , Tuple.Create(Tuple.Create("", 27811), Tuple.Create<System.Object, System.Int32>(str_parameter 2887 2888 #line default 2889 #line hidden 2890 , 27811), false) 2891 ); 2892 2893 WriteLiteralTo(__razor_helper_writer, " value=\"\""); 2894 2895 WriteLiteralTo(__razor_helper_writer, "/>\r\n </div>\r\n </fieldset>\r\n"); 2896 2897 2898 #line 613 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2899 break; 2900 } 2901 2902 2903 #line default 2904 #line hidden 2905 }); 2906 2907 #line 615 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2908 } 2909 #line default 2910 #line hidden 2911 2912 2913 #line 617 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2914 public RazorEngine.Templating.TemplateWriter RenderSortBy() 2915 { 2916 #line default 2917 #line hidden 2918 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2919 2920 #line 618 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2921 2922 var str_paramGroupID = Context.Current.Request.Params["groupid"] ?? ""; 2923 var str_keywordsParam = Context.Current.Request.Params["Keywords"] ?? ""; 2924 var str_GeneIDParam = Context.Current.Request.Params["GeneID"] ?? ""; 2925 var str_SpecificityParam = Context.Current.Request.Params["Specificity"] ?? ""; 2926 2927 const string sortByMatch = "-_score,Clone_Sort,Name_sortable,Price"; 2928 const string sortByName = "Name_sortable,Price"; 2929 const string sortByClone = "Clone_Sort,Name_sortable,Price"; 2930 const string sortByApplication = "CustomField_AppAbrv,Name_sortable,Price"; 2931 const string sortByRegulatoryStatus = "CustomField_RegulatoryStatus,Name_sortable,Price"; 2932 2933 2934 2935 #line default 2936 #line hidden 2937 WriteLiteralTo(__razor_helper_writer, " <form"); 2938 2939 WriteLiteralTo(__razor_helper_writer, " id=\"orderProdList\""); 2940 2941 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPadding\""); 2942 2943 WriteLiteralTo(__razor_helper_writer, " action=\"/Default.aspx\""); 2944 2945 WriteLiteralTo(__razor_helper_writer, " name=\"ExtUserForm_Main\""); 2946 2947 WriteLiteralTo(__razor_helper_writer, " method=\"GET\""); 2948 2949 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2950 2951 WriteLiteralTo(__razor_helper_writer, " "); 2952 2953 2954 #line 631 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2955 WriteTo(__razor_helper_writer, RenderHiddenField("ID", Pageview.Page.ID.ToString())); 2956 2957 2958 #line default 2959 #line hidden 2960 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2961 2962 WriteLiteralTo(__razor_helper_writer, " "); 2963 2964 2965 #line 632 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2966 WriteTo(__razor_helper_writer, RenderHiddenField("GroupID", str_paramGroupID)); 2967 2968 2969 #line default 2970 #line hidden 2971 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2972 2973 WriteLiteralTo(__razor_helper_writer, " "); 2974 2975 2976 #line 633 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2977 WriteTo(__razor_helper_writer, RenderHiddenField("Keywords", str_keywordsParam)); 2978 2979 2980 #line default 2981 #line hidden 2982 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2983 2984 WriteLiteralTo(__razor_helper_writer, " "); 2985 2986 2987 #line 634 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2988 WriteTo(__razor_helper_writer, RenderHiddenField("GeneID", str_GeneIDParam)); 2989 2990 2991 #line default 2992 #line hidden 2993 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2994 2995 WriteLiteralTo(__razor_helper_writer, " "); 2996 2997 2998 #line 635 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 2999 WriteTo(__razor_helper_writer, RenderHiddenField("Specificity", str_SpecificityParam)); 3000 3001 3002 #line default 3003 #line hidden 3004 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n <fieldset"); 3005 3006 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 3007 3008 WriteLiteralTo(__razor_helper_writer, " data-groupdID=\""); 3009 3010 3011 #line 637 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3012 WriteTo(__razor_helper_writer, str_paramGroupID); 3013 3014 3015 #line default 3016 #line hidden 3017 WriteLiteralTo(__razor_helper_writer, "\""); 3018 3019 WriteLiteralTo(__razor_helper_writer, ">\r\n <label>"); 3020 3021 3022 #line 638 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3023 WriteTo(__razor_helper_writer, Translate("Sort by")); 3024 3025 3026 #line default 3027 #line hidden 3028 WriteLiteralTo(__razor_helper_writer, ":</label>\r\n <select"); 3029 3030 WriteLiteralTo(__razor_helper_writer, " id=\"sortSelect\""); 3031 3032 WriteLiteralTo(__razor_helper_writer, " name=\"SortBy\""); 3033 3034 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3035 3036 WriteLiteralTo(__razor_helper_writer, " "); 3037 3038 3039 #line 640 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3040 WriteTo(__razor_helper_writer, RenderSortByOption(Translate("Match", "Best Match"), sortByMatch, true)); 3041 3042 3043 #line default 3044 #line hidden 3045 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3046 3047 WriteLiteralTo(__razor_helper_writer, " "); 3048 3049 3050 #line 641 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3051 WriteTo(__razor_helper_writer, RenderSortByOption(Translate("Name"), sortByName)); 3052 3053 3054 #line default 3055 #line hidden 3056 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3057 3058 WriteLiteralTo(__razor_helper_writer, " "); 3059 3060 3061 #line 642 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3062 WriteTo(__razor_helper_writer, RenderSortByOption(@Translate("Clone", "Clone"), sortByClone)); 3063 3064 3065 #line default 3066 #line hidden 3067 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3068 3069 WriteLiteralTo(__razor_helper_writer, " "); 3070 3071 3072 #line 643 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3073 WriteTo(__razor_helper_writer, RenderSortByOption(@Translate("Applications", "Applications"), sortByApplication)); 3074 3075 3076 #line default 3077 #line hidden 3078 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3079 3080 WriteLiteralTo(__razor_helper_writer, " "); 3081 3082 3083 #line 644 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3084 WriteTo(__razor_helper_writer, RenderSortByOption(@Translate("RegulatoryStatus", "Regulatory Status"), sortByRegulatoryStatus)); 3085 3086 3087 #line default 3088 #line hidden 3089 WriteLiteralTo(__razor_helper_writer, "\r\n </select>\r\n </fieldset>\r\n\r\n </form>\r\n"); 3090 3091 3092 #line 649 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3093 3094 3095 #line default 3096 #line hidden 3097 }); 3098 3099 #line 649 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3100 } 3101 #line default 3102 #line hidden 3103 3104 3105 #line 651 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3106 public RazorEngine.Templating.TemplateWriter RenderSortByOption(string sorByLabel, string sortByValue, bool isDefault = false) 3107 { 3108 #line default 3109 #line hidden 3110 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3111 3112 #line 652 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3113 3114 var str_sortBy = Context.Current.Request.Params["SortBy"] ?? ""; 3115 var isSelected = ((str_sortBy == sortByValue) || (isDefault && str_sortBy == "")) ? "selected=\"selected\"" : ""; 3116 3117 3118 3119 #line default 3120 #line hidden 3121 WriteLiteralTo(__razor_helper_writer, " <option "); 3122 3123 3124 #line 656 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3125 WriteTo(__razor_helper_writer, isSelected); 3126 3127 3128 #line default 3129 #line hidden 3130 WriteLiteralTo(__razor_helper_writer, " value=\""); 3131 3132 3133 #line 656 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3134 WriteTo(__razor_helper_writer, sortByValue); 3135 3136 3137 #line default 3138 #line hidden 3139 WriteLiteralTo(__razor_helper_writer, "\">"); 3140 3141 3142 #line 656 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3143 WriteTo(__razor_helper_writer, sorByLabel); 3144 3145 3146 #line default 3147 #line hidden 3148 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 3149 3150 3151 #line 657 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3152 3153 3154 #line default 3155 #line hidden 3156 }); 3157 3158 #line 657 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3159 } 3160 #line default 3161 #line hidden 3162 3163 3164 #line 669 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3165 3166 3167 public static string GetImage(string str_source, int num_width, int num_height, int num_widthTablet = 0, int num_heightTablet = 0, int num_widthMobile = 0, int num_heightMobile = 0, string str_format = "jpg", int num_compression = 75, int num_crop = 5) 3168 { 3169 PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 3170 string str_currDevice = obj_currentPageview.Device.ToString(); 3171 string str_alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/Lorenz/images/alternativeImage.jpg"; 3172 3173 string str_width = ""; 3174 string str_height = ""; 3175 int num_getImageWidth = num_width != 0 ? num_width : 0; 3176 int num_getImageHeight = num_height != 0 ? num_height : 0; 3177 string str_getImageFormat = str_format != "jpg" ? "&amp;Format=" + str_format : ""; 3178 string str_getImageCompression = num_compression != 75 ? "&amp;Compression=" + num_compression : ""; 3179 3180 var cdnImageHandleDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Image_Handler", "Image_Handler_Domain"); //CUSTOM CODE 3181 3182 if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 3183 { 3184 num_getImageWidth = num_widthTablet != 0 ? num_widthTablet : num_getImageWidth; 3185 num_getImageHeight = num_heightTablet != 0 ? num_heightTablet : num_getImageHeight; 3186 } 3187 else if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 3188 { 3189 num_getImageWidth = num_widthMobile != 0 ? num_widthMobile : num_getImageWidth; 3190 num_getImageHeight = num_heightMobile != 0 ? num_heightMobile : num_getImageHeight; 3191 } 3192 3193 if (num_getImageWidth != 0) 3194 { 3195 str_width = "&amp;Width=" + num_getImageWidth; 3196 } 3197 if (num_getImageHeight != 0) 3198 { 3199 str_height = "&amp;Height=" + num_getImageHeight; 3200 } 3201 3202 string str_output = cdnImageHandleDomain + "/Admin/Public/GetImage.ashx?Image=" + str_source + str_width + str_height + "&amp;altFmImage_path=" + str_alternativeImage + str_getImageFormat + str_getImageCompression + "&amp;Crop=" + num_crop; 3203 return str_output; 3204 } 3205 3206 public Dictionary<string, string> GetProductTypes() 3207 { 3208 var productTypes = new Dictionary<string, string>(); 3209 productTypes.Add("AncillaryProducts", "Ancillary"); 3210 productTypes.Add("BuffersSolutionsChemicals", "Ancillary"); 3211 productTypes.Add("CellBiologyAntibodies", "PrimaryAntibodies"); 3212 productTypes.Add("CellSeparation", "MojoSort"); 3213 productTypes.Add("CytokineChemokineAntibodies", "PrimaryAntibodies"); 3214 productTypes.Add("ELISAMAXLEGENDMAX", "ELISA"); 3215 productTypes.Add("EpitopeTagProducts", "PrimaryAntibodies"); 3216 productTypes.Add("HumanImmunologyAntibodies", "PrimaryAntibodies"); 3217 productTypes.Add("IsotypeControls", "IsotypeControls"); 3218 productTypes.Add("LEGENDplex", "LEGENDplex"); 3219 productTypes.Add("LEGENDScreen", "LEGENDScreen"); 3220 productTypes.Add("MarmosetImmunologyAntibodies", "PrimaryAntibodies"); 3221 productTypes.Add("MouseImmunologyAntibodies", "PrimaryAntibodies"); 3222 productTypes.Add("NeuroscienceProducts", "PrimaryAntibodies"); 3223 productTypes.Add("RatImmunologyAntibodies", "PrimaryAntibodies"); 3224 productTypes.Add("RecombinantProteins", "Recombinant"); 3225 productTypes.Add("SecondaryReagents", "SecondaryReagents"); 3226 productTypes.Add("VirusImmunologyAntibodies", "PrimaryAntibodies"); 3227 productTypes.Add("EnzymeAssays", "EnzymeAssays"); 3228 productTypes.Add("FlexT", "FlexT"); 3229 productTypes.Add("NonAntibodyChemicalProbes", "NonAntibodyChemicalProbes"); 3230 productTypes.Add("FlexiFluor", "PrimaryAntibodies"); 3231 3232 return productTypes; 3233 } 3234 3235 public string CalculateProductName(string prodName, string prodType, string prodFormat, bool excludeAntibody) 3236 { 3237 var cleanName = prodName; 3238 if (prodType.Equals("PrimaryAntibodies") && !prodName.Contains(" Antibody") && !prodName.Contains("Buffer") && !prodName.Contains("Annexin") && !prodName.Contains("Solution") && !prodName.Contains("Diluent") && !prodName.Contains("Substrate Reagent") && !prodName.Contains("ecombinant") && !prodName.Contains("Panel") && !prodName.Contains("Elisa Max") && !prodName.Contains("Cocktail") && !prodName.Contains("Isotype Control") && !prodName.Contains("Avidin") && !prodName.Contains("Normal Serum Block") && !prodName.Contains("Detection Kit") && !prodName.Contains("Affinity") && !prodName.Contains("ELISA Kit") && !prodName.Contains("Phase-Flow") && !prodName.Contains("Treg Flow") && !prodFormat.Equals("Peptide") && (!excludeAntibody)) 3239 { 3240 cleanName += " Antibody"; 3241 } 3242 3243 if (prodType.Equals("SecondaryReagents") && !prodName.Contains(" Antibody") && !prodName.Contains("Streptavidin") && !prodName.Contains("Avidin") && (!excludeAntibody)) 3244 { 3245 cleanName += " Antibody"; 3246 } 3247 3248 if (prodType.Equals("IsotypeControls") && !prodName.Contains(" Antibody") && !prodName.Contains("Lineage Cocktail") && (!excludeAntibody)) 3249 { 3250 cleanName += " Antibody"; 3251 } 3252 3253 return cleanName; 3254 } 3255 3256 public static string RoundPrice(double price, bool isPriceInterestPointValue = true, bool roundPrice = true, bool showDecimals = false) 3257 { 3258 var priceDouble = price; 3259 if (isPriceInterestPointValue) 3260 { 3261 priceDouble = price * 0.01; 3262 } 3263 var isCurrencyJp = Dynamicweb.Ecommerce.Common.Context.Currency.CultureInfo == "ja-JP"; 3264 /*var roundPriceDouble = Math.Round(priceDouble, 0, MidpointRounding.AwayFromZero);*/ 3265 var roundPriceDouble = Math.Ceiling(priceDouble); 3266 var roundedPrice = isCurrencyJp ? price.ToString("#,##") : (roundPrice ? roundPriceDouble.ToString() : priceDouble.ToString()); 3267 if(showDecimals == true){ 3268 roundedPrice = isCurrencyJp ? price.ToString("#,##") : (roundPrice ? roundPriceDouble.ToString("#.##") : priceDouble.ToString("0.00")); 3269 } 3270 3271 var priceWithSymbol = string.Empty; 3272 var currencySymbol = Dynamicweb.Ecommerce.Common.Context.Currency.Symbol; 3273 var positivePattern = Dynamicweb.Ecommerce.Common.Context.Currency.PositivePattern; 3274 var symbolPlace = Dynamicweb.Ecommerce.Common.Context.Currency.SymbolPlace; 3275 3276 if (positivePattern == 3) 3277 { 3278 priceWithSymbol = String.Format("{0} {1}", currencySymbol, roundedPrice); 3279 } 3280 else if (positivePattern == 1) 3281 { 3282 priceWithSymbol = String.Format("{0} {1}", roundedPrice, currencySymbol); 3283 } 3284 else if (symbolPlace == 0 || positivePattern == 2) 3285 { 3286 priceWithSymbol = String.Format("{0}{1}", currencySymbol, roundedPrice); 3287 } 3288 else 3289 { 3290 priceWithSymbol = String.Format("{0}{1}", roundedPrice, currencySymbol); 3291 } 3292 3293 return priceWithSymbol; 3294 } 3295 3296 public int GetPageIdFromSettings() 3297 { 3298 var pageId = GetModuleSettingsValue("ShowOnParagraph"); 3299 if (pageId.IndexOf('#') > -1) 3300 { 3301 pageId = pageId.Substring(0, pageId.IndexOf('#')); 3302 3303 } 3304 if (pageId.IndexOf("ID=", StringComparison.Ordinal) > -1) 3305 { 3306 pageId = pageId.Substring(pageId.IndexOf("ID=", StringComparison.Ordinal) + 3); 3307 } 3308 3309 return Convert.ToInt32(pageId); 3310 } 3311 3312 public string GetModuleSettingsValue(string property) 3313 { 3314 var moduleProperty = Pageview.CurrentParagraph.ModuleProperties.Values.Cast<DictionaryEntry>().FirstOrDefault(p => p.Key.ToString() == property); 3315 return moduleProperty.Value.ToString(); 3316 } 3317 3318 public int GetPunchoutPageIdForDetailsPage() 3319 { 3320 var punchoutDetailPageId = GetPageIdFromSettings(); 3321 return punchoutDetailPageId != 0 ? punchoutDetailPageId : Pageview.Page.ID; 3322 } 3323 3324 public string PreviousElement = ""; 3325 3326 #line default 3327 #line hidden 3328 3329 3330 #line 831 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3331 public RazorEngine.Templating.TemplateWriter RenderDetailView(List<IGrouping<string, LoopItem>> prodLoop, List<LoopItem> loopProduct, string disableAddToCart) 3332 { 3333 #line default 3334 #line hidden 3335 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3336 3337 #line 832 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3338 3339 var itemsCount = 0; 3340 foreach (var group in prodLoop) 3341 { 3342 itemsCount++; 3343 3344 3345 #line default 3346 #line hidden 3347 3348 #line 837 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3349 WriteTo(__razor_helper_writer, RenderDetailViewProduct(group, loopProduct, itemsCount, prodLoop.Count, disableAddToCart)); 3350 3351 3352 #line default 3353 #line hidden 3354 3355 #line 837 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3356 3357 } 3358 3359 3360 #line default 3361 #line hidden 3362 }); 3363 3364 #line 839 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3365 } 3366 #line default 3367 #line hidden 3368 3369 3370 #line 841 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3371 public RazorEngine.Templating.TemplateWriter RenderListView(List<IGrouping<string, LoopItem>> prodLoop, List<LoopItem> loopProduct, string disableAddToCart) { 3372 #line default 3373 #line hidden 3374 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3375 3376 #line 841 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3377 3378 3379 3380 #line default 3381 #line hidden 3382 3383 #line 842 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3384 WriteTo(__razor_helper_writer, RenderProductListHeader()); 3385 3386 3387 #line default 3388 #line hidden 3389 3390 #line 842 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3391 3392 var itemsCount = 0; 3393 foreach (var group in prodLoop) 3394 { 3395 itemsCount++; 3396 3397 3398 #line default 3399 #line hidden 3400 3401 #line 847 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3402 WriteTo(__razor_helper_writer, RenderListViewProduct(group, loopProduct, itemsCount, prodLoop.Count, disableAddToCart)); 3403 3404 3405 #line default 3406 #line hidden 3407 3408 #line 847 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3409 3410 } 3411 3412 3413 #line default 3414 #line hidden 3415 }); 3416 3417 #line 849 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3418 } 3419 #line default 3420 #line hidden 3421 3422 3423 #line 851 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3424 public RazorEngine.Templating.TemplateWriter RenderPunchoutListView(List<IGrouping<string, LoopItem>> prodLoop, List<LoopItem> loopProduct, string disableAddToCart) { 3425 #line default 3426 #line hidden 3427 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3428 3429 #line 851 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3430 3431 3432 3433 #line default 3434 #line hidden 3435 3436 #line 852 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3437 WriteTo(__razor_helper_writer, RenderProductListHeader()); 3438 3439 3440 #line default 3441 #line hidden 3442 3443 #line 852 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3444 3445 var itemsCount = 0; 3446 foreach (var group in prodLoop) 3447 { 3448 itemsCount++; 3449 3450 3451 #line default 3452 #line hidden 3453 3454 #line 857 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3455 WriteTo(__razor_helper_writer, RenderPunchoutListViewProduct(group, loopProduct, itemsCount, prodLoop.Count, disableAddToCart)); 3456 3457 3458 #line default 3459 #line hidden 3460 3461 #line 857 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3462 3463 } 3464 3465 3466 #line default 3467 #line hidden 3468 }); 3469 3470 #line 859 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3471 } 3472 #line default 3473 #line hidden 3474 3475 3476 #line 861 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3477 public RazorEngine.Templating.TemplateWriter RenderProductListHeader() 3478 { 3479 #line default 3480 #line hidden 3481 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3482 3483 #line 862 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3484 3485 var cartDisabled = Convert.ToBoolean(Pageview.Area.Item["DisableAddToCart"].ToString()); 3486 3487 var str_sortBy = HttpContext.Current.Request.Params["SortBy"] ?? ""; 3488 const string sortByName = "Name_sortable,Price"; 3489 const string sortByClone = "Clone_Sort,Name_sortable,Price"; 3490 const string sortByApplication = "AppAbrvString,Name_sortable,Price"; 3491 const string sortByRegulatoryStatus = "CustomField_RegulatoryStatus,Name_sortable,Price"; 3492 3493 var sortByNameSelected = str_sortBy == sortByName ? "sortActive" : ""; 3494 var sortByCloneSelected = (str_sortBy == sortByClone || str_sortBy == "") ? "sortActive" : ""; 3495 var sortByApplicationsSelected = str_sortBy == sortByApplication ? "sortActive" : ""; 3496 var sortByRegulatoryStatusSelected = str_sortBy == sortByRegulatoryStatus ? "sortActive" : ""; 3497 3498 3499 3500 #line default 3501 #line hidden 3502 WriteLiteralTo(__razor_helper_writer, " <li"); 3503 3504 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 3505 3506 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 3507 3508 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 40774), Tuple.Create("\"", 40810) 3509 , Tuple.Create(Tuple.Create("", 40782), Tuple.Create("col-xs-3", 40782), true) 3510 3511 #line 877 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3512 , Tuple.Create(Tuple.Create(" ", 40790), Tuple.Create<System.Object, System.Int32>(sortByNameSelected 3513 3514 #line default 3515 #line hidden 3516 , 40791), false) 3517 ); 3518 3519 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3520 3521 WriteLiteralTo(__razor_helper_writer, " "); 3522 3523 3524 #line 878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3525 WriteTo(__razor_helper_writer, Translate("Product", "Product")); 3526 3527 3528 #line default 3529 #line hidden 3530 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n <div"); 3531 3532 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 40890), Tuple.Create("\"", 40937) 3533 , Tuple.Create(Tuple.Create("", 40898), Tuple.Create("col-xs-2", 40898), true) 3534 , Tuple.Create(Tuple.Create(" ", 40906), Tuple.Create("noPadding", 40907), true) 3535 3536 #line 881 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3537 , Tuple.Create(Tuple.Create(" ", 40916), Tuple.Create<System.Object, System.Int32>(sortByCloneSelected 3538 3539 #line default 3540 #line hidden 3541 , 40917), false) 3542 ); 3543 3544 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3545 3546 WriteLiteralTo(__razor_helper_writer, " "); 3547 3548 3549 #line 882 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3550 WriteTo(__razor_helper_writer, Translate("Clone", "Clone")); 3551 3552 3553 #line default 3554 #line hidden 3555 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n <div"); 3556 3557 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 41013), Tuple.Create("\"", 41067) 3558 , Tuple.Create(Tuple.Create("", 41021), Tuple.Create("col-xs-1", 41021), true) 3559 , Tuple.Create(Tuple.Create(" ", 41029), Tuple.Create("noPadding", 41030), true) 3560 3561 #line 885 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3562 , Tuple.Create(Tuple.Create(" ", 41039), Tuple.Create<System.Object, System.Int32>(sortByApplicationsSelected 3563 3564 #line default 3565 #line hidden 3566 , 41040), false) 3567 ); 3568 3569 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3570 3571 WriteLiteralTo(__razor_helper_writer, " "); 3572 3573 3574 #line 886 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3575 WriteTo(__razor_helper_writer, Translate("Appl", "Appl.")); 3576 3577 3578 #line default 3579 #line hidden 3580 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n <div"); 3581 3582 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 41142), Tuple.Create("\"", 41190) 3583 , Tuple.Create(Tuple.Create("", 41150), Tuple.Create("col-xs-1", 41150), true) 3584 3585 #line 889 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3586 , Tuple.Create(Tuple.Create(" ", 41158), Tuple.Create<System.Object, System.Int32>(sortByRegulatoryStatusSelected 3587 3588 #line default 3589 #line hidden 3590 , 41159), false) 3591 ); 3592 3593 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3594 3595 WriteLiteralTo(__razor_helper_writer, " "); 3596 3597 3598 #line 890 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3599 WriteTo(__razor_helper_writer, Translate("Reg", "Reg")); 3600 3601 3602 #line default 3603 #line hidden 3604 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n <div"); 3605 3606 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 41262), Tuple.Create("\'", 41322) 3607 3608 #line 893 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3609 , Tuple.Create(Tuple.Create("", 41270), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-5" : "col-xs-5" 3610 3611 #line default 3612 #line hidden 3613 , 41270), false) 3614 , Tuple.Create(Tuple.Create(" ", 41312), Tuple.Create("noPadding", 41313), true) 3615 ); 3616 3617 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 3618 3619 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 41342), Tuple.Create("\'", 41402) 3620 3621 #line 894 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3622 , Tuple.Create(Tuple.Create("", 41350), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-3" : "col-xs-4" 3623 3624 #line default 3625 #line hidden 3626 , 41350), false) 3627 , Tuple.Create(Tuple.Create(" ", 41392), Tuple.Create("noPadding", 41393), true) 3628 ); 3629 3630 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3631 3632 WriteLiteralTo(__razor_helper_writer, " "); 3633 3634 3635 #line 895 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3636 WriteTo(__razor_helper_writer, Translate("categoryNumberShort", "Cat#")); 3637 3638 3639 #line default 3640 #line hidden 3641 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n <div"); 3642 3643 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 41503), Tuple.Create("\'", 41563) 3644 3645 #line 898 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3646 , Tuple.Create(Tuple.Create("", 41511), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-3" : "col-xs-4" 3647 3648 #line default 3649 #line hidden 3650 , 41511), false) 3651 , Tuple.Create(Tuple.Create(" ", 41553), Tuple.Create("noPadding", 41554), true) 3652 ); 3653 3654 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3655 3656 WriteLiteralTo(__razor_helper_writer, " "); 3657 3658 3659 #line 899 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3660 WriteTo(__razor_helper_writer, Translate("size", "Size")); 3661 3662 3663 #line default 3664 #line hidden 3665 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n"); 3666 3667 3668 #line 902 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3669 3670 3671 #line default 3672 #line hidden 3673 3674 #line 902 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3675 if (!cartDisabled) 3676 { 3677 3678 3679 #line default 3680 #line hidden 3681 WriteLiteralTo(__razor_helper_writer, " <div"); 3682 3683 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPadding\""); 3684 3685 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3686 3687 WriteLiteralTo(__razor_helper_writer, " "); 3688 3689 3690 #line 905 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3691 WriteTo(__razor_helper_writer, Translate("price", "Price")); 3692 3693 3694 #line default 3695 #line hidden 3696 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3697 3698 3699 #line 907 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3700 3701 3702 3703 #line default 3704 #line hidden 3705 WriteLiteralTo(__razor_helper_writer, " <div"); 3706 3707 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1 noPadding\""); 3708 3709 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3710 3711 WriteLiteralTo(__razor_helper_writer, " "); 3712 3713 3714 #line 909 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3715 WriteTo(__razor_helper_writer, Translate("quantityHeader", "Quantity")); 3716 3717 3718 #line default 3719 #line hidden 3720 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3721 3722 3723 #line 911 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3724 } 3725 3726 3727 #line default 3728 #line hidden 3729 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n </li>\r\n"); 3730 3731 3732 #line 916 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3733 3734 3735 #line default 3736 #line hidden 3737 }); 3738 3739 #line 916 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3740 } 3741 #line default 3742 #line hidden 3743 3744 3745 #line 918 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3746 public RazorEngine.Templating.TemplateWriter RenderPunchoutListViewProduct(IGrouping<string, LoopItem> group, List<LoopItem> loopProduct, int itemsCount, int prodLoopCount, string disableAddToCart) 3747 { 3748 #line default 3749 #line hidden 3750 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3751 3752 #line 919 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3753 3754 var addToCart = Pageview.Area.Item["AddToCart"] != null ? Pageview.Area.Item["AddToCart"].ToString() : ""; 3755 var isCartDisabled = Convert.ToBoolean(Pageview.Area.Item["DisableAddToCart"].ToString()); 3756 var searchPageId = Pageview.Area.Item["Punchout_SearchResultPage"].ToString(); 3757 var orderContext = Pageview.Area.Item["OrderContext"] != null ? Pageview.Area.Item["OrderContext"].ToString() : ""; 3758 var navEnvironment = Pageview.Area.Item["NavEnvironment"] != null ? Pageview.Area.Item["NavEnvironment"].ToString() : ""; 3759 var isExtranetUserLoggedIn = User.IsExtranetUserLoggedIn(); 3760 var siteCurrency = PageView.Current().Area.EcomCurrencyId; 3761 var userCurrency = isExtranetUserLoggedIn ? User.GetCurrentUser(PagePermissionLevels.Frontend).Currency : siteCurrency; 3762 var longLang = (string) GetGlobalValue("Global:Area.LongLang"); 3763 var isJapaneseSite = longLang.Equals("ja-JP"); 3764 3765 var colGroup = (!isCartDisabled ? "col-xs-offset-7" : "col-xs-offset-7"); 3766 3767 3768 3769 #line default 3770 #line hidden 3771 WriteLiteralTo(__razor_helper_writer, " <li"); 3772 3773 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 3774 3775 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3776 3777 3778 #line 934 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3779 3780 3781 #line default 3782 #line hidden 3783 3784 #line 934 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3785 if (itemsCount == 1) 3786 { 3787 3788 3789 #line default 3790 #line hidden 3791 3792 #line 936 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3793 WriteTo(__razor_helper_writer, ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct, true)); 3794 3795 3796 #line default 3797 #line hidden 3798 3799 #line 936 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3800 3801 } 3802 3803 3804 #line default 3805 #line hidden 3806 WriteLiteralTo(__razor_helper_writer, " <ul>\r\n"); 3807 3808 3809 #line 939 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3810 3811 3812 #line default 3813 #line hidden 3814 3815 #line 939 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3816 foreach (var product in group) 3817 { 3818 var productName = product.GetString("Ecom:Product:Field.ProductNameNormalized.Value"); 3819 var productId = product.GetString("Ecom:Product.ID"); 3820 var productLink = product.GetString("Ecom:Product.Link.Clean"); 3821 var productCategory = product.GetString("Ecom:Product:Field.ProductCategory.Value"); 3822 var regulatoryStatus = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.RegulatoryStatus.Value")) ? product.GetString("Ecom:Product:Field.RegulatoryStatus.Value") : "--"; 3823 var productClone = Regex.Replace(product.GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim(); 3824 var productReactivity = product.GetString("Ecom:Product:Field.Reactivity.Value"); 3825 3826 var productFormat = product.GetString("Ecom:Product:Field.Format.Value"); 3827 3828 var stockUS = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUS.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUS.Value.Clean") : "0"; 3829 var stockUK = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUK.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUK.Value.Clean") : "0"; 3830 var stockEU = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockEU.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockEU.Value.Clean") : "0"; 3831 var stockControl = product.GetString("Ecom:Product:Field.StockControl.Value.Clean"); 3832 3833 var isComingSoon = product.GetBoolean("Ecom:Product:Field.ComingSoon.Value"); 3834 3835 var shouldBlockAddToCart = product.GetBoolean("Ecom:Product:Field.BlockAddToCart.Value"); 3836 var blockAddToCartText = product.GetString("Ecom:Product:Field.BlockAddToCartText.Value"); 3837 blockAddToCartText = blockAddToCartText.Replace("'", "&apos;"); 3838 blockAddToCartText = blockAddToCartText.Replace("\r\n", ""); 3839 blockAddToCartText = blockAddToCartText.Replace("\r", ""); 3840 blockAddToCartText = blockAddToCartText.Replace("\n", ""); 3841 bool requestQuote = product.GetBoolean("Ecom:Product:Field.RequestQuote.Value"); 3842 var notifyMe = product.GetString("Ecom:Product:Field.NotifyMe.Value"); 3843 3844 var productVariantId = product.GetString("Ecom:Product.VariantID"); 3845 var urlAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + addToCart); 3846 3847 var productStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 3848 var productSource = product.GetString("Ecom:Product:Field.ProductSource.Value.Clean"); 3849 var productVariantStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 3850 var appAbbreviation = product.GetString("Ecom:Product:Field.AppAbrv.Value"); 3851 var productType = GetString("Ecom:Product:Field.CMProductType.Value"); 3852 var isFlexiFluor = productType.Equals("FlexiFluor"); 3853 appAbbreviation = appAbbreviation.Replace(",",", "); 3854 3855 3856 3857 #line default 3858 #line hidden 3859 WriteLiteralTo(__razor_helper_writer, " <li"); 3860 3861 WriteLiteralTo(__razor_helper_writer, " class=\"row list\""); 3862 3863 WriteLiteralTo(__razor_helper_writer, " data-variantID=\""); 3864 3865 3866 #line 978 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3867 WriteTo(__razor_helper_writer, productVariantId); 3868 3869 3870 #line default 3871 #line hidden 3872 WriteLiteralTo(__razor_helper_writer, "\""); 3873 3874 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3875 3876 3877 #line 979 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3878 3879 3880 #line default 3881 #line hidden 3882 3883 #line 979 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3884 if (PreviousElement != productId) 3885 { 3886 3887 3888 #line default 3889 #line hidden 3890 WriteLiteralTo(__razor_helper_writer, " <h2"); 3891 3892 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3\""); 3893 3894 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 3895 3896 WriteLiteralTo(__razor_helper_writer, " itemprop=\"name\""); 3897 3898 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 46751), Tuple.Create("\"", 46770) 3899 3900 #line 982 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3901 , Tuple.Create(Tuple.Create("", 46758), Tuple.Create<System.Object, System.Int32>(productLink 3902 3903 #line default 3904 #line hidden 3905 , 46758), false) 3906 ); 3907 3908 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3909 3910 WriteLiteralTo(__razor_helper_writer, " "); 3911 3912 3913 #line 983 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3914 WriteTo(__razor_helper_writer, productName); 3915 3916 3917 #line default 3918 #line hidden 3919 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </h2>\r\n"); 3920 3921 3922 #line 986 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3923 3924 3925 3926 #line default 3927 #line hidden 3928 WriteLiteralTo(__razor_helper_writer, " <div"); 3929 3930 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPaddingLeft\""); 3931 3932 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3933 3934 WriteLiteralTo(__razor_helper_writer, " "); 3935 3936 3937 #line 988 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3938 WriteTo(__razor_helper_writer, RenderCloneFieldForSearch(productClone, searchPageId, productCategory, productReactivity, "List")); 3939 3940 3941 #line default 3942 #line hidden 3943 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3944 3945 3946 #line 990 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3947 3948 3949 3950 #line default 3951 #line hidden 3952 WriteLiteralTo(__razor_helper_writer, " <div"); 3953 3954 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1 noPadding wordWrap\""); 3955 3956 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3957 3958 WriteLiteralTo(__razor_helper_writer, " "); 3959 3960 3961 #line 992 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3962 WriteTo(__razor_helper_writer, appAbbreviation); 3963 3964 3965 #line default 3966 #line hidden 3967 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3968 3969 3970 #line 994 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3971 3972 3973 3974 #line default 3975 #line hidden 3976 WriteLiteralTo(__razor_helper_writer, " <div"); 3977 3978 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1\""); 3979 3980 WriteLiteralTo(__razor_helper_writer, ">"); 3981 3982 3983 #line 995 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3984 WriteTo(__razor_helper_writer, regulatoryStatus); 3985 3986 3987 #line default 3988 #line hidden 3989 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 3990 3991 3992 #line 996 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 3993 } 3994 3995 3996 #line default 3997 #line hidden 3998 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 3999 4000 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 47350), Tuple.Create("\'", 47424) 4001 , Tuple.Create(Tuple.Create("", 47358), Tuple.Create("col-xs-5", 47358), true) 4002 , Tuple.Create(Tuple.Create(" ", 47366), Tuple.Create("noPadding", 47367), true) 4003 4004 #line 998 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4005 , Tuple.Create(Tuple.Create(" ", 47376), Tuple.Create<System.Object, System.Int32>(PreviousElement == productId ? colGroup : "" 4006 4007 #line default 4008 #line hidden 4009 , 47377), false) 4010 ); 4011 4012 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n"); 4013 4014 4015 #line 1000 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4016 4017 4018 #line default 4019 #line hidden 4020 4021 #line 1000 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4022 if(!string.IsNullOrWhiteSpace(notifyMe)){ 4023 4024 4025 #line default 4026 #line hidden 4027 WriteLiteralTo(__razor_helper_writer, " <span"); 4028 4029 WriteLiteralTo(__razor_helper_writer, " style=\"float:right; margin-right:50px;\""); 4030 4031 WriteLiteralTo(__razor_helper_writer, "><a"); 4032 4033 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 4034 4035 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 47575), Tuple.Create("\"", 47610) 4036 4037 #line 1001 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4038 , Tuple.Create(Tuple.Create("", 47582), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(notifyMe) 4039 4040 #line default 4041 #line hidden 4042 , 47582), false) 4043 ); 4044 4045 WriteLiteralTo(__razor_helper_writer, ">Notify Me When Available</a></span>\r\n"); 4046 4047 4048 #line 1002 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4049 } 4050 else{ 4051 4052 4053 4054 #line default 4055 #line hidden 4056 WriteLiteralTo(__razor_helper_writer, " <form"); 4057 4058 WriteLiteralTo(__razor_helper_writer, " name=\"addToCart\""); 4059 4060 WriteLiteralTo(__razor_helper_writer, " class=\"add-to-cart col-xs-12 noPadding\""); 4061 4062 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 47775), Tuple.Create("\"", 47794) 4063 4064 #line 1005 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4065 , Tuple.Create(Tuple.Create("", 47784), Tuple.Create<System.Object, System.Int32>(urlAction 4066 4067 #line default 4068 #line hidden 4069 , 47784), false) 4070 ); 4071 4072 WriteLiteralTo(__razor_helper_writer, " method=\"POST\""); 4073 4074 WriteLiteralTo(__razor_helper_writer, ">\r\n <input"); 4075 4076 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 4077 4078 WriteLiteralTo(__razor_helper_writer, " name=\"redirect\""); 4079 4080 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 47872), Tuple.Create("\"", 47906) 4081 4082 #line 1006 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4083 , Tuple.Create(Tuple.Create("", 47880), Tuple.Create<System.Object, System.Int32>(!isExtranetUserLoggedIn 4084 4085 #line default 4086 #line hidden 4087 , 47880), false) 4088 ); 4089 4090 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 4091 4092 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 4093 4094 WriteLiteralTo(__razor_helper_writer, " name=\"cartcmd\""); 4095 4096 WriteLiteralTo(__razor_helper_writer, " value=\"add\""); 4097 4098 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 4099 4100 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 4101 4102 WriteLiteralTo(__razor_helper_writer, " name=\"productid\""); 4103 4104 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 48047), Tuple.Create("\"", 48065) 4105 4106 #line 1008 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4107 , Tuple.Create(Tuple.Create("", 48055), Tuple.Create<System.Object, System.Int32>(productId 4108 4109 #line default 4110 #line hidden 4111 , 48055), false) 4112 ); 4113 4114 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 4115 4116 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 4117 4118 WriteLiteralTo(__razor_helper_writer, " name=\"variantID\""); 4119 4120 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 48131), Tuple.Create("\"", 48156) 4121 4122 #line 1009 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4123 , Tuple.Create(Tuple.Create("", 48139), Tuple.Create<System.Object, System.Int32>(productVariantId 4124 4125 #line default 4126 #line hidden 4127 , 48139), false) 4128 ); 4129 4130 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 4131 4132 4133 #line 1010 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4134 4135 4136 #line default 4137 #line hidden 4138 4139 #line 1010 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4140 if (!string.IsNullOrWhiteSpace(orderContext)) 4141 { 4142 4143 4144 #line default 4145 #line hidden 4146 WriteLiteralTo(__razor_helper_writer, " <input"); 4147 4148 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 4149 4150 WriteLiteralTo(__razor_helper_writer, " name=\"OrderContext\""); 4151 4152 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 48328), Tuple.Create("\"", 48349) 4153 4154 #line 1012 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4155 , Tuple.Create(Tuple.Create("", 48336), Tuple.Create<System.Object, System.Int32>(orderContext 4156 4157 #line default 4158 #line hidden 4159 , 48336), false) 4160 ); 4161 4162 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 4163 4164 4165 #line 1013 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4166 } 4167 4168 4169 4170 #line default 4171 #line hidden 4172 4173 #line 1015 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4174 4175 4176 4177 #line default 4178 #line hidden 4179 WriteLiteralTo(__razor_helper_writer, " "); 4180 4181 4182 #line 1016 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4183 if (isJapaneseSite && (regulatoryStatus.Equals("IVD") || productId.Equals("11573"))) 4184 { 4185 4186 4187 #line default 4188 #line hidden 4189 WriteLiteralTo(__razor_helper_writer, " <div"); 4190 4191 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 48598), Tuple.Create("\'", 48660) 4192 4193 #line 1018 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4194 , Tuple.Create(Tuple.Create("", 48606), Tuple.Create<System.Object, System.Int32>(!isCartDisabled ? "col-xs-2" : "col-xs-4" 4195 4196 #line default 4197 #line hidden 4198 , 48606), false) 4199 , Tuple.Create(Tuple.Create(" ", 48650), Tuple.Create("noPadding", 48651), true) 4200 ); 4201 4202 WriteLiteralTo(__razor_helper_writer, ">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n " + 4203 " </div>\r\n"); 4204 4205 4206 #line 1021 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4207 } 4208 else if (!isComingSoon) 4209 { 4210 4211 4212 #line default 4213 #line hidden 4214 WriteLiteralTo(__razor_helper_writer, " <div"); 4215 4216 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 48905), Tuple.Create("\'", 48967) 4217 4218 #line 1024 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4219 , Tuple.Create(Tuple.Create("", 48913), Tuple.Create<System.Object, System.Int32>(!isCartDisabled ? "col-xs-3" : "col-xs-4" 4220 4221 #line default 4222 #line hidden 4223 , 48913), false) 4224 , Tuple.Create(Tuple.Create(" ", 48957), Tuple.Create("noPadding", 48958), true) 4225 ); 4226 4227 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4228 4229 WriteLiteralTo(__razor_helper_writer, " "); 4230 4231 4232 #line 1025 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4233 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.Number")); 4234 4235 4236 #line default 4237 #line hidden 4238 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4239 4240 4241 #line 1027 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4242 } 4243 else 4244 { 4245 4246 4247 #line default 4248 #line hidden 4249 WriteLiteralTo(__razor_helper_writer, " <div"); 4250 4251 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 49198), Tuple.Create("\'", 49260) 4252 4253 #line 1030 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4254 , Tuple.Create(Tuple.Create("", 49206), Tuple.Create<System.Object, System.Int32>(!isCartDisabled ? "col-xs-3" : "col-xs-4" 4255 4256 #line default 4257 #line hidden 4258 , 49206), false) 4259 , Tuple.Create(Tuple.Create(" ", 49250), Tuple.Create("noPadding", 49251), true) 4260 ); 4261 4262 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4263 4264 WriteLiteralTo(__razor_helper_writer, " "); 4265 4266 4267 #line 1031 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4268 WriteTo(__razor_helper_writer, Translate("comingSoon", "Coming Soon")); 4269 4270 4271 #line default 4272 #line hidden 4273 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4274 4275 4276 #line 1033 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4277 } 4278 4279 4280 #line default 4281 #line hidden 4282 WriteLiteralTo(__razor_helper_writer, "\r\n "); 4283 4284 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 4285 4286 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 49484), Tuple.Create("\'", 49546) 4287 4288 #line 1036 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4289 , Tuple.Create(Tuple.Create("", 49492), Tuple.Create<System.Object, System.Int32>(!isCartDisabled ? "col-xs-3" : "col-xs-4" 4290 4291 #line default 4292 #line hidden 4293 , 49492), false) 4294 , Tuple.Create(Tuple.Create(" ", 49536), Tuple.Create("noPadding", 49537), true) 4295 ); 4296 4297 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4298 4299 WriteLiteralTo(__razor_helper_writer, " "); 4300 4301 4302 #line 1037 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4303 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.VariantText")); 4304 4305 4306 #line default 4307 #line hidden 4308 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n "); 4309 4310 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 4311 4312 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 49733), Tuple.Create("\'", 49795) 4313 4314 #line 1041 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4315 , Tuple.Create(Tuple.Create("", 49741), Tuple.Create<System.Object, System.Int32>(!isCartDisabled ? "col-xs-2" : "col-xs-4" 4316 4317 #line default 4318 #line hidden 4319 , 49741), false) 4320 , Tuple.Create(Tuple.Create(" ", 49785), Tuple.Create("noPadding", 49786), true) 4321 ); 4322 4323 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4324 4325 4326 #line 1042 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4327 4328 4329 #line default 4330 #line hidden 4331 4332 #line 1042 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4333 if (isJapaneseSite && productFormat.Contains("GOINVIVO") && !productVariantId.Equals("5mg")) 4334 { 4335 4336 4337 #line default 4338 #line hidden 4339 4340 #line 1044 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4341 WriteTo(__razor_helper_writer, Translate("PleaseContactUs", "Please Contact Us")); 4342 4343 4344 #line default 4345 #line hidden 4346 4347 #line 1044 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4348 4349 } 4350 else if(isJapaneseSite && isFlexiFluor) 4351 { 4352 4353 4354 #line default 4355 #line hidden 4356 WriteLiteralTo(__razor_helper_writer, " <div>お問い合わせください</div>\r\n"); 4357 4358 4359 #line 1049 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4360 } 4361 else if (isJapaneseSite && shouldBlockAddToCart) 4362 { 4363 4364 4365 #line default 4366 #line hidden 4367 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <p"); 4368 4369 WriteLiteralTo(__razor_helper_writer, " class=\"coming-soon\""); 4370 4371 WriteLiteralTo(__razor_helper_writer, ">"); 4372 4373 4374 #line 1053 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4375 WriteTo(__razor_helper_writer, blockAddToCartText); 4376 4377 4378 #line default 4379 #line hidden 4380 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n"); 4381 4382 4383 #line 1055 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4384 } 4385 else if (isJapaneseSite && @product.GetString("Ecom:Product.Number").Equals("423555")) 4386 { 4387 4388 4389 #line default 4390 #line hidden 4391 WriteLiteralTo(__razor_helper_writer, " <span"); 4392 4393 WriteLiteralTo(__razor_helper_writer, " class=\"withBreak\""); 4394 4395 WriteLiteralTo(__razor_helper_writer, " itemprop=\"price\""); 4396 4397 WriteLiteralTo(__razor_helper_writer, ">"); 4398 4399 4400 #line 1058 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4401 WriteTo(__razor_helper_writer, RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, false, true)); 4402 4403 4404 #line default 4405 #line hidden 4406 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 4407 4408 4409 #line 1059 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4410 } 4411 else if (requestQuote) 4412 { 4413 4414 4415 #line default 4416 #line hidden 4417 WriteLiteralTo(__razor_helper_writer, " <div><a"); 4418 4419 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 51019), Tuple.Create("\"", 51075) 4420 4421 #line 1062 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4422 , Tuple.Create(Tuple.Create("", 51026), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML("dwcountry/contact-local-rep") 4423 4424 #line default 4425 #line hidden 4426 , 51026), false) 4427 ); 4428 4429 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 4430 4431 WriteLiteralTo(__razor_helper_writer, ">Get a Quote</a></div>\r\n"); 4432 4433 4434 #line 1063 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4435 } 4436 else if (productId.Equals("10801") && !longLang.Equals("en-US")) 4437 { 4438 4439 4440 #line default 4441 #line hidden 4442 4443 #line 1066 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4444 WriteTo(__razor_helper_writer, Translate("addToCartForPrice", "Add to cart for price.")); 4445 4446 4447 #line default 4448 #line hidden 4449 4450 #line 1066 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4451 4452 } 4453 else 4454 { 4455 4456 4457 #line default 4458 #line hidden 4459 4460 #line 1070 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4461 4462 4463 4464 #line default 4465 #line hidden 4466 WriteLiteralTo(__razor_helper_writer, " <span"); 4467 4468 WriteLiteralTo(__razor_helper_writer, " class=\"withBreak\""); 4469 4470 WriteLiteralTo(__razor_helper_writer, " itemprop=\"price\""); 4471 4472 WriteLiteralTo(__razor_helper_writer, ">"); 4473 4474 4475 #line 1071 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4476 WriteTo(__razor_helper_writer, RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, false, true)); 4477 4478 4479 #line default 4480 #line hidden 4481 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 4482 4483 4484 #line 1072 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4485 } 4486 4487 4488 #line default 4489 #line hidden 4490 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n "); 4491 4492 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4493 4494 4495 #line 1076 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4496 4497 4498 #line default 4499 #line hidden 4500 4501 #line 1076 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4502 if (!isCartDisabled && !(productName.Contains("Flex-T") && productName.Contains("Custom"))) 4503 { 4504 4505 4506 #line default 4507 #line hidden 4508 WriteLiteralTo(__razor_helper_writer, " <div"); 4509 4510 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1 noPadding\""); 4511 4512 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4513 4514 4515 #line 1079 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4516 4517 4518 #line default 4519 #line hidden 4520 4521 #line 1079 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4522 if (!productVariantStatus.Equals(3) && !isComingSoon && !shouldBlockAddToCart) 4523 { 4524 4525 4526 #line default 4527 #line hidden 4528 WriteLiteralTo(__razor_helper_writer, " <input"); 4529 4530 WriteLiteralTo(__razor_helper_writer, " data-reservedStock=\'"); 4531 4532 4533 #line 1081 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4534 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.AvailableAmount")); 4535 4536 4537 #line default 4538 #line hidden 4539 WriteLiteralTo(__razor_helper_writer, "\'"); 4540 4541 WriteLiteralTo(__razor_helper_writer, " data-productStatus=\""); 4542 4543 4544 #line 1081 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4545 WriteTo(__razor_helper_writer, productStatus); 4546 4547 4548 #line default 4549 #line hidden 4550 WriteLiteralTo(__razor_helper_writer, "\""); 4551 4552 WriteLiteralTo(__razor_helper_writer, " data-stockControl=\'"); 4553 4554 4555 #line 1081 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4556 WriteTo(__razor_helper_writer, stockControl.ToLower()); 4557 4558 4559 #line default 4560 #line hidden 4561 WriteLiteralTo(__razor_helper_writer, "\'"); 4562 4563 WriteLiteralTo(__razor_helper_writer, " data-stocktranslate=\'"); 4564 4565 4566 #line 1081 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4567 WriteTo(__razor_helper_writer, Translate("currentStock", "The current stock is")); 4568 4569 4570 #line default 4571 #line hidden 4572 WriteLiteralTo(__razor_helper_writer, "\'"); 4573 4574 WriteLiteralTo(__razor_helper_writer, " data-stock=\'"); 4575 4576 4577 #line 1081 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4578 WriteTo(__razor_helper_writer, navEnvironment.Equals("US") ? stockUS : stockUK); 4579 4580 4581 #line default 4582 #line hidden 4583 WriteLiteralTo(__razor_helper_writer, "\'"); 4584 4585 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 4586 4587 WriteLiteralTo(__razor_helper_writer, " name=\"quantity\""); 4588 4589 WriteLiteralTo(__razor_helper_writer, " value=\"1\""); 4590 4591 WriteLiteralTo(__razor_helper_writer, " size=\"3\""); 4592 4593 WriteLiteralTo(__razor_helper_writer, " class=\"productQTYRequestBox\""); 4594 4595 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 4596 4597 4598 #line 1082 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4599 } 4600 4601 4602 #line default 4603 #line hidden 4604 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4605 4606 4607 #line 1084 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4608 4609 4610 4611 #line default 4612 #line hidden 4613 WriteLiteralTo(__razor_helper_writer, " <div"); 4614 4615 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1\""); 4616 4617 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4618 4619 4620 #line 1086 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4621 4622 4623 #line default 4624 #line hidden 4625 4626 #line 1086 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4627 if (shouldBlockAddToCart) 4628 { 4629 4630 4631 #line default 4632 #line hidden 4633 WriteLiteralTo(__razor_helper_writer, " <button"); 4634 4635 WriteAttributeTo(__razor_helper_writer, "onClick", Tuple.Create(" onClick=\"", 52883), Tuple.Create("\"", 52936) 4636 , Tuple.Create(Tuple.Create("", 52893), Tuple.Create("alert(\'", 52893), true) 4637 4638 #line 1088 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4639 , Tuple.Create(Tuple.Create("", 52900), Tuple.Create<System.Object, System.Int32>(blockAddToCartText 4640 4641 #line default 4642 #line hidden 4643 , 52900), false) 4644 , Tuple.Create(Tuple.Create("", 52919), Tuple.Create("\');", 52919), true) 4645 , Tuple.Create(Tuple.Create(" ", 52922), Tuple.Create("return", 52923), true) 4646 , Tuple.Create(Tuple.Create(" ", 52929), Tuple.Create("false;", 52930), true) 4647 ); 4648 4649 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 52937), Tuple.Create("\"", 52964) 4650 4651 #line 1088 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4652 , Tuple.Create(Tuple.Create("", 52945), Tuple.Create<System.Object, System.Int32>(blockAddToCartText 4653 4654 #line default 4655 #line hidden 4656 , 52945), false) 4657 ); 4658 4659 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 4660 4661 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-times-circle\""); 4662 4663 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 4664 4665 4666 #line 1091 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4667 } 4668 else if (productName.Contains("Capture Bead") || (productName.Contains("LEGENDplex") && (productName.Contains("Standard") || productName.Contains("Detection Antibodies") || productName.Contains("Detection Abs") || productName.Contains("Buffer Set")))) 4669 { 4670 4671 4672 #line default 4673 #line hidden 4674 WriteLiteralTo(__razor_helper_writer, " <button"); 4675 4676 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 53489), Tuple.Create("\"", 53537) 4677 4678 #line 1094 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4679 , Tuple.Create(Tuple.Create("", 53497), Tuple.Create<System.Object, System.Int32>(Translate("mixAndMatch", "Mix & Match") 4680 4681 #line default 4682 #line hidden 4683 , 53497), false) 4684 ); 4685 4686 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 4687 4688 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 4689 4690 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 4691 4692 4693 #line 1097 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4694 } 4695 else if (isComingSoon) 4696 { 4697 4698 4699 #line default 4700 #line hidden 4701 WriteLiteralTo(__razor_helper_writer, " "); 4702 4703 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 4704 4705 4706 #line 1101 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4707 } 4708 else if (userCurrency != siteCurrency) 4709 { 4710 4711 4712 #line default 4713 #line hidden 4714 WriteLiteralTo(__razor_helper_writer, " <span"); 4715 4716 WriteLiteralTo(__razor_helper_writer, " class=\"inputSubmit\""); 4717 4718 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"tooltip\""); 4719 4720 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 54062), Tuple.Create("\"", 54194) 4721 4722 #line 1104 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4723 , Tuple.Create(Tuple.Create("", 54070), Tuple.Create<System.Object, System.Int32>(Translate("CurrencyMissmatch", "Your currency does not match the websites currency. Please navigate to the proper page.") 4724 4725 #line default 4726 #line hidden 4727 , 54070), false) 4728 ); 4729 4730 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 4731 4732 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 4733 4734 WriteLiteralTo(__razor_helper_writer, " disabled>\r\n <i"); 4735 4736 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 4737 4738 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n " + 4739 " </span>\r\n"); 4740 4741 4742 #line 1109 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4743 } 4744 else if (string.IsNullOrWhiteSpace(productSource)) 4745 { 4746 4747 4748 #line default 4749 #line hidden 4750 WriteLiteralTo(__razor_helper_writer, " <span"); 4751 4752 WriteLiteralTo(__razor_helper_writer, " class=\"inputSubmit\""); 4753 4754 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"tooltip\""); 4755 4756 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 54685), Tuple.Create("\"", 54772) 4757 4758 #line 1112 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4759 , Tuple.Create(Tuple.Create("", 54693), Tuple.Create<System.Object, System.Int32>(Translate("ProductNotAvailable", "This product is not currently available.") 4760 4761 #line default 4762 #line hidden 4763 , 54693), false) 4764 ); 4765 4766 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 4767 4768 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 4769 4770 WriteLiteralTo(__razor_helper_writer, " disabled>\r\n <i"); 4771 4772 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 4773 4774 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n " + 4775 " </span>\r\n"); 4776 4777 4778 #line 1117 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4779 } 4780 else 4781 { 4782 4783 4784 #line default 4785 #line hidden 4786 WriteLiteralTo(__razor_helper_writer, " <button "); 4787 4788 4789 #line 1120 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4790 WriteTo(__razor_helper_writer, disableAddToCart); 4791 4792 4793 #line default 4794 #line hidden 4795 WriteLiteralTo(__razor_helper_writer, " type=\"submit\">\r\n <i"); 4796 4797 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 4798 4799 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 4800 4801 4802 #line 1123 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4803 } 4804 4805 4806 #line default 4807 #line hidden 4808 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4809 4810 4811 #line 1125 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4812 } 4813 4814 4815 #line default 4816 #line hidden 4817 WriteLiteralTo(__razor_helper_writer, " </form>\r\n"); 4818 4819 4820 #line 1127 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4821 } 4822 4823 4824 #line default 4825 #line hidden 4826 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </li>\r\n"); 4827 4828 4829 #line 1130 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4830 4831 PreviousElement = group.Key; 4832 } 4833 4834 4835 #line default 4836 #line hidden 4837 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n"); 4838 4839 4840 #line 1134 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4841 4842 4843 #line default 4844 #line hidden 4845 4846 #line 1134 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4847 if (itemsCount == prodLoopCount) 4848 { 4849 4850 4851 #line default 4852 #line hidden 4853 4854 #line 1136 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4855 WriteTo(__razor_helper_writer, ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct)); 4856 4857 4858 #line default 4859 #line hidden 4860 4861 #line 1136 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4862 4863 } 4864 4865 4866 #line default 4867 #line hidden 4868 WriteLiteralTo(__razor_helper_writer, " </li>\r\n"); 4869 4870 4871 #line 1139 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4872 4873 4874 #line default 4875 #line hidden 4876 }); 4877 4878 #line 1139 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4879 } 4880 #line default 4881 #line hidden 4882 4883 4884 #line 1141 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4885 public RazorEngine.Templating.TemplateWriter RenderListViewProduct(IGrouping<string, LoopItem> group, List<LoopItem> loopProduct, int itemsCount, int prodLoopCount, string disableAddToCart) 4886 { 4887 #line default 4888 #line hidden 4889 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4890 4891 #line 1142 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4892 4893 var addToCart = Pageview.Area.Item["AddToCart"] != null ? Pageview.Area.Item["AddToCart"].ToString() : ""; 4894 var cartDisabled = Convert.ToBoolean(Pageview.Area.Item["DisableAddToCart"].ToString()); 4895 var searchPageID = Pageview.Area.Item["SearchResults"].ToString(); 4896 var orderContext = Pageview.Area.Item["OrderContext"] != null ? Pageview.Area.Item["OrderContext"].ToString() : ""; 4897 var navEnvironment = Pageview.Area.Item["NavEnvironment"] != null ? Pageview.Area.Item["NavEnvironment"].ToString() : ""; 4898 var bol_userLogged = User.IsExtranetUserLoggedIn(); 4899 var siteCurrency = PageView.Current().Area.EcomCurrencyId; 4900 var userCurrency = bol_userLogged ? User.GetCurrentUser(PagePermissionLevels.Frontend).Currency : siteCurrency; 4901 var longLang = (string) GetGlobalValue("Global:Area.LongLang"); 4902 4903 var colGroup = (!cartDisabled ? "col-xs-offset-7" : "col-xs-offset-7"); 4904 var productTypes = GetProductTypes(); 4905 4906 4907 4908 #line default 4909 #line hidden 4910 WriteLiteralTo(__razor_helper_writer, " <li"); 4911 4912 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 4913 4914 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4915 4916 4917 #line 1157 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4918 4919 4920 #line default 4921 #line hidden 4922 4923 #line 1157 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4924 if (itemsCount == 1) 4925 { 4926 4927 4928 #line default 4929 #line hidden 4930 4931 #line 1159 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4932 WriteTo(__razor_helper_writer, ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct, true)); 4933 4934 4935 #line default 4936 #line hidden 4937 4938 #line 1159 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4939 4940 } 4941 4942 4943 #line default 4944 #line hidden 4945 WriteLiteralTo(__razor_helper_writer, " <ul>\r\n"); 4946 4947 4948 #line 1162 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4949 4950 4951 #line default 4952 #line hidden 4953 4954 #line 1162 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 4955 foreach (var product in group) 4956 { 4957 //var str_productName = product.GetString("Ecom:Product.Name"); 4958 var str_productName = product.GetString("Ecom:Product:Field.ProductNameNormalized.Value"); 4959 var str_productID = product.GetString("Ecom:Product.ID"); 4960 var str_link = "/Default.aspx?id=" + GetPageIdByNavigationTag("ProductDetail") + "&ProductId=" + str_productID; 4961 var excludeAB = product.GetBoolean("Ecom:Product:Field.ExcludeAB.Value"); 4962 var productType = product.GetString("Ecom:Product:Field.CMProductType.Value"); 4963 var productCategory = product.GetString("Ecom:Product:Field.ProductCategory.Value"); 4964 var regulatoryStatus = product.GetString("Ecom:Product:Field.RegulatoryStatus.Value"); 4965 var productClone = Regex.Replace(product.GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim(); 4966 var productReactivity = product.GetString("Ecom:Product:Field.Reactivity.Value"); 4967 4968 4969 var str_productImage = product.GetString("Ecom:Product.ImageSmall.Clean"); 4970 var str_productImageMedium = product.GetString("Ecom:Product.ImageMedium.Clean"); 4971 var str_productImageLarge = product.GetString("Ecom:Product.ImageLarge.Clean"); 4972 var str_productImage4 = product.GetString("Ecom:Product:Field.Image4Path.Value.Clean"); 4973 4974 var str_image1Description = product.GetString("Ecom:Product:Field.Image1Description.Value"); 4975 var str_image2Description = product.GetString("Ecom:Product:Field.Image2Description.Value"); 4976 var str_image3Description = product.GetString("Ecom:Product:Field.Image3Description.Value"); 4977 var str_image4Description = product.GetString("Ecom:Product:Field.Image4Description.Value"); 4978 4979 var str_image1Title = product.GetString("Ecom:Product:Field.Image1Title.Value"); 4980 var str_image2Title = product.GetString("Ecom:Product:Field.Image2Title.Value"); 4981 var str_image3Title = product.GetString("Ecom:Product:Field.Image3Title.Value"); 4982 var str_image4Title = product.GetString("Ecom:Product:Field.Image4Title.Value"); 4983 4984 var str_productImage5 = product.GetString("Ecom:Product:Field.Image5Path.Value.Clean"); 4985 var str_image5Description = product.GetString("Ecom:Product:Field.Image5Description.Value"); 4986 var str_image5Title = product.GetString("Ecom:Product:Field.Image5Title.Value"); 4987 4988 var str_productImage6 = product.GetString("Ecom:Product:Field.Image6Path.Value.Clean"); 4989 var str_image6Description = product.GetString("Ecom:Product:Field.Image6Description.Value"); 4990 var str_image6Title = product.GetString("Ecom:Product:Field.Image6Title.Value"); 4991 4992 var str_productFormat = product.GetString("Ecom:Product:Field.Format.Value"); 4993 4994 var stockUS = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUS.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUS.Value.Clean") : "0"; 4995 var stockUK = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUK.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUK.Value.Clean") : "0"; 4996 var stockEU = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockEU.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockEU.Value.Clean") : "0"; 4997 var stockControl = product.GetString("Ecom:Product:Field.StockControl.Value.Clean"); 4998 4999 var isComingSoon = product.GetBoolean("Ecom:Product:Field.ComingSoon.Value"); 5000 5001 var blockAddToCart = product.GetBoolean("Ecom:Product:Field.BlockAddToCart.Value"); 5002 var blockAddToCartText = product.GetString("Ecom:Product:Field.BlockAddToCartText.Value"); 5003 blockAddToCartText = blockAddToCartText.Replace("'", "&apos;"); 5004 blockAddToCartText = blockAddToCartText.Replace("\r\n", ""); 5005 blockAddToCartText = blockAddToCartText.Replace("\r", ""); 5006 blockAddToCartText = blockAddToCartText.Replace("\n", ""); 5007 bool requestQuote = product.GetBoolean("Ecom:Product:Field.RequestQuote.Value"); 5008 var notifyMe = product.GetString("Ecom:Product:Field.NotifyMe.Value"); 5009 5010 var lst_images = new List<Tuple<string, string, string>>(); 5011 5012 if (!String.IsNullOrEmpty(str_productImage)) 5013 { 5014 lst_images.Add(new Tuple<string, string, string>(str_productImage, str_image1Title, str_image1Description)); 5015 } 5016 if (!String.IsNullOrEmpty(str_productImageMedium)) 5017 { 5018 lst_images.Add(new Tuple<string, string, string>(str_productImageMedium, str_image2Title, str_image2Description)); 5019 } 5020 if (!String.IsNullOrEmpty(str_productImageLarge)) 5021 { 5022 lst_images.Add(new Tuple<string, string, string>(str_productImageLarge, str_image3Title, str_image3Description)); 5023 } 5024 if (!String.IsNullOrEmpty(str_productImage4)) 5025 { 5026 lst_images.Add(new Tuple<string, string, string>(str_productImage4, str_image4Title, str_image4Description)); 5027 } 5028 if (!String.IsNullOrEmpty(str_productImage5)) 5029 { 5030 lst_images.Add(new Tuple<string, string, string>(str_productImage5, str_image5Title, str_image5Description)); 5031 } 5032 if (!String.IsNullOrEmpty(str_productImage6)) 5033 { 5034 lst_images.Add(new Tuple<string, string, string>(str_productImage6, str_image6Title, str_image6Description)); 5035 } 5036 5037 var str_productVariantID = product.GetString("Ecom:Product.VariantID"); 5038 var urlAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + addToCart); 5039 var productFieldType = ""; 5040 if (productTypes.ContainsKey(productType)) 5041 { 5042 productFieldType = productTypes[productType]; 5043 } 5044 5045 var productStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 5046 var productSource = product.GetString("Ecom:Product:Field.ProductSource.Value.Clean"); 5047 var productVariantStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 5048 var appAbbreviation = product.GetString("Ecom:Product:Field.AppAbrv.Value"); 5049 var productType = GetString("Ecom:Product:Field.CMProductType.Value"); 5050 var isFlexiFluor = productType.Equals("FlexiFluor"); 5051 appAbbreviation = appAbbreviation.Replace(",",", "); 5052 5053 //str_productName = CalculateProductName(str_productName, productFieldType, str_productFormat, excludeAB); 5054 5055 5056 5057 #line default 5058 #line hidden 5059 WriteLiteralTo(__razor_helper_writer, " <li"); 5060 5061 WriteLiteralTo(__razor_helper_writer, " class=\"row list\""); 5062 5063 WriteLiteralTo(__razor_helper_writer, " data-variantID=\""); 5064 5065 5066 #line 1262 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5067 WriteTo(__razor_helper_writer, str_productVariantID); 5068 5069 5070 #line default 5071 #line hidden 5072 WriteLiteralTo(__razor_helper_writer, "\""); 5073 5074 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5075 5076 5077 #line 1263 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5078 5079 5080 #line default 5081 #line hidden 5082 5083 #line 1263 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5084 if (PreviousElement != str_productID) 5085 { 5086 5087 5088 #line default 5089 #line hidden 5090 WriteLiteralTo(__razor_helper_writer, " <h2"); 5091 5092 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3\""); 5093 5094 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 5095 5096 WriteLiteralTo(__razor_helper_writer, " itemprop=\"name\""); 5097 5098 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64170), Tuple.Create("\"", 64186) 5099 5100 #line 1266 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5101 , Tuple.Create(Tuple.Create("", 64177), Tuple.Create<System.Object, System.Int32>(str_link 5102 5103 #line default 5104 #line hidden 5105 , 64177), false) 5106 ); 5107 5108 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5109 5110 WriteLiteralTo(__razor_helper_writer, " "); 5111 5112 5113 #line 1267 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5114 WriteTo(__razor_helper_writer, str_productName); 5115 5116 5117 #line default 5118 #line hidden 5119 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </h2>\r\n"); 5120 5121 5122 #line 1270 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5123 5124 5125 5126 #line default 5127 #line hidden 5128 WriteLiteralTo(__razor_helper_writer, " <div"); 5129 5130 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 64319), Tuple.Create("\'", 64383) 5131 5132 #line 1271 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5133 , Tuple.Create(Tuple.Create("", 64327), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-2" : "col-xs-2" 5134 5135 #line default 5136 #line hidden 5137 , 64327), false) 5138 , Tuple.Create(Tuple.Create(" ", 64369), Tuple.Create("noPaddingLeft", 64370), true) 5139 ); 5140 5141 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5142 5143 WriteLiteralTo(__razor_helper_writer, " "); 5144 5145 5146 #line 1272 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5147 WriteTo(__razor_helper_writer, RenderCloneFieldForSearch(productClone, searchPageID, productCategory, productReactivity, "List")); 5148 5149 5150 #line default 5151 #line hidden 5152 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5153 5154 5155 #line 1274 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5156 5157 5158 5159 #line default 5160 #line hidden 5161 WriteLiteralTo(__razor_helper_writer, " <div"); 5162 5163 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1 noPadding wordWrap\""); 5164 5165 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 5166 5167 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64630), Tuple.Create("\"", 64682) 5168 5169 #line 1276 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5170 , Tuple.Create(Tuple.Create("", 64637), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML("dwcountry/abbreviations") 5171 5172 #line default 5173 #line hidden 5174 , 64637), false) 5175 ); 5176 5177 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 5178 5179 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\'", 64699), Tuple.Create("\'", 64783) 5180 5181 #line 1276 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5182 , Tuple.Create(Tuple.Create("", 64707), Tuple.Create<System.Object, System.Int32>(Translate("ViewAbbreviationDescriptions", "View abbreviation descriptions") 5183 5184 #line default 5185 #line hidden 5186 , 64707), false) 5187 ); 5188 5189 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5190 5191 WriteLiteralTo(__razor_helper_writer, " "); 5192 5193 5194 #line 1277 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5195 WriteTo(__razor_helper_writer, appAbbreviation); 5196 5197 5198 #line default 5199 #line hidden 5200 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </div>\r\n"); 5201 5202 5203 #line 1280 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5204 5205 5206 5207 #line default 5208 #line hidden 5209 WriteLiteralTo(__razor_helper_writer, " <div"); 5210 5211 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1\""); 5212 5213 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5214 5215 5216 #line 1282 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5217 5218 5219 #line default 5220 #line hidden 5221 5222 #line 1282 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5223 if (!String.IsNullOrWhiteSpace(regulatoryStatus)) 5224 { 5225 5226 5227 #line default 5228 #line hidden 5229 5230 #line 1284 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5231 WriteTo(__razor_helper_writer, regulatoryStatus); 5232 5233 5234 #line default 5235 #line hidden 5236 5237 #line 1284 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5238 5239 } 5240 else 5241 { 5242 5243 5244 #line default 5245 #line hidden 5246 WriteLiteralTo(__razor_helper_writer, " "); 5247 5248 WriteLiteralTo(__razor_helper_writer, "--"); 5249 5250 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5251 5252 5253 #line 1289 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5254 } 5255 5256 5257 #line default 5258 #line hidden 5259 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5260 5261 5262 #line 1291 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5263 } 5264 5265 5266 #line default 5267 #line hidden 5268 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 5269 5270 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 65312), Tuple.Create("\'", 65424) 5271 5272 #line 1293 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5273 , Tuple.Create(Tuple.Create("", 65320), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-5" : "col-xs-5" 5274 5275 #line default 5276 #line hidden 5277 , 65320), false) 5278 , Tuple.Create(Tuple.Create(" ", 65362), Tuple.Create("noPadding", 65363), true) 5279 5280 #line 1293 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5281 , Tuple.Create(Tuple.Create(" ", 65372), Tuple.Create<System.Object, System.Int32>(PreviousElement == str_productID ? colGroup : "" 5282 5283 #line default 5284 #line hidden 5285 , 65373), false) 5286 ); 5287 5288 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n"); 5289 5290 5291 #line 1295 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5292 5293 5294 #line default 5295 #line hidden 5296 5297 #line 1295 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5298 if(!string.IsNullOrWhiteSpace(notifyMe)){ 5299 5300 5301 #line default 5302 #line hidden 5303 WriteLiteralTo(__razor_helper_writer, " <span"); 5304 5305 WriteLiteralTo(__razor_helper_writer, " style=\"float:right; margin-right:50px;\""); 5306 5307 WriteLiteralTo(__razor_helper_writer, "><a"); 5308 5309 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 65558), Tuple.Create("\"", 65593) 5310 5311 #line 1296 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5312 , Tuple.Create(Tuple.Create("", 65565), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(notifyMe) 5313 5314 #line default 5315 #line hidden 5316 , 65565), false) 5317 ); 5318 5319 WriteLiteralTo(__razor_helper_writer, ">Notify Me When Available</a></span>\r\n"); 5320 5321 5322 #line 1297 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5323 } 5324 else{ 5325 5326 5327 5328 #line default 5329 #line hidden 5330 WriteLiteralTo(__razor_helper_writer, " <form"); 5331 5332 WriteLiteralTo(__razor_helper_writer, " name=\"addToCart\""); 5333 5334 WriteLiteralTo(__razor_helper_writer, " class=\"add-to-cart col-xs-12 noPadding\""); 5335 5336 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 65758), Tuple.Create("\"", 65777) 5337 5338 #line 1300 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5339 , Tuple.Create(Tuple.Create("", 65767), Tuple.Create<System.Object, System.Int32>(urlAction 5340 5341 #line default 5342 #line hidden 5343 , 65767), false) 5344 ); 5345 5346 WriteLiteralTo(__razor_helper_writer, " method=\"POST\""); 5347 5348 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5349 5350 5351 #line 1301 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5352 5353 5354 #line default 5355 #line hidden 5356 5357 #line 1301 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5358 if (bol_userLogged) 5359 { 5360 5361 5362 #line default 5363 #line hidden 5364 WriteLiteralTo(__razor_helper_writer, " <input"); 5365 5366 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 5367 5368 WriteLiteralTo(__razor_helper_writer, " name=\"redirect\""); 5369 5370 WriteLiteralTo(__razor_helper_writer, " value=\"false\""); 5371 5372 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5373 5374 5375 #line 1304 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5376 } 5377 5378 5379 #line default 5380 #line hidden 5381 WriteLiteralTo(__razor_helper_writer, " <input"); 5382 5383 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 5384 5385 WriteLiteralTo(__razor_helper_writer, " name=\"cartcmd\""); 5386 5387 WriteLiteralTo(__razor_helper_writer, " value=\"add\""); 5388 5389 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 5390 5391 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 5392 5393 WriteLiteralTo(__razor_helper_writer, " name=\"productid\""); 5394 5395 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 66113), Tuple.Create("\"", 66135) 5396 5397 #line 1306 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5398 , Tuple.Create(Tuple.Create("", 66121), Tuple.Create<System.Object, System.Int32>(str_productID 5399 5400 #line default 5401 #line hidden 5402 , 66121), false) 5403 ); 5404 5405 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 5406 5407 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 5408 5409 WriteLiteralTo(__razor_helper_writer, " name=\"variantID\""); 5410 5411 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 66201), Tuple.Create("\"", 66230) 5412 5413 #line 1307 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5414 , Tuple.Create(Tuple.Create("", 66209), Tuple.Create<System.Object, System.Int32>(str_productVariantID 5415 5416 #line default 5417 #line hidden 5418 , 66209), false) 5419 ); 5420 5421 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5422 5423 5424 #line 1308 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5425 5426 5427 #line default 5428 #line hidden 5429 5430 #line 1308 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5431 if (!string.IsNullOrWhiteSpace(orderContext)) 5432 { 5433 5434 5435 #line default 5436 #line hidden 5437 WriteLiteralTo(__razor_helper_writer, " <input"); 5438 5439 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 5440 5441 WriteLiteralTo(__razor_helper_writer, " name=\"OrderContext\""); 5442 5443 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 66402), Tuple.Create("\"", 66423) 5444 5445 #line 1310 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5446 , Tuple.Create(Tuple.Create("", 66410), Tuple.Create<System.Object, System.Int32>(orderContext 5447 5448 #line default 5449 #line hidden 5450 , 66410), false) 5451 ); 5452 5453 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5454 5455 5456 #line 1311 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5457 } 5458 5459 5460 #line default 5461 #line hidden 5462 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5463 5464 5465 #line 1313 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5466 5467 5468 #line default 5469 #line hidden 5470 5471 #line 1313 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5472 if ((longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) || (longLang.Equals("ja-JP") && str_productID.Equals("11573"))) 5473 { 5474 5475 5476 #line default 5477 #line hidden 5478 WriteLiteralTo(__razor_helper_writer, " <div"); 5479 5480 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 66671), Tuple.Create("\'", 66731) 5481 5482 #line 1315 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5483 , Tuple.Create(Tuple.Create("", 66679), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-2" : "col-xs-4" 5484 5485 #line default 5486 #line hidden 5487 , 66679), false) 5488 , Tuple.Create(Tuple.Create(" ", 66721), Tuple.Create("noPadding", 66722), true) 5489 ); 5490 5491 WriteLiteralTo(__razor_helper_writer, ">\r\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n " + 5492 " </div>\r\n"); 5493 5494 5495 #line 1318 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5496 } 5497 else 5498 { 5499 5500 5501 #line default 5502 #line hidden 5503 WriteLiteralTo(__razor_helper_writer, " <div"); 5504 5505 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 66957), Tuple.Create("\'", 67017) 5506 5507 #line 1321 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5508 , Tuple.Create(Tuple.Create("", 66965), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-3" : "col-xs-4" 5509 5510 #line default 5511 #line hidden 5512 , 66965), false) 5513 , Tuple.Create(Tuple.Create(" ", 67007), Tuple.Create("noPadding", 67008), true) 5514 ); 5515 5516 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5517 5518 5519 #line 1322 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5520 5521 5522 #line default 5523 #line hidden 5524 5525 #line 1322 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5526 if (!isComingSoon) 5527 { 5528 5529 5530 #line default 5531 #line hidden 5532 5533 #line 1324 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5534 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.Number")); 5535 5536 5537 #line default 5538 #line hidden 5539 5540 #line 1324 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5541 5542 } 5543 else 5544 { 5545 5546 5547 #line default 5548 #line hidden 5549 5550 #line 1328 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5551 WriteTo(__razor_helper_writer, Translate("comingSoon", "Coming Soon")); 5552 5553 5554 #line default 5555 #line hidden 5556 5557 #line 1328 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5558 5559 } 5560 5561 5562 #line default 5563 #line hidden 5564 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5565 5566 5567 #line 1331 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5568 } 5569 5570 5571 #line default 5572 #line hidden 5573 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 5574 5575 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 67501), Tuple.Create("\'", 67561) 5576 5577 #line 1333 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5578 , Tuple.Create(Tuple.Create("", 67509), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-3" : "col-xs-4" 5579 5580 #line default 5581 #line hidden 5582 , 67509), false) 5583 , Tuple.Create(Tuple.Create(" ", 67551), Tuple.Create("noPadding", 67552), true) 5584 ); 5585 5586 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5587 5588 WriteLiteralTo(__razor_helper_writer, " "); 5589 5590 5591 #line 1334 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5592 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.VariantText")); 5593 5594 5595 #line default 5596 #line hidden 5597 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n <div"); 5598 5599 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\'", 67703), Tuple.Create("\'", 67763) 5600 5601 #line 1337 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5602 , Tuple.Create(Tuple.Create("", 67711), Tuple.Create<System.Object, System.Int32>(!cartDisabled ? "col-xs-2" : "col-xs-4" 5603 5604 #line default 5605 #line hidden 5606 , 67711), false) 5607 , Tuple.Create(Tuple.Create(" ", 67753), Tuple.Create("noPadding", 67754), true) 5608 ); 5609 5610 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5611 5612 5613 #line 1338 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5614 5615 5616 #line default 5617 #line hidden 5618 5619 #line 1338 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5620 if (longLang.Equals("ja-JP") && str_productFormat.Contains("GOINVIVO") && !str_productVariantID.Equals("5mg")) 5621 { 5622 5623 5624 #line default 5625 #line hidden 5626 5627 #line 1340 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5628 WriteTo(__razor_helper_writer, Translate("PleaseContactUs", "Please Contact Us")); 5629 5630 5631 #line default 5632 #line hidden 5633 5634 #line 1340 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5635 5636 } 5637 else if(longLang.Equals("ja-JP") && isFlexiFluor) 5638 { 5639 5640 5641 #line default 5642 #line hidden 5643 WriteLiteralTo(__razor_helper_writer, " <div>お問い合わせください</div>\r\n"); 5644 5645 5646 #line 1345 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5647 } 5648 else if (longLang.Equals("ja-JP") && blockAddToCart) 5649 { 5650 5651 5652 #line default 5653 #line hidden 5654 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <p"); 5655 5656 WriteLiteralTo(__razor_helper_writer, " class=\"coming-soon\""); 5657 5658 WriteLiteralTo(__razor_helper_writer, ">"); 5659 5660 5661 #line 1349 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5662 WriteTo(__razor_helper_writer, blockAddToCartText); 5663 5664 5665 #line default 5666 #line hidden 5667 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n"); 5668 5669 5670 #line 1351 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5671 } 5672 else if (longLang.Equals("ja-JP") && @product.GetString("Ecom:Product.Number").Equals("423555")) 5673 { 5674 5675 5676 #line default 5677 #line hidden 5678 WriteLiteralTo(__razor_helper_writer, " <span"); 5679 5680 WriteLiteralTo(__razor_helper_writer, " class=\"withBreak\""); 5681 5682 WriteLiteralTo(__razor_helper_writer, " itemprop=\"price\""); 5683 5684 WriteLiteralTo(__razor_helper_writer, ">"); 5685 5686 5687 #line 1354 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5688 WriteTo(__razor_helper_writer, RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)); 5689 5690 5691 #line default 5692 #line hidden 5693 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 5694 5695 5696 #line 1355 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5697 } 5698 else if (requestQuote) 5699 { 5700 5701 5702 #line default 5703 #line hidden 5704 WriteLiteralTo(__razor_helper_writer, " <div><a"); 5705 5706 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 69029), Tuple.Create("\"", 69085) 5707 5708 #line 1358 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5709 , Tuple.Create(Tuple.Create("", 69036), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML("dwcountry/contact-local-rep") 5710 5711 #line default 5712 #line hidden 5713 , 69036), false) 5714 ); 5715 5716 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 5717 5718 WriteLiteralTo(__razor_helper_writer, ">Get a Quote</a></div>\r\n"); 5719 5720 5721 #line 1359 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5722 } 5723 else if (str_productID.Equals("10801") && !longLang.Equals("en-US")) 5724 { 5725 5726 5727 #line default 5728 #line hidden 5729 5730 #line 1362 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5731 WriteTo(__razor_helper_writer, Translate("addToCartForPrice", "Add to cart for price.")); 5732 5733 5734 #line default 5735 #line hidden 5736 5737 #line 1362 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5738 5739 } 5740 else if (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) 5741 { 5742 } 5743 else if ((longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) || (longLang.Equals("ja-JP") && str_productID.Equals("11573"))) 5744 { 5745 } 5746 else 5747 { 5748 5749 5750 #line default 5751 #line hidden 5752 5753 #line 1372 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5754 5755 5756 5757 #line default 5758 #line hidden 5759 WriteLiteralTo(__razor_helper_writer, " <span"); 5760 5761 WriteLiteralTo(__razor_helper_writer, " class=\"withBreak\""); 5762 5763 WriteLiteralTo(__razor_helper_writer, " itemprop=\"price\""); 5764 5765 WriteLiteralTo(__razor_helper_writer, ">"); 5766 5767 5768 #line 1373 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5769 WriteTo(__razor_helper_writer, RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)); 5770 5771 5772 #line default 5773 #line hidden 5774 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 5775 5776 5777 #line 1374 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5778 } 5779 5780 5781 #line default 5782 #line hidden 5783 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n"); 5784 5785 5786 #line 1377 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5787 5788 5789 #line default 5790 #line hidden 5791 5792 #line 1377 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5793 if (!cartDisabled && !(str_productName.Contains("Flex-T") && str_productName.Contains("Custom"))) 5794 { 5795 5796 5797 #line default 5798 #line hidden 5799 WriteLiteralTo(__razor_helper_writer, " <div"); 5800 5801 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1 noPadding\""); 5802 5803 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5804 5805 5806 #line 1380 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5807 5808 5809 #line default 5810 #line hidden 5811 5812 #line 1380 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5813 if (!productVariantStatus.Equals(3) && !isComingSoon && !blockAddToCart) 5814 { 5815 5816 5817 #line default 5818 #line hidden 5819 WriteLiteralTo(__razor_helper_writer, " <input"); 5820 5821 WriteLiteralTo(__razor_helper_writer, " data-reservedStock=\'"); 5822 5823 5824 #line 1382 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5825 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.AvailableAmount")); 5826 5827 5828 #line default 5829 #line hidden 5830 WriteLiteralTo(__razor_helper_writer, "\'"); 5831 5832 WriteLiteralTo(__razor_helper_writer, " data-productStatus=\""); 5833 5834 5835 #line 1382 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5836 WriteTo(__razor_helper_writer, productStatus); 5837 5838 5839 #line default 5840 #line hidden 5841 WriteLiteralTo(__razor_helper_writer, "\""); 5842 5843 WriteLiteralTo(__razor_helper_writer, " data-stockControl=\'"); 5844 5845 5846 #line 1382 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5847 WriteTo(__razor_helper_writer, stockControl.ToLower()); 5848 5849 5850 #line default 5851 #line hidden 5852 WriteLiteralTo(__razor_helper_writer, "\'"); 5853 5854 WriteLiteralTo(__razor_helper_writer, " data-stocktranslate=\'"); 5855 5856 5857 #line 1382 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5858 WriteTo(__razor_helper_writer, Translate("currentStock", "The current stock is")); 5859 5860 5861 #line default 5862 #line hidden 5863 WriteLiteralTo(__razor_helper_writer, "\'"); 5864 5865 WriteLiteralTo(__razor_helper_writer, " data-stock=\'"); 5866 5867 5868 #line 1382 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5869 WriteTo(__razor_helper_writer, navEnvironment.Equals("US") ? stockUS : stockUK); 5870 5871 5872 #line default 5873 #line hidden 5874 WriteLiteralTo(__razor_helper_writer, "\'"); 5875 5876 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 5877 5878 WriteLiteralTo(__razor_helper_writer, " name=\"quantity\""); 5879 5880 WriteLiteralTo(__razor_helper_writer, " value=\"1\""); 5881 5882 WriteLiteralTo(__razor_helper_writer, " size=\"3\""); 5883 5884 WriteLiteralTo(__razor_helper_writer, " class=\"productQTYRequestBox\""); 5885 5886 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5887 5888 5889 #line 1383 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5890 } 5891 5892 5893 #line default 5894 #line hidden 5895 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5896 5897 5898 #line 1385 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5899 5900 5901 5902 #line default 5903 #line hidden 5904 WriteLiteralTo(__razor_helper_writer, " <div"); 5905 5906 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-1\""); 5907 5908 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5909 5910 5911 #line 1387 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5912 5913 5914 #line default 5915 #line hidden 5916 5917 #line 1387 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5918 if (blockAddToCart) 5919 { 5920 5921 5922 #line default 5923 #line hidden 5924 WriteLiteralTo(__razor_helper_writer, " <button"); 5925 5926 WriteAttributeTo(__razor_helper_writer, "onClick", Tuple.Create(" onClick=\"", 71239), Tuple.Create("\"", 71292) 5927 , Tuple.Create(Tuple.Create("", 71249), Tuple.Create("alert(\'", 71249), true) 5928 5929 #line 1389 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5930 , Tuple.Create(Tuple.Create("", 71256), Tuple.Create<System.Object, System.Int32>(blockAddToCartText 5931 5932 #line default 5933 #line hidden 5934 , 71256), false) 5935 , Tuple.Create(Tuple.Create("", 71275), Tuple.Create("\');", 71275), true) 5936 , Tuple.Create(Tuple.Create(" ", 71278), Tuple.Create("return", 71279), true) 5937 , Tuple.Create(Tuple.Create(" ", 71285), Tuple.Create("false;", 71286), true) 5938 ); 5939 5940 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 71293), Tuple.Create("\"", 71320) 5941 5942 #line 1389 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5943 , Tuple.Create(Tuple.Create("", 71301), Tuple.Create<System.Object, System.Int32>(blockAddToCartText 5944 5945 #line default 5946 #line hidden 5947 , 71301), false) 5948 ); 5949 5950 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 5951 5952 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-times-circle\""); 5953 5954 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 5955 5956 5957 #line 1392 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5958 } 5959 else 5960 { 5961 if (str_productName.Contains("Capture Bead") || (str_productName.Contains("LEGENDplex") && (str_productName.Contains("Standard") || str_productName.Contains("Detection Antibodies") || str_productName.Contains("Detection Abs") || str_productName.Contains("Buffer Set")))) 5962 { 5963 5964 5965 #line default 5966 #line hidden 5967 WriteLiteralTo(__razor_helper_writer, " <button"); 5968 5969 WriteAttributeTo(__razor_helper_writer, "onClick", Tuple.Create(" onClick=\"", 71949), Tuple.Create("\"", 72010) 5970 , Tuple.Create(Tuple.Create("", 71959), Tuple.Create("mixMatchProductRedirect(\'", 71959), true) 5971 5972 #line 1397 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5973 , Tuple.Create(Tuple.Create("", 71984), Tuple.Create<System.Object, System.Int32>(longLang 5974 5975 #line default 5976 #line hidden 5977 , 71984), false) 5978 , Tuple.Create(Tuple.Create("", 71993), Tuple.Create("\');", 71993), true) 5979 , Tuple.Create(Tuple.Create(" ", 71996), Tuple.Create("return", 71997), true) 5980 , Tuple.Create(Tuple.Create(" ", 72003), Tuple.Create("false;", 72004), true) 5981 ); 5982 5983 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 72011), Tuple.Create("\"", 72059) 5984 5985 #line 1397 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 5986 , Tuple.Create(Tuple.Create("", 72019), Tuple.Create<System.Object, System.Int32>(Translate("mixAndMatch", "Mix & Match") 5987 5988 #line default 5989 #line hidden 5990 , 72019), false) 5991 ); 5992 5993 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 5994 5995 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 5996 5997 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 5998 5999 6000 #line 1400 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6001 } 6002 else if (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) 6003 { 6004 } 6005 else if ((longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) || (longLang.Equals("ja-JP") && str_productID.Equals("11573"))) 6006 { 6007 } 6008 else 6009 { 6010 if (isComingSoon) 6011 { 6012 6013 6014 #line default 6015 #line hidden 6016 WriteLiteralTo(__razor_helper_writer, " "); 6017 6018 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 6019 6020 6021 #line 1412 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6022 } 6023 else if (userCurrency != siteCurrency) 6024 { 6025 6026 6027 #line default 6028 #line hidden 6029 WriteLiteralTo(__razor_helper_writer, " <span"); 6030 6031 WriteLiteralTo(__razor_helper_writer, " class=\"inputSubmit\""); 6032 6033 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"tooltip\""); 6034 6035 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 73175), Tuple.Create("\"", 73307) 6036 6037 #line 1415 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6038 , Tuple.Create(Tuple.Create("", 73183), Tuple.Create<System.Object, System.Int32>(Translate("CurrencyMissmatch", "Your currency does not match the websites currency. Please navigate to the proper page.") 6039 6040 #line default 6041 #line hidden 6042 , 73183), false) 6043 ); 6044 6045 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 6046 6047 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 6048 6049 WriteLiteralTo(__razor_helper_writer, " disabled>\r\n <i"); 6050 6051 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 6052 6053 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n " + 6054 " </span>\r\n"); 6055 6056 6057 #line 1420 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6058 } 6059 else if (string.IsNullOrWhiteSpace(productSource)) 6060 { 6061 6062 6063 #line default 6064 #line hidden 6065 WriteLiteralTo(__razor_helper_writer, " <span"); 6066 6067 WriteLiteralTo(__razor_helper_writer, " class=\"inputSubmit\""); 6068 6069 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"tooltip\""); 6070 6071 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 73862), Tuple.Create("\"", 73949) 6072 6073 #line 1423 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6074 , Tuple.Create(Tuple.Create("", 73870), Tuple.Create<System.Object, System.Int32>(Translate("ProductNotAvailable", "This product is not currently available.") 6075 6076 #line default 6077 #line hidden 6078 , 73870), false) 6079 ); 6080 6081 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 6082 6083 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 6084 6085 WriteLiteralTo(__razor_helper_writer, " disabled>\r\n <i"); 6086 6087 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 6088 6089 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n " + 6090 " </span>\r\n"); 6091 6092 6093 #line 1428 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6094 } 6095 else 6096 { 6097 6098 6099 #line default 6100 #line hidden 6101 WriteLiteralTo(__razor_helper_writer, " <button "); 6102 6103 6104 #line 1431 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6105 WriteTo(__razor_helper_writer, disableAddToCart); 6106 6107 6108 #line default 6109 #line hidden 6110 WriteLiteralTo(__razor_helper_writer, " type=\"submit\">\r\n <i"); 6111 6112 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 6113 6114 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 6115 6116 6117 #line 1434 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6118 } 6119 } 6120 } 6121 6122 6123 #line default 6124 #line hidden 6125 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6126 6127 6128 #line 1438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6129 } 6130 6131 6132 #line default 6133 #line hidden 6134 WriteLiteralTo(__razor_helper_writer, " </form>\r\n"); 6135 6136 6137 #line 1440 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6138 } 6139 6140 6141 #line default 6142 #line hidden 6143 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </li>\r\n"); 6144 6145 6146 #line 1443 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6147 6148 PreviousElement = group.Key; 6149 } 6150 6151 6152 #line default 6153 #line hidden 6154 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n"); 6155 6156 6157 #line 1447 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6158 6159 6160 #line default 6161 #line hidden 6162 6163 #line 1447 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6164 if (itemsCount == prodLoopCount) 6165 { 6166 6167 6168 #line default 6169 #line hidden 6170 6171 #line 1449 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6172 WriteTo(__razor_helper_writer, ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct)); 6173 6174 6175 #line default 6176 #line hidden 6177 6178 #line 1449 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6179 6180 } 6181 6182 6183 #line default 6184 #line hidden 6185 WriteLiteralTo(__razor_helper_writer, " </li>\r\n"); 6186 6187 6188 #line 1452 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6189 6190 6191 #line default 6192 #line hidden 6193 }); 6194 6195 #line 1452 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6196 } 6197 #line default 6198 #line hidden 6199 6200 6201 #line 1454 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6202 public RazorEngine.Templating.TemplateWriter RenderDetailViewProduct(IGrouping<string, LoopItem> group, List<LoopItem> loopProduct, int itemsCount, int prodLoopCount, string disableAddToCart) 6203 { 6204 #line default 6205 #line hidden 6206 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6207 6208 #line 1455 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6209 6210 var addToCart = Pageview.Area.Item["AddToCart"] != null ? Pageview.Area.Item["AddToCart"].ToString() : ""; 6211 var cartDisabled = Convert.ToBoolean(Pageview.Area.Item["DisableAddToCart"].ToString()); 6212 var searchPageID = Pageview.Area.Item["SearchResults"].ToString(); 6213 var orderContext = Pageview.Area.Item["OrderContext"] != null ? Pageview.Area.Item["OrderContext"].ToString() : ""; 6214 var navEnvironment = Pageview.Area.Item["NavEnvironment"] != null ? Pageview.Area.Item["NavEnvironment"].ToString() : ""; 6215 var bol_userLogged = User.IsExtranetUserLoggedIn(); 6216 var siteCurrency = PageView.Current().Area.EcomCurrencyId; 6217 var userCurrency = bol_userLogged ? User.GetCurrentUser(PagePermissionLevels.Frontend).Currency : siteCurrency; 6218 var longLang = (string) GetGlobalValue("Global:Area.LongLang"); 6219 6220 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); //CUSTOM CODE 6221 6222 var colGroup = (!cartDisabled ? "col-xs-offset-7" : "col-xs-offset-7"); 6223 var productTypes = GetProductTypes(); 6224 6225 6226 6227 #line default 6228 #line hidden 6229 WriteLiteralTo(__razor_helper_writer, " <li"); 6230 6231 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 6232 6233 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6234 6235 6236 #line 1472 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6237 6238 6239 #line default 6240 #line hidden 6241 6242 #line 1472 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6243 if (itemsCount == 1) 6244 { 6245 6246 6247 #line default 6248 #line hidden 6249 6250 #line 1474 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6251 WriteTo(__razor_helper_writer, ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct, true)); 6252 6253 6254 #line default 6255 #line hidden 6256 6257 #line 1474 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6258 6259 } 6260 6261 6262 #line default 6263 #line hidden 6264 WriteLiteralTo(__razor_helper_writer, " <ul>\r\n"); 6265 6266 6267 #line 1477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6268 6269 6270 #line default 6271 #line hidden 6272 6273 #line 1477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6274 foreach (var product in group) 6275 { 6276 var str_starClass = ""; 6277 var str_halfStar = ""; 6278 6279 var str_productName = product.GetString("Ecom:Product:Field.ProductNameNormalized.Value"); 6280 var str_productID = product.GetString("Ecom:Product.ID"); 6281 var str_link = "/Default.aspx?id=" + GetPageIdByNavigationTag("ProductDetail") + "&ProductId=" + str_productID; 6282 var excludeAB = product.GetBoolean("Ecom:Product:Field.ExcludeAB.Value"); 6283 var productType = product.GetString("Ecom:Product:Field.CMProductType.Value"); 6284 var productCategory = product.GetString("Ecom:Product:Field.ProductCategory.Value"); 6285 var regulatoryStatus = product.GetString("Ecom:Product:Field.RegulatoryStatus.Value"); 6286 var productClone = Regex.Replace(product.GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim(); 6287 var productReactivity = product.GetString("Ecom:Product:Field.Reactivity.Value"); 6288 6289 var str_productImage = product.GetString("Ecom:Product.ImageSmall.Clean"); 6290 var str_productImageMedium = product.GetString("Ecom:Product.ImageMedium.Clean"); 6291 var str_productImageLarge = product.GetString("Ecom:Product.ImageLarge.Clean"); 6292 var str_productImage4 = product.GetString("Ecom:Product:Field.Image4Path.Value.Clean"); 6293 6294 var str_image1Description = product.GetString("Ecom:Product:Field.Image1Description.Value"); 6295 var str_image2Description = product.GetString("Ecom:Product:Field.Image2Description.Value"); 6296 var str_image3Description = product.GetString("Ecom:Product:Field.Image3Description.Value"); 6297 var str_image4Description = product.GetString("Ecom:Product:Field.Image4Description.Value"); 6298 6299 var str_image1Title = product.GetString("Ecom:Product:Field.Image1Title.Value"); 6300 var str_image2Title = product.GetString("Ecom:Product:Field.Image2Title.Value"); 6301 var str_image3Title = product.GetString("Ecom:Product:Field.Image3Title.Value"); 6302 var str_image4Title = product.GetString("Ecom:Product:Field.Image4Title.Value"); 6303 6304 var str_productImage5 = product.GetString("Ecom:Product:Field.Image5Path.Value.Clean"); 6305 var str_image5Description = product.GetString("Ecom:Product:Field.Image5Description.Value"); 6306 var str_image5Title = product.GetString("Ecom:Product:Field.Image5Title.Value"); 6307 6308 var str_productImage6 = product.GetString("Ecom:Product:Field.Image6Path.Value.Clean"); 6309 var str_image6Description = product.GetString("Ecom:Product:Field.Image6Description.Value"); 6310 var str_image6Title = product.GetString("Ecom:Product:Field.Image6Title.Value"); 6311 6312 var str_productGetImage = GetImage(str_productImage, 140, 0, 0, 0, 0, 0, "jpg", 90); 6313 var str_productGetImageMedium = GetImage(str_productImageMedium, 140, 0, 0, 0, 0, 0, "jpg", 90); 6314 var str_productGetImageLarge = GetImage(str_productImageLarge, 140, 0, 0, 0, 0, 0, "jpg", 90); 6315 var str_productGetImage4 = GetImage(str_productImage4, 140, 0, 0, 0, 0, 0, "jpg", 90); 6316 var str_productGetImage5 = GetImage(str_productImage5, 140, 0, 0, 0, 0, 0, "jpg", 90); 6317 var str_productGetImage6 = GetImage(str_productImage6, 140, 0, 0, 0, 0, 0, "jpg", 90); 6318 6319 var str_productFormat = product.GetString("Ecom:Product:Field.Format.Value"); 6320 6321 var stockUS = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUS.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUS.Value.Clean") : "0"; 6322 var stockUK = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUK.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUK.Value.Clean") : "0"; 6323 var stockEU = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockEU.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockEU.Value.Clean") : "0"; 6324 var stockControl = product.GetString("Ecom:Product:Field.StockControl.Value.Clean"); 6325 6326 var isComingSoon = product.GetBoolean("Ecom:Product:Field.ComingSoon.Value"); 6327 var DCSoon = product.GetString("Ecom:Product:Field.DCSoon.Value"); 6328 var notifyMe = product.GetString("Ecom:Product:Field.NotifyMe.Value"); 6329 6330 var blockAddToCart = product.GetBoolean("Ecom:Product:Field.BlockAddToCart.Value"); 6331 var blockAddToCartText = product.GetString("Ecom:Product:Field.BlockAddToCartText.Value"); 6332 blockAddToCartText = blockAddToCartText.Replace("'", "&apos;"); 6333 blockAddToCartText = blockAddToCartText.Replace("\r\n", ""); 6334 blockAddToCartText = blockAddToCartText.Replace("\r", ""); 6335 blockAddToCartText = blockAddToCartText.Replace("\n", ""); 6336 6337 var lst_images = new List<Tuple<string, string, string>>(); 6338 6339 if (!String.IsNullOrEmpty(str_productImage)) 6340 { 6341 lst_images.Add(new Tuple<string, string, string>(str_productImage, str_image1Title, str_image1Description)); 6342 } 6343 if (!String.IsNullOrEmpty(str_productImageMedium)) 6344 { 6345 lst_images.Add(new Tuple<string, string, string>(str_productImageMedium, str_image2Title, str_image2Description)); 6346 } 6347 if (!String.IsNullOrEmpty(str_productImageLarge)) 6348 { 6349 lst_images.Add(new Tuple<string, string, string>(str_productImageLarge, str_image3Title, str_image3Description)); 6350 } 6351 if (!String.IsNullOrEmpty(str_productImage4)) 6352 { 6353 lst_images.Add(new Tuple<string, string, string>(str_productImage4, str_image4Title, str_image4Description)); 6354 } 6355 if (!String.IsNullOrEmpty(str_productImage5)) 6356 { 6357 lst_images.Add(new Tuple<string, string, string>(str_productImage5, str_image5Title, str_image5Description)); 6358 } 6359 if (!String.IsNullOrEmpty(str_productImage6)) 6360 { 6361 lst_images.Add(new Tuple<string, string, string>(str_productImage6, str_image6Title, str_image6Description)); 6362 } 6363 6364 var str_productVariantID = product.GetString("Ecom:Product.VariantID"); 6365 var urlAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + addToCart); 6366 var productFieldType = ""; 6367 if (productTypes.ContainsKey(productType)) 6368 { 6369 productFieldType = productTypes[productType]; 6370 } 6371 6372 var productStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 6373 var productSource = product.GetString("Ecom:Product:Field.ProductSource.Value.Clean"); 6374 var productVariantStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 6375 6376 var requestQuote = GetBoolean("Ecom:Product:Field.RequestQuote"); 6377 var appAbbreviation = product.GetString("Ecom:Product:Field.AppAbrv.Value"); 6378 var productType = GetString("Ecom:Product:Field.CMProductType.Value"); 6379 var isFlexiFluor = productType.Equals("FlexiFluor"); 6380 appAbbreviation = appAbbreviation.Replace(",",", "); 6381 6382 6383 //str_productName = CalculateProductName(str_productName, productFieldType, str_productFormat, excludeAB); 6384 6385 6386 6387 #line default 6388 #line hidden 6389 WriteLiteralTo(__razor_helper_writer, " <div"); 6390 6391 WriteLiteralTo(__razor_helper_writer, " class=\"row detailed\""); 6392 6393 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6394 6395 6396 #line 1589 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6397 6398 6399 #line default 6400 #line hidden 6401 6402 #line 1589 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6403 if (PreviousElement != str_productID) 6404 { 6405 6406 6407 #line default 6408 #line hidden 6409 WriteLiteralTo(__razor_helper_writer, " <h2"); 6410 6411 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 6412 6413 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 6414 6415 WriteLiteralTo(__razor_helper_writer, " itemprop=\"name\""); 6416 6417 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 84675), Tuple.Create("\"", 84691) 6418 6419 #line 1592 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6420 , Tuple.Create(Tuple.Create("", 84682), Tuple.Create<System.Object, System.Int32>(str_link 6421 6422 #line default 6423 #line hidden 6424 , 84682), false) 6425 ); 6426 6427 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6428 6429 WriteLiteralTo(__razor_helper_writer, " "); 6430 6431 6432 #line 1593 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6433 WriteTo(__razor_helper_writer, str_productName); 6434 6435 6436 #line default 6437 #line hidden 6438 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </h2>\r\n"); 6439 6440 6441 #line 1596 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6442 } 6443 6444 6445 #line default 6446 #line hidden 6447 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6448 6449 6450 #line 1598 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6451 6452 6453 #line default 6454 #line hidden 6455 6456 #line 1598 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6457 if (PreviousElement != str_productID) 6458 { 6459 6460 6461 #line default 6462 #line hidden 6463 WriteLiteralTo(__razor_helper_writer, " <div"); 6464 6465 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-7 noPadding\""); 6466 6467 WriteLiteralTo(__razor_helper_writer, ">\r\n <dl"); 6468 6469 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 6470 6471 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6472 6473 6474 #line 1602 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6475 6476 6477 #line default 6478 #line hidden 6479 6480 #line 1602 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6481 if (!string.IsNullOrWhiteSpace(productClone)) 6482 { 6483 6484 6485 #line default 6486 #line hidden 6487 WriteLiteralTo(__razor_helper_writer, " <dt"); 6488 6489 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6490 6491 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 6492 6493 6494 #line 1605 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6495 WriteTo(__razor_helper_writer, Translate("Clone", "Clone")); 6496 6497 6498 #line default 6499 #line hidden 6500 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </dt>\r\n"); 6501 6502 WriteLiteralTo(__razor_helper_writer, " <dd"); 6503 6504 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6505 6506 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6507 6508 WriteLiteralTo(__razor_helper_writer, " "); 6509 6510 6511 #line 1608 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6512 WriteTo(__razor_helper_writer, RenderCloneFieldForSearch(productClone, searchPageID, productCategory, productReactivity, "Detail")); 6513 6514 6515 #line default 6516 #line hidden 6517 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 6518 6519 6520 #line 1610 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6521 } 6522 6523 6524 #line default 6525 #line hidden 6526 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6527 6528 6529 #line 1612 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6530 6531 6532 #line default 6533 #line hidden 6534 6535 #line 1612 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6536 if (!string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.Specificity.Value"))) 6537 { 6538 6539 6540 #line default 6541 #line hidden 6542 WriteLiteralTo(__razor_helper_writer, " <dt"); 6543 6544 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6545 6546 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 6547 6548 6549 #line 1615 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6550 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product:Field.Specificity.Name")); 6551 6552 6553 #line default 6554 #line hidden 6555 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </dt>\r\n"); 6556 6557 WriteLiteralTo(__razor_helper_writer, " <dd"); 6558 6559 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6560 6561 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6562 6563 WriteLiteralTo(__razor_helper_writer, " "); 6564 6565 6566 #line 1618 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6567 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product:Field.Specificity.Value")); 6568 6569 6570 #line default 6571 #line hidden 6572 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 6573 6574 6575 #line 1620 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6576 } 6577 6578 6579 #line default 6580 #line hidden 6581 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6582 6583 6584 #line 1622 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6585 6586 6587 #line default 6588 #line hidden 6589 6590 #line 1622 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6591 if (!string.IsNullOrWhiteSpace(productReactivity)) 6592 { 6593 6594 6595 #line default 6596 #line hidden 6597 WriteLiteralTo(__razor_helper_writer, " <dt"); 6598 6599 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6600 6601 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 6602 6603 6604 #line 1625 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6605 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product:Field.Reactivity.Name")); 6606 6607 6608 #line default 6609 #line hidden 6610 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </dt>\r\n"); 6611 6612 WriteLiteralTo(__razor_helper_writer, " <dd"); 6613 6614 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6615 6616 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6617 6618 WriteLiteralTo(__razor_helper_writer, " "); 6619 6620 6621 #line 1628 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6622 WriteTo(__razor_helper_writer, productReactivity); 6623 6624 6625 #line default 6626 #line hidden 6627 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 6628 6629 6630 #line 1630 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6631 } 6632 6633 6634 #line default 6635 #line hidden 6636 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6637 6638 6639 #line 1632 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6640 6641 6642 #line default 6643 #line hidden 6644 6645 #line 1632 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6646 if (!string.IsNullOrWhiteSpace(appAbbreviation)) 6647 { 6648 6649 6650 #line default 6651 #line hidden 6652 WriteLiteralTo(__razor_helper_writer, " <dt"); 6653 6654 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6655 6656 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 6657 6658 6659 #line 1635 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6660 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product:Field.Applications.Name")); 6661 6662 6663 #line default 6664 #line hidden 6665 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </dt>\r\n"); 6666 6667 WriteLiteralTo(__razor_helper_writer, " <dd"); 6668 6669 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6670 6671 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 6672 6673 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 87006), Tuple.Create("\"", 87058) 6674 6675 #line 1638 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6676 , Tuple.Create(Tuple.Create("", 87013), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML("dwcountry/abbreviations") 6677 6678 #line default 6679 #line hidden 6680 , 87013), false) 6681 ); 6682 6683 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 6684 6685 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\'", 87075), Tuple.Create("\'", 87159) 6686 6687 #line 1638 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6688 , Tuple.Create(Tuple.Create("", 87083), Tuple.Create<System.Object, System.Int32>(Translate("ViewAbbreviationDescriptions", "View abbreviation descriptions") 6689 6690 #line default 6691 #line hidden 6692 , 87083), false) 6693 ); 6694 6695 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6696 6697 WriteLiteralTo(__razor_helper_writer, " "); 6698 6699 6700 #line 1639 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6701 WriteTo(__razor_helper_writer, appAbbreviation); 6702 6703 6704 #line default 6705 #line hidden 6706 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </dd>" + 6707 "\r\n"); 6708 6709 6710 #line 1642 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6711 } 6712 6713 6714 #line default 6715 #line hidden 6716 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6717 6718 6719 #line 1644 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6720 6721 6722 #line default 6723 #line hidden 6724 6725 #line 1644 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6726 if (!string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.RegulatoryStatus.Value"))) 6727 { 6728 6729 6730 #line default 6731 #line hidden 6732 WriteLiteralTo(__razor_helper_writer, " <dt"); 6733 6734 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6735 6736 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 6737 6738 6739 #line 1647 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6740 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product:Field.RegulatoryStatus.Name")); 6741 6742 6743 #line default 6744 #line hidden 6745 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </dt>\r\n"); 6746 6747 WriteLiteralTo(__razor_helper_writer, " <dd"); 6748 6749 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6750 6751 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6752 6753 WriteLiteralTo(__razor_helper_writer, " "); 6754 6755 6756 #line 1650 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6757 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product:Field.RegulatoryStatus.Value")); 6758 6759 6760 #line default 6761 #line hidden 6762 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 6763 6764 6765 #line 1652 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6766 } 6767 6768 6769 #line default 6770 #line hidden 6771 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6772 6773 6774 #line 1654 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6775 6776 6777 #line default 6778 #line hidden 6779 6780 #line 1654 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6781 6782 string pattern = @"\<[^>]*\>"; 6783 Regex rgx = new Regex(pattern); 6784 string otherNamesValue = rgx.Replace(product.GetString("Ecom:Product:Field.OtherNames.Value"), String.Empty); 6785 6786 6787 #line default 6788 #line hidden 6789 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6790 6791 6792 #line 1659 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6793 6794 6795 #line default 6796 #line hidden 6797 6798 #line 1659 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6799 if (!String.IsNullOrWhiteSpace(otherNamesValue)) 6800 { 6801 6802 6803 #line default 6804 #line hidden 6805 WriteLiteralTo(__razor_helper_writer, " <dt"); 6806 6807 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6808 6809 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 6810 6811 6812 #line 1662 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6813 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product:Field.OtherNames.Name")); 6814 6815 6816 #line default 6817 #line hidden 6818 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </dt>\r\n"); 6819 6820 WriteLiteralTo(__razor_helper_writer, " <dd"); 6821 6822 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6823 6824 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6825 6826 WriteLiteralTo(__razor_helper_writer, " "); 6827 6828 6829 #line 1665 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6830 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product:Field.OtherNames.Value")); 6831 6832 6833 #line default 6834 #line hidden 6835 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 6836 6837 6838 #line 1667 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6839 } 6840 6841 6842 #line default 6843 #line hidden 6844 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6845 6846 6847 #line 1669 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6848 6849 6850 #line default 6851 #line hidden 6852 6853 #line 1669 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6854 if (product.GetInteger("Ecom:Product.Rating") > 0) 6855 { 6856 6857 6858 #line default 6859 #line hidden 6860 WriteLiteralTo(__razor_helper_writer, " <dt"); 6861 6862 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6863 6864 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 6865 6866 6867 #line 1672 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6868 WriteTo(__razor_helper_writer, Translate("rating", "Rating")); 6869 6870 6871 #line default 6872 #line hidden 6873 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </dt>\r\n"); 6874 6875 WriteLiteralTo(__razor_helper_writer, " <dd"); 6876 6877 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6\""); 6878 6879 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul"); 6880 6881 WriteLiteralTo(__razor_helper_writer, " class=\"rating\""); 6882 6883 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6884 6885 6886 #line 1676 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6887 6888 6889 #line default 6890 #line hidden 6891 6892 #line 1676 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6893 for (int s = 5; s > 0; s--) 6894 { 6895 if (s == Math.Ceiling(product.GetDouble("Ecom:Product.Rating"))) 6896 { 6897 str_starClass = "class='star'"; 6898 str_halfStar = !(product.GetDouble("Ecom:Product.Rating") - Math.Round(product.GetDouble("Ecom:Product.Rating")) == 0) ? "fa-star-half" : "fa-star"; 6899 } 6900 else if (s > Math.Ceiling(product.GetDouble("Ecom:Product.Rating"))) 6901 { 6902 str_halfStar = "fa-star"; 6903 } 6904 else 6905 { 6906 str_starClass = ""; 6907 str_halfStar = "fa-star"; 6908 } 6909 6910 6911 6912 #line default 6913 #line hidden 6914 WriteLiteralTo(__razor_helper_writer, " <li"); 6915 6916 WriteLiteralTo(__razor_helper_writer, " data-star=\""); 6917 6918 6919 #line 1693 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6920 WriteTo(__razor_helper_writer, s); 6921 6922 6923 #line default 6924 #line hidden 6925 WriteLiteralTo(__razor_helper_writer, "\""); 6926 6927 WriteLiteralTo(__razor_helper_writer, " "); 6928 6929 6930 #line 1693 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6931 WriteTo(__razor_helper_writer, str_starClass); 6932 6933 6934 #line default 6935 #line hidden 6936 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 6937 6938 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 90475), Tuple.Create("\"", 90499) 6939 , Tuple.Create(Tuple.Create("", 90483), Tuple.Create("fa", 90483), true) 6940 6941 #line 1694 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6942 , Tuple.Create(Tuple.Create(" ", 90485), Tuple.Create<System.Object, System.Int32>(str_halfStar 6943 6944 #line default 6945 #line hidden 6946 , 90486), false) 6947 ); 6948 6949 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </li>\r\n"); 6950 6951 6952 #line 1696 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6953 } 6954 6955 6956 #line default 6957 #line hidden 6958 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </dd>\r" + 6959 "\n"); 6960 6961 6962 #line 1699 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6963 } 6964 6965 6966 #line default 6967 #line hidden 6968 WriteLiteralTo(__razor_helper_writer, "\r\n </dl>\r\n </div>\r\n"); 6969 6970 6971 #line 1703 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6972 } 6973 6974 6975 #line default 6976 #line hidden 6977 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 6978 6979 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-5 noPadding\""); 6980 6981 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6982 6983 6984 #line 1706 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6985 6986 6987 #line default 6988 #line hidden 6989 6990 #line 1706 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 6991 if (PreviousElement != str_productID) 6992 { 6993 string catNoLen = "col-xs-2"; 6994 if (longLang.Equals("ja-JP")) 6995 { 6996 catNoLen = "col-xs-4"; 6997 } 6998 else if (cartDisabled) 6999 { 7000 catNoLen = "col-xs-4"; 7001 } 7002 else 7003 { 7004 catNoLen = "col-xs-2"; 7005 } 7006 7007 if(!string.IsNullOrWhiteSpace(notifyMe)){ 7008 7009 7010 7011 #line default 7012 #line hidden 7013 WriteLiteralTo(__razor_helper_writer, " <div"); 7014 7015 WriteLiteralTo(__razor_helper_writer, " style=\"padding-bottom:25px;\""); 7016 7017 WriteLiteralTo(__razor_helper_writer, "><a"); 7018 7019 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 91498), Tuple.Create("\"", 91533) 7020 7021 #line 1724 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7022 , Tuple.Create(Tuple.Create("", 91505), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(notifyMe) 7023 7024 #line default 7025 #line hidden 7026 , 91505), false) 7027 ); 7028 7029 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-primary\""); 7030 7031 WriteLiteralTo(__razor_helper_writer, " style=\"color:#FFF; text-decoration:none;\""); 7032 7033 WriteLiteralTo(__razor_helper_writer, ">Notify Me When Available</a></div>\r\n"); 7034 7035 7036 #line 1725 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7037 7038 } 7039 else{ 7040 7041 7042 7043 #line default 7044 #line hidden 7045 WriteLiteralTo(__razor_helper_writer, " <ul>\r\n <li>\r\n " + 7046 " <form"); 7047 7048 WriteLiteralTo(__razor_helper_writer, " name=\"addToCart\""); 7049 7050 WriteLiteralTo(__razor_helper_writer, " class=\"add-to-cart col-xs-12 noPadding\""); 7051 7052 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 91837), Tuple.Create("\"", 91856) 7053 7054 #line 1731 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7055 , Tuple.Create(Tuple.Create("", 91846), Tuple.Create<System.Object, System.Int32>(urlAction 7056 7057 #line default 7058 #line hidden 7059 , 91846), false) 7060 ); 7061 7062 WriteLiteralTo(__razor_helper_writer, " method=\"POST\""); 7063 7064 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n <input"); 7065 7066 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 7067 7068 WriteLiteralTo(__razor_helper_writer, " name=\"redirect\""); 7069 7070 WriteLiteralTo(__razor_helper_writer, " value=\"false\""); 7071 7072 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 7073 7074 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 7075 7076 WriteLiteralTo(__razor_helper_writer, " name=\"cartcmd\""); 7077 7078 WriteLiteralTo(__razor_helper_writer, " value=\"add\""); 7079 7080 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 7081 7082 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 7083 7084 WriteLiteralTo(__razor_helper_writer, " name=\"productid\""); 7085 7086 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 92114), Tuple.Create("\"", 92136) 7087 7088 #line 1735 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7089 , Tuple.Create(Tuple.Create("", 92122), Tuple.Create<System.Object, System.Int32>(str_productID 7090 7091 #line default 7092 #line hidden 7093 , 92122), false) 7094 ); 7095 7096 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 7097 7098 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 7099 7100 WriteLiteralTo(__razor_helper_writer, " name=\"variantID\""); 7101 7102 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 92210), Tuple.Create("\"", 92239) 7103 7104 #line 1736 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7105 , Tuple.Create(Tuple.Create("", 92218), Tuple.Create<System.Object, System.Int32>(str_productVariantID 7106 7107 #line default 7108 #line hidden 7109 , 92218), false) 7110 ); 7111 7112 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 7113 7114 7115 #line 1737 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7116 7117 7118 #line default 7119 #line hidden 7120 7121 #line 1737 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7122 if (!string.IsNullOrWhiteSpace(orderContext)) 7123 { 7124 7125 7126 #line default 7127 #line hidden 7128 WriteLiteralTo(__razor_helper_writer, " <input"); 7129 7130 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 7131 7132 WriteLiteralTo(__razor_helper_writer, " name=\"OrderContext\""); 7133 7134 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 92435), Tuple.Create("\"", 92456) 7135 7136 #line 1739 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7137 , Tuple.Create(Tuple.Create("", 92443), Tuple.Create<System.Object, System.Int32>(orderContext 7138 7139 #line default 7140 #line hidden 7141 , 92443), false) 7142 ); 7143 7144 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 7145 7146 7147 #line 1740 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7148 } 7149 7150 7151 #line default 7152 #line hidden 7153 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 7154 7155 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 92534), Tuple.Create("\"", 92572) 7156 7157 #line 1742 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7158 , Tuple.Create(Tuple.Create("", 92542), Tuple.Create<System.Object, System.Int32>(catNoLen 7159 7160 #line default 7161 #line hidden 7162 , 92542), false) 7163 , Tuple.Create(Tuple.Create(" ", 92551), Tuple.Create("noPadding", 92552), true) 7164 , Tuple.Create(Tuple.Create(" ", 92561), Tuple.Create("paddingT40", 92562), true) 7165 ); 7166 7167 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7168 7169 7170 #line 1743 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7171 7172 7173 #line default 7174 #line hidden 7175 7176 #line 1743 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7177 if (longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) 7178 { 7179 7180 7181 #line default 7182 #line hidden 7183 WriteLiteralTo(__razor_helper_writer, " "); 7184 7185 WriteLiteralTo(__razor_helper_writer, "&nbsp;"); 7186 7187 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7188 7189 7190 #line 1746 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7191 } 7192 else 7193 { 7194 if (!isComingSoon) 7195 { 7196 7197 7198 #line default 7199 #line hidden 7200 7201 #line 1751 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7202 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.Number")); 7203 7204 7205 #line default 7206 #line hidden 7207 7208 #line 1751 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7209 7210 } 7211 else 7212 { 7213 7214 7215 #line default 7216 #line hidden 7217 7218 #line 1755 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7219 WriteTo(__razor_helper_writer, Translate("comingSoon", "Coming Soon")); 7220 7221 7222 #line default 7223 #line hidden 7224 7225 #line 1755 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7226 7227 } 7228 } 7229 7230 7231 #line default 7232 #line hidden 7233 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n <div"); 7234 7235 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPadding\""); 7236 7237 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 7238 7239 WriteLiteralTo(__razor_helper_writer, " class=\"title\""); 7240 7241 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 7242 7243 7244 #line 1762 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7245 WriteTo(__razor_helper_writer, Translate("size", "Size")); 7246 7247 7248 #line default 7249 #line hidden 7250 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </span>\r\n"); 7251 7252 WriteLiteralTo(__razor_helper_writer, " "); 7253 7254 7255 #line 1764 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7256 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.VariantText")); 7257 7258 7259 #line default 7260 #line hidden 7261 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n <div"); 7262 7263 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPadding\""); 7264 7265 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 7266 7267 WriteLiteralTo(__razor_helper_writer, " class=\"title\""); 7268 7269 WriteLiteralTo(__razor_helper_writer, " data-lang=\""); 7270 7271 7272 #line 1768 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7273 WriteTo(__razor_helper_writer, longLang); 7274 7275 7276 #line default 7277 #line hidden 7278 WriteLiteralTo(__razor_helper_writer, "\""); 7279 7280 WriteLiteralTo(__razor_helper_writer, " data-format=\""); 7281 7282 7283 #line 1768 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7284 WriteTo(__razor_helper_writer, str_productFormat); 7285 7286 7287 #line default 7288 #line hidden 7289 WriteLiteralTo(__razor_helper_writer, "\""); 7290 7291 WriteLiteralTo(__razor_helper_writer, " data-variant=\""); 7292 7293 7294 #line 1768 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7295 WriteTo(__razor_helper_writer, str_productVariantID); 7296 7297 7298 #line default 7299 #line hidden 7300 WriteLiteralTo(__razor_helper_writer, "\""); 7301 7302 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 7303 7304 7305 #line 1769 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7306 WriteTo(__razor_helper_writer, Translate("price", "Price")); 7307 7308 7309 #line default 7310 #line hidden 7311 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </span>\r\n"); 7312 7313 7314 #line 1771 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7315 7316 7317 #line default 7318 #line hidden 7319 7320 #line 1771 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7321 if (longLang.Equals("ja-JP") && str_productFormat.Contains("GoInVivo") && !str_productVariantID.Equals("5mg")) 7322 { 7323 7324 7325 #line default 7326 #line hidden 7327 7328 #line 1773 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7329 WriteTo(__razor_helper_writer, Translate("PleaseContactUs", "Please Contact Us")); 7330 7331 7332 #line default 7333 #line hidden 7334 7335 #line 1773 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7336 7337 } 7338 else if(longLang.Equals("ja-JP") && isFlexiFluor) 7339 { 7340 7341 7342 #line default 7343 #line hidden 7344 WriteLiteralTo(__razor_helper_writer, " <div>お問い合わせください</div>\r\n"); 7345 7346 7347 #line 1778 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7348 } 7349 else if (longLang.Equals("ja-JP") && blockAddToCart) 7350 { 7351 7352 7353 #line default 7354 #line hidden 7355 WriteLiteralTo(__razor_helper_writer, " <div>\r\n " + 7356 " <p"); 7357 7358 WriteLiteralTo(__razor_helper_writer, " class=\"coming-soon\""); 7359 7360 WriteLiteralTo(__razor_helper_writer, ">"); 7361 7362 7363 #line 1782 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7364 WriteTo(__razor_helper_writer, blockAddToCartText); 7365 7366 7367 #line default 7368 #line hidden 7369 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n"); 7370 7371 7372 #line 1784 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7373 } 7374 else if (longLang.Equals("ja-JP") && @product.GetString("Ecom:Product.Number").Equals("423555")) 7375 { 7376 7377 7378 #line default 7379 #line hidden 7380 WriteLiteralTo(__razor_helper_writer, " <span"); 7381 7382 WriteLiteralTo(__razor_helper_writer, " class=\"withBreak\""); 7383 7384 WriteLiteralTo(__razor_helper_writer, " itemprop=\"price\""); 7385 7386 WriteLiteralTo(__razor_helper_writer, ">"); 7387 7388 7389 #line 1787 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7390 WriteTo(__razor_helper_writer, RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)); 7391 7392 7393 #line default 7394 #line hidden 7395 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 7396 7397 7398 #line 1788 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7399 } 7400 else if (requestQuote) 7401 { 7402 7403 7404 #line default 7405 #line hidden 7406 WriteLiteralTo(__razor_helper_writer, " <div>\r\n " + 7407 " <a"); 7408 7409 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 95613), Tuple.Create("\"", 95669) 7410 7411 #line 1792 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7412 , Tuple.Create(Tuple.Create("", 95620), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML("dwcountry/contact-local-rep") 7413 7414 #line default 7415 #line hidden 7416 , 95620), false) 7417 ); 7418 7419 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 7420 7421 WriteLiteralTo(__razor_helper_writer, ">Get a Quote</a>\r\n </div>\r\n"); 7422 7423 7424 #line 1794 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7425 } 7426 else if (str_productID.Equals("10801") && !longLang.Equals("en-US")) 7427 { 7428 7429 7430 #line default 7431 #line hidden 7432 7433 #line 1797 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7434 WriteTo(__razor_helper_writer, Translate("addToCartForPrice", "Add to cart for price.")); 7435 7436 7437 #line default 7438 #line hidden 7439 7440 #line 1797 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7441 7442 } 7443 else if (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) 7444 { 7445 } 7446 else if (longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) 7447 { 7448 } 7449 else 7450 { 7451 7452 7453 #line default 7454 #line hidden 7455 7456 #line 1807 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7457 7458 7459 7460 #line default 7461 #line hidden 7462 WriteLiteralTo(__razor_helper_writer, " <span"); 7463 7464 WriteLiteralTo(__razor_helper_writer, " class=\"withBreak\""); 7465 7466 WriteLiteralTo(__razor_helper_writer, " itemprop=\"price\""); 7467 7468 WriteLiteralTo(__razor_helper_writer, ">"); 7469 7470 7471 #line 1808 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7472 WriteTo(__razor_helper_writer, RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)); 7473 7474 7475 #line default 7476 #line hidden 7477 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 7478 7479 7480 #line 1809 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7481 } 7482 7483 7484 #line default 7485 #line hidden 7486 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n"); 7487 7488 7489 #line 1812 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7490 7491 7492 #line default 7493 #line hidden 7494 7495 #line 1812 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7496 if (!cartDisabled && !(str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) && !(longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD"))) 7497 { 7498 7499 7500 #line default 7501 #line hidden 7502 WriteLiteralTo(__razor_helper_writer, " <div"); 7503 7504 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPaddingRight\""); 7505 7506 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 7507 7508 WriteLiteralTo(__razor_helper_writer, " class=\"title\""); 7509 7510 WriteLiteralTo(__razor_helper_writer, ">\r\n <b>"); 7511 7512 7513 #line 1816 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7514 WriteTo(__razor_helper_writer, Translate("quantityVariant", "Quantity")); 7515 7516 7517 #line default 7518 #line hidden 7519 WriteLiteralTo(__razor_helper_writer, "</b>\r\n </span>\r\n"); 7520 7521 7522 #line 1818 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7523 7524 7525 #line default 7526 #line hidden 7527 7528 #line 1818 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7529 if (!productVariantStatus.Equals(3) && !isComingSoon && !blockAddToCart) 7530 { 7531 7532 7533 #line default 7534 #line hidden 7535 WriteLiteralTo(__razor_helper_writer, " <input"); 7536 7537 WriteLiteralTo(__razor_helper_writer, " data-reservedStock=\'"); 7538 7539 7540 #line 1820 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7541 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.AvailableAmount")); 7542 7543 7544 #line default 7545 #line hidden 7546 WriteLiteralTo(__razor_helper_writer, "\'"); 7547 7548 WriteLiteralTo(__razor_helper_writer, " data-productStatus=\""); 7549 7550 7551 #line 1820 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7552 WriteTo(__razor_helper_writer, productStatus); 7553 7554 7555 #line default 7556 #line hidden 7557 WriteLiteralTo(__razor_helper_writer, "\""); 7558 7559 WriteLiteralTo(__razor_helper_writer, " data-stockControl=\'"); 7560 7561 7562 #line 1820 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7563 WriteTo(__razor_helper_writer, stockControl.ToLower()); 7564 7565 7566 #line default 7567 #line hidden 7568 WriteLiteralTo(__razor_helper_writer, "\'"); 7569 7570 WriteLiteralTo(__razor_helper_writer, " data-stocktranslate=\'"); 7571 7572 7573 #line 1820 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7574 WriteTo(__razor_helper_writer, Translate("currentStock", "The current stock is")); 7575 7576 7577 #line default 7578 #line hidden 7579 WriteLiteralTo(__razor_helper_writer, "\'"); 7580 7581 WriteLiteralTo(__razor_helper_writer, " data-stock=\'"); 7582 7583 7584 #line 1820 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7585 WriteTo(__razor_helper_writer, navEnvironment.Equals("US") ? stockUS : stockUK); 7586 7587 7588 #line default 7589 #line hidden 7590 WriteLiteralTo(__razor_helper_writer, "\'"); 7591 7592 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 7593 7594 WriteLiteralTo(__razor_helper_writer, " name=\"quantity\""); 7595 7596 WriteLiteralTo(__razor_helper_writer, " value=\"1\""); 7597 7598 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 7599 7600 7601 #line 1821 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7602 } 7603 7604 7605 #line default 7606 #line hidden 7607 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7608 7609 7610 #line 1823 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7611 7612 7613 7614 #line default 7615 #line hidden 7616 WriteLiteralTo(__razor_helper_writer, " <div"); 7617 7618 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 addCartButtonArea\""); 7619 7620 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7621 7622 7623 #line 1825 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7624 7625 7626 #line default 7627 #line hidden 7628 7629 #line 1825 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7630 if (blockAddToCart) 7631 { 7632 7633 7634 #line default 7635 #line hidden 7636 WriteLiteralTo(__razor_helper_writer, " <button"); 7637 7638 WriteAttributeTo(__razor_helper_writer, "onClick", Tuple.Create(" onClick=\"", 98287), Tuple.Create("\"", 98340) 7639 , Tuple.Create(Tuple.Create("", 98297), Tuple.Create("alert(\'", 98297), true) 7640 7641 #line 1827 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7642 , Tuple.Create(Tuple.Create("", 98304), Tuple.Create<System.Object, System.Int32>(blockAddToCartText 7643 7644 #line default 7645 #line hidden 7646 , 98304), false) 7647 , Tuple.Create(Tuple.Create("", 98323), Tuple.Create("\');", 98323), true) 7648 , Tuple.Create(Tuple.Create(" ", 98326), Tuple.Create("return", 98327), true) 7649 , Tuple.Create(Tuple.Create(" ", 98333), Tuple.Create("false;", 98334), true) 7650 ); 7651 7652 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 98341), Tuple.Create("\"", 98368) 7653 7654 #line 1827 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7655 , Tuple.Create(Tuple.Create("", 98349), Tuple.Create<System.Object, System.Int32>(blockAddToCartText 7656 7657 #line default 7658 #line hidden 7659 , 98349), false) 7660 ); 7661 7662 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 7663 7664 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-times-circle\""); 7665 7666 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 7667 7668 7669 #line 1830 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7670 } 7671 else 7672 { 7673 if (str_productName.Contains("Capture Bead") || (str_productName.Contains("LEGENDplex") && (str_productName.Contains("Standard") || str_productName.Contains("Detection Antibodies") || str_productName.Contains("Detection Abs") || str_productName.Contains("Buffer Set")))) 7674 { 7675 7676 7677 #line default 7678 #line hidden 7679 WriteLiteralTo(__razor_helper_writer, " <button"); 7680 7681 WriteAttributeTo(__razor_helper_writer, "onClick", Tuple.Create(" onClick=\"", 99061), Tuple.Create("\"", 99122) 7682 , Tuple.Create(Tuple.Create("", 99071), Tuple.Create("mixMatchProductRedirect(\'", 99071), true) 7683 7684 #line 1835 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7685 , Tuple.Create(Tuple.Create("", 99096), Tuple.Create<System.Object, System.Int32>(longLang 7686 7687 #line default 7688 #line hidden 7689 , 99096), false) 7690 , Tuple.Create(Tuple.Create("", 99105), Tuple.Create("\');", 99105), true) 7691 , Tuple.Create(Tuple.Create(" ", 99108), Tuple.Create("return", 99109), true) 7692 , Tuple.Create(Tuple.Create(" ", 99115), Tuple.Create("false;", 99116), true) 7693 ); 7694 7695 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 99123), Tuple.Create("\"", 99171) 7696 7697 #line 1835 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7698 , Tuple.Create(Tuple.Create("", 99131), Tuple.Create<System.Object, System.Int32>(Translate("mixAndMatch", "Mix & Match") 7699 7700 #line default 7701 #line hidden 7702 , 99131), false) 7703 ); 7704 7705 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 7706 7707 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 7708 7709 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 7710 7711 7712 #line 1838 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7713 } 7714 else if (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) 7715 { 7716 } 7717 else if (longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) 7718 { 7719 } 7720 else 7721 { 7722 if (isComingSoon) 7723 { 7724 7725 7726 #line default 7727 #line hidden 7728 WriteLiteralTo(__razor_helper_writer, " "); 7729 7730 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 7731 7732 7733 #line 1850 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7734 } 7735 else if (userCurrency != siteCurrency) 7736 { 7737 7738 7739 #line default 7740 #line hidden 7741 WriteLiteralTo(__razor_helper_writer, " <span"); 7742 7743 WriteLiteralTo(__razor_helper_writer, " class=\"inputSubmit\""); 7744 7745 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"tooltip\""); 7746 7747 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 100366), Tuple.Create("\"", 100498) 7748 7749 #line 1853 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7750 , Tuple.Create(Tuple.Create("", 100374), Tuple.Create<System.Object, System.Int32>(Translate("CurrencyMissmatch", "Your currency does not match the websites currency. Please navigate to the proper page.") 7751 7752 #line default 7753 #line hidden 7754 , 100374), false) 7755 ); 7756 7757 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 7758 7759 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 7760 7761 WriteLiteralTo(__razor_helper_writer, " disabled>\r\n <i"); 7762 7763 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 7764 7765 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n " + 7766 " </span>\r\n"); 7767 7768 7769 #line 1858 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7770 } 7771 else if (string.IsNullOrWhiteSpace(productSource)) 7772 { 7773 7774 7775 #line default 7776 #line hidden 7777 WriteLiteralTo(__razor_helper_writer, " <span"); 7778 7779 WriteLiteralTo(__razor_helper_writer, " class=\"inputSubmit\""); 7780 7781 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"tooltip\""); 7782 7783 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 101117), Tuple.Create("\"", 101204) 7784 7785 #line 1861 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7786 , Tuple.Create(Tuple.Create("", 101125), Tuple.Create<System.Object, System.Int32>(Translate("ProductNotAvailable", "This product is not currently available.") 7787 7788 #line default 7789 #line hidden 7790 , 101125), false) 7791 ); 7792 7793 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 7794 7795 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 7796 7797 WriteLiteralTo(__razor_helper_writer, " disabled>\r\n <i"); 7798 7799 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 7800 7801 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n " + 7802 " </span>\r\n"); 7803 7804 7805 #line 1866 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7806 } 7807 else 7808 { 7809 7810 7811 #line default 7812 #line hidden 7813 WriteLiteralTo(__razor_helper_writer, " <button "); 7814 7815 7816 #line 1869 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7817 WriteTo(__razor_helper_writer, disableAddToCart); 7818 7819 7820 #line default 7821 #line hidden 7822 WriteLiteralTo(__razor_helper_writer, " type=\"submit\">\r\n <i"); 7823 7824 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 7825 7826 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 7827 7828 7829 #line 1872 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7830 } 7831 } 7832 } 7833 7834 7835 #line default 7836 #line hidden 7837 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7838 7839 7840 #line 1876 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7841 } 7842 7843 7844 #line default 7845 #line hidden 7846 WriteLiteralTo(__razor_helper_writer, " </form>\r\n </li>\r\n"); 7847 7848 WriteLiteralTo(__razor_helper_writer, " "); 7849 7850 7851 #line 1879 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7852 WriteTo(__razor_helper_writer, RenderSnippet("catalogVariants" + @str_productID)); 7853 7854 7855 #line default 7856 #line hidden 7857 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 7858 7859 7860 #line 1881 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7861 } 7862 7863 7864 #line default 7865 #line hidden 7866 7867 #line 1882 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7868 WriteTo(__razor_helper_writer, SnippetStart("catalogVariants" + @str_productID)); 7869 7870 7871 #line default 7872 #line hidden 7873 7874 #line 1882 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7875 7876 7877 7878 #line default 7879 #line hidden 7880 7881 #line 1883 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7882 WriteTo(__razor_helper_writer, SnippetEnd("catalogVariants" + @str_productID)); 7883 7884 7885 #line default 7886 #line hidden 7887 7888 #line 1883 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7889 7890 7891 if (lst_images.Any()) 7892 { 7893 7894 7895 #line default 7896 #line hidden 7897 WriteLiteralTo(__razor_helper_writer, " <div"); 7898 7899 WriteLiteralTo(__razor_helper_writer, " class=\"productDataImage col-xs-12 noPadding\""); 7900 7901 WriteLiteralTo(__razor_helper_writer, ">\r\n <h3>Product Data</h3>\r\n " + 7902 " <ul"); 7903 7904 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 7905 7906 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7907 7908 7909 #line 1890 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7910 7911 7912 #line default 7913 #line hidden 7914 7915 #line 1890 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7916 if (!string.IsNullOrWhiteSpace(str_productImage)) 7917 { 7918 7919 7920 #line default 7921 #line hidden 7922 WriteLiteralTo(__razor_helper_writer, " <li>\r\n " + 7923 " <figure>\r\n <img"); 7924 7925 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive\""); 7926 7927 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 103021), Tuple.Create("\"", 103047) 7928 7929 #line 1894 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7930 , Tuple.Create(Tuple.Create("", 103027), Tuple.Create<System.Object, System.Int32>(str_productGetImage 7931 7932 #line default 7933 #line hidden 7934 , 103027), false) 7935 ); 7936 7937 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 103048), Tuple.Create("\"", 103070) 7938 7939 #line 1894 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7940 , Tuple.Create(Tuple.Create("", 103054), Tuple.Create<System.Object, System.Int32>(str_image1Title 7941 7942 #line default 7943 #line hidden 7944 , 103054), false) 7945 ); 7946 7947 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 103071), Tuple.Create("\"", 103095) 7948 7949 #line 1894 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7950 , Tuple.Create(Tuple.Create("", 103079), Tuple.Create<System.Object, System.Int32>(str_image1Title 7951 7952 #line default 7953 #line hidden 7954 , 103079), false) 7955 ); 7956 7957 WriteLiteralTo(__razor_helper_writer, "/>\r\n </figure>\r\n " + 7958 " </li>\r\n"); 7959 7960 7961 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7962 } 7963 7964 7965 #line default 7966 #line hidden 7967 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7968 7969 7970 #line 1899 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7971 7972 7973 #line default 7974 #line hidden 7975 7976 #line 1899 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7977 if (!string.IsNullOrWhiteSpace(str_productImageMedium)) 7978 { 7979 7980 7981 #line default 7982 #line hidden 7983 WriteLiteralTo(__razor_helper_writer, " <li>\r\n " + 7984 " <figure>\r\n <img"); 7985 7986 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive\""); 7987 7988 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 103519), Tuple.Create("\"", 103551) 7989 7990 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 7991 , Tuple.Create(Tuple.Create("", 103525), Tuple.Create<System.Object, System.Int32>(str_productGetImageMedium 7992 7993 #line default 7994 #line hidden 7995 , 103525), false) 7996 ); 7997 7998 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 103552), Tuple.Create("\"", 103574) 7999 8000 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8001 , Tuple.Create(Tuple.Create("", 103558), Tuple.Create<System.Object, System.Int32>(str_image2Title 8002 8003 #line default 8004 #line hidden 8005 , 103558), false) 8006 ); 8007 8008 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 103575), Tuple.Create("\"", 103599) 8009 8010 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8011 , Tuple.Create(Tuple.Create("", 103583), Tuple.Create<System.Object, System.Int32>(str_image2Title 8012 8013 #line default 8014 #line hidden 8015 , 103583), false) 8016 ); 8017 8018 WriteLiteralTo(__razor_helper_writer, "/>\r\n </figure>\r\n " + 8019 " </li>\r\n"); 8020 8021 8022 #line 1906 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8023 } 8024 8025 8026 #line default 8027 #line hidden 8028 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8029 8030 8031 #line 1908 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8032 8033 8034 #line default 8035 #line hidden 8036 8037 #line 1908 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8038 if (!string.IsNullOrWhiteSpace(str_productImageLarge)) 8039 { 8040 8041 8042 #line default 8043 #line hidden 8044 WriteLiteralTo(__razor_helper_writer, " <li>\r\n " + 8045 " <figure>\r\n <img"); 8046 8047 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive\""); 8048 8049 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 104022), Tuple.Create("\"", 104053) 8050 8051 #line 1912 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8052 , Tuple.Create(Tuple.Create("", 104028), Tuple.Create<System.Object, System.Int32>(str_productGetImageLarge 8053 8054 #line default 8055 #line hidden 8056 , 104028), false) 8057 ); 8058 8059 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 104054), Tuple.Create("\"", 104076) 8060 8061 #line 1912 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8062 , Tuple.Create(Tuple.Create("", 104060), Tuple.Create<System.Object, System.Int32>(str_image3Title 8063 8064 #line default 8065 #line hidden 8066 , 104060), false) 8067 ); 8068 8069 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 104077), Tuple.Create("\"", 104101) 8070 8071 #line 1912 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8072 , Tuple.Create(Tuple.Create("", 104085), Tuple.Create<System.Object, System.Int32>(str_image3Title 8073 8074 #line default 8075 #line hidden 8076 , 104085), false) 8077 ); 8078 8079 WriteLiteralTo(__razor_helper_writer, "/>\r\n </figure>\r\n " + 8080 " </li>\r\n"); 8081 8082 8083 #line 1915 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8084 } 8085 8086 8087 #line default 8088 #line hidden 8089 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8090 8091 8092 #line 1917 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8093 8094 8095 #line default 8096 #line hidden 8097 8098 #line 1917 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8099 if (!string.IsNullOrWhiteSpace(str_productImage4)) 8100 { 8101 8102 8103 #line default 8104 #line hidden 8105 WriteLiteralTo(__razor_helper_writer, " <li>\r\n " + 8106 " <figure>\r\n <img"); 8107 8108 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive\""); 8109 8110 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 104520), Tuple.Create("\"", 104547) 8111 8112 #line 1921 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8113 , Tuple.Create(Tuple.Create("", 104526), Tuple.Create<System.Object, System.Int32>(str_productGetImage4 8114 8115 #line default 8116 #line hidden 8117 , 104526), false) 8118 ); 8119 8120 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 104548), Tuple.Create("\"", 104570) 8121 8122 #line 1921 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8123 , Tuple.Create(Tuple.Create("", 104554), Tuple.Create<System.Object, System.Int32>(str_image4Title 8124 8125 #line default 8126 #line hidden 8127 , 104554), false) 8128 ); 8129 8130 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 104571), Tuple.Create("\"", 104595) 8131 8132 #line 1921 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8133 , Tuple.Create(Tuple.Create("", 104579), Tuple.Create<System.Object, System.Int32>(str_image4Title 8134 8135 #line default 8136 #line hidden 8137 , 104579), false) 8138 ); 8139 8140 WriteLiteralTo(__razor_helper_writer, "/>\r\n </figure>\r\n " + 8141 " </li>\r\n"); 8142 8143 8144 #line 1924 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8145 } 8146 8147 8148 #line default 8149 #line hidden 8150 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8151 8152 8153 #line 1926 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8154 8155 8156 #line default 8157 #line hidden 8158 8159 #line 1926 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8160 if (!string.IsNullOrWhiteSpace(str_productImage5)) 8161 { 8162 8163 8164 #line default 8165 #line hidden 8166 WriteLiteralTo(__razor_helper_writer, " <li>\r\n " + 8167 " <figure>\r\n <img"); 8168 8169 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive\""); 8170 8171 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 105014), Tuple.Create("\"", 105041) 8172 8173 #line 1930 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8174 , Tuple.Create(Tuple.Create("", 105020), Tuple.Create<System.Object, System.Int32>(str_productGetImage5 8175 8176 #line default 8177 #line hidden 8178 , 105020), false) 8179 ); 8180 8181 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 105042), Tuple.Create("\"", 105064) 8182 8183 #line 1930 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8184 , Tuple.Create(Tuple.Create("", 105048), Tuple.Create<System.Object, System.Int32>(str_image5Title 8185 8186 #line default 8187 #line hidden 8188 , 105048), false) 8189 ); 8190 8191 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 105065), Tuple.Create("\"", 105089) 8192 8193 #line 1930 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8194 , Tuple.Create(Tuple.Create("", 105073), Tuple.Create<System.Object, System.Int32>(str_image5Title 8195 8196 #line default 8197 #line hidden 8198 , 105073), false) 8199 ); 8200 8201 WriteLiteralTo(__razor_helper_writer, "/>\r\n </figure>\r\n " + 8202 " </li>\r\n"); 8203 8204 8205 #line 1933 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8206 } 8207 8208 8209 #line default 8210 #line hidden 8211 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8212 8213 8214 #line 1935 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8215 8216 8217 #line default 8218 #line hidden 8219 8220 #line 1935 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8221 if (!string.IsNullOrWhiteSpace(str_productImage6)) 8222 { 8223 8224 8225 #line default 8226 #line hidden 8227 WriteLiteralTo(__razor_helper_writer, " <li>\r\n " + 8228 " <figure>\r\n <img"); 8229 8230 WriteLiteralTo(__razor_helper_writer, " class=\"img-responsive\""); 8231 8232 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 105508), Tuple.Create("\"", 105535) 8233 8234 #line 1939 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8235 , Tuple.Create(Tuple.Create("", 105514), Tuple.Create<System.Object, System.Int32>(str_productGetImage6 8236 8237 #line default 8238 #line hidden 8239 , 105514), false) 8240 ); 8241 8242 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 105536), Tuple.Create("\"", 105558) 8243 8244 #line 1939 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8245 , Tuple.Create(Tuple.Create("", 105542), Tuple.Create<System.Object, System.Int32>(str_image6Title 8246 8247 #line default 8248 #line hidden 8249 , 105542), false) 8250 ); 8251 8252 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 105559), Tuple.Create("\"", 105583) 8253 8254 #line 1939 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8255 , Tuple.Create(Tuple.Create("", 105567), Tuple.Create<System.Object, System.Int32>(str_image6Title 8256 8257 #line default 8258 #line hidden 8259 , 105567), false) 8260 ); 8261 8262 WriteLiteralTo(__razor_helper_writer, "/>\r\n </figure>\r\n " + 8263 " </li>\r\n"); 8264 8265 8266 #line 1942 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8267 } 8268 8269 8270 #line default 8271 #line hidden 8272 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n </div>\r\n"); 8273 8274 8275 #line 1946 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8276 } 8277 } 8278 else 8279 { 8280 8281 8282 #line default 8283 #line hidden 8284 8285 #line 1950 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8286 WriteTo(__razor_helper_writer, SnippetStart("catalogVariants" + @str_productID)); 8287 8288 8289 #line default 8290 #line hidden 8291 8292 #line 1950 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8293 8294 string catNoLen = "col-xs-2"; 8295 if (longLang.Equals("ja-JP")) 8296 { 8297 catNoLen = "col-xs-4"; 8298 } 8299 else if (cartDisabled) 8300 { 8301 catNoLen = "col-xs-4"; 8302 } 8303 else 8304 { 8305 catNoLen = "col-xs-2"; 8306 } 8307 8308 8309 8310 #line default 8311 #line hidden 8312 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <form"); 8313 8314 WriteLiteralTo(__razor_helper_writer, " name=\"addToCart\""); 8315 8316 WriteLiteralTo(__razor_helper_writer, " class=\"add-to-cart col-xs-12 noPadding\""); 8317 8318 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 106508), Tuple.Create("\"", 106527) 8319 8320 #line 1966 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8321 , Tuple.Create(Tuple.Create("", 106517), Tuple.Create<System.Object, System.Int32>(urlAction 8322 8323 #line default 8324 #line hidden 8325 , 106517), false) 8326 ); 8327 8328 WriteLiteralTo(__razor_helper_writer, " method=\"POST\""); 8329 8330 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n <input"); 8331 8332 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 8333 8334 WriteLiteralTo(__razor_helper_writer, " name=\"redirect\""); 8335 8336 WriteLiteralTo(__razor_helper_writer, " value=\"false\""); 8337 8338 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 8339 8340 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 8341 8342 WriteLiteralTo(__razor_helper_writer, " name=\"cartcmd\""); 8343 8344 WriteLiteralTo(__razor_helper_writer, " value=\"add\""); 8345 8346 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 8347 8348 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 8349 8350 WriteLiteralTo(__razor_helper_writer, " name=\"productid\""); 8351 8352 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 106773), Tuple.Create("\"", 106795) 8353 8354 #line 1970 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8355 , Tuple.Create(Tuple.Create("", 106781), Tuple.Create<System.Object, System.Int32>(str_productID 8356 8357 #line default 8358 #line hidden 8359 , 106781), false) 8360 ); 8361 8362 WriteLiteralTo(__razor_helper_writer, "/>\r\n <input"); 8363 8364 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 8365 8366 WriteLiteralTo(__razor_helper_writer, " name=\"variantID\""); 8367 8368 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 106865), Tuple.Create("\"", 106894) 8369 8370 #line 1971 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8371 , Tuple.Create(Tuple.Create("", 106873), Tuple.Create<System.Object, System.Int32>(str_productVariantID 8372 8373 #line default 8374 #line hidden 8375 , 106873), false) 8376 ); 8377 8378 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 8379 8380 8381 #line 1972 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8382 8383 8384 #line default 8385 #line hidden 8386 8387 #line 1972 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8388 if (!string.IsNullOrWhiteSpace(orderContext)) 8389 { 8390 8391 8392 #line default 8393 #line hidden 8394 WriteLiteralTo(__razor_helper_writer, " <input"); 8395 8396 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 8397 8398 WriteLiteralTo(__razor_helper_writer, " name=\"OrderContext\""); 8399 8400 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 107078), Tuple.Create("\"", 107099) 8401 8402 #line 1974 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8403 , Tuple.Create(Tuple.Create("", 107086), Tuple.Create<System.Object, System.Int32>(orderContext 8404 8405 #line default 8406 #line hidden 8407 , 107086), false) 8408 ); 8409 8410 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 8411 8412 8413 #line 1975 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8414 } 8415 8416 8417 #line default 8418 #line hidden 8419 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 8420 8421 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 107169), Tuple.Create("\"", 107196) 8422 8423 #line 1977 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8424 , Tuple.Create(Tuple.Create("", 107177), Tuple.Create<System.Object, System.Int32>(catNoLen 8425 8426 #line default 8427 #line hidden 8428 , 107177), false) 8429 , Tuple.Create(Tuple.Create(" ", 107186), Tuple.Create("noPadding", 107187), true) 8430 ); 8431 8432 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8433 8434 8435 #line 1978 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8436 8437 8438 #line default 8439 #line hidden 8440 8441 #line 1978 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8442 if (!isComingSoon) 8443 { 8444 8445 8446 #line default 8447 #line hidden 8448 8449 #line 1980 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8450 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.Number")); 8451 8452 8453 #line default 8454 #line hidden 8455 8456 #line 1980 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8457 8458 } 8459 else 8460 { 8461 8462 8463 #line default 8464 #line hidden 8465 8466 #line 1984 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8467 WriteTo(__razor_helper_writer, Translate("comingSoon", "Coming Soon")); 8468 8469 8470 #line default 8471 #line hidden 8472 8473 #line 1984 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8474 8475 } 8476 8477 8478 #line default 8479 #line hidden 8480 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n <div"); 8481 8482 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPadding\""); 8483 8484 WriteLiteralTo(__razor_helper_writer, ">\r\n "); 8485 8486 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8487 8488 WriteLiteralTo(__razor_helper_writer, " "); 8489 8490 8491 #line 1990 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8492 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.VariantText")); 8493 8494 8495 #line default 8496 #line hidden 8497 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n <div"); 8498 8499 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPadding\""); 8500 8501 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8502 8503 8504 #line 1994 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8505 8506 8507 #line default 8508 #line hidden 8509 8510 #line 1994 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8511 if (longLang.Equals("ja-JP") && str_productFormat.Contains("GoInVivo") && !str_productVariantID.Equals("5mg")) 8512 { 8513 8514 8515 #line default 8516 #line hidden 8517 8518 #line 1996 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8519 WriteTo(__razor_helper_writer, Translate("PleaseContactUs", "Please Contact Us")); 8520 8521 8522 #line default 8523 #line hidden 8524 8525 #line 1996 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8526 8527 } 8528 else if(longLang.Equals("ja-JP") && isFlexiFluor) 8529 { 8530 8531 8532 #line default 8533 #line hidden 8534 WriteLiteralTo(__razor_helper_writer, " <div>お問い合わせください</div>\r\n"); 8535 8536 8537 #line 2001 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8538 } 8539 else if (requestQuote) 8540 { 8541 8542 8543 #line default 8544 #line hidden 8545 WriteLiteralTo(__razor_helper_writer, " <div>\r\n " + 8546 " <a"); 8547 8548 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 108620), Tuple.Create("\"", 108676) 8549 8550 #line 2005 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8551 , Tuple.Create(Tuple.Create("", 108627), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML("dwcountry/contact-local-rep") 8552 8553 #line default 8554 #line hidden 8555 , 108627), false) 8556 ); 8557 8558 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 8559 8560 WriteLiteralTo(__razor_helper_writer, ">Get a Quote</a>\r\n </div>\r\n"); 8561 8562 8563 #line 2007 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8564 } 8565 else if (longLang.Equals("ja-JP") && blockAddToCart) 8566 { 8567 8568 8569 #line default 8570 #line hidden 8571 WriteLiteralTo(__razor_helper_writer, " <div>\r\n " + 8572 " <p"); 8573 8574 WriteLiteralTo(__razor_helper_writer, " class=\"coming-soon\""); 8575 8576 WriteLiteralTo(__razor_helper_writer, ">"); 8577 8578 8579 #line 2011 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8580 WriteTo(__razor_helper_writer, blockAddToCartText); 8581 8582 8583 #line default 8584 #line hidden 8585 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n"); 8586 8587 8588 #line 2013 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8589 } 8590 else if (str_productID.Equals("10801") && !longLang.Equals("en-US")) 8591 { 8592 8593 8594 #line default 8595 #line hidden 8596 8597 #line 2016 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8598 WriteTo(__razor_helper_writer, Translate("addToCartForPrice", "Add to cart for price.")); 8599 8600 8601 #line default 8602 #line hidden 8603 8604 #line 2016 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8605 8606 } 8607 else 8608 { 8609 8610 8611 #line default 8612 #line hidden 8613 8614 #line 2020 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8615 8616 8617 8618 #line default 8619 #line hidden 8620 WriteLiteralTo(__razor_helper_writer, " <span"); 8621 8622 WriteLiteralTo(__razor_helper_writer, " class=\"withBreak\""); 8623 8624 WriteLiteralTo(__razor_helper_writer, " itemprop=\"price\""); 8625 8626 WriteLiteralTo(__razor_helper_writer, ">"); 8627 8628 8629 #line 2021 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8630 WriteTo(__razor_helper_writer, RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)); 8631 8632 8633 #line default 8634 #line hidden 8635 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 8636 8637 8638 #line 2022 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8639 } 8640 8641 8642 #line default 8643 #line hidden 8644 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n"); 8645 8646 8647 #line 2025 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8648 8649 8650 #line default 8651 #line hidden 8652 8653 #line 2025 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8654 if (!cartDisabled) 8655 { 8656 8657 8658 #line default 8659 #line hidden 8660 WriteLiteralTo(__razor_helper_writer, " <div"); 8661 8662 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-2 noPaddingRight\""); 8663 8664 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8665 8666 8667 #line 2028 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8668 8669 8670 #line default 8671 #line hidden 8672 8673 #line 2028 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8674 if (!productVariantStatus.Equals(3) && !isComingSoon && string.IsNullOrEmpty(DCSoon) && !blockAddToCart) 8675 { 8676 8677 8678 #line default 8679 #line hidden 8680 WriteLiteralTo(__razor_helper_writer, " <input"); 8681 8682 WriteLiteralTo(__razor_helper_writer, " data-reservedStock=\'"); 8683 8684 8685 #line 2030 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8686 WriteTo(__razor_helper_writer, product.GetString("Ecom:Product.AvailableAmount")); 8687 8688 8689 #line default 8690 #line hidden 8691 WriteLiteralTo(__razor_helper_writer, "\'"); 8692 8693 WriteLiteralTo(__razor_helper_writer, " data-productStatus=\""); 8694 8695 8696 #line 2030 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8697 WriteTo(__razor_helper_writer, productStatus); 8698 8699 8700 #line default 8701 #line hidden 8702 WriteLiteralTo(__razor_helper_writer, "\""); 8703 8704 WriteLiteralTo(__razor_helper_writer, " data-stockControl=\'"); 8705 8706 8707 #line 2030 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8708 WriteTo(__razor_helper_writer, stockControl.ToLower()); 8709 8710 8711 #line default 8712 #line hidden 8713 WriteLiteralTo(__razor_helper_writer, "\'"); 8714 8715 WriteLiteralTo(__razor_helper_writer, " data-stocktranslate=\'"); 8716 8717 8718 #line 2030 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8719 WriteTo(__razor_helper_writer, Translate("currentStock", "The current stock is")); 8720 8721 8722 #line default 8723 #line hidden 8724 WriteLiteralTo(__razor_helper_writer, "\'"); 8725 8726 WriteLiteralTo(__razor_helper_writer, " data-stock=\'"); 8727 8728 8729 #line 2030 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8730 WriteTo(__razor_helper_writer, navEnvironment.Equals("US") ? stockUS : stockUK); 8731 8732 8733 #line default 8734 #line hidden 8735 WriteLiteralTo(__razor_helper_writer, "\'"); 8736 8737 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 8738 8739 WriteLiteralTo(__razor_helper_writer, " name=\"quantity\""); 8740 8741 WriteLiteralTo(__razor_helper_writer, " value=\"1\""); 8742 8743 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 8744 8745 8746 #line 2031 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8747 } 8748 8749 8750 #line default 8751 #line hidden 8752 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 8753 8754 8755 #line 2033 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8756 8757 8758 8759 #line default 8760 #line hidden 8761 WriteLiteralTo(__razor_helper_writer, " <div"); 8762 8763 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4\""); 8764 8765 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8766 8767 8768 #line 2035 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8769 8770 8771 #line default 8772 #line hidden 8773 8774 #line 2035 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8775 if (blockAddToCart) 8776 { 8777 8778 8779 #line default 8780 #line hidden 8781 WriteLiteralTo(__razor_helper_writer, " <button"); 8782 8783 WriteAttributeTo(__razor_helper_writer, "onClick", Tuple.Create(" onClick=\"", 110812), Tuple.Create("\"", 110865) 8784 , Tuple.Create(Tuple.Create("", 110822), Tuple.Create("alert(\'", 110822), true) 8785 8786 #line 2037 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8787 , Tuple.Create(Tuple.Create("", 110829), Tuple.Create<System.Object, System.Int32>(blockAddToCartText 8788 8789 #line default 8790 #line hidden 8791 , 110829), false) 8792 , Tuple.Create(Tuple.Create("", 110848), Tuple.Create("\');", 110848), true) 8793 , Tuple.Create(Tuple.Create(" ", 110851), Tuple.Create("return", 110852), true) 8794 , Tuple.Create(Tuple.Create(" ", 110858), Tuple.Create("false;", 110859), true) 8795 ); 8796 8797 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 110866), Tuple.Create("\"", 110893) 8798 8799 #line 2037 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8800 , Tuple.Create(Tuple.Create("", 110874), Tuple.Create<System.Object, System.Int32>(blockAddToCartText 8801 8802 #line default 8803 #line hidden 8804 , 110874), false) 8805 ); 8806 8807 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 8808 8809 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-times-circle\""); 8810 8811 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 8812 8813 8814 #line 2040 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8815 } 8816 else 8817 { 8818 if (str_productName.Contains("Capture Bead") || (str_productName.Contains("LEGENDplex") && (str_productName.Contains("Standard") || str_productName.Contains("Detection Antibodies") || str_productName.Contains("Detection Abs") || str_productName.Contains("Buffer Set")))) 8819 { 8820 8821 8822 #line default 8823 #line hidden 8824 WriteLiteralTo(__razor_helper_writer, " <button"); 8825 8826 WriteAttributeTo(__razor_helper_writer, "onClick", Tuple.Create(" onClick=\"", 111554), Tuple.Create("\"", 111615) 8827 , Tuple.Create(Tuple.Create("", 111564), Tuple.Create("mixMatchProductRedirect(\'", 111564), true) 8828 8829 #line 2045 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8830 , Tuple.Create(Tuple.Create("", 111589), Tuple.Create<System.Object, System.Int32>(longLang 8831 8832 #line default 8833 #line hidden 8834 , 111589), false) 8835 , Tuple.Create(Tuple.Create("", 111598), Tuple.Create("\');", 111598), true) 8836 , Tuple.Create(Tuple.Create(" ", 111601), Tuple.Create("return", 111602), true) 8837 , Tuple.Create(Tuple.Create(" ", 111608), Tuple.Create("false;", 111609), true) 8838 ); 8839 8840 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 111616), Tuple.Create("\"", 111664) 8841 8842 #line 2045 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8843 , Tuple.Create(Tuple.Create("", 111624), Tuple.Create<System.Object, System.Int32>(Translate("mixAndMatch", "Mix & Match") 8844 8845 #line default 8846 #line hidden 8847 , 111624), false) 8848 ); 8849 8850 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 8851 8852 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 8853 8854 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 8855 8856 8857 #line 2048 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8858 } 8859 else if (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) 8860 { 8861 } 8862 else if (longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) 8863 { 8864 } 8865 else 8866 { 8867 if (isComingSoon) 8868 { 8869 8870 8871 #line default 8872 #line hidden 8873 WriteLiteralTo(__razor_helper_writer, " "); 8874 8875 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 8876 8877 8878 #line 2060 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8879 } 8880 else if (userCurrency != siteCurrency) 8881 { 8882 8883 8884 #line default 8885 #line hidden 8886 WriteLiteralTo(__razor_helper_writer, " <span"); 8887 8888 WriteLiteralTo(__razor_helper_writer, " class=\"inputSubmit\""); 8889 8890 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"tooltip\""); 8891 8892 WriteLiteralTo(__razor_helper_writer, " title=\"Invalid currency\""); 8893 8894 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 8895 8896 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 8897 8898 WriteLiteralTo(__razor_helper_writer, " disabled>\r\n <i"); 8899 8900 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 8901 8902 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n " + 8903 " </span>\r\n"); 8904 8905 8906 #line 2068 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8907 } 8908 else if (string.IsNullOrWhiteSpace(productSource)) 8909 { 8910 8911 8912 #line default 8913 #line hidden 8914 WriteLiteralTo(__razor_helper_writer, " <span"); 8915 8916 WriteLiteralTo(__razor_helper_writer, " class=\"inputSubmit\""); 8917 8918 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"tooltip\""); 8919 8920 WriteLiteralTo(__razor_helper_writer, " title=\"This product is not currently available.\""); 8921 8922 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 8923 8924 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 8925 8926 WriteLiteralTo(__razor_helper_writer, " disabled>\r\n <i"); 8927 8928 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 8929 8930 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n " + 8931 " </span>\r\n"); 8932 8933 8934 #line 2076 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8935 } 8936 else if (bol_userLogged) 8937 { 8938 8939 8940 #line default 8941 #line hidden 8942 WriteLiteralTo(__razor_helper_writer, " <button"); 8943 8944 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 8945 8946 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 8947 8948 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 8949 8950 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 8951 8952 8953 #line 2082 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8954 } 8955 else 8956 { 8957 8958 8959 #line default 8960 #line hidden 8961 WriteLiteralTo(__razor_helper_writer, " <button"); 8962 8963 WriteLiteralTo(__razor_helper_writer, " type=\"submit\""); 8964 8965 WriteLiteralTo(__razor_helper_writer, " data-guestWarningPart2=\'"); 8966 8967 8968 #line 2085 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8969 WriteTo(__razor_helper_writer, Translate("guestLimitedFeatures", "shopping cart items can only be printed, downloaded or emailed.")); 8970 8971 8972 #line default 8973 #line hidden 8974 WriteLiteralTo(__razor_helper_writer, "\'"); 8975 8976 WriteLiteralTo(__razor_helper_writer, " data-guestWarning=\'"); 8977 8978 8979 #line 2085 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8980 WriteTo(__razor_helper_writer, Translate("guestMayContinue", "You may continue as a Guest with limited features")); 8981 8982 8983 #line default 8984 #line hidden 8985 WriteLiteralTo(__razor_helper_writer, "\'"); 8986 8987 WriteLiteralTo(__razor_helper_writer, " data-continueAsGuest=\'"); 8988 8989 8990 #line 2085 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 8991 WriteTo(__razor_helper_writer, Translate("continueAsGuest", "Continue as a Guest")); 8992 8993 8994 #line default 8995 #line hidden 8996 WriteLiteralTo(__razor_helper_writer, "\'"); 8997 8998 WriteLiteralTo(__razor_helper_writer, " data-error=\'"); 8999 9000 9001 #line 2085 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9002 WriteTo(__razor_helper_writer, Translate("pleaseLogIn", "To make purchases, please login if you are an existing customer. If you do not have an account, request an account after selecting Login.")); 9003 9004 9005 #line default 9006 #line hidden 9007 WriteLiteralTo(__razor_helper_writer, "\'"); 9008 9009 WriteLiteralTo(__razor_helper_writer, " class=\"addToCart promptLogin\""); 9010 9011 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 9012 9013 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-shopping-cart\""); 9014 9015 WriteLiteralTo(__razor_helper_writer, "></i>\r\n </button>\r\n"); 9016 9017 9018 #line 2088 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9019 } 9020 } 9021 } 9022 9023 9024 #line default 9025 #line hidden 9026 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 9027 9028 9029 #line 2092 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9030 } 9031 9032 9033 #line default 9034 #line hidden 9035 WriteLiteralTo(__razor_helper_writer, " </form>\r\n </li>\r\n"); 9036 9037 9038 #line 2095 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9039 9040 9041 9042 #line default 9043 #line hidden 9044 9045 #line 2096 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9046 WriteTo(__razor_helper_writer, SnippetEnd("catalogVariants" + @str_productID)); 9047 9048 9049 #line default 9050 #line hidden 9051 9052 #line 2096 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9053 9054 } 9055 9056 9057 #line default 9058 #line hidden 9059 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 9060 9061 9062 #line 2100 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9063 9064 PreviousElement = group.Key; 9065 } 9066 9067 9068 #line default 9069 #line hidden 9070 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n"); 9071 9072 9073 #line 2104 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9074 9075 9076 #line default 9077 #line hidden 9078 9079 #line 2104 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9080 if (itemsCount == prodLoopCount) 9081 { 9082 9083 9084 #line default 9085 #line hidden 9086 9087 #line 2106 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9088 WriteTo(__razor_helper_writer, ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct)); 9089 9090 9091 #line default 9092 #line hidden 9093 9094 #line 2106 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9095 9096 } 9097 9098 9099 #line default 9100 #line hidden 9101 WriteLiteralTo(__razor_helper_writer, " </li>\r\n"); 9102 9103 9104 #line 2109 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9105 9106 9107 #line default 9108 #line hidden 9109 }); 9110 9111 #line 2109 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9112 } 9113 #line default 9114 #line hidden 9115 9116 9117 #line 2111 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9118 public RazorEngine.Templating.TemplateWriter ShowTextAboutMoreOptionsInPreviousOrNextPages(List<LoopItem> loopProduct, bool isToPageBefore = false) 9119 { 9120 #line default 9121 #line hidden 9122 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9123 9124 #line 2112 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9125 9126 if (loopProduct.Any()) 9127 { 9128 var countVariantsWithSameProdId = string.Empty; 9129 var countTotalOfVariantsForProd = string.Empty; 9130 var translateText = string.Empty; 9131 var positionClass = "moreVariantsBefore"; 9132 var totalPages = GetInteger("Ecom:ProductList.TotalPages"); 9133 9134 if (isToPageBefore) 9135 { 9136 countVariantsWithSameProdId = loopProduct.Where(p => p.GetString("Ecom:Product.ID") == loopProduct.First().GetString("Ecom:Product.ID")).Count().ToString(); 9137 countTotalOfVariantsForProd = loopProduct.Select(p => p.GetString("Ecom:Product.ActiveVariantCount")).First().ToString(); 9138 translateText = Translate("SeeMoreSizeOptionsForThisProductOnThePreviousPage", "See more size options for this product on the previous page."); 9139 } 9140 else 9141 { 9142 countVariantsWithSameProdId = loopProduct.Where(p => p.GetString("Ecom:Product.ID") == loopProduct.Last().GetString("Ecom:Product.ID")).Count().ToString(); 9143 countTotalOfVariantsForProd = loopProduct.Select(p => p.GetString("Ecom:Product.ActiveVariantCount")).Last().ToString(); 9144 translateText = Translate("SeeMoreSizeOptionsForThisProductOnTheNextPage", "See more size options for this product on the next page."); 9145 positionClass = "moreVariantsNext"; 9146 } 9147 9148 if (countVariantsWithSameProdId != countTotalOfVariantsForProd && totalPages > 1) 9149 { 9150 9151 9152 #line default 9153 #line hidden 9154 WriteLiteralTo(__razor_helper_writer, " <div"); 9155 9156 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 117245), Tuple.Create("\"", 117277) 9157 9158 #line 2137 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9159 , Tuple.Create(Tuple.Create("", 117253), Tuple.Create<System.Object, System.Int32>(positionClass 9160 9161 #line default 9162 #line hidden 9163 , 117253), false) 9164 , Tuple.Create(Tuple.Create(" ", 117267), Tuple.Create("col-xs-12", 117268), true) 9165 ); 9166 9167 WriteLiteralTo(__razor_helper_writer, ">"); 9168 9169 9170 #line 2137 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9171 WriteTo(__razor_helper_writer, translateText); 9172 9173 9174 #line default 9175 #line hidden 9176 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 9177 9178 9179 #line 2138 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9180 } 9181 } 9182 9183 9184 #line default 9185 #line hidden 9186 }); 9187 9188 #line 2140 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9189 } 9190 #line default 9191 #line hidden 9192 9193 9194 #line 2142 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9195 public RazorEngine.Templating.TemplateWriter RenderCloneFieldForSearch(string clone, string spID, string pCat, string pReact, string searchType) 9196 { 9197 #line default 9198 #line hidden 9199 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9200 9201 #line 2143 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9202 9203 var cloneText = ""; 9204 if (!string.IsNullOrEmpty(clone)) 9205 { 9206 var thisClone = ""; 9207 if (clone.Contains(";")) 9208 { 9209 var clones = clone.Replace(" ", "").Split(';'); 9210 foreach (var x in clones) 9211 { 9212 var cloneHTML = HttpUtility.HtmlDecode(x); 9213 var cloneTag = "; "; 9214 thisClone += "<a href=\"/Default.aspx?ID=" + spID + "&amp;Clone=" + cloneHTML + "\">" + x + "</a>" + cloneTag; 9215 } 9216 } 9217 else 9218 { 9219 var cloneHTML = HttpUtility.HtmlDecode(clone); 9220 if (pCat.Equals("RECOM_PRO")) 9221 { 9222 thisClone = "<a href=\"/Default.aspx?ID=" + spID + "&amp;Clone=" + cloneHTML + "\">" + clone + "</a>"; 9223 } 9224 else 9225 { 9226 if (searchType == "Detail") 9227 { 9228 thisClone = "<a href=\"/Default.aspx?ID=" + spID + "&amp;Clone=" + cloneHTML + "\">" + clone + "</a>"; 9229 } 9230 else 9231 { 9232 thisClone = "<a href=\"/Default.aspx?ID=" + spID + "&amp;Clone=" + cloneHTML + "\"><i class=\"bl bl-cloneIcon\" data-toggle=\"tooltip\" title=\"" + pReact + "\"></i> " + clone + "</a>"; 9233 } 9234 } 9235 } 9236 9237 cloneText += thisClone; 9238 } 9239 else if (!string.IsNullOrWhiteSpace(pReact) && !pCat.Equals("RECOM_PRO") && !searchType.Equals("Detail")) 9240 { 9241 cloneText += "<a href=\"javascript:void(0);\"><i class=\"bl bl-cloneIcon\" data-toggle=\"tooltip\" title=\"" + pReact + "\"></i></a>"; 9242 } 9243 9244 9245 9246 #line default 9247 #line hidden 9248 WriteLiteralTo(__razor_helper_writer, " "); 9249 9250 9251 #line 2185 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9252 WriteTo(__razor_helper_writer, cloneText); 9253 9254 9255 #line default 9256 #line hidden 9257 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9258 9259 9260 #line 2186 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9261 9262 9263 #line default 9264 #line hidden 9265 }); 9266 9267 #line 2186 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9268 } 9269 #line default 9270 #line hidden 9271 9272 9273 #line 2189 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9274 9275 9276 public string LocalizeLinksHTML (string HtmlContent){ 9277 int areaID = Pageview.Area.ID; 9278 var area = Dynamicweb.Services.Areas.GetArea(areaID); 9279 string areaCulture = area.Culture.ToLower(); 9280 if(!string.IsNullOrEmpty(HtmlContent)){ 9281 if(HtmlContent.IndexOf("dwcountry") > -1){ 9282 return HtmlContent.Replace("dwcountry",areaCulture); 9283 } else{ 9284 return HtmlContent; 9285 } 9286 9287 } else { 9288 return HtmlContent; 9289 } 9290 9291 } 9292 9293 public string LocalizeLinks (string HtmlContent){ 9294 int areaID = Pageview.Area.ID; 9295 var area = Dynamicweb.Services.Areas.GetArea(areaID); 9296 string areaCulture = area.Culture.ToLower(); 9297 if(!string.IsNullOrEmpty(HtmlContent)){ 9298 if(HtmlContent.IndexOf("dwcountry") > -1){ 9299 return HtmlContent.Replace("dwcountry",areaCulture); 9300 } else if (HtmlContent.IndexOf("?ID=") > -1) { 9301 //do something 9302 string baseHref = String.Format("https://{0}",GetGlobalValue("Global:Request.Host")); 9303 HtmlContent = HtmlContent.Contains("http") ? HtmlContent : baseHref + "/" + HtmlContent; 9304 var uri = new Uri(HtmlContent,UriKind.RelativeOrAbsolute); 9305 var parsedQuery = HttpUtility.ParseQueryString(uri.Query); 9306 var pageID = parsedQuery.Get("ID"); 9307 9308 string pageVersionID = pageID; 9309 string localizedLink = HtmlContent; 9310 if (!string.IsNullOrEmpty(pageID)){ 9311 var pageService = new Dynamicweb.Content.PageService(); 9312 var linkPage = pageService.GetPagesByAreaID(areaID).FirstOrDefault(x => x.MasterPageId == int.Parse(pageID)); 9313 pageVersionID = linkPage != null ? linkPage.ID.ToString() : pageID ; 9314 9315 localizedLink = ModifyQueryStringValue(HtmlContent,"ID",pageVersionID); 9316 } 9317 //return string.Join(",", parsedQuery.AllKeys); 9318 //return string.Join(HtmlContent,"-",pageVersionID); 9319 return localizedLink; 9320 } else { 9321 return HtmlContent; 9322 } 9323 }else { 9324 return HtmlContent; 9325 } 9326 9327 } 9328 9329 private string ModifyQueryStringValue(string p_query, string p_Name, string p_NewValue) 9330 { 9331 Uri uri = new Uri(p_query,UriKind.RelativeOrAbsolute); 9332 //if(p_query.Contains("http")) 9333 //{ 9334 //uri = new Uri(p_query); 9335 //} else { 9336 //uri = new Uri(p_query, UriKind.Relative); 9337 //} 9338 //uri = new Uri(p_query); 9339 9340 9341 9342 var nameValues = HttpUtility.ParseQueryString(uri.Query); 9343 nameValues.Set(p_Name, p_NewValue); 9344 string url = uri.AbsolutePath + "?" + nameValues.ToString(); 9345 return url; 9346 } 9347 9348 #line default 9349 #line hidden 9350 9351 9352 #line 2264 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9353 9354 public bool IsSearchResultsWithSingleResult(List<LoopItem> loopProduct) 9355 { 9356 var prodLoop = loopProduct.Where(x => !string.IsNullOrWhiteSpace(x.GetString("Ecom:Product.Number"))).GroupBy(x => x.GetString("Ecom:Product.ID")).ToList(); 9357 var prodLoopCount = prodLoop.Count; 9358 9359 // Recommended alternative is to check if the current page ID == PageIdByNavigationTag("SearchResults") instead of checking querystring parameters 9360 var str_keywordsParam = Dynamicweb.Context.Current.Request.Params["Keywords"] ?? ""; 9361 9362 return prodLoopCount == 1 && GetInteger("Ecom:ProductList.CurrentPage") == 1 && !string.IsNullOrWhiteSpace(str_keywordsParam); 9363 } 9364 9365 public string GetListViewValue() 9366 { 9367 //var listView = HttpContext.Current.Request.Cookies["dataList"] != null ? HttpContext.Current.Request.Cookies["dataList"].Value : ""; 9368 //listView = HttpContext.Current.Request.Params["altView"] != null ? (HttpContext.Current.Request.Params["altView"] == "detail" ? "detail" : "") : listView; 9369 var listView = HttpContext.Current.Request.Cookies["dataList"] != null ? HttpContext.Current.Request.Cookies["dataList"].Value : "list"; 9370 return listView; 9371 } 9372 9373 #region Redirect methods 9374 public void CheckIfRedirectShouldHappen() 9375 { 9376 if (IsExploreNewProductsPage()) 9377 { 9378 var redirect = String.Format("Default.aspx?ID={0}&DateReleasedMin={1}&DateReleasedMax={2}", Pageview.Page.ID.ToString(), DateTime.Today.AddMonths(-6).ToString("yyyy-MM-dd"), DateTime.Today.ToString("yyyy-MM-dd")); 9379 if (Dynamicweb.Context.Current.Request.Params["altView"] == null && !String.IsNullOrEmpty(GetListViewValue())) 9380 { 9381 if(redirect.Contains("?")){ 9382 redirect = redirect + "&altView=detail"; 9383 } 9384 else{ 9385 redirect = redirect + "?altView=detail"; 9386 } 9387 } 9388 BioLegend.Shared.WebUtility.Redirect(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(redirect)); 9389 } 9390 9391 if (GetLoop("Subgroups").Any()) 9392 { 9393 var redirect = "/" + Pageview.Area.Item["GroupsPage"] + "&GroupID=" + HttpContext.Current.Request.QueryString["GroupID"]; 9394 BioLegend.Shared.WebUtility.Redirect(redirect); 9395 } 9396 9397 if (MustRedirectToDetailView()) 9398 { 9399 var redirectURL = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetGlobalValue("Global:Pageview.Url.Raw").Replace("/Default.aspx", "Default.aspx")); 9400 if(redirectURL.Contains("?")){ 9401 redirectURL = redirectURL + "&altView=detail"; 9402 } 9403 else{ 9404 redirectURL = redirectURL + "?altView=detail"; 9405 } 9406 //redirectURL += "&altView=detail"; 9407 BioLegend.Shared.WebUtility.Redirect(redirectURL); 9408 } 9409 } 9410 9411 public bool IsExploreNewProductsPage() 9412 { 9413 return Pageview.Page.ID.ToString() != (Pageview.Area.Item["LiveSearchPage"] ?? "").ToString() && Pageview.Page.ID.ToString() == (Pageview.Area.Item["ExploreNewProducts"] ?? "").ToString() && (Dynamicweb.Context.Current.Request.QueryString["DateReleasedMin"] == null || Dynamicweb.Context.Current.Request.QueryString["DateReleasedMax"] == null); 9414 } 9415 9416 public bool MustRedirectToDetailView() 9417 { 9418 var currentView = GetListViewValue(); 9419 return Pageview.Page.ID.ToString() != (Pageview.Area.Item["LiveSearchPage"] ?? "").ToString() && Dynamicweb.Context.Current.Request.Params["altView"] == null && !currentView.Equals("list"); 9420 } 9421 #endregion 9422 9423 #line default 9424 #line hidden 9425 9426 9427 public RazorEngine_86e73e6dd2514550a9da538e0df0574e() { 9428 } 9429 9430 public override void Execute() { 9431 WriteLiteral("\r\n"); 9432 9433 WriteLiteral("\r\n"); 9434 9435 WriteLiteral("\r\n"); 9436 9437 WriteLiteral("\r\n"); 9438 9439 WriteLiteral("\r\n"); 9440 9441 WriteLiteral("\r\n"); 9442 9443 WriteLiteral("\r\n"); 9444 9445 WriteLiteral("\r\n"); 9446 9447 WriteLiteral("\r\n"); 9448 9449 WriteLiteral("\r\n"); 9450 9451 WriteLiteral("\r\n"); 9452 9453 WriteLiteral("\r\n"); 9454 9455 WriteLiteral("\r\n"); 9456 9457 WriteLiteral("\r\n"); 9458 9459 WriteLiteral("\r\n"); 9460 9461 WriteLiteral("\r\n"); 9462 9463 WriteLiteral("\r\n"); 9464 9465 WriteLiteral("\r\n"); 9466 9467 WriteLiteral("\r\n"); 9468 9469 WriteLiteral("\r\n"); 9470 9471 WriteLiteral("\r\n"); 9472 9473 WriteLiteral("\r\n"); 9474 9475 WriteLiteral("\r\n"); 9476 9477 WriteLiteral("\r\n"); 9478 9479 WriteLiteral("\r\n"); 9480 9481 WriteLiteral("\r\n"); 9482 9483 WriteLiteral("\r\n"); 9484 9485 WriteLiteral("\r\n"); 9486 9487 WriteLiteral("\r\n"); 9488 9489 WriteLiteral("\r\n"); 9490 9491 WriteLiteral("\r\n"); 9492 9493 WriteLiteral("\r\n"); 9494 9495 9496 #line 2335 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9497 9498 CheckIfRedirectShouldHappen(); 9499 9500 var loopProduct = GetLoop("Products"); 9501 var prodLoop = loopProduct.Where(x => !string.IsNullOrWhiteSpace(x.GetString("Ecom:Product.Number"))).GroupBy(x => x.GetString("Ecom:Product.ID")).ToList(); 9502 9503 if (IsSearchResultsWithSingleResult(loopProduct)) 9504 { 9505 var detailPageId = Pageview.Area.Item["ProductDetail"].ToString(); 9506 var singleProductResultsUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(String.Format("Default.aspx?ID={0}&ProductID={1}", detailPageId, prodLoop[0].Key)); 9507 9508 BioLegend.Shared.WebUtility.Redirect(singleProductResultsUrl); 9509 } 9510 else 9511 { 9512 var selectedListView = GetListViewValue() == "detail" ? "detailedView" : ""; 9513 9514 9515 #line default 9516 #line hidden 9517 9518 #line 2351 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9519 Write(RenderProductListViewSelector()); 9520 9521 9522 #line default 9523 #line hidden 9524 9525 #line 2351 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9526 9527 9528 9529 #line default 9530 #line hidden 9531 9532 #line 2352 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9533 Write(RenderFacets()); 9534 9535 9536 #line default 9537 #line hidden 9538 9539 #line 2352 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9540 9541 9542 9543 9544 #line default 9545 #line hidden 9546 WriteLiteral("<div"); 9547 9548 WriteAttribute("class", Tuple.Create(" class=\"", 126639), Tuple.Create("\"", 126703) 9549 , Tuple.Create(Tuple.Create("", 126647), Tuple.Create("col-xs-10", 126647), true) 9550 , Tuple.Create(Tuple.Create(" ", 126656), Tuple.Create("productArea", 126657), true) 9551 , Tuple.Create(Tuple.Create(" ", 126668), Tuple.Create("noPaddingRight", 126669), true) 9552 9553 #line 2354 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9554 , Tuple.Create(Tuple.Create(" ", 126683), Tuple.Create<System.Object, System.Int32>(selectedListView 9555 9556 #line default 9557 #line hidden 9558 , 126684), false) 9559 ); 9560 9561 WriteLiteral(">\r\n"); 9562 9563 WriteLiteral(" "); 9564 9565 9566 #line 2355 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9567 Write(RenderProductGroupDescription()); 9568 9569 9570 #line default 9571 #line hidden 9572 WriteLiteral("\r\n"); 9573 9574 WriteLiteral(" "); 9575 9576 9577 #line 2356 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9578 Write(RenderSearchResultsNumbers(loopProduct)); 9579 9580 9581 #line default 9582 #line hidden 9583 WriteLiteral("\r\n"); 9584 9585 WriteLiteral(" "); 9586 9587 9588 #line 2357 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9589 Write(RenderSortBy()); 9590 9591 9592 #line default 9593 #line hidden 9594 WriteLiteral("\r\n"); 9595 9596 WriteLiteral(" "); 9597 9598 9599 #line 2358 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9600 Write(RenderPagination("col-xs-5 pull-right")); 9601 9602 9603 #line default 9604 #line hidden 9605 WriteLiteral("\r\n"); 9606 9607 WriteLiteral(" "); 9608 9609 9610 #line 2359 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9611 Write(RenderSelectedFilters()); 9612 9613 9614 #line default 9615 #line hidden 9616 WriteLiteral("\r\n "); 9617 9618 WriteLiteral("\r\n <ul"); 9619 9620 WriteLiteral(" id=\"productsHolder\""); 9621 9622 WriteLiteral(" class=\"productList col-xs-12 noPadding\""); 9623 9624 WriteLiteral(">\r\n"); 9625 9626 9627 #line 2362 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9628 9629 9630 #line default 9631 #line hidden 9632 9633 #line 2362 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9634 9635 if (GetListViewValue() == "detail") 9636 { 9637 9638 9639 #line default 9640 #line hidden 9641 9642 #line 2365 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9643 Write(RenderDetailView(prodLoop, loopProduct, string.Empty)); 9644 9645 9646 #line default 9647 #line hidden 9648 9649 #line 2365 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9650 9651 } 9652 else 9653 { 9654 9655 9656 #line default 9657 #line hidden 9658 9659 #line 2369 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9660 Write(RenderListView(prodLoop, loopProduct, string.Empty)); 9661 9662 9663 #line default 9664 #line hidden 9665 9666 #line 2369 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9667 9668 } 9669 9670 9671 #line default 9672 #line hidden 9673 WriteLiteral("\r\n </ul>\r\n"); 9674 9675 WriteLiteral(" "); 9676 9677 9678 #line 2373 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9679 Write(RenderResultPerPageOption()); 9680 9681 9682 #line default 9683 #line hidden 9684 WriteLiteral("\r\n"); 9685 9686 WriteLiteral(" "); 9687 9688 9689 #line 2374 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9690 Write(RenderPagination("pageBottom pull-right col-xs-5")); 9691 9692 9693 #line default 9694 #line hidden 9695 WriteLiteral("\r\n</div>\r\n"); 9696 9697 9698 #line 2376 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9699 9700 9701 9702 #line default 9703 #line hidden 9704 9705 #line 2377 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9706 Write(SnippetStart("jsOnLoad")); 9707 9708 9709 #line default 9710 #line hidden 9711 9712 #line 2377 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9713 9714 9715 9716 #line default 9717 #line hidden 9718 WriteLiteral(" "); 9719 9720 WriteLiteral(" onLoadProductList();\r\n"); 9721 9722 9723 #line 2379 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9724 9725 9726 #line default 9727 #line hidden 9728 9729 #line 2379 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9730 Write(SnippetEnd("jsOnLoad")); 9731 9732 9733 #line default 9734 #line hidden 9735 9736 #line 2379 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Productlist\productList_v2.cshtml" 9737 9738 } 9739 9740 9741 #line default 9742 #line hidden 9743 WriteLiteral("\r\n\r\n"); 9744 9745 WriteLiteral("\r\n\r\n"); 9746 9747 } 9748 } 9749 } 9750

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using System 3 @using System.Collections.Generic 4 @using Dynamicweb.Rendering; 5 @using System.Linq; 6 @using System.Web 7 @using BioLegend.Ecommerce.LiveIntegration; 8 9 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 10 @using System 11 @using System.Collections.Generic 12 @using System.Linq 13 @using System.Net.Http 14 @using Dynamicweb 15 16 @helper RenderProductListViewSelector() 17 { 18 //var listView = Context.Current.Request.Cookies["dataList"] != null ? Context.Current.Request.Cookies["dataList"].Value : ""; 19 //listView = Context.Current.Request.Params["altView"] != null ? (Context.Current.Request.Params["altView"] == "detail" ? "detailedView" : "") : listView; 20 var listView = HttpContext.Current.Request.Cookies["dataList"] != null ? HttpContext.Current.Request.Cookies["dataList"].Value : "list"; 21 22 var str_keywordsParam = Context.Current.Request.Params["Keywords"] ?? ""; 23 var contentSearchPage = Pageview.Area.Item["ContentSearchPage"]; 24 25 <div class='col-xs-12 noPadding'> 26 <div class="pull-left noPadding" id="moreInfo"> 27 <a class='btn-primary default @(listView.Equals("list") ? "active" : "")' href="javascript:changeView('list');">@Translate("listView", "List View")</a> 28 <a class='btn-primary @(listView.Equals("detail") ? "active" : "")' href="javascript:changeView('detail');">@Translate("detailView", "Detail View")</a> 29 @if (!string.IsNullOrWhiteSpace(str_keywordsParam)) 30 { 31 <a class='btn-primary' id="searchForContent" onClick="searchForContent();" data-searchpageID="@contentSearchPage">@Translate("contentPagesBTNText", "Find Content Pages")</a> 32 } 33 </div> 34 <div class="noPadding"> 35 <hr id="searchButtonDivider"/> 36 </div> 37 </div> 38 } 39 40 @helper RenderDidYouMean() 41 { 42 var pageId = Pageview.Page.ID.ToString(); 43 var firstSuggestion = GetString("QueryResult.SpellCheck"); 44 @*var parameterToSpellCheck = Services.Paragraphs.GetParagraph(Pageview.CurrentParagraph.ID).ModuleProperties.GetValue("ParameterToSpellCheck"); 45 var freeTextSearchParameter = string.IsNullOrWhiteSpace(parameterToSpellCheck) ? parameterToSpellCheck : "Keywords";*@ 46 var freeTextSearchParameter = "Keywords"; 47 48 if (!string.IsNullOrWhiteSpace(firstSuggestion)) 49 { 50 <div class="row"> 51 <div class="col-md-12"> 52 Did you mean: 53 @foreach (var suggestion in GetLoop("SpellCheckerSuggestions")) 54 { 55 var suggestionTerm = suggestion.GetString("Suggestion"); 56 <a href="Default.aspx?ID=@pageId&@freeTextSearchParameter=@suggestionTerm" style="margin-right:5px; font-size: 12px !important">@suggestionTerm</a> 57 } 58 </div> 59 </div> 60 } 61 } 62 63 @helper RenderProductGroupDescription() 64 { 65 var groupDescription = GetString("Ecom:Group.Description"); 66 if (!string.IsNullOrWhiteSpace(groupDescription)) 67 { 68 <div id="groupDescription" class="col-xs-12 noPadding"> 69 @groupDescription 70 </div> 71 } 72 } 73 74 @helper RenderSearchResultsNumbers(List<LoopItem> loopProduct) 75 { 76 var loopProductCount = loopProduct.Count; 77 var totalProductCount = GetInteger("Ecom:ProductList.PageProdCnt"); 78 var startLoopProductCount = (loopProductCount * (GetInteger("Ecom:ProductList.CurrentPage") - 1)) + 1; 79 var endLoopProductCount = loopProductCount * GetInteger("Ecom:ProductList.CurrentPage"); 80 81 if (loopProductCount < GetInteger("Ecom:ProductList.PageSize")) 82 { 83 startLoopProductCount = (GetInteger("Ecom:ProductList.PageSize") * (GetInteger("Ecom:ProductList.CurrentPage") - 1)) + 1; 84 endLoopProductCount = totalProductCount; 85 } 86 87 <span class="productListResume col-xs-3 noPadding"> 88 @Translate("productListCount", "{{numberProducts}} of {{countAllProducts}} items").Replace("{{numberProducts}}", String.Format("{0}-{1}", startLoopProductCount, endLoopProductCount)).Replace("{{countAllProducts}}", totalProductCount.ToString()) 89 </span> 90 } 91 92 @helper RenderResultPerPageOption() 93 { 94 var str_pageSize = Context.Current.Request.Params["PageSize"] ?? "25"; 95 96 <div class="pageBottom col-xs-3 noPadding"> 97 <form id="bottom_pageSizeProdList" class="" action="/Default.aspx" name="ExtUserForm_Main" method="GET"> 98 <fieldset> 99 <label>@Translate("Results Per Page"):</label> 100 <select name="PageSize"> 101 @RenderResultsPerPageOption("25","25", true) 102 @RenderResultsPerPageOption("50","50") 103 @RenderResultsPerPageOption("100","100") 104 @RenderResultsPerPageOption("200","200") 105 </select> 106 </fieldset> 107 </form> 108 </div> 109 } 110 111 @helper RenderResultsPerPageOption(string sorByLabel, string sortByValue, bool isDefault = false) 112 { 113 var str_pageSize = Context.Current.Request.Params["PageSize"] ?? "25"; 114 var isSelected = ((str_pageSize == sortByValue) || (isDefault && str_pageSize == "")) ? "selected=\"selected\"" : ""; 115 116 <option @isSelected value="@sortByValue">@sorByLabel</option> 117 } 118 119 @helper RenderPagination(string cssClass = "") 120 { 121 var num_totalPages = GetInteger("Ecom:ProductList.TotalPages"); 122 var num_curPage = Context.Current.Request.Params["PageNum"] != null ? Convert.ToInt32(Context.Current.Request.Params["PageNum"]) : 1; 123 var prevPageClean = GetString("Ecom:ProductList.PrevPage.Clean"); 124 var nextPageClean = GetString("Ecom:ProductList.NextPage.Clean"); 125 var str_pagingHref = ""; 126 127 if (num_totalPages > 1) 128 { 129 var loop_productList3 = GetLoop("Ecom:ProductList.Pages3"); 130 var getGlobalRequest = GetGlobalValue("Global:Request.Url"); 131 132 <ul class="pagination @cssClass"> 133 @if (!string.IsNullOrWhiteSpace(prevPageClean)) 134 { 135 <li class="previous"> 136 <a href='@prevPageClean'> 137 <i class="fa fa-angle-left"></i> @Translate("Previous") 138 </a> 139 </li> 140 } 141 142 @if (num_curPage > 2 && num_totalPages > 3) 143 { 144 for (var i = 1; i <= 1; i++) 145 { 146 var str_active = num_curPage == i ? "class=\"active\"" : ""; 147 str_pagingHref = getGlobalRequest.Contains("PageNum") ? getGlobalRequest.Replace("PageNum=" + num_curPage, "PageNum=" + i) : getGlobalRequest + "&PageNum=" + i; 148 <li @str_active> 149 <a href="@str_pagingHref">@i</a> 150 </li> 151 } 152 if (num_totalPages > 4 && num_curPage != 3) 153 { 154 <li class="etc"> 155 <span>...</span> 156 </li> 157 } 158 } 159 @foreach (var i in loop_productList3) 160 { 161 if (i.GetBoolean("Ecom:ProductList.Pages3.Page.IsCurrent")) 162 { 163 <li class="active"> 164 <a href="@i.GetString("Ecom:ProductList.Pages3.Page.UrlHtmlEncoded")">@i.GetString("Ecom:ProductList.Pages3.Page.Number")</a> 165 </li> 166 } 167 else 168 { 169 <li> 170 <a href="@i.GetString("Ecom:ProductList.Pages3.Page.UrlHtmlEncoded")">@i.GetString("Ecom:ProductList.Pages3.Page.Number")</a> 171 </li> 172 } 173 } 174 @if (num_curPage < num_totalPages - 1 && num_totalPages > 3) 175 { 176 if (num_totalPages > 4) 177 { 178 <li class="etc"> 179 <span>...</span> 180 </li> 181 } 182 for (var i = num_totalPages; i <= num_totalPages; i++) 183 { 184 var str_active = num_curPage == i ? "class=\"active\"" : ""; 185 str_pagingHref = getGlobalRequest.Contains("PageNum") ? getGlobalRequest.Replace("PageNum=" + num_curPage, "PageNum=" + i) : getGlobalRequest + "&PageNum=" + i; 186 <li @str_active> 187 <a href="@str_pagingHref">@i</a> 188 </li> 189 } 190 } 191 @if (!string.IsNullOrWhiteSpace(nextPageClean)) 192 { 193 <li class="next"> 194 <a href='@nextPageClean'> 195 @Translate("Next") <i class="fa fa-angle-right"></i> 196 </a> 197 </li> 198 } 199 </ul> 200 } 201 } 202 203 @helper RenderSelectedFilters() 204 { 205 <div class="col-xs-12"> 206 @RenderSelectedFacetOption("Keywords") 207 208 @foreach (var group in GetLoop("FacetGroups")) 209 { 210 foreach (var facet in group.GetLoop("Facets")) 211 { 212 @RenderSelectedFacetOption(facet.GetString("Facet.QueryParameter"), facet) 213 } 214 } 215 </div> 216 } 217 218 @helper RenderSelectedFacetOption(string parameterName, LoopItem facet = null) 219 { 220 var parameterValue = Context.Current.Request.Params[parameterName] ?? ""; 221 222 if (!string.IsNullOrEmpty(parameterValue)) 223 { 224 @RenderSelectedFacetOptionName(parameterValue, facet) 225 <a href="@RenderSelectedFacetOptionUrl(parameterName)"> 226 <i class="fa fa-times-circle"></i> 227 </a> 228 <text>/</text> 229 } 230 } 231 232 @helper RenderSelectedFacetOptionUrl(string parameterName) 233 { 234 var keywordLessUrl = "/Default.aspx?"; 235 var currentUrlQueryString = Dynamicweb.Context.Current.Request.QueryString; 236 237 foreach (string key in currentUrlQueryString) { 238 if (key == null) 239 { 240 continue; 241 } 242 if (!key.Equals(parameterName, StringComparison.InvariantCultureIgnoreCase)) 243 { 244 var value = currentUrlQueryString[key]; 245 keywordLessUrl += key + "=" + value + "&"; 246 } 247 } 248 249 @keywordLessUrl.TrimEnd('&'); 250 } 251 252 @helper RenderSelectedFacetOptionName(string parameterValue, LoopItem facet = null) 253 { 254 var facetOptionName = parameterValue; 255 256 if (facet != null) 257 { 258 facetOptionName = string.Empty; 259 foreach (var value in parameterValue.Split(',')) 260 { 261 var facetOption = facet.GetLoop("FacetOptions").FirstOrDefault(x => x.GetString("FacetOption.Value").Equals(value, StringComparison.InvariantCultureIgnoreCase)); 262 if (facetOption != null) 263 { 264 var label = facetOption.GetString("FacetOption.Label"); 265 facetOptionName += (string.IsNullOrEmpty(facetOptionName) ? string.Empty : ", ") + label; 266 } 267 } 268 } 269 270 @facetOptionName 271 } 272 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 273 @using System 274 @using System.Collections.Generic 275 @using System.Linq 276 @using Dynamicweb 277 278 @functions 279 { 280 public Dictionary<string, Dictionary<string, string>> BreadcrumbSource = new Dictionary<string, Dictionary<string, string>>(); 281 282 public bool paramIsSet(string thisParameter){ 283 var requestParams = Context.Current.Request.Params; 284 var paramIsSet = !string.IsNullOrEmpty(requestParams[thisParameter]) ? true : false; 285 return paramIsSet; 286 } 287 } 288 289 @helper RenderFacets() 290 { 291 var str_pageSize = Context.Current.Request.Params["PageSize"] ?? "25"; 292 var str_sortBy = Context.Current.Request.Params["SortBy"] ?? ""; 293 //str_sortBy = str_sortBy.Replace("%2C", ","); 294 295 var loopFacetGroups = GetLoop("FacetGroups"); 296 297 if (loopFacetGroups.Any()) 298 { 299 var requestParams = Context.Current.Request.Params; 300 var str_keywords = !string.IsNullOrEmpty(requestParams["Keywords"]) ? requestParams["Keywords"] : ""; 301 var str_sortOrder = Context.Current.Request.Params["SortOrder"] ?? ""; 302 var str_paramGroupID = Context.Current.Request.Params["groupid"] ?? ""; 303 var str_GeneIDParam = Context.Current.Request.Params["GeneID"] ?? ""; 304 var DateReleasedMin = !string.IsNullOrEmpty(requestParams["DateReleasedMin"]) ? requestParams["DateReleasedMin"] : ""; 305 var DateReleasedMax = !string.IsNullOrEmpty(requestParams["DateReleasedMax"]) ? requestParams["DateReleasedMax"] : ""; 306 var view = !string.IsNullOrEmpty(requestParams["altView"]) ? requestParams["altView"] : ""; 307 var lst_parameters = GetLoop("Query.Parameters"); 308 var bol_noResults = false; 309 310 <div class="col-xs-2 noPadding"> 311 312 <div class="headerBox filtersHead col-xs-12 noPadding"> 313 <span class="title">@Translate("filterYourResults", "Filter your results")</span> 314 </div> 315 316 <form id="filtersForm" action="/Default.aspx" class="col-xs-12 noPaddingLeft productSearchFilters"> 317 <input type="hidden" name="ID" value="@Pageview.Page.ID"/> 318 <input type="hidden" name="PageSize" value="@str_pageSize"/> 319 <input type="hidden" name="SortBy" value="@str_sortBy"/> 320 321 @RenderHiddenField("Keywords", str_keywords) 322 @RenderHiddenField("sortOrder", str_sortOrder) 323 @RenderHiddenField("GroupID", str_paramGroupID) 324 @RenderHiddenField("GeneID", str_GeneIDParam) 325 @RenderHiddenField("DateReleasedMin", DateReleasedMin) 326 @RenderHiddenField("DateReleasedMax", DateReleasedMax) 327 328 <input type="hidden" name="altView" value="@view"/> 329 330 @if (Pageview.Area.Item["ExploreNewProducts"].ToString() == Pageview.Page.ID.ToString()) 331 { 332 var currentMonth = DateTime.Today.ToString("MM"); 333 var monthParameter = requestParams["month"] != null ? requestParams["month"] : ""; 334 335 <fieldset> 336 <label>@Translate("Month", "Month")</label> 337 <div class="filtersContainer"> 338 <label class="radioBoxContainer" for="@currentMonth"> 339 <input class="month" data-min='@string.Format("{0}-{1}-01", DateTime.Today.Year, DateTime.Today.Month)' data-max='@string.Format("{0}-{1}-{2}", DateTime.Today.Year, DateTime.Today.Month, DateTime.DaysInMonth(DateTime.Today.Year, DateTime.Today.Month))' @(monthParameter == currentMonth ? "checked='checked'" : "") type="radio" value="@currentMonth" id="@currentMonth" name="month"> <span>@DateTime.Today.ToString("MMMM")</span> 340 </label> 341 </div> 342 @for (var i = 1; i < 6; i++) 343 { 344 var month = DateTime.Today.AddMonths(-i).ToString("MMMM"); 345 var monthNumeric = DateTime.Today.AddMonths(-i).ToString("MM"); 346 <div class="filtersContainer"> 347 <label class="radioBoxContainer" for="@month"> 348 <input class="month" data-min='@string.Format("{0}-{1}-01", DateTime.Today.AddMonths(-i).Year, DateTime.Today.AddMonths(-i).Month)' data-max='@string.Format("{0}-{1}-{2}", DateTime.Today.AddMonths(-i).Year, DateTime.Today.AddMonths(-i).Month, DateTime.DaysInMonth(DateTime.Today.AddMonths(-i).Year, DateTime.Today.AddMonths(-i).Month))' @(monthParameter == monthNumeric ? "checked='checked'" : "") type="radio" value="@monthNumeric" id="@month" name="month"> 349 <span>@month</span> 350 </label> 351 </div> 352 } 353 </fieldset> 354 } 355 356 @foreach (var facetGroup in loopFacetGroups) 357 { 358 foreach (var facet in facetGroup.GetLoop("Facets")) 359 { 360 var str_parameterType = lst_parameters.Where(x => x.GetString("Parameter.Name") == facet.GetString("Facet.QueryParameter")).FirstOrDefault().GetString("Parameter.Type"); 361 if (facet.GetString("Facet.RenderType") == "Checkboxes") 362 { 363 @RenderCheckboxesFacet(facet) 364 } 365 366 else if (str_parameterType.Contains("[]")) 367 { 368 @RenderCheckboxesFacet(facet) 369 } 370 else if (str_parameterType.Contains("Boolean")) 371 { 372 @RenderCheckboxFacet(facet, str_parameterType, bol_noResults) 373 } 374 else if (!string.IsNullOrWhiteSpace(facet.GetString("Facet.OptionCount"))) 375 { 376 @RenderCheckboxesFacet(facet) 377 } 378 else 379 { 380 @RenderFacet(facet, str_parameterType, "text", bol_noResults) 381 } 382 } 383 } 384 </form> 385 </div> 386 } 387 } 388 389 @helper RenderHiddenField(string name, string value) 390 { 391 if (value != "") 392 { 393 <input type="hidden" name="@name" value="@value"/> 394 } 395 } 396 397 @helper RenderCheckboxesFacet(LoopItem facet) 398 { 399 var str_parameter = facet.GetString("Facet.QueryParameter"); 400 var str_name = facet.GetString("Facet.Name"); 401 var facetOptions = facet.GetLoop("FacetOptions"); 402 403 var extraClass = facet.GetString("Facet.QueryParameter").Equals("ExcitationLaser") || facet.GetString("Facet.QueryParameter").Equals("Isotype") ? "noCapitalize" : ""; 404 var inputID = facet.GetString("Facet.QueryParameter") + "Search"; 405 var inputDivID = facet.GetString("Facet.QueryParameter") + "Div"; 406 var facetType = facet.GetString("Facet.Type"); 407 408 var thisParamIsSet = paramIsSet(str_parameter); 409 var hiddenClass= "hide"; 410 var fieldsetIsActive = ""; 411 if(thisParamIsSet){ 412 hiddenClass= ""; 413 fieldsetIsActive = "class=\"active\""; 414 } 415 416 if (facetOptions.Any()) 417 { 418 <fieldset @fieldsetIsActive data-type="@facet.GetString("Facet.QueryParameter.Type")"> 419 <legend class="filterTitle">@str_name</legend> 420 421 <div class="filtersContainer @extraClass @hiddenClass" id="@inputDivID"> 422 @if (facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).Count() > 9) 423 { 424 <div class="searchFilterContainer"> 425 <span class="fa fa-search"></span> 426 <input class="searchFilterSearchBar" id="@inputID" onkeyup="filterSearchFilterOptions('@inputID','@inputDivID');"> 427 </div> 428 } 429 @foreach (var option in facetOptions) 430 { 431 var bol_checked = option.GetBoolean("FacetOption.Selected"); 432 var str_value = option.GetString("FacetOption.Value"); 433 434 <label class="checkBoxContainer"> 435 <input checked="@bol_checked" type="checkbox" value="@str_value" name="@str_parameter"> 436 <span> 437 @option.GetString("FacetOption.Label") 438 @if (facetType != "Term" && option.GetInteger("FacetOption.Count") > 0) 439 { 440 var counter = string.Format("({0})", option.GetString("FacetOption.Count")); 441 @counter 442 } 443 </span> 444 </label> 445 } 446 </div> 447 </fieldset> 448 } 449 } 450 451 @helper RenderCheckboxFacet(LoopItem i, string str_parameterType, bool bol_noResults) 452 { 453 var str_parameter = i.GetString("Facet.QueryParameter"); 454 var str_name = i.GetString("Facet.Name"); 455 var facetOptions = i.GetLoop("FacetOptions"); 456 457 if (bol_noResults) 458 { 459 facetOptions = facetOptions.OrderByDescending(o => o.GetInteger("FacetOption.Count")).ThenBy(or => or.GetString("FacetOption.Label")).ToList(); 460 } 461 else 462 { 463 facetOptions = facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).OrderBy(o => o.GetString("FacetOption.Label")).ToList(); 464 } 465 466 <fieldset data-type="@str_parameterType"> 467 @foreach (var option in facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).OrderByDescending(o => o.GetInteger("FacetOption.Count")).ThenBy(or => or.GetString("FacetOption.Label"))) 468 { 469 var bol_checked = option.GetBoolean("FacetOption.Selected"); 470 var str_value = option.GetString("FacetOption.Value") == "True" ? "True" : ""; 471 472 if (str_value == "True") 473 { 474 <legend class="filterTitle">@str_name</legend> 475 <div class="filtersContainer"> 476 <label class="checkBoxContainer"> 477 <input checked="@bol_checked" type="checkbox" value="@str_value" name="@str_parameter"> <span>@str_name (@option.GetString("FacetOption.Count"))</span> 478 </label> 479 </div> 480 } 481 } 482 </fieldset> 483 } 484 485 @helper RenderFacet(LoopItem i, string str_parameterType, string str_templateOutput, bool bol_noResults) 486 { 487 var str_parameter = i.GetString("Facet.QueryParameter"); 488 var str_name = i.GetString("Facet.Name"); 489 var facetOptions = i.GetLoop("FacetOptions"); 490 491 if (bol_noResults) 492 { 493 facetOptions = facetOptions.OrderByDescending(o => o.GetInteger("FacetOption.Count")).ThenBy(or => or.GetString("FacetOption.Label")).ToList(); 494 } 495 else 496 { 497 facetOptions = facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).OrderBy(o => o.GetString("FacetOption.Label")).ToList(); 498 } 499 500 switch (str_templateOutput) 501 { 502 case "multiselect": 503 if (facetOptions.Any()) 504 { 505 <fieldset> 506 <legend>@str_name</legend> 507 <select data-selected-text-format="count" data-live-search="true" data-size="8" name="@str_parameter" multiple> 508 @foreach (var option in facetOptions.OrderByDescending(o => o.GetInteger("FacetOption.Label"))) 509 { 510 var bol_checked = option.GetBoolean("FacetOption.Selected"); 511 var str_value = option.GetString("FacetOption.Value"); 512 513 <option selected="@bol_checked" value="@str_value">@option.GetString("FacetOption.Label")</option> 514 } 515 </select> 516 </fieldset> 517 } 518 519 break; 520 case "checkboxes": 521 var extraClass = i.GetString("Facet.QueryParameter").Equals("ExcitationLaser") || i.GetString("Facet.QueryParameter").Equals("Isotype") ? "noCapitalize" : ""; 522 var inputID = i.GetString("Facet.QueryParameter") + "Search"; 523 var inputDivID = i.GetString("Facet.QueryParameter") + "Div"; 524 var facetType = i.GetString("Facet.Type"); 525 526 if (facetOptions.Any()) 527 { 528 <fieldset data-type="@str_parameterType"> 529 <legend class="filterTitle">@str_name</legend> 530 531 <div class="filtersContainer @extraClass hide" id="@inputDivID"> 532 @if (facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).Count() > 9) 533 { 534 <div class="searchFilterContainer"> 535 <span class="fa fa-search"></span> 536 <input class="searchFilterSearchBar" id="@inputID" onkeyup="filterSearchFilterOptions('@inputID','@inputDivID');"> 537 </div> 538 } 539 @foreach (var option in facetOptions) 540 { 541 var bol_checked = option.GetBoolean("FacetOption.Selected"); 542 var str_value = option.GetString("FacetOption.Value"); 543 if (bol_checked) 544 { 545 var breadcrumbSourceTemp = new Dictionary<string, string>(); 546 var thisFilter = i.GetString("Facet.QueryParameter") + str_value; 547 breadcrumbSourceTemp.Add("val", str_value); 548 breadcrumbSourceTemp.Add("label", option.GetString("FacetOption.Label")); 549 breadcrumbSourceTemp.Add("filter", i.GetString("Facet.QueryParameter")); 550 BreadcrumbSource.Add(thisFilter, breadcrumbSourceTemp); 551 } 552 553 <label class="checkBoxContainer"> 554 <input checked="@bol_checked" type="checkbox" value="@str_value" name="@str_parameter"> 555 <span> 556 @option.GetString("FacetOption.Label") 557 @if (facetType != "Term" && option.GetInteger("FacetOption.Count") > 0) 558 { 559 var counter = string.Format("({0})", option.GetString("FacetOption.Count")); 560 @counter 561 } 562 </span> 563 </label> 564 } 565 </div> 566 </fieldset> 567 } 568 569 break; 570 case "select": 571 572 break; 573 case "checkbox": 574 575 if (facetOptions.Any()) 576 { 577 <fieldset data-type="@str_parameterType"> 578 @foreach (var option in facetOptions.Where(f => f.GetInteger("FacetOption.Count") != 0).OrderByDescending(o => o.GetInteger("FacetOption.Count")).ThenBy(or => or.GetString("FacetOption.Label"))) 579 { 580 var bol_checked = option.GetBoolean("FacetOption.Selected"); 581 var str_value = option.GetString("FacetOption.Value") == "True" ? "True" : ""; 582 583 if (str_value == "True") 584 { 585 <legend class="filterTitle">@str_name</legend> 586 <div class="filtersContainer"> 587 <label class="checkBoxContainer"> 588 <input checked="@bol_checked" type="checkbox" value="@str_value" name="@str_parameter"> <span>@str_name (@option.GetString("FacetOption.Count"))</span> 589 </label> 590 </div> 591 } 592 } 593 </fieldset> 594 } 595 596 break; 597 case "radio": 598 599 break; 600 case "radios": 601 602 break; 603 case "autocomplete": 604 605 break; 606 default: 607 <fieldset data-type="@str_parameterType"> 608 <legend class="filterTitle">@str_name</legend> 609 <div class="filtersContainer"> 610 <input type="text" name="@str_parameter" value=""/> 611 </div> 612 </fieldset> 613 break; 614 } 615 } 616 617 @helper RenderSortBy() 618 { 619 var str_paramGroupID = Context.Current.Request.Params["groupid"] ?? ""; 620 var str_keywordsParam = Context.Current.Request.Params["Keywords"] ?? ""; 621 var str_GeneIDParam = Context.Current.Request.Params["GeneID"] ?? ""; 622 var str_SpecificityParam = Context.Current.Request.Params["Specificity"] ?? ""; 623 624 const string sortByMatch = "-_score,Clone_Sort,Name_sortable,Price"; 625 const string sortByName = "Name_sortable,Price"; 626 const string sortByClone = "Clone_Sort,Name_sortable,Price"; 627 const string sortByApplication = "CustomField_AppAbrv,Name_sortable,Price"; 628 const string sortByRegulatoryStatus = "CustomField_RegulatoryStatus,Name_sortable,Price"; 629 630 <form id="orderProdList" class="col-xs-3 noPadding" action="/Default.aspx" name="ExtUserForm_Main" method="GET"> 631 @RenderHiddenField("ID", Pageview.Page.ID.ToString()) 632 @RenderHiddenField("GroupID", str_paramGroupID) 633 @RenderHiddenField("Keywords", str_keywordsParam) 634 @RenderHiddenField("GeneID", str_GeneIDParam) 635 @RenderHiddenField("Specificity", str_SpecificityParam) 636 637 <fieldset class="col-xs-12 noPadding" data-groupdID="@str_paramGroupID"> 638 <label>@Translate("Sort by"):</label> 639 <select id="sortSelect" name="SortBy"> 640 @RenderSortByOption(Translate("Match", "Best Match"), sortByMatch, true) 641 @RenderSortByOption(Translate("Name"), sortByName) 642 @RenderSortByOption(@Translate("Clone", "Clone"), sortByClone) 643 @RenderSortByOption(@Translate("Applications", "Applications"), sortByApplication) 644 @RenderSortByOption(@Translate("RegulatoryStatus", "Regulatory Status"), sortByRegulatoryStatus) 645 </select> 646 </fieldset> 647 648 </form> 649 } 650 651 @helper RenderSortByOption(string sorByLabel, string sortByValue, bool isDefault = false) 652 { 653 var str_sortBy = Context.Current.Request.Params["SortBy"] ?? ""; 654 var isSelected = ((str_sortBy == sortByValue) || (isDefault && str_sortBy == "")) ? "selected=\"selected\"" : ""; 655 656 <option @isSelected value="@sortByValue">@sorByLabel</option> 657 } 658 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 659 @using System 660 @using System.Collections 661 @using System.Collections.Generic 662 @using System.Linq 663 @using System.Text.RegularExpressions 664 @using System.Web 665 @using Dynamicweb.Core 666 @using Dynamicweb.Frontend 667 @using Dynamicweb.Security.UserManagement 668 669 @functions{ 670 671 public static string GetImage(string str_source, int num_width, int num_height, int num_widthTablet = 0, int num_heightTablet = 0, int num_widthMobile = 0, int num_heightMobile = 0, string str_format = "jpg", int num_compression = 75, int num_crop = 5) 672 { 673 PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 674 string str_currDevice = obj_currentPageview.Device.ToString(); 675 string str_alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/Lorenz/images/alternativeImage.jpg"; 676 677 string str_width = ""; 678 string str_height = ""; 679 int num_getImageWidth = num_width != 0 ? num_width : 0; 680 int num_getImageHeight = num_height != 0 ? num_height : 0; 681 string str_getImageFormat = str_format != "jpg" ? "&amp;Format=" + str_format : ""; 682 string str_getImageCompression = num_compression != 75 ? "&amp;Compression=" + num_compression : ""; 683 684 var cdnImageHandleDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Image_Handler", "Image_Handler_Domain"); //CUSTOM CODE 685 686 if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 687 { 688 num_getImageWidth = num_widthTablet != 0 ? num_widthTablet : num_getImageWidth; 689 num_getImageHeight = num_heightTablet != 0 ? num_heightTablet : num_getImageHeight; 690 } 691 else if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 692 { 693 num_getImageWidth = num_widthMobile != 0 ? num_widthMobile : num_getImageWidth; 694 num_getImageHeight = num_heightMobile != 0 ? num_heightMobile : num_getImageHeight; 695 } 696 697 if (num_getImageWidth != 0) 698 { 699 str_width = "&amp;Width=" + num_getImageWidth; 700 } 701 if (num_getImageHeight != 0) 702 { 703 str_height = "&amp;Height=" + num_getImageHeight; 704 } 705 706 string str_output = cdnImageHandleDomain + "/Admin/Public/GetImage.ashx?Image=" + str_source + str_width + str_height + "&amp;altFmImage_path=" + str_alternativeImage + str_getImageFormat + str_getImageCompression + "&amp;Crop=" + num_crop; 707 return str_output; 708 } 709 710 public Dictionary<string, string> GetProductTypes() 711 { 712 var productTypes = new Dictionary<string, string>(); 713 productTypes.Add("AncillaryProducts", "Ancillary"); 714 productTypes.Add("BuffersSolutionsChemicals", "Ancillary"); 715 productTypes.Add("CellBiologyAntibodies", "PrimaryAntibodies"); 716 productTypes.Add("CellSeparation", "MojoSort"); 717 productTypes.Add("CytokineChemokineAntibodies", "PrimaryAntibodies"); 718 productTypes.Add("ELISAMAXLEGENDMAX", "ELISA"); 719 productTypes.Add("EpitopeTagProducts", "PrimaryAntibodies"); 720 productTypes.Add("HumanImmunologyAntibodies", "PrimaryAntibodies"); 721 productTypes.Add("IsotypeControls", "IsotypeControls"); 722 productTypes.Add("LEGENDplex", "LEGENDplex"); 723 productTypes.Add("LEGENDScreen", "LEGENDScreen"); 724 productTypes.Add("MarmosetImmunologyAntibodies", "PrimaryAntibodies"); 725 productTypes.Add("MouseImmunologyAntibodies", "PrimaryAntibodies"); 726 productTypes.Add("NeuroscienceProducts", "PrimaryAntibodies"); 727 productTypes.Add("RatImmunologyAntibodies", "PrimaryAntibodies"); 728 productTypes.Add("RecombinantProteins", "Recombinant"); 729 productTypes.Add("SecondaryReagents", "SecondaryReagents"); 730 productTypes.Add("VirusImmunologyAntibodies", "PrimaryAntibodies"); 731 productTypes.Add("EnzymeAssays", "EnzymeAssays"); 732 productTypes.Add("FlexT", "FlexT"); 733 productTypes.Add("NonAntibodyChemicalProbes", "NonAntibodyChemicalProbes"); 734 productTypes.Add("FlexiFluor", "PrimaryAntibodies"); 735 736 return productTypes; 737 } 738 739 public string CalculateProductName(string prodName, string prodType, string prodFormat, bool excludeAntibody) 740 { 741 var cleanName = prodName; 742 if (prodType.Equals("PrimaryAntibodies") && !prodName.Contains(" Antibody") && !prodName.Contains("Buffer") && !prodName.Contains("Annexin") && !prodName.Contains("Solution") && !prodName.Contains("Diluent") && !prodName.Contains("Substrate Reagent") && !prodName.Contains("ecombinant") && !prodName.Contains("Panel") && !prodName.Contains("Elisa Max") && !prodName.Contains("Cocktail") && !prodName.Contains("Isotype Control") && !prodName.Contains("Avidin") && !prodName.Contains("Normal Serum Block") && !prodName.Contains("Detection Kit") && !prodName.Contains("Affinity") && !prodName.Contains("ELISA Kit") && !prodName.Contains("Phase-Flow") && !prodName.Contains("Treg Flow") && !prodFormat.Equals("Peptide") && (!excludeAntibody)) 743 { 744 cleanName += " Antibody"; 745 } 746 747 if (prodType.Equals("SecondaryReagents") && !prodName.Contains(" Antibody") && !prodName.Contains("Streptavidin") && !prodName.Contains("Avidin") && (!excludeAntibody)) 748 { 749 cleanName += " Antibody"; 750 } 751 752 if (prodType.Equals("IsotypeControls") && !prodName.Contains(" Antibody") && !prodName.Contains("Lineage Cocktail") && (!excludeAntibody)) 753 { 754 cleanName += " Antibody"; 755 } 756 757 return cleanName; 758 } 759 760 public static string RoundPrice(double price, bool isPriceInterestPointValue = true, bool roundPrice = true, bool showDecimals = false) 761 { 762 var priceDouble = price; 763 if (isPriceInterestPointValue) 764 { 765 priceDouble = price * 0.01; 766 } 767 var isCurrencyJp = Dynamicweb.Ecommerce.Common.Context.Currency.CultureInfo == "ja-JP"; 768 /*var roundPriceDouble = Math.Round(priceDouble, 0, MidpointRounding.AwayFromZero);*/ 769 var roundPriceDouble = Math.Ceiling(priceDouble); 770 var roundedPrice = isCurrencyJp ? price.ToString("#,##") : (roundPrice ? roundPriceDouble.ToString() : priceDouble.ToString()); 771 if(showDecimals == true){ 772 roundedPrice = isCurrencyJp ? price.ToString("#,##") : (roundPrice ? roundPriceDouble.ToString("#.##") : priceDouble.ToString("0.00")); 773 } 774 775 var priceWithSymbol = string.Empty; 776 var currencySymbol = Dynamicweb.Ecommerce.Common.Context.Currency.Symbol; 777 var positivePattern = Dynamicweb.Ecommerce.Common.Context.Currency.PositivePattern; 778 var symbolPlace = Dynamicweb.Ecommerce.Common.Context.Currency.SymbolPlace; 779 780 if (positivePattern == 3) 781 { 782 priceWithSymbol = String.Format("{0} {1}", currencySymbol, roundedPrice); 783 } 784 else if (positivePattern == 1) 785 { 786 priceWithSymbol = String.Format("{0} {1}", roundedPrice, currencySymbol); 787 } 788 else if (symbolPlace == 0 || positivePattern == 2) 789 { 790 priceWithSymbol = String.Format("{0}{1}", currencySymbol, roundedPrice); 791 } 792 else 793 { 794 priceWithSymbol = String.Format("{0}{1}", roundedPrice, currencySymbol); 795 } 796 797 return priceWithSymbol; 798 } 799 800 public int GetPageIdFromSettings() 801 { 802 var pageId = GetModuleSettingsValue("ShowOnParagraph"); 803 if (pageId.IndexOf('#') > -1) 804 { 805 pageId = pageId.Substring(0, pageId.IndexOf('#')); 806 807 } 808 if (pageId.IndexOf("ID=", StringComparison.Ordinal) > -1) 809 { 810 pageId = pageId.Substring(pageId.IndexOf("ID=", StringComparison.Ordinal) + 3); 811 } 812 813 return Convert.ToInt32(pageId); 814 } 815 816 public string GetModuleSettingsValue(string property) 817 { 818 var moduleProperty = Pageview.CurrentParagraph.ModuleProperties.Values.Cast<DictionaryEntry>().FirstOrDefault(p => p.Key.ToString() == property); 819 return moduleProperty.Value.ToString(); 820 } 821 822 public int GetPunchoutPageIdForDetailsPage() 823 { 824 var punchoutDetailPageId = GetPageIdFromSettings(); 825 return punchoutDetailPageId != 0 ? punchoutDetailPageId : Pageview.Page.ID; 826 } 827 828 public string PreviousElement = ""; 829 } 830 831 @helper RenderDetailView(List<IGrouping<string, LoopItem>> prodLoop, List<LoopItem> loopProduct, string disableAddToCart) 832 { 833 var itemsCount = 0; 834 foreach (var group in prodLoop) 835 { 836 itemsCount++; 837 @RenderDetailViewProduct(group, loopProduct, itemsCount, prodLoop.Count, disableAddToCart) 838 } 839 } 840 841 @helper RenderListView(List<IGrouping<string, LoopItem>> prodLoop, List<LoopItem> loopProduct, string disableAddToCart) { 842 @RenderProductListHeader() 843 var itemsCount = 0; 844 foreach (var group in prodLoop) 845 { 846 itemsCount++; 847 @RenderListViewProduct(group, loopProduct, itemsCount, prodLoop.Count, disableAddToCart) 848 } 849 } 850 851 @helper RenderPunchoutListView(List<IGrouping<string, LoopItem>> prodLoop, List<LoopItem> loopProduct, string disableAddToCart) { 852 @RenderProductListHeader() 853 var itemsCount = 0; 854 foreach (var group in prodLoop) 855 { 856 itemsCount++; 857 @RenderPunchoutListViewProduct(group, loopProduct, itemsCount, prodLoop.Count, disableAddToCart) 858 } 859 } 860 861 @helper RenderProductListHeader() 862 { 863 var cartDisabled = Convert.ToBoolean(Pageview.Area.Item["DisableAddToCart"].ToString()); 864 865 var str_sortBy = HttpContext.Current.Request.Params["SortBy"] ?? ""; 866 const string sortByName = "Name_sortable,Price"; 867 const string sortByClone = "Clone_Sort,Name_sortable,Price"; 868 const string sortByApplication = "AppAbrvString,Name_sortable,Price"; 869 const string sortByRegulatoryStatus = "CustomField_RegulatoryStatus,Name_sortable,Price"; 870 871 var sortByNameSelected = str_sortBy == sortByName ? "sortActive" : ""; 872 var sortByCloneSelected = (str_sortBy == sortByClone || str_sortBy == "") ? "sortActive" : ""; 873 var sortByApplicationsSelected = str_sortBy == sortByApplication ? "sortActive" : ""; 874 var sortByRegulatoryStatusSelected = str_sortBy == sortByRegulatoryStatus ? "sortActive" : ""; 875 876 <li class="col-xs-12 noPadding"> 877 <div class="col-xs-3 @sortByNameSelected"> 878 @Translate("Product", "Product") 879 </div> 880 881 <div class="col-xs-2 noPadding @sortByCloneSelected"> 882 @Translate("Clone", "Clone") 883 </div> 884 885 <div class="col-xs-1 noPadding @sortByApplicationsSelected"> 886 @Translate("Appl", "Appl.") 887 </div> 888 889 <div class="col-xs-1 @sortByRegulatoryStatusSelected"> 890 @Translate("Reg", "Reg") 891 </div> 892 893 <div class='@(!cartDisabled ? "col-xs-5" : "col-xs-5") noPadding'> 894 <div class='@(!cartDisabled ? "col-xs-3" : "col-xs-4") noPadding'> 895 @Translate("categoryNumberShort", "Cat#") 896 </div> 897 898 <div class='@(!cartDisabled ? "col-xs-3" : "col-xs-4") noPadding'> 899 @Translate("size", "Size") 900 </div> 901 902 @if (!cartDisabled) 903 { 904 <div class="col-xs-2 noPadding"> 905 @Translate("price", "Price") 906 </div> 907 908 <div class="col-xs-1 noPadding"> 909 @Translate("quantityHeader", "Quantity") 910 </div> 911 } 912 913 </div> 914 915 </li> 916 } 917 918 @helper RenderPunchoutListViewProduct(IGrouping<string, LoopItem> group, List<LoopItem> loopProduct, int itemsCount, int prodLoopCount, string disableAddToCart) 919 { 920 var addToCart = Pageview.Area.Item["AddToCart"] != null ? Pageview.Area.Item["AddToCart"].ToString() : ""; 921 var isCartDisabled = Convert.ToBoolean(Pageview.Area.Item["DisableAddToCart"].ToString()); 922 var searchPageId = Pageview.Area.Item["Punchout_SearchResultPage"].ToString(); 923 var orderContext = Pageview.Area.Item["OrderContext"] != null ? Pageview.Area.Item["OrderContext"].ToString() : ""; 924 var navEnvironment = Pageview.Area.Item["NavEnvironment"] != null ? Pageview.Area.Item["NavEnvironment"].ToString() : ""; 925 var isExtranetUserLoggedIn = User.IsExtranetUserLoggedIn(); 926 var siteCurrency = PageView.Current().Area.EcomCurrencyId; 927 var userCurrency = isExtranetUserLoggedIn ? User.GetCurrentUser(PagePermissionLevels.Frontend).Currency : siteCurrency; 928 var longLang = (string) GetGlobalValue("Global:Area.LongLang"); 929 var isJapaneseSite = longLang.Equals("ja-JP"); 930 931 var colGroup = (!isCartDisabled ? "col-xs-offset-7" : "col-xs-offset-7"); 932 933 <li class="col-xs-12"> 934 @if (itemsCount == 1) 935 { 936 @ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct, true) 937 } 938 <ul> 939 @foreach (var product in group) 940 { 941 var productName = product.GetString("Ecom:Product:Field.ProductNameNormalized.Value"); 942 var productId = product.GetString("Ecom:Product.ID"); 943 var productLink = product.GetString("Ecom:Product.Link.Clean"); 944 var productCategory = product.GetString("Ecom:Product:Field.ProductCategory.Value"); 945 var regulatoryStatus = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.RegulatoryStatus.Value")) ? product.GetString("Ecom:Product:Field.RegulatoryStatus.Value") : "--"; 946 var productClone = Regex.Replace(product.GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim(); 947 var productReactivity = product.GetString("Ecom:Product:Field.Reactivity.Value"); 948 949 var productFormat = product.GetString("Ecom:Product:Field.Format.Value"); 950 951 var stockUS = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUS.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUS.Value.Clean") : "0"; 952 var stockUK = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUK.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUK.Value.Clean") : "0"; 953 var stockEU = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockEU.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockEU.Value.Clean") : "0"; 954 var stockControl = product.GetString("Ecom:Product:Field.StockControl.Value.Clean"); 955 956 var isComingSoon = product.GetBoolean("Ecom:Product:Field.ComingSoon.Value"); 957 958 var shouldBlockAddToCart = product.GetBoolean("Ecom:Product:Field.BlockAddToCart.Value"); 959 var blockAddToCartText = product.GetString("Ecom:Product:Field.BlockAddToCartText.Value"); 960 blockAddToCartText = blockAddToCartText.Replace("'", "&apos;"); 961 blockAddToCartText = blockAddToCartText.Replace("\r\n", ""); 962 blockAddToCartText = blockAddToCartText.Replace("\r", ""); 963 blockAddToCartText = blockAddToCartText.Replace("\n", ""); 964 bool requestQuote = product.GetBoolean("Ecom:Product:Field.RequestQuote.Value"); 965 var notifyMe = product.GetString("Ecom:Product:Field.NotifyMe.Value"); 966 967 var productVariantId = product.GetString("Ecom:Product.VariantID"); 968 var urlAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + addToCart); 969 970 var productStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 971 var productSource = product.GetString("Ecom:Product:Field.ProductSource.Value.Clean"); 972 var productVariantStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 973 var appAbbreviation = product.GetString("Ecom:Product:Field.AppAbrv.Value"); 974 var productType = GetString("Ecom:Product:Field.CMProductType.Value"); 975 var isFlexiFluor = productType.Equals("FlexiFluor"); 976 appAbbreviation = appAbbreviation.Replace(",",", "); 977 978 <li class="row list" data-variantID="@productVariantId"> 979 @if (PreviousElement != productId) 980 { 981 <h2 class="col-xs-3"> 982 <a itemprop="name" href="@productLink"> 983 @productName 984 </a> 985 </h2> 986 987 <div class="col-xs-2 noPaddingLeft"> 988 @RenderCloneFieldForSearch(productClone, searchPageId, productCategory, productReactivity, "List") 989 </div> 990 991 <div class="col-xs-1 noPadding wordWrap"> 992 @appAbbreviation 993 </div> 994 995 <div class="col-xs-1">@regulatoryStatus</div> 996 } 997 998 <div class='col-xs-5 noPadding @(PreviousElement == productId ? colGroup : "")'> 999 1000 @if(!string.IsNullOrWhiteSpace(notifyMe)){ 1001 <span style="float:right; margin-right:50px;"><a target="_blank" href="@LocalizeLinksHTML(notifyMe)">Notify Me When Available</a></span> 1002 } 1003 else{ 1004 1005 <form name="addToCart" class="add-to-cart col-xs-12 noPadding" action="@urlAction" method="POST"> 1006 <input type="hidden" name="redirect" value="@(!isExtranetUserLoggedIn)"/> 1007 <input type="hidden" name="cartcmd" value="add"/> 1008 <input type="hidden" name="productid" value="@productId"/> 1009 <input type="hidden" name="variantID" value="@productVariantId"/> 1010 @if (!string.IsNullOrWhiteSpace(orderContext)) 1011 { 1012 <input type="hidden" name="OrderContext" value="@orderContext"/> 1013 } 1014 1015 @* WebId Section *@ 1016 @if (isJapaneseSite && (regulatoryStatus.Equals("IVD") || productId.Equals("11573"))) 1017 { 1018 <div class='@(!isCartDisabled ? "col-xs-2" : "col-xs-4") noPadding'> 1019 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1020 </div> 1021 } 1022 else if (!isComingSoon) 1023 { 1024 <div class='@(!isCartDisabled ? "col-xs-3" : "col-xs-4") noPadding'> 1025 @product.GetString("Ecom:Product.Number") 1026 </div> 1027 } 1028 else 1029 { 1030 <div class='@(!isCartDisabled ? "col-xs-3" : "col-xs-4") noPadding'> 1031 @Translate("comingSoon", "Coming Soon") 1032 </div> 1033 } 1034 1035 @* Catalog number Section *@ 1036 <div class='@(!isCartDisabled ? "col-xs-3" : "col-xs-4") noPadding'> 1037 @product.GetString("Ecom:Product.VariantText") 1038 </div> 1039 1040 @* Price Section *@ 1041 <div class='@(!isCartDisabled ? "col-xs-2" : "col-xs-4") noPadding'> 1042 @if (isJapaneseSite && productFormat.Contains("GOINVIVO") && !productVariantId.Equals("5mg")) 1043 { 1044 @Translate("PleaseContactUs", "Please Contact Us") 1045 } 1046 else if(isJapaneseSite && isFlexiFluor) 1047 { 1048 <div>お問い合わせください</div> 1049 } 1050 else if (isJapaneseSite && shouldBlockAddToCart) 1051 { 1052 <div> 1053 <p class="coming-soon">@blockAddToCartText</p> 1054 </div> 1055 } 1056 else if (isJapaneseSite && @product.GetString("Ecom:Product.Number").Equals("423555")) 1057 { 1058 <span class="withBreak" itemprop="price">@RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, false, true)</span> 1059 } 1060 else if (requestQuote) 1061 { 1062 <div><a href="@LocalizeLinksHTML("dwcountry/contact-local-rep")" target="_blank">Get a Quote</a></div> 1063 } 1064 else if (productId.Equals("10801") && !longLang.Equals("en-US")) 1065 { 1066 @Translate("addToCartForPrice", "Add to cart for price.") 1067 } 1068 else 1069 { 1070 @* TODO: Revisit this with Sean Tucker. We may not need this workaround in DW9.9 *@ 1071 <span class="withBreak" itemprop="price">@RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, false, true)</span> 1072 } 1073 </div> 1074 1075 @* Add to cart Section *@ 1076 @if (!isCartDisabled && !(productName.Contains("Flex-T") && productName.Contains("Custom"))) 1077 { 1078 <div class="col-xs-1 noPadding"> 1079 @if (!productVariantStatus.Equals(3) && !isComingSoon && !shouldBlockAddToCart) 1080 { 1081 <input data-reservedStock='@product.GetString("Ecom:Product.AvailableAmount")' data-productStatus="@productStatus" data-stockControl='@stockControl.ToLower()' data-stocktranslate='@Translate("currentStock", "The current stock is")' data-stock='@(navEnvironment.Equals("US") ? stockUS : stockUK)' type="text" name="quantity" value="1" size="3" class="productQTYRequestBox"/> 1082 } 1083 </div> 1084 1085 <div class="col-xs-1"> 1086 @if (shouldBlockAddToCart) 1087 { 1088 <button onClick="alert('@blockAddToCartText'); return false;" title="@blockAddToCartText"> 1089 <i class="fa fa-times-circle"></i> 1090 </button> 1091 } 1092 else if (productName.Contains("Capture Bead") || (productName.Contains("LEGENDplex") && (productName.Contains("Standard") || productName.Contains("Detection Antibodies") || productName.Contains("Detection Abs") || productName.Contains("Buffer Set")))) 1093 { 1094 <button title="@Translate("mixAndMatch", "Mix & Match")"> 1095 <i class="fa fa-shopping-cart"></i> 1096 </button> 1097 } 1098 else if (isComingSoon) 1099 { 1100 @:&nbsp; 1101 } 1102 else if (userCurrency != siteCurrency) 1103 { 1104 <span class="inputSubmit" data-toggle="tooltip" title="@(Translate("CurrencyMissmatch", "Your currency does not match the websites currency. Please navigate to the proper page."))"> 1105 <button type="submit" disabled> 1106 <i class="fa fa-shopping-cart"></i> 1107 </button> 1108 </span> 1109 } 1110 else if (string.IsNullOrWhiteSpace(productSource)) 1111 { 1112 <span class="inputSubmit" data-toggle="tooltip" title="@(Translate("ProductNotAvailable", "This product is not currently available."))"> 1113 <button type="submit" disabled> 1114 <i class="fa fa-shopping-cart"></i> 1115 </button> 1116 </span> 1117 } 1118 else 1119 { 1120 <button @disableAddToCart type="submit"> 1121 <i class="fa fa-shopping-cart"></i> 1122 </button> 1123 } 1124 </div> 1125 } 1126 </form> 1127 } 1128 </div> 1129 </li> 1130 1131 PreviousElement = group.Key; 1132 } 1133 </ul> 1134 @if (itemsCount == prodLoopCount) 1135 { 1136 @ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct) 1137 } 1138 </li> 1139 } 1140 1141 @helper RenderListViewProduct(IGrouping<string, LoopItem> group, List<LoopItem> loopProduct, int itemsCount, int prodLoopCount, string disableAddToCart) 1142 { 1143 var addToCart = Pageview.Area.Item["AddToCart"] != null ? Pageview.Area.Item["AddToCart"].ToString() : ""; 1144 var cartDisabled = Convert.ToBoolean(Pageview.Area.Item["DisableAddToCart"].ToString()); 1145 var searchPageID = Pageview.Area.Item["SearchResults"].ToString(); 1146 var orderContext = Pageview.Area.Item["OrderContext"] != null ? Pageview.Area.Item["OrderContext"].ToString() : ""; 1147 var navEnvironment = Pageview.Area.Item["NavEnvironment"] != null ? Pageview.Area.Item["NavEnvironment"].ToString() : ""; 1148 var bol_userLogged = User.IsExtranetUserLoggedIn(); 1149 var siteCurrency = PageView.Current().Area.EcomCurrencyId; 1150 var userCurrency = bol_userLogged ? User.GetCurrentUser(PagePermissionLevels.Frontend).Currency : siteCurrency; 1151 var longLang = (string) GetGlobalValue("Global:Area.LongLang"); 1152 1153 var colGroup = (!cartDisabled ? "col-xs-offset-7" : "col-xs-offset-7"); 1154 var productTypes = GetProductTypes(); 1155 1156 <li class="col-xs-12"> 1157 @if (itemsCount == 1) 1158 { 1159 @ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct, true) 1160 } 1161 <ul> 1162 @foreach (var product in group) 1163 { 1164 //var str_productName = product.GetString("Ecom:Product.Name"); 1165 var str_productName = product.GetString("Ecom:Product:Field.ProductNameNormalized.Value"); 1166 var str_productID = product.GetString("Ecom:Product.ID"); 1167 var str_link = "/Default.aspx?id=" + GetPageIdByNavigationTag("ProductDetail") + "&ProductId=" + str_productID; 1168 var excludeAB = product.GetBoolean("Ecom:Product:Field.ExcludeAB.Value"); 1169 var productType = product.GetString("Ecom:Product:Field.CMProductType.Value"); 1170 var productCategory = product.GetString("Ecom:Product:Field.ProductCategory.Value"); 1171 var regulatoryStatus = product.GetString("Ecom:Product:Field.RegulatoryStatus.Value"); 1172 var productClone = Regex.Replace(product.GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim(); 1173 var productReactivity = product.GetString("Ecom:Product:Field.Reactivity.Value"); 1174 1175 1176 var str_productImage = product.GetString("Ecom:Product.ImageSmall.Clean"); 1177 var str_productImageMedium = product.GetString("Ecom:Product.ImageMedium.Clean"); 1178 var str_productImageLarge = product.GetString("Ecom:Product.ImageLarge.Clean"); 1179 var str_productImage4 = product.GetString("Ecom:Product:Field.Image4Path.Value.Clean"); 1180 1181 var str_image1Description = product.GetString("Ecom:Product:Field.Image1Description.Value"); 1182 var str_image2Description = product.GetString("Ecom:Product:Field.Image2Description.Value"); 1183 var str_image3Description = product.GetString("Ecom:Product:Field.Image3Description.Value"); 1184 var str_image4Description = product.GetString("Ecom:Product:Field.Image4Description.Value"); 1185 1186 var str_image1Title = product.GetString("Ecom:Product:Field.Image1Title.Value"); 1187 var str_image2Title = product.GetString("Ecom:Product:Field.Image2Title.Value"); 1188 var str_image3Title = product.GetString("Ecom:Product:Field.Image3Title.Value"); 1189 var str_image4Title = product.GetString("Ecom:Product:Field.Image4Title.Value"); 1190 1191 var str_productImage5 = product.GetString("Ecom:Product:Field.Image5Path.Value.Clean"); 1192 var str_image5Description = product.GetString("Ecom:Product:Field.Image5Description.Value"); 1193 var str_image5Title = product.GetString("Ecom:Product:Field.Image5Title.Value"); 1194 1195 var str_productImage6 = product.GetString("Ecom:Product:Field.Image6Path.Value.Clean"); 1196 var str_image6Description = product.GetString("Ecom:Product:Field.Image6Description.Value"); 1197 var str_image6Title = product.GetString("Ecom:Product:Field.Image6Title.Value"); 1198 1199 var str_productFormat = product.GetString("Ecom:Product:Field.Format.Value"); 1200 1201 var stockUS = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUS.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUS.Value.Clean") : "0"; 1202 var stockUK = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUK.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUK.Value.Clean") : "0"; 1203 var stockEU = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockEU.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockEU.Value.Clean") : "0"; 1204 var stockControl = product.GetString("Ecom:Product:Field.StockControl.Value.Clean"); 1205 1206 var isComingSoon = product.GetBoolean("Ecom:Product:Field.ComingSoon.Value"); 1207 1208 var blockAddToCart = product.GetBoolean("Ecom:Product:Field.BlockAddToCart.Value"); 1209 var blockAddToCartText = product.GetString("Ecom:Product:Field.BlockAddToCartText.Value"); 1210 blockAddToCartText = blockAddToCartText.Replace("'", "&apos;"); 1211 blockAddToCartText = blockAddToCartText.Replace("\r\n", ""); 1212 blockAddToCartText = blockAddToCartText.Replace("\r", ""); 1213 blockAddToCartText = blockAddToCartText.Replace("\n", ""); 1214 bool requestQuote = product.GetBoolean("Ecom:Product:Field.RequestQuote.Value"); 1215 var notifyMe = product.GetString("Ecom:Product:Field.NotifyMe.Value"); 1216 1217 var lst_images = new List<Tuple<string, string, string>>(); 1218 1219 if (!String.IsNullOrEmpty(str_productImage)) 1220 { 1221 lst_images.Add(new Tuple<string, string, string>(str_productImage, str_image1Title, str_image1Description)); 1222 } 1223 if (!String.IsNullOrEmpty(str_productImageMedium)) 1224 { 1225 lst_images.Add(new Tuple<string, string, string>(str_productImageMedium, str_image2Title, str_image2Description)); 1226 } 1227 if (!String.IsNullOrEmpty(str_productImageLarge)) 1228 { 1229 lst_images.Add(new Tuple<string, string, string>(str_productImageLarge, str_image3Title, str_image3Description)); 1230 } 1231 if (!String.IsNullOrEmpty(str_productImage4)) 1232 { 1233 lst_images.Add(new Tuple<string, string, string>(str_productImage4, str_image4Title, str_image4Description)); 1234 } 1235 if (!String.IsNullOrEmpty(str_productImage5)) 1236 { 1237 lst_images.Add(new Tuple<string, string, string>(str_productImage5, str_image5Title, str_image5Description)); 1238 } 1239 if (!String.IsNullOrEmpty(str_productImage6)) 1240 { 1241 lst_images.Add(new Tuple<string, string, string>(str_productImage6, str_image6Title, str_image6Description)); 1242 } 1243 1244 var str_productVariantID = product.GetString("Ecom:Product.VariantID"); 1245 var urlAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + addToCart); 1246 var productFieldType = ""; 1247 if (productTypes.ContainsKey(productType)) 1248 { 1249 productFieldType = productTypes[productType]; 1250 } 1251 1252 var productStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 1253 var productSource = product.GetString("Ecom:Product:Field.ProductSource.Value.Clean"); 1254 var productVariantStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 1255 var appAbbreviation = product.GetString("Ecom:Product:Field.AppAbrv.Value"); 1256 var productType = GetString("Ecom:Product:Field.CMProductType.Value"); 1257 var isFlexiFluor = productType.Equals("FlexiFluor"); 1258 appAbbreviation = appAbbreviation.Replace(",",", "); 1259 1260 //str_productName = CalculateProductName(str_productName, productFieldType, str_productFormat, excludeAB); 1261 1262 <li class="row list" data-variantID="@str_productVariantID"> 1263 @if (PreviousElement != str_productID) 1264 { 1265 <h2 class="col-xs-3"> 1266 <a itemprop="name" href="@str_link"> 1267 @str_productName 1268 </a> 1269 </h2> 1270 1271 <div class='@(!cartDisabled ? "col-xs-2" : "col-xs-2") noPaddingLeft'> 1272 @RenderCloneFieldForSearch(productClone, searchPageID, productCategory, productReactivity, "List") 1273 </div> 1274 1275 <div class="col-xs-1 noPadding wordWrap"> 1276 <a href="@LocalizeLinksHTML("dwcountry/abbreviations")" target="_blank" title='@Translate("ViewAbbreviationDescriptions", "View abbreviation descriptions")'> 1277 @appAbbreviation 1278 </a> 1279 </div> 1280 1281 <div class="col-xs-1"> 1282 @if (!String.IsNullOrWhiteSpace(regulatoryStatus)) 1283 { 1284 @regulatoryStatus 1285 } 1286 else 1287 { 1288 <text>--</text> 1289 } 1290 </div> 1291 } 1292 1293 <div class='@(!cartDisabled ? "col-xs-5" : "col-xs-5") noPadding @(PreviousElement == str_productID ? colGroup : "")'> 1294 1295 @if(!string.IsNullOrWhiteSpace(notifyMe)){ 1296 <span style="float:right; margin-right:50px;"><a href="@LocalizeLinksHTML(notifyMe)">Notify Me When Available</a></span> 1297 } 1298 else{ 1299 1300 <form name="addToCart" class="add-to-cart col-xs-12 noPadding" action="@urlAction" method="POST"> 1301 @if (bol_userLogged) 1302 { 1303 <input type="hidden" name="redirect" value="false"/> 1304 } 1305 <input type="hidden" name="cartcmd" value="add"/> 1306 <input type="hidden" name="productid" value="@str_productID"/> 1307 <input type="hidden" name="variantID" value="@str_productVariantID"/> 1308 @if (!string.IsNullOrWhiteSpace(orderContext)) 1309 { 1310 <input type="hidden" name="OrderContext" value="@orderContext"/> 1311 } 1312 1313 @if ((longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) || (longLang.Equals("ja-JP") && str_productID.Equals("11573"))) 1314 { 1315 <div class='@(!cartDisabled ? "col-xs-2" : "col-xs-4") noPadding'> 1316 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1317 </div> 1318 } 1319 else 1320 { 1321 <div class='@(!cartDisabled ? "col-xs-3" : "col-xs-4") noPadding'> 1322 @if (!isComingSoon) 1323 { 1324 @product.GetString("Ecom:Product.Number") 1325 } 1326 else 1327 { 1328 @Translate("comingSoon", "Coming Soon") 1329 } 1330 </div> 1331 } 1332 1333 <div class='@(!cartDisabled ? "col-xs-3" : "col-xs-4") noPadding'> 1334 @product.GetString("Ecom:Product.VariantText") 1335 </div> 1336 1337 <div class='@(!cartDisabled ? "col-xs-2" : "col-xs-4") noPadding'> 1338 @if (longLang.Equals("ja-JP") && str_productFormat.Contains("GOINVIVO") && !str_productVariantID.Equals("5mg")) 1339 { 1340 @Translate("PleaseContactUs", "Please Contact Us") 1341 } 1342 else if(longLang.Equals("ja-JP") && isFlexiFluor) 1343 { 1344 <div>お問い合わせください</div> 1345 } 1346 else if (longLang.Equals("ja-JP") && blockAddToCart) 1347 { 1348 <div> 1349 <p class="coming-soon">@blockAddToCartText</p> 1350 </div> 1351 } 1352 else if (longLang.Equals("ja-JP") && @product.GetString("Ecom:Product.Number").Equals("423555")) 1353 { 1354 <span class="withBreak" itemprop="price">@RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)</span> 1355 } 1356 else if (requestQuote) 1357 { 1358 <div><a href="@LocalizeLinksHTML("dwcountry/contact-local-rep")" target="_blank">Get a Quote</a></div> 1359 } 1360 else if (str_productID.Equals("10801") && !longLang.Equals("en-US")) 1361 { 1362 @Translate("addToCartForPrice", "Add to cart for price.") 1363 } 1364 else if (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) 1365 { 1366 } 1367 else if ((longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) || (longLang.Equals("ja-JP") && str_productID.Equals("11573"))) 1368 { 1369 } 1370 else 1371 { 1372 @* TODO: Revisit this with Sean Tucker. We may not need this workaround in DW9.9 *@ 1373 <span class="withBreak" itemprop="price">@RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)</span> 1374 } 1375 </div> 1376 1377 @if (!cartDisabled && !(str_productName.Contains("Flex-T") && str_productName.Contains("Custom"))) 1378 { 1379 <div class="col-xs-1 noPadding"> 1380 @if (!productVariantStatus.Equals(3) && !isComingSoon && !blockAddToCart) 1381 { 1382 <input data-reservedStock='@product.GetString("Ecom:Product.AvailableAmount")' data-productStatus="@productStatus" data-stockControl='@stockControl.ToLower()' data-stocktranslate='@Translate("currentStock", "The current stock is")' data-stock='@(navEnvironment.Equals("US") ? stockUS : stockUK)' type="text" name="quantity" value="1" size="3" class="productQTYRequestBox"/> 1383 } 1384 </div> 1385 1386 <div class="col-xs-1"> 1387 @if (blockAddToCart) 1388 { 1389 <button onClick="alert('@blockAddToCartText'); return false;" title="@blockAddToCartText"> 1390 <i class="fa fa-times-circle"></i> 1391 </button> 1392 } 1393 else 1394 { 1395 if (str_productName.Contains("Capture Bead") || (str_productName.Contains("LEGENDplex") && (str_productName.Contains("Standard") || str_productName.Contains("Detection Antibodies") || str_productName.Contains("Detection Abs") || str_productName.Contains("Buffer Set")))) 1396 { 1397 <button onClick="mixMatchProductRedirect('@longLang'); return false;" title="@Translate("mixAndMatch", "Mix & Match")"> 1398 <i class="fa fa-shopping-cart"></i> 1399 </button> 1400 } 1401 else if (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) 1402 { 1403 } 1404 else if ((longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) || (longLang.Equals("ja-JP") && str_productID.Equals("11573"))) 1405 { 1406 } 1407 else 1408 { 1409 if (isComingSoon) 1410 { 1411 @:&nbsp; 1412 } 1413 else if (userCurrency != siteCurrency) 1414 { 1415 <span class="inputSubmit" data-toggle="tooltip" title="@(Translate("CurrencyMissmatch", "Your currency does not match the websites currency. Please navigate to the proper page."))"> 1416 <button type="submit" disabled> 1417 <i class="fa fa-shopping-cart"></i> 1418 </button> 1419 </span> 1420 } 1421 else if (string.IsNullOrWhiteSpace(productSource)) 1422 { 1423 <span class="inputSubmit" data-toggle="tooltip" title="@(Translate("ProductNotAvailable", "This product is not currently available."))"> 1424 <button type="submit" disabled> 1425 <i class="fa fa-shopping-cart"></i> 1426 </button> 1427 </span> 1428 } 1429 else 1430 { 1431 <button @disableAddToCart type="submit"> 1432 <i class="fa fa-shopping-cart"></i> 1433 </button> 1434 } 1435 } 1436 } 1437 </div> 1438 } 1439 </form> 1440 } 1441 </div> 1442 </li> 1443 1444 PreviousElement = group.Key; 1445 } 1446 </ul> 1447 @if (itemsCount == prodLoopCount) 1448 { 1449 @ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct) 1450 } 1451 </li> 1452 } 1453 1454 @helper RenderDetailViewProduct(IGrouping<string, LoopItem> group, List<LoopItem> loopProduct, int itemsCount, int prodLoopCount, string disableAddToCart) 1455 { 1456 var addToCart = Pageview.Area.Item["AddToCart"] != null ? Pageview.Area.Item["AddToCart"].ToString() : ""; 1457 var cartDisabled = Convert.ToBoolean(Pageview.Area.Item["DisableAddToCart"].ToString()); 1458 var searchPageID = Pageview.Area.Item["SearchResults"].ToString(); 1459 var orderContext = Pageview.Area.Item["OrderContext"] != null ? Pageview.Area.Item["OrderContext"].ToString() : ""; 1460 var navEnvironment = Pageview.Area.Item["NavEnvironment"] != null ? Pageview.Area.Item["NavEnvironment"].ToString() : ""; 1461 var bol_userLogged = User.IsExtranetUserLoggedIn(); 1462 var siteCurrency = PageView.Current().Area.EcomCurrencyId; 1463 var userCurrency = bol_userLogged ? User.GetCurrentUser(PagePermissionLevels.Frontend).Currency : siteCurrency; 1464 var longLang = (string) GetGlobalValue("Global:Area.LongLang"); 1465 1466 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); //CUSTOM CODE 1467 1468 var colGroup = (!cartDisabled ? "col-xs-offset-7" : "col-xs-offset-7"); 1469 var productTypes = GetProductTypes(); 1470 1471 <li class="col-xs-12"> 1472 @if (itemsCount == 1) 1473 { 1474 @ShowTextAboutMoreOptionsInPreviousOrNextPages(loopProduct, true) 1475 } 1476 <ul> 1477 @foreach (var product in group) 1478 { 1479 var str_starClass = ""; 1480 var str_halfStar = ""; 1481 1482 var str_productName = product.GetString("Ecom:Product:Field.ProductNameNormalized.Value"); 1483 var str_productID = product.GetString("Ecom:Product.ID"); 1484 var str_link = "/Default.aspx?id=" + GetPageIdByNavigationTag("ProductDetail") + "&ProductId=" + str_productID; 1485 var excludeAB = product.GetBoolean("Ecom:Product:Field.ExcludeAB.Value"); 1486 var productType = product.GetString("Ecom:Product:Field.CMProductType.Value"); 1487 var productCategory = product.GetString("Ecom:Product:Field.ProductCategory.Value"); 1488 var regulatoryStatus = product.GetString("Ecom:Product:Field.RegulatoryStatus.Value"); 1489 var productClone = Regex.Replace(product.GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim(); 1490 var productReactivity = product.GetString("Ecom:Product:Field.Reactivity.Value"); 1491 1492 var str_productImage = product.GetString("Ecom:Product.ImageSmall.Clean"); 1493 var str_productImageMedium = product.GetString("Ecom:Product.ImageMedium.Clean"); 1494 var str_productImageLarge = product.GetString("Ecom:Product.ImageLarge.Clean"); 1495 var str_productImage4 = product.GetString("Ecom:Product:Field.Image4Path.Value.Clean"); 1496 1497 var str_image1Description = product.GetString("Ecom:Product:Field.Image1Description.Value"); 1498 var str_image2Description = product.GetString("Ecom:Product:Field.Image2Description.Value"); 1499 var str_image3Description = product.GetString("Ecom:Product:Field.Image3Description.Value"); 1500 var str_image4Description = product.GetString("Ecom:Product:Field.Image4Description.Value"); 1501 1502 var str_image1Title = product.GetString("Ecom:Product:Field.Image1Title.Value"); 1503 var str_image2Title = product.GetString("Ecom:Product:Field.Image2Title.Value"); 1504 var str_image3Title = product.GetString("Ecom:Product:Field.Image3Title.Value"); 1505 var str_image4Title = product.GetString("Ecom:Product:Field.Image4Title.Value"); 1506 1507 var str_productImage5 = product.GetString("Ecom:Product:Field.Image5Path.Value.Clean"); 1508 var str_image5Description = product.GetString("Ecom:Product:Field.Image5Description.Value"); 1509 var str_image5Title = product.GetString("Ecom:Product:Field.Image5Title.Value"); 1510 1511 var str_productImage6 = product.GetString("Ecom:Product:Field.Image6Path.Value.Clean"); 1512 var str_image6Description = product.GetString("Ecom:Product:Field.Image6Description.Value"); 1513 var str_image6Title = product.GetString("Ecom:Product:Field.Image6Title.Value"); 1514 1515 var str_productGetImage = GetImage(str_productImage, 140, 0, 0, 0, 0, 0, "jpg", 90); 1516 var str_productGetImageMedium = GetImage(str_productImageMedium, 140, 0, 0, 0, 0, 0, "jpg", 90); 1517 var str_productGetImageLarge = GetImage(str_productImageLarge, 140, 0, 0, 0, 0, 0, "jpg", 90); 1518 var str_productGetImage4 = GetImage(str_productImage4, 140, 0, 0, 0, 0, 0, "jpg", 90); 1519 var str_productGetImage5 = GetImage(str_productImage5, 140, 0, 0, 0, 0, 0, "jpg", 90); 1520 var str_productGetImage6 = GetImage(str_productImage6, 140, 0, 0, 0, 0, 0, "jpg", 90); 1521 1522 var str_productFormat = product.GetString("Ecom:Product:Field.Format.Value"); 1523 1524 var stockUS = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUS.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUS.Value.Clean") : "0"; 1525 var stockUK = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockUK.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockUK.Value.Clean") : "0"; 1526 var stockEU = !string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.StockEU.Value.Clean")) ? product.GetString("Ecom:Product:Field.StockEU.Value.Clean") : "0"; 1527 var stockControl = product.GetString("Ecom:Product:Field.StockControl.Value.Clean"); 1528 1529 var isComingSoon = product.GetBoolean("Ecom:Product:Field.ComingSoon.Value"); 1530 var DCSoon = product.GetString("Ecom:Product:Field.DCSoon.Value"); 1531 var notifyMe = product.GetString("Ecom:Product:Field.NotifyMe.Value"); 1532 1533 var blockAddToCart = product.GetBoolean("Ecom:Product:Field.BlockAddToCart.Value"); 1534 var blockAddToCartText = product.GetString("Ecom:Product:Field.BlockAddToCartText.Value"); 1535 blockAddToCartText = blockAddToCartText.Replace("'", "&apos;"); 1536 blockAddToCartText = blockAddToCartText.Replace("\r\n", ""); 1537 blockAddToCartText = blockAddToCartText.Replace("\r", ""); 1538 blockAddToCartText = blockAddToCartText.Replace("\n", ""); 1539 1540 var lst_images = new List<Tuple<string, string, string>>(); 1541 1542 if (!String.IsNullOrEmpty(str_productImage)) 1543 { 1544 lst_images.Add(new Tuple<string, string, string>(str_productImage, str_image1Title, str_image1Description)); 1545 } 1546 if (!String.IsNullOrEmpty(str_productImageMedium)) 1547 { 1548 lst_images.Add(new Tuple<string, string, string>(str_productImageMedium, str_image2Title, str_image2Description)); 1549 } 1550 if (!String.IsNullOrEmpty(str_productImageLarge)) 1551 { 1552 lst_images.Add(new Tuple<string, string, string>(str_productImageLarge, str_image3Title, str_image3Description)); 1553 } 1554 if (!String.IsNullOrEmpty(str_productImage4)) 1555 { 1556 lst_images.Add(new Tuple<string, string, string>(str_productImage4, str_image4Title, str_image4Description)); 1557 } 1558 if (!String.IsNullOrEmpty(str_productImage5)) 1559 { 1560 lst_images.Add(new Tuple<string, string, string>(str_productImage5, str_image5Title, str_image5Description)); 1561 } 1562 if (!String.IsNullOrEmpty(str_productImage6)) 1563 { 1564 lst_images.Add(new Tuple<string, string, string>(str_productImage6, str_image6Title, str_image6Description)); 1565 } 1566 1567 var str_productVariantID = product.GetString("Ecom:Product.VariantID"); 1568 var urlAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + addToCart); 1569 var productFieldType = ""; 1570 if (productTypes.ContainsKey(productType)) 1571 { 1572 productFieldType = productTypes[productType]; 1573 } 1574 1575 var productStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 1576 var productSource = product.GetString("Ecom:Product:Field.ProductSource.Value.Clean"); 1577 var productVariantStatus = product.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 1578 1579 var requestQuote = GetBoolean("Ecom:Product:Field.RequestQuote"); 1580 var appAbbreviation = product.GetString("Ecom:Product:Field.AppAbrv.Value"); 1581 var productType = GetString("Ecom:Product:Field.CMProductType.Value"); 1582 var isFlexiFluor = productType.Equals("FlexiFluor"); 1583 appAbbreviation = appAbbreviation.Replace(",",", "); 1584 1585 1586 //str_productName = CalculateProductName(str_productName, productFieldType, str_productFormat, excludeAB); 1587 1588 <div class="row detailed"> 1589 @if (PreviousElement != str_productID) 1590 { 1591 <h2 class="col-xs-12"> 1592 <a itemprop="name" href="@str_link"> 1593 @str_productName 1594 </a> 1595 </h2> 1596 } 1597 1598 @if (PreviousElement != str_productID) 1599 { 1600 <div class="col-xs-7 noPadding"> 1601 <dl class="col-xs-12 noPadding"> 1602 @if (!string.IsNullOrWhiteSpace(productClone)) 1603 { 1604 <dt class="col-xs-6"> 1605 <b>@Translate("Clone", "Clone")</b> 1606 </dt> 1607 <dd class="col-xs-6"> 1608 @RenderCloneFieldForSearch(productClone, searchPageID, productCategory, productReactivity, "Detail") 1609 </dd> 1610 } 1611 1612 @if (!string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.Specificity.Value"))) 1613 { 1614 <dt class="col-xs-6"> 1615 <b>@product.GetString("Ecom:Product:Field.Specificity.Name")</b> 1616 </dt> 1617 <dd class="col-xs-6"> 1618 @product.GetString("Ecom:Product:Field.Specificity.Value") 1619 </dd> 1620 } 1621 1622 @if (!string.IsNullOrWhiteSpace(productReactivity)) 1623 { 1624 <dt class="col-xs-6"> 1625 <b>@product.GetString("Ecom:Product:Field.Reactivity.Name")</b> 1626 </dt> 1627 <dd class="col-xs-6"> 1628 @productReactivity 1629 </dd> 1630 } 1631 1632 @if (!string.IsNullOrWhiteSpace(appAbbreviation)) 1633 { 1634 <dt class="col-xs-6"> 1635 <b>@product.GetString("Ecom:Product:Field.Applications.Name")</b> 1636 </dt> 1637 <dd class="col-xs-6"> 1638 <a href="@LocalizeLinksHTML("dwcountry/abbreviations")" target="_blank" title='@Translate("ViewAbbreviationDescriptions", "View abbreviation descriptions")'> 1639 @appAbbreviation 1640 </a> 1641 </dd> 1642 } 1643 1644 @if (!string.IsNullOrWhiteSpace(product.GetString("Ecom:Product:Field.RegulatoryStatus.Value"))) 1645 { 1646 <dt class="col-xs-6"> 1647 <b>@product.GetString("Ecom:Product:Field.RegulatoryStatus.Name")</b> 1648 </dt> 1649 <dd class="col-xs-6"> 1650 @product.GetString("Ecom:Product:Field.RegulatoryStatus.Value") 1651 </dd> 1652 } 1653 1654 @{ 1655 string pattern = @"\<[^>]*\>"; 1656 Regex rgx = new Regex(pattern); 1657 string otherNamesValue = rgx.Replace(product.GetString("Ecom:Product:Field.OtherNames.Value"), String.Empty); 1658 } 1659 @if (!String.IsNullOrWhiteSpace(otherNamesValue)) 1660 { 1661 <dt class="col-xs-6"> 1662 <b>@product.GetString("Ecom:Product:Field.OtherNames.Name")</b> 1663 </dt> 1664 <dd class="col-xs-6"> 1665 @product.GetString("Ecom:Product:Field.OtherNames.Value") 1666 </dd> 1667 } 1668 1669 @if (product.GetInteger("Ecom:Product.Rating") > 0) 1670 { 1671 <dt class="col-xs-6"> 1672 <b>@Translate("rating", "Rating")</b> 1673 </dt> 1674 <dd class="col-xs-6"> 1675 <ul class="rating"> 1676 @for (int s = 5; s > 0; s--) 1677 { 1678 if (s == Math.Ceiling(product.GetDouble("Ecom:Product.Rating"))) 1679 { 1680 str_starClass = "class='star'"; 1681 str_halfStar = !(product.GetDouble("Ecom:Product.Rating") - Math.Round(product.GetDouble("Ecom:Product.Rating")) == 0) ? "fa-star-half" : "fa-star"; 1682 } 1683 else if (s > Math.Ceiling(product.GetDouble("Ecom:Product.Rating"))) 1684 { 1685 str_halfStar = "fa-star"; 1686 } 1687 else 1688 { 1689 str_starClass = ""; 1690 str_halfStar = "fa-star"; 1691 } 1692 1693 <li data-star="@s" @str_starClass> 1694 <i class="fa @str_halfStar"></i> 1695 </li> 1696 } 1697 </ul> 1698 </dd> 1699 } 1700 1701 </dl> 1702 </div> 1703 } 1704 1705 <div class="col-xs-5 noPadding"> 1706 @if (PreviousElement != str_productID) 1707 { 1708 string catNoLen = "col-xs-2"; 1709 if (longLang.Equals("ja-JP")) 1710 { 1711 catNoLen = "col-xs-4"; 1712 } 1713 else if (cartDisabled) 1714 { 1715 catNoLen = "col-xs-4"; 1716 } 1717 else 1718 { 1719 catNoLen = "col-xs-2"; 1720 } 1721 1722 if(!string.IsNullOrWhiteSpace(notifyMe)){ 1723 1724 <div style="padding-bottom:25px;"><a href="@LocalizeLinksHTML(notifyMe)" class="btn btn-primary" style="color:#FFF; text-decoration:none;">Notify Me When Available</a></div> 1725 1726 } 1727 else{ 1728 1729 <ul> 1730 <li> 1731 <form name="addToCart" class="add-to-cart col-xs-12 noPadding" action="@urlAction" method="POST"> 1732 1733 <input type="hidden" name="redirect" value="false"/> 1734 <input type="hidden" name="cartcmd" value="add"/> 1735 <input type="hidden" name="productid" value="@str_productID"/> 1736 <input type="hidden" name="variantID" value="@str_productVariantID"/> 1737 @if (!string.IsNullOrWhiteSpace(orderContext)) 1738 { 1739 <input type="hidden" name="OrderContext" value="@orderContext"/> 1740 } 1741 1742 <div class="@catNoLen noPadding paddingT40"> 1743 @if (longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) 1744 { 1745 <text>&nbsp;</text> 1746 } 1747 else 1748 { 1749 if (!isComingSoon) 1750 { 1751 @product.GetString("Ecom:Product.Number") 1752 } 1753 else 1754 { 1755 @Translate("comingSoon", "Coming Soon") 1756 } 1757 } 1758 </div> 1759 1760 <div class="col-xs-2 noPadding"> 1761 <span class="title"> 1762 <b>@Translate("size", "Size")</b> 1763 </span> 1764 @product.GetString("Ecom:Product.VariantText") 1765 </div> 1766 1767 <div class="col-xs-2 noPadding"> 1768 <span class="title" data-lang="@longLang" data-format="@str_productFormat" data-variant="@str_productVariantID"> 1769 <b>@Translate("price", "Price")</b> 1770 </span> 1771 @if (longLang.Equals("ja-JP") && str_productFormat.Contains("GoInVivo") && !str_productVariantID.Equals("5mg")) 1772 { 1773 @Translate("PleaseContactUs", "Please Contact Us") 1774 } 1775 else if(longLang.Equals("ja-JP") && isFlexiFluor) 1776 { 1777 <div>お問い合わせください</div> 1778 } 1779 else if (longLang.Equals("ja-JP") && blockAddToCart) 1780 { 1781 <div> 1782 <p class="coming-soon">@blockAddToCartText</p> 1783 </div> 1784 } 1785 else if (longLang.Equals("ja-JP") && @product.GetString("Ecom:Product.Number").Equals("423555")) 1786 { 1787 <span class="withBreak" itemprop="price">@RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)</span> 1788 } 1789 else if (requestQuote) 1790 { 1791 <div> 1792 <a href="@LocalizeLinksHTML("dwcountry/contact-local-rep")" target="_blank">Get a Quote</a> 1793 </div> 1794 } 1795 else if (str_productID.Equals("10801") && !longLang.Equals("en-US")) 1796 { 1797 @Translate("addToCartForPrice", "Add to cart for price.") 1798 } 1799 else if (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) 1800 { 1801 } 1802 else if (longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD")) 1803 { 1804 } 1805 else 1806 { 1807 @* TODO: Revisit this with Sean Tucker. We may not need this workaround in DW9.9 *@ 1808 <span class="withBreak" itemprop="price">@RoundPrice(product.GetDouble("Ecom:Product.Price.PricePIP"), true, true, false)</span> 1809 } 1810 </div> 1811 1812 @if (!cartDisabled && !(str_productName.Contains("Flex-T") && str_productName.Contains("Custom")) && !(longLang.Equals("ja-JP") && regulatoryStatus.Equals("IVD"))) 1813 { 1814 <div class="col-xs-2 noPaddingRight"> 1815 <span class="title"> 1816 <b>@Translate("quantityVariant", "Quantity")</b> 1817 </span> 1818 @if (!productVariantStatus.Equals(3) && !isComingSoon && !blockAddToCart) 1819 { 1820 <input data-reservedStock='@product.GetString("Ecom:Product.AvailableAmount")' data-productStatus="@productStatus" data-stockControl='@stockControl.ToLower()' data-stocktranslate='@Translate("currentStock", "The current stock is"