Error compiling template "/Designs/Dwsimple/Paragraph/AjaxSearchProducts.cshtml"
Line 72: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 72: The type or namespace name 'Input' does not exist in the namespace 'Dynamicweb' (are you missing an assembly reference?)
Line 92: The variable 'hide' is assigned but its value is never used

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 2 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 using System.Linq; 20 21 #line 3 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 22 using System.Web; 23 24 #line default 25 #line hidden 26 27 #line 4 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 28 using Dynamicweb.Security.UserManagement; 29 30 #line default 31 #line hidden 32 33 #line 5 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 34 using Dynamicweb.Security.UserManagement.Common.CustomFields; 35 36 #line default 37 #line hidden 38 39 #line 6 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 40 using Dynamicweb.Rendering; 41 42 #line default 43 #line hidden 44 45 #line 7 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 46 using Dynamicweb.Environment; 47 48 #line default 49 #line hidden 50 51 #line 8 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 52 using System.Text.RegularExpressions; 53 54 #line default 55 #line hidden 56 57 #line 9 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 58 using User = Dynamicweb.Security.UserManagement.User; 59 60 #line default 61 #line hidden 62 63 64 public class RazorEngine_2af7ff91e9b24d9fb45408cc29aa7635 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 65 66 #line hidden 67 68 #line 17 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 69 70 public string IsSelected(string sortBy, string sortOrder) 71 { 72 return (Dynamicweb.Input.Request("SortOrder") == sortOrder && Dynamicweb.Input.Request("SortBy") == sortBy) ? "selected='selected'" : string.Empty; 73 } 74 75 76 77 #line default 78 #line hidden 79 80 81 public RazorEngine_2af7ff91e9b24d9fb45408cc29aa7635() { 82 } 83 84 public override void Execute() { 85 86 #line 10 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 87 88 string pageUrl = GetGlobalValue("Global:Pageview.Url.Raw"); 89 string productCatalogId = Pageview.Area.Item["Search_Products_JSON"].ToString(); 90 string feedPageUrl = new Regex("([?&]ID)=[^?&]+").Replace(pageUrl, "?ID=" + productCatalogId); 91 string feedFullUrl = feedPageUrl + "&LayoutTemplate=Json.cshtml&DisableStatistics=True"; 92 string hide = ""; 93 94 95 #line default 96 #line hidden 97 WriteLiteral("\r\n"); 98 99 100 #line 25 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 101 102 if (string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.GetString("ProductID"))) 103 { 104 105 106 #line default 107 #line hidden 108 WriteLiteral(" <div"); 109 110 WriteLiteral(" class=\"row js-ajax-container\""); 111 112 WriteLiteral(" id=\"productList\""); 113 114 WriteLiteral(" data-template=\"productContainer\""); 115 116 WriteLiteral(" data-json-feed=\""); 117 118 119 #line 28 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 120 Write(feedFullUrl); 121 122 123 #line default 124 #line hidden 125 WriteLiteral("\""); 126 127 WriteLiteral(" data-preloader=\"overlay\""); 128 129 WriteLiteral("></div>\r\n"); 130 131 WriteLiteral(" <script"); 132 133 WriteLiteral(" id=\"productContainer\""); 134 135 WriteLiteral(" type=\"text/x-template\""); 136 137 WriteLiteral(">\r\n <div class=\"col-md-3 col-sm-3 productContainer\">\r\n " + 138 "<div class=\"product-list-header product-list-header--clean hidden-xs\">\r\n " + 139 " <h5>"); 140 141 142 #line 32 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 143 Write(Translate("PRODUCT CATEGORY")); 144 145 146 #line default 147 #line hidden 148 WriteLiteral("</h5>\r\n"); 149 150 WriteLiteral(" "); 151 152 153 #line 33 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 154 Write(Translate("FILTER YOUR RESULTS")); 155 156 157 #line default 158 #line hidden 159 WriteLiteral("\r\n </div>\r\n <button class=\"product-list-header prod" + 160 "uct-list-header--clean visible-xs\" type=\"button\" data-toggle=\"collapse\" data-ta" + 161 "rget=\"#FacetGroups1\" aria-expanded=\"false\" aria-controls=\"FacetGroups\">\r\n"); 162 163 WriteLiteral(" "); 164 165 166 #line 36 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 167 Write(Translate("FILTER YOUR RESULTS")); 168 169 170 #line default 171 #line hidden 172 WriteLiteral(@" 173 </button> 174 175 <div id=""FacetGroups"" data-template=""facetGroup"" class=""collapse""></div> 176 </div> 177 <div class=""col-md-9 col-sm-9 product-list""> 178 <div class=""product-list-header""> 179 <div class=""col-sm-3 pull-left""> 180 <div class=""product-list-header__title text-left"">data.prodCnt "); 181 182 183 #line 44 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 184 Write(Translate("Items", "Items")); 185 186 187 #line default 188 #line hidden 189 WriteLiteral("</div>\r\n </div>\r\n <div class=\"sorting col-s" + 190 "m-6 dropdown\">\r\n <label class=\"hidden-xs\">"); 191 192 193 #line 47 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 194 Write(Translate("Sort:", "Sort:")); 195 196 197 #line default 198 #line hidden 199 WriteLiteral("</label>\r\n <button class=\"low-to-high-selector btn btn-xs " + 200 "btn-default dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\"><span class=\"t" + 201 "ext-left\">"); 202 203 204 #line 48 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 205 Write(Translate("Filter", "Filter")); 206 207 208 #line default 209 #line hidden 210 WriteLiteral("</span><span class=\"caret text-right\"></span></button>\r\n <" + 211 "ul class=\" dropdown-menu\" role=\"menu\" data-sortby=\"\" data-sortorder=\"\">\r\n " + 212 " <li><a data-sortby=\"Name\" data-sort=\"asc\" onclick=\"Facets.S" + 213 "orting(this, \'"); 214 215 216 #line 50 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 217 Write(productCatalogId); 218 219 220 #line default 221 #line hidden 222 WriteLiteral("\');\" class=\"pill-left\" data-checked=\"checked\">"); 223 224 225 #line 50 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 226 Write(Translate("Name low-high", "Name low-high")); 227 228 229 #line default 230 #line hidden 231 WriteLiteral(" </a></li>\r\n <li><a data-sortby=\"Name\" data-sort=\"desc" + 232 "\" onclick=\"Facets.Sorting(this, \'"); 233 234 235 #line 51 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 236 Write(productCatalogId); 237 238 239 #line default 240 #line hidden 241 WriteLiteral("\');\" class=\"pill-left\" data-checked=\"\">"); 242 243 244 #line 51 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 245 Write(Translate("Name high-low", "Price high-low")); 246 247 248 #line default 249 #line hidden 250 WriteLiteral(@" </a></li> 251 </ul> 252 </div> 253 254 <div class=""pull-right text-right hidden-sm""> 255 <button class=""btn product-list-header__view-btn"" onclick=""Dynamo.UpdateTemplate('Products', 'productItem')""><i class=""fa fa-list-ul""></i></button> 256 <button class=""btn product-list-header__view-btn"" onclick=""Dynamo.UpdateTemplate('Products', 'productGridItem')""><i class=""fa fa-th""></i></button> 257 </div> 258 <div class=""sorting col-xs-12 text-center visible-xs""> 259 260 </div> 261 </div> 262 <span class=""noResultsFound"">data.ResultsError</span> 263 <div class=""col-sm-12 container-priducts""> 264 <div id=""SelectedFilter"" class=""facet-options selected-option text-left""></div> 265 <div id=""RemoveFilters"" class=""text-left remove-all""></div> 266 <div id=""Products"" data-template=""productItem"" data-save-cookie=""true""></div> 267 268 <div class=""pull-left show-paging""> 269 "); 270 271 WriteLiteral(" "); 272 273 274 #line 70 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 275 Write(Translate("Showing page", "Showing page")); 276 277 278 #line default 279 #line hidden 280 WriteLiteral(" data.currentPage "); 281 282 283 #line 70 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 284 Write(Translate("of", "of")); 285 286 287 #line default 288 #line hidden 289 WriteLiteral(@" data.totalPages 290 </div> 291 <div class=""pull-right show-paging""> 292 <ul class=""pager"" id=""Pagination"" data-template=""DotsPages""></ul> 293 </div> 294 </div> 295 </div> 296 </script> 297 "); 298 299 WriteLiteral(" <script"); 300 301 WriteLiteral(" type=\"text/javascript\""); 302 303 WriteLiteral(@"> 304 $('.low-to-high-selector').on(""click"", function () { 305 $(this).addClass('active'); 306 $('.sorting .dropdown-menu-right').slideToggle(200); 307 }); 308 309 310 $('.sorting .dropdown-menu-right').click(function () { 311 $('.low-to-high-selector').click(); 312 }); 313 </script> 314 "); 315 316 WriteLiteral(" <script"); 317 318 WriteLiteral(" id=\"PageButton\""); 319 320 WriteLiteral(" type=\"text/x-template\""); 321 322 WriteLiteral(">\r\n <li class=\"data.active\"><a href=\"data.url\">data.number</a></li>\r\n " + 323 " </script>\r\n"); 324 325 326 #line 92 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 327 328 329 330 #line default 331 #line hidden 332 WriteLiteral(" <script"); 333 334 WriteLiteral(" id=\"facetGroup\""); 335 336 WriteLiteral(" type=\"text/x-template\""); 337 338 WriteLiteral(@"> 339 <input type=""checkbox"" id=""OptionsGroup_data.counter"" class=""expand-trigger hidden"" checked /> 340 341 <div class=""facet-group""> 342 <div class=""facet-group__header"">data.name <label for=""OptionsGroup_data.counter"" class=""expand-btn collapsed""></label></div> 343 <div id=""FacetOptions"" class=""facet-options data.selectedin collapse""></div> 344 </div> 345 </script> 346 "); 347 348 349 #line 101 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 350 351 352 353 #line default 354 #line hidden 355 WriteLiteral(" <script"); 356 357 WriteLiteral(" id=\"CheckboxFacet\""); 358 359 WriteLiteral(" type=\"text/x-template\""); 360 361 WriteLiteral(">\r\n <div class=\"facet-option filter-option\">\r\n <button " + 362 "type=\"button\" class=\"btn btn-checkbox data.checked data.disabled data.queryParam" + 363 "eter\" data-check=\"data.checked\" onclick=\"Facets.UpdateFacets(this, \'"); 364 365 366 #line 104 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 367 Write(productCatalogId); 368 369 370 #line default 371 #line hidden 372 WriteLiteral("\');\" name=\"data.queryParameter\" value=\"data.value\" data.disabled>\r\n " + 373 " data.name (data.count)\r\n </button>\r\n </div>\r\n " + 374 " </script>\r\n"); 375 376 377 #line 109 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 378 379 380 381 #line default 382 #line hidden 383 WriteLiteral(" <script"); 384 385 WriteLiteral(" id=\"CheckFilter\""); 386 387 WriteLiteral(" type=\"x-template\""); 388 389 WriteLiteral(">\r\n <button type=\"button\" class=\"btn btn-checkbox data.checked data.di" + 390 "sabled \" name=\"data.tolower\" data-check=\"data.checked\" onclick=\"Facets.ResetSele" + 391 "ctedFacets(this, \'"); 392 393 394 #line 111 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 395 Write(productCatalogId); 396 397 398 #line default 399 #line hidden 400 WriteLiteral("\');\" value=\"data.value\" data.disabled>\r\n data.name\r\n </" + 401 "button>\r\n </script>\r\n"); 402 403 WriteLiteral(" <script"); 404 405 WriteLiteral(" id=\"RemoveAll\""); 406 407 WriteLiteral(" type=\"text/x-template\""); 408 409 WriteLiteral(">\r\n <a onclick=\"Facets.ResetFacets(this, \'"); 410 411 412 #line 116 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 413 Write(productCatalogId); 414 415 416 #line default 417 #line hidden 418 WriteLiteral("\');\">\r\n"); 419 420 WriteLiteral(" "); 421 422 423 #line 117 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 424 Write(Translate("Remove all items", "Remove all items")); 425 426 427 #line default 428 #line hidden 429 WriteLiteral("\r\n </a>\r\n </script>\r\n"); 430 431 WriteLiteral(" <script"); 432 433 WriteLiteral(" id=\"DotsPages\""); 434 435 WriteLiteral(" type=\"x-template\""); 436 437 WriteLiteral(@"> 438 <li class=""no-border data.prevdisplay""><a href=""data.prevpagelink""><i class=""fa fa-angle-left""></i></a></li> 439 <li class="" data.show""><a href=""data.firstpagelink"">data.firstpagenumber</a></li> 440 <li class="" data.firstdots""> data.firstdots</li> 441 <li class=""looppages""> 442 <ul id=""Pages""></ul> 443 </li> 444 <li class="" data.lastdots""> data.lastdots</li> 445 <li class="" data.lastsh""><a href=""data.lastpagelink"">data.lastpagenumber</a></li> 446 447 <li class=""no-border data.nextdisplay""><a href=""data.nextpagelink""><i class=""fa fa-angle-right""></i></a></li> 448 </script> 449 "); 450 451 WriteLiteral(" <script"); 452 453 WriteLiteral(" id=\"Numbering\""); 454 455 WriteLiteral(" type=\"x-template\""); 456 457 WriteLiteral(">\r\n <li class=\"\"><a href=\"data.pageslooplink\" class=\"data.active\">data" + 458 ".pagesloopnumber</a></li>\r\n </script>\r\n"); 459 460 WriteLiteral(" <script"); 461 462 WriteLiteral(" id=\"productItem\""); 463 464 WriteLiteral(" type=\"text/x-template\""); 465 466 WriteLiteral(">\r\n <div class=\"col-md-12\">\r\n <div class=\"row product-l" + 467 "ist-item\">\r\n <div class=\"col-xs-12 col-md-3 col-lg-3\">\r\n " + 468 " <a href=\"data.link\"><div class=\"product-list-item__image-cont" + 469 "ainer\"><img class=\"img-responsive product-list-item__image center-block\" src=\"da" + 470 "ta.image\" /></div></a>\r\n </div>\r\n <div cla" + 471 "ss=\"col-xs-12 col-lg-9 col-lg-9\">\r\n <div class=\"col-md-7\"" + 472 ">\r\n <a href=\"data.link\"><h2 class=\"product-list-item_" + 473 "_name\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"data.tooltip\">data.name" + 474 "</h2></a>\r\n <div id=\"addRemove\" data-template=\"addRem" + 475 "ove\"></div>\r\n <div class=\"limitedstock\">data.limitedS" + 476 "tock</div>\r\n <div class=\"product-list-item__desc\">dat" + 477 "a.description</div>\r\n\r\n <ul class=\"features-list item" + 478 "-number productMetaInfo\">\r\n <li class=\"features-l" + 479 "ist__item\">\r\n <span class=\"features-list__lab" + 480 "el\">Item #</span> <span class=\"features-list__name\">data.number</span>\r\n " + 481 " </li>\r\n <li class=\"featur" + 482 "es-list__item\">\r\n <div id=\"unitList\" data-tem" + 483 "plate=\"hasUnit\"></div>\r\n </li>\r\n " + 484 " </ul>\r\n </div>\r\n <div c" + 485 "lass=\"col-md-5 right-col\">\r\n <div class=\"features-lis" + 486 "t\">\r\n <div class=\"features-list__item text-right\"" + 487 ">\r\n <div id=\"price\" data-template=\"AddToCart\"" + 488 "></div>\r\n </div>\r\n " + 489 " <div class=\"features-list__item text-right\">\r\n " + 490 " <div id=\"AddToQuote\" data-template=\"AddToQuote\"></div>\r\n " + 491 " </div>\r\n </div>\r\n <" + 492 "/div>\r\n </div>\r\n </div>\r\n </div>\r\n " + 493 " </script>\r\n"); 494 495 WriteLiteral(" <script"); 496 497 WriteLiteral(" id=\"hasUnit\""); 498 499 WriteLiteral(" type=\"text/x-template\""); 500 501 WriteLiteral(">\r\n <span class=\"features-list__label\">"); 502 503 504 #line 172 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 505 Write(Translate("Unit")); 506 507 508 #line default 509 #line hidden 510 WriteLiteral(" : </span>\r\n <span class=\"features-list__name\">data.unit</span>\r\n " + 511 " </script>\r\n"); 512 513 WriteLiteral(" <script"); 514 515 WriteLiteral(" id=\"addRemove\""); 516 517 WriteLiteral(" type=\"text/x-template\""); 518 519 WriteLiteral(">\r\n\r\n <div class=\"favListDropdown\"><a class=\"addto\" href=\"javascript:D" + 520 "ynamo.UpdateContent(\'productList\',\'data.winelistRemoveLink\')\">data.icon data.tex" + 521 "t</a></div>\r\n\r\n </script>\r\n"); 522 523 WriteLiteral(" <script"); 524 525 WriteLiteral(" id=\"AddToFav\""); 526 527 WriteLiteral(" type=\"text/x-template\""); 528 529 WriteLiteral(">\r\n <li><a href=\"data.link\">data.icon data.name</a></li>\r\n </sc" + 530 "ript>\r\n"); 531 532 WriteLiteral(" <script"); 533 534 WriteLiteral(" id=\"EmployeeAddToFav\""); 535 536 WriteLiteral(" type=\"text/x-template\""); 537 538 WriteLiteral(">\r\n <a href=\"data.link\" class=\"addto\">data.icon <span>data.name</span<" + 539 "/a>\r\n </script>\r\n"); 540 541 542 #line 186 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 543 544 545 546 #line default 547 #line hidden 548 WriteLiteral(" <script"); 549 550 WriteLiteral(" id=\"productGridItem\""); 551 552 WriteLiteral(" type=\"text/x-template\""); 553 554 WriteLiteral(">\r\n <div class=\"col-md-4 product-list-item product-list-item--grid\">\r\n" + 555 " <div class=\"product-list-item--grid-cont\">\r\n " + 556 "<a href=\"data.link\"><div class=\"product-list-item__image-container\"><img class=\"" + 557 "img-responsive product-list-item__image center-block\" src=\"data.image\" /></div><" + 558 "/a>\r\n <div class=\"row\">\r\n <div class=\"" + 559 "col-md-12\">\r\n <a href=\"data.link\"><h2 class=\"product-" + 560 "list-item__name\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"data.tooltip\"" + 561 ">data.shortname</h2></a>\r\n </div>\r\n " + 562 " <div class=\"col-md-12\">\r\n <div id=\"addRemove\" data-" + 563 "template=\"addRemove\"></div>\r\n <div class=\"limitedstoc" + 564 "k grid\">data.limitedStock &nbsp;</div>\r\n </div>\r\n " + 565 " </div>\r\n <div class=\"features-list\">\r\n " + 566 " <div class=\"row productGridMetaInfo\">\r\n " + 567 "<div class=\"col-xs-12\">\r\n <span>Item # data.numbe" + 568 "r</span>\r\n </div>\r\n <div c" + 569 "lass=\"col-xs-12\">\r\n <div id=\"unitList\" data-templ" + 570 "ate=\"hasUnit\"></div>\r\n </div>\r\n " + 571 " </div>\r\n <div class=\"features-list__item text-right\">\r\n" + 572 " <div id=\"price\" data-template=\"AddToCart\"></div>\r\n " + 573 " </div>\r\n <div class=\"features-list_" + 574 "_item text-right\">\r\n <div id=\"AddToQuote\" data-templa" + 575 "te=\"AddToQuote\"></div>\r\n </div>\r\n </di" + 576 "v>\r\n\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n " + 577 " </div>\r\n </script>\r\n"); 578 579 580 #line 221 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 581 582 583 584 #line default 585 #line hidden 586 WriteLiteral(" <script"); 587 588 WriteLiteral(" id=\"SelectionOption\""); 589 590 WriteLiteral(" type=\"text/x-template\""); 591 592 WriteLiteral(">\r\n <option value=\"data.value\" data-infoprice=\"data.price\" data-infodu" + 593 "ty=\"data.duty\">data.name</option>\r\n </script>\r\n"); 594 595 WriteLiteral(" <script"); 596 597 WriteLiteral(" id=\"AddToCart\""); 598 599 WriteLiteral(" type=\"text/x-template\""); 600 601 WriteLiteral(@"> 602 <div class=""features-list__item""> 603 <span class=""price-text features-list__name"">data.value</span> 604 </div> 605 <div class=""features-list form-horizontal""> 606 <span class=""features-list__name customQuantity""> 607 <span class=""qty pull-left"">"); 608 609 610 #line 231 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 611 Write(Translate("Qty", "Qty")); 612 613 614 #line default 615 #line hidden 616 WriteLiteral(@"</span> 617 <input type=""number"" name=""Quantity"" class=""form-control input-number ecommerce-quantity-input quantity"" value=""1"" min=""1"" max=""9999"" id=""quantity_data.id"" oninput=""javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"" maxlength=""4""> 618 <div class=""quantity-nav""> 619 <div class=""quantity-button quantity-up fa fa-plus"" onclick=""Dynamo.UpdateQuantityUp(this)""></div> 620 <div class=""quantity-button quantity-down fa fa-minus"" onclick=""Dynamo.UpdateQuantityDown(this)""></div> 621 </div> 622 </span> 623 <button type=""button"" id=""CartButton_data.id"" class=""btn product-list-item__cart-btn pull-right"" name=""submit"" onclick=""Cart.AddToCart(event, 'data.id', document.getElementById('quantity_data.id').value, 'data.unitID');""> 624 625 <span> <i class=""fa fa-shopping-cart"" aria-hidden=""true""></i>"); 626 627 628 #line 240 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 629 Write(Translate("Add to cart")); 630 631 632 #line default 633 #line hidden 634 WriteLiteral("</span>\r\n </button>\r\n </div>\r\n </script>\r\n"); 635 636 WriteLiteral(" <script"); 637 638 WriteLiteral(" id=\"AddToQuote\""); 639 640 WriteLiteral(" type=\"text/x-template\""); 641 642 WriteLiteral(@"> 643 <input type=""number"" name=""Quantity"" class=""form-control input-number ecommerce-quantity-input quantity hidden"" value=""1"" min=""1"" max=""99999"" id=""quantity_data.id""> 644 <button type=""button"" id=""CartButton_data.id"" class=""btn product-list-item__cart-btn pull-right"" name=""submit"" onclick=""Cart.AddToCart(event, 'data.id', document.getElementById('quantity_data.id').value, 'data.unitID');""> 645 646 <span><i class=""fa fa-shopping-cart"" aria-hidden=""true""></i> "); 647 648 649 #line 248 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 650 Write(Translate("REQUEST PRICE", "REQUEST PRICE")); 651 652 653 #line default 654 #line hidden 655 WriteLiteral("</span>\r\n </button>\r\n </script>\r\n"); 656 657 658 #line 251 "E:\Dynamicweb.Net\Solutions\enotria.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Paragraph\AjaxSearchProducts.cshtml" 659 } 660 661 662 #line default 663 #line hidden 664 WriteLiteral("\r\n\r\n\r\n"); 665 666 } 667 } 668 } 669

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using System 3 @using System.Web 4 @using Dynamicweb.Security.UserManagement; 5 @using Dynamicweb.Security.UserManagement.Common.CustomFields; 6 @using Dynamicweb.Rendering; 7 @using Dynamicweb.Environment; 8 @using System.Text.RegularExpressions; 9 @using User = Dynamicweb.Security.UserManagement.User; 10 @{ 11 string pageUrl = GetGlobalValue("Global:Pageview.Url.Raw"); 12 string productCatalogId = Pageview.Area.Item["Search_Products_JSON"].ToString(); 13 string feedPageUrl = new Regex("([?&]ID)=[^?&]+").Replace(pageUrl, "?ID=" + productCatalogId); 14 string feedFullUrl = feedPageUrl + "&LayoutTemplate=Json.cshtml&DisableStatistics=True"; 15 string hide = ""; 16 } 17 @functions { 18 public string IsSelected(string sortBy, string sortOrder) 19 { 20 return (Dynamicweb.Input.Request("SortOrder") == sortOrder && Dynamicweb.Input.Request("SortBy") == sortBy) ? "selected='selected'" : string.Empty; 21 } 22 23 24 } 25 @{ 26 if (string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.GetString("ProductID"))) 27 { 28 <div class="row js-ajax-container" id="productList" data-template="productContainer" data-json-feed="@feedFullUrl" data-preloader="overlay"></div> 29 <script id="productContainer" type="text/x-template"> 30 <div class="col-md-3 col-sm-3 productContainer"> 31 <div class="product-list-header product-list-header--clean hidden-xs"> 32 <h5>@Translate("PRODUCT CATEGORY")</h5> 33 @Translate("FILTER YOUR RESULTS") 34 </div> 35 <button class="product-list-header product-list-header--clean visible-xs" type="button" data-toggle="collapse" data-target="#FacetGroups1" aria-expanded="false" aria-controls="FacetGroups"> 36 @Translate("FILTER YOUR RESULTS") 37 </button> 38 39 <div id="FacetGroups" data-template="facetGroup" class="collapse"></div> 40 </div> 41 <div class="col-md-9 col-sm-9 product-list"> 42 <div class="product-list-header"> 43 <div class="col-sm-3 pull-left"> 44 <div class="product-list-header__title text-left">data.prodCnt @Translate("Items", "Items")</div> 45 </div> 46 <div class="sorting col-sm-6 dropdown"> 47 <label class="hidden-xs">@Translate("Sort:", "Sort:")</label> 48 <button class="low-to-high-selector btn btn-xs btn-default dropdown-toggle" type="button" data-toggle="dropdown"><span class="text-left">@Translate("Filter", "Filter")</span><span class="caret text-right"></span></button> 49 <ul class=" dropdown-menu" role="menu" data-sortby="" data-sortorder=""> 50 <li><a data-sortby="Name" data-sort="asc" onclick="Facets.Sorting(this, '@productCatalogId');" class="pill-left" data-checked="checked">@Translate("Name low-high", "Name low-high") </a></li> 51 <li><a data-sortby="Name" data-sort="desc" onclick="Facets.Sorting(this, '@productCatalogId');" class="pill-left" data-checked="">@Translate("Name high-low", "Price high-low") </a></li> 52 </ul> 53 </div> 54 55 <div class="pull-right text-right hidden-sm"> 56 <button class="btn product-list-header__view-btn" onclick="Dynamo.UpdateTemplate('Products', 'productItem')"><i class="fa fa-list-ul"></i></button> 57 <button class="btn product-list-header__view-btn" onclick="Dynamo.UpdateTemplate('Products', 'productGridItem')"><i class="fa fa-th"></i></button> 58 </div> 59 <div class="sorting col-xs-12 text-center visible-xs"> 60 61 </div> 62 </div> 63 <span class="noResultsFound">data.ResultsError</span> 64 <div class="col-sm-12 container-priducts"> 65 <div id="SelectedFilter" class="facet-options selected-option text-left"></div> 66 <div id="RemoveFilters" class="text-left remove-all"></div> 67 <div id="Products" data-template="productItem" data-save-cookie="true"></div> 68 69 <div class="pull-left show-paging"> 70 @Translate("Showing page", "Showing page") data.currentPage @Translate("of", "of") data.totalPages 71 </div> 72 <div class="pull-right show-paging"> 73 <ul class="pager" id="Pagination" data-template="DotsPages"></ul> 74 </div> 75 </div> 76 </div> 77 </script> 78 <script type="text/javascript"> 79 $('.low-to-high-selector').on("click", function () { 80 $(this).addClass('active'); 81 $('.sorting .dropdown-menu-right').slideToggle(200); 82 }); 83 84 85 $('.sorting .dropdown-menu-right').click(function () { 86 $('.low-to-high-selector').click(); 87 }); 88 </script> 89 <script id="PageButton" type="text/x-template"> 90 <li class="data.active"><a href="data.url">data.number</a></li> 91 </script> 92 93 <script id="facetGroup" type="text/x-template"> 94 <input type="checkbox" id="OptionsGroup_data.counter" class="expand-trigger hidden" checked /> 95 96 <div class="facet-group"> 97 <div class="facet-group__header">data.name <label for="OptionsGroup_data.counter" class="expand-btn collapsed"></label></div> 98 <div id="FacetOptions" class="facet-options data.selectedin collapse"></div> 99 </div> 100 </script> 101 102 <script id="CheckboxFacet" type="text/x-template"> 103 <div class="facet-option filter-option"> 104 <button type="button" class="btn btn-checkbox data.checked data.disabled data.queryParameter" data-check="data.checked" onclick="Facets.UpdateFacets(this, '@productCatalogId');" name="data.queryParameter" value="data.value" data.disabled> 105 data.name (data.count) 106 </button> 107 </div> 108 </script> 109 110 <script id="CheckFilter" type="x-template"> 111 <button type="button" class="btn btn-checkbox data.checked data.disabled " name="data.tolower" data-check="data.checked" onclick="Facets.ResetSelectedFacets(this, '@productCatalogId');" value="data.value" data.disabled> 112 data.name 113 </button> 114 </script> 115 <script id="RemoveAll" type="text/x-template"> 116 <a onclick="Facets.ResetFacets(this, '@productCatalogId');"> 117 @Translate("Remove all items", "Remove all items") 118 </a> 119 </script> 120 <script id="DotsPages" type="x-template"> 121 <li class="no-border data.prevdisplay"><a href="data.prevpagelink"><i class="fa fa-angle-left"></i></a></li> 122 <li class=" data.show"><a href="data.firstpagelink">data.firstpagenumber</a></li> 123 <li class=" data.firstdots"> data.firstdots</li> 124 <li class="looppages"> 125 <ul id="Pages"></ul> 126 </li> 127 <li class=" data.lastdots"> data.lastdots</li> 128 <li class=" data.lastsh"><a href="data.lastpagelink">data.lastpagenumber</a></li> 129 130 <li class="no-border data.nextdisplay"><a href="data.nextpagelink"><i class="fa fa-angle-right"></i></a></li> 131 </script> 132 <script id="Numbering" type="x-template"> 133 <li class=""><a href="data.pageslooplink" class="data.active">data.pagesloopnumber</a></li> 134 </script> 135 <script id="productItem" type="text/x-template"> 136 <div class="col-md-12"> 137 <div class="row product-list-item"> 138 <div class="col-xs-12 col-md-3 col-lg-3"> 139 <a href="data.link"><div class="product-list-item__image-container"><img class="img-responsive product-list-item__image center-block" src="data.image" /></div></a> 140 </div> 141 <div class="col-xs-12 col-lg-9 col-lg-9"> 142 <div class="col-md-7"> 143 <a href="data.link"><h2 class="product-list-item__name" data-toggle="tooltip" data-placement="top" title="data.tooltip">data.name</h2></a> 144 <div id="addRemove" data-template="addRemove"></div> 145 <div class="limitedstock">data.limitedStock</div> 146 <div class="product-list-item__desc">data.description</div> 147 148 <ul class="features-list item-number productMetaInfo"> 149 <li class="features-list__item"> 150 <span class="features-list__label">Item #</span> <span class="features-list__name">data.number</span> 151 </li> 152 <li class="features-list__item"> 153 <div id="unitList" data-template="hasUnit"></div> 154 </li> 155 </ul> 156 </div> 157 <div class="col-md-5 right-col"> 158 <div class="features-list"> 159 <div class="features-list__item text-right"> 160 <div id="price" data-template="AddToCart"></div> 161 </div> 162 <div class="features-list__item text-right"> 163 <div id="AddToQuote" data-template="AddToQuote"></div> 164 </div> 165 </div> 166 </div> 167 </div> 168 </div> 169 </div> 170 </script> 171 <script id="hasUnit" type="text/x-template"> 172 <span class="features-list__label">@Translate("Unit") : </span> 173 <span class="features-list__name">data.unit</span> 174 </script> 175 <script id="addRemove" type="text/x-template"> 176 177 <div class="favListDropdown"><a class="addto" href="javascript:Dynamo.UpdateContent('productList','data.winelistRemoveLink')">data.icon data.text</a></div> 178 179 </script> 180 <script id="AddToFav" type="text/x-template"> 181 <li><a href="data.link">data.icon data.name</a></li> 182 </script> 183 <script id="EmployeeAddToFav" type="text/x-template"> 184 <a href="data.link" class="addto">data.icon <span>data.name</span</a> 185 </script> 186 187 <script id="productGridItem" type="text/x-template"> 188 <div class="col-md-4 product-list-item product-list-item--grid"> 189 <div class="product-list-item--grid-cont"> 190 <a href="data.link"><div class="product-list-item__image-container"><img class="img-responsive product-list-item__image center-block" src="data.image" /></div></a> 191 <div class="row"> 192 <div class="col-md-12"> 193 <a href="data.link"><h2 class="product-list-item__name" data-toggle="tooltip" data-placement="top" title="data.tooltip">data.shortname</h2></a> 194 </div> 195 <div class="col-md-12"> 196 <div id="addRemove" data-template="addRemove"></div> 197 <div class="limitedstock grid">data.limitedStock &nbsp;</div> 198 </div> 199 </div> 200 <div class="features-list"> 201 <div class="row productGridMetaInfo"> 202 <div class="col-xs-12"> 203 <span>Item # data.number</span> 204 </div> 205 <div class="col-xs-12"> 206 <div id="unitList" data-template="hasUnit"></div> 207 </div> 208 </div> 209 <div class="features-list__item text-right"> 210 <div id="price" data-template="AddToCart"></div> 211 </div> 212 <div class="features-list__item text-right"> 213 <div id="AddToQuote" data-template="AddToQuote"></div> 214 </div> 215 </div> 216 217 </div> 218 <div class="clearfix"></div> 219 </div> 220 </script> 221 222 <script id="SelectionOption" type="text/x-template"> 223 <option value="data.value" data-infoprice="data.price" data-infoduty="data.duty">data.name</option> 224 </script> 225 <script id="AddToCart" type="text/x-template"> 226 <div class="features-list__item"> 227 <span class="price-text features-list__name">data.value</span> 228 </div> 229 <div class="features-list form-horizontal"> 230 <span class="features-list__name customQuantity"> 231 <span class="qty pull-left">@Translate("Qty", "Qty")</span> 232 <input type="number" name="Quantity" class="form-control input-number ecommerce-quantity-input quantity" value="1" min="1" max="9999" id="quantity_data.id" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" maxlength="4"> 233 <div class="quantity-nav"> 234 <div class="quantity-button quantity-up fa fa-plus" onclick="Dynamo.UpdateQuantityUp(this)"></div> 235 <div class="quantity-button quantity-down fa fa-minus" onclick="Dynamo.UpdateQuantityDown(this)"></div> 236 </div> 237 </span> 238 <button type="button" id="CartButton_data.id" class="btn product-list-item__cart-btn pull-right" name="submit" onclick="Cart.AddToCart(event, 'data.id', document.getElementById('quantity_data.id').value, 'data.unitID');"> 239 240 <span> <i class="fa fa-shopping-cart" aria-hidden="true"></i>@Translate("Add to cart")</span> 241 </button> 242 </div> 243 </script> 244 <script id="AddToQuote" type="text/x-template"> 245 <input type="number" name="Quantity" class="form-control input-number ecommerce-quantity-input quantity hidden" value="1" min="1" max="99999" id="quantity_data.id"> 246 <button type="button" id="CartButton_data.id" class="btn product-list-item__cart-btn pull-right" name="submit" onclick="Cart.AddToCart(event, 'data.id', document.getElementById('quantity_data.id').value, 'data.unitID');"> 247 248 <span><i class="fa fa-shopping-cart" aria-hidden="true"></i> @Translate("REQUEST PRICE", "REQUEST PRICE")</span> 249 </button> 250 </script> 251 } 252 } 253 254 255

Search in Content

box