Leverandøroversigt indenfor gastronomi

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo.

Udstillere 0 Products

Error compiling template "Designs/exhibition_site/ecom/productlist/partials/products.cshtml"
Line 258: The type or namespace name 'MCHProduct' could not be found (are you missing a using directive or an assembly reference?)

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 using System; 13 using System.Collections.Generic; 14 using System.Linq; 15 16 #line 2 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 17 using Co3.Espresso.Website.Models.FrontEnd.Ecommerce; 18 19 #line default 20 #line hidden 21 22 #line 3 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 23 using Co3.Espresso.Website.Models.FrontEnd.Handlebars; 24 25 #line default 26 #line hidden 27 28 #line 4 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 29 using Co3.Espresso.Website.Models.FrontEnd.Settings; 30 31 #line default 32 #line hidden 33 34 #line 5 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 35 using Co3.Espresso.Website.Services; 36 37 #line default 38 #line hidden 39 40 #line 6 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 41 using Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce; 42 43 #line default 44 #line hidden 45 46 #line 7 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 47 using Dynamicweb.Frontend; 48 49 #line default 50 #line hidden 51 52 #line 8 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 53 using Dynamicweb.Rendering; 54 55 #line default 56 #line hidden 57 58 #line 9 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 59 using Dynamicweb.Rendering.Translation; 60 61 #line default 62 #line hidden 63 64 65 public class RazorEngine_d7b24091d25a49eca30653e455968afe : ViewModelTemplate< EspressoProductList > { 66 67 #line hidden 68 69 public RazorEngine_d7b24091d25a49eca30653e455968afe() { 70 } 71 72 public override void Execute() { 73 WriteLiteral("\r\n"); 74 75 76 #line 11 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 77 78 HandlebarsProductListTemplate handlebarsProductListTemplate = HandlebarsService.Instance.GetProductListTemplate( new HandlebarsProductListTemplateSettings() ); 79 80 string productlistItemType = PageView.Current().CurrentParagraph.Item["Type"]?.ToString(); 81 82 83 84 #line default 85 #line hidden 86 WriteLiteral("\r\n\r\n<!-- Product template for dynamic rendering with js -->\r\n<div"); 87 88 WriteLiteral(" class=\"e-productlist\""); 89 90 WriteLiteral(">\r\n"); 91 92 93 #line 20 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 94 95 96 #line default 97 #line hidden 98 99 #line 20 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 100 if ( Model.Products.Any() ) 101 { 102 int productSkeletonCount = ( Model.PageSize * Model.CurrentPage ) - Model.PageSize; 103 int previousPageNum = 1; 104 int productCounter = 1; 105106107108 #line default 109 #line hidden 110 WriteLiteral(" <div"); 111112 WriteLiteral(" class=\"row e-productlist-container\""); 113114 WriteLiteral(" id=\"js-e-productlist-products\""); 115116 WriteLiteral(">\r\n <!-- Previous products skeleton logics, if pagenum on load is more than " + 117 "1 -->\r\n <!-- Page 1 of "); 118119120 #line 28 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 121 Write(Model.Paging); 122123124 #line default 125 #line hidden 126 WriteLiteral("?.Count -->\r\n"); 127128129 #line 29 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 130131132 #line default 133 #line hidden 134135 #line 29 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 136 if ( productSkeletonCount > 0 && Model.CurrentPage > 1 ) 137 { 138 int productsPerPageCounter = 0; 139 string isObservable = string.Empty; 140141 for ( int i = 0; i < productSkeletonCount; i++ ) 142 { 143144145 #line default 146 #line hidden 147 WriteLiteral(" <div"); 148149 WriteAttribute("class", Tuple.Create(" class=\"", 1414), Tuple.Create("\"", 1487) 150151 #line 36 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 152 , Tuple.Create(Tuple.Create("", 1422), Tuple.Create<System.Object, System.Int32>(handlebarsProductListTemplate.ItemClasses 153154 #line default 155 #line hidden 156 , 1422), false) 157 , Tuple.Create(Tuple.Create(" ", 1464), Tuple.Create("e-productlist-skeleton", 1465), true) 158 ); 159160 WriteLiteral(">\r\n <div"); 161162 WriteAttribute("class", Tuple.Create(" class=\"", 1507), Tuple.Create("\"", 1587) 163 , Tuple.Create(Tuple.Create("", 1515), Tuple.Create("e-productlist-skeleton-item", 1515), true) 164 , Tuple.Create(Tuple.Create(" ", 1542), Tuple.Create("js-e-productlist-skeleton-item", 1543), true) 165166 #line 37 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 167 , Tuple.Create(Tuple.Create(" ", 1573), Tuple.Create<System.Object, System.Int32>(isObservable 168169 #line default 170 #line hidden 171 , 1574), false) 172 ); 173174 WriteLiteral(" data-index=\""); 175176177 #line 37 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 178 Write(productsPerPageCounter); 179180181 #line default 182 #line hidden 183 WriteLiteral("\""); 184185 WriteLiteral(" data-page=\""); 186187188 #line 37 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 189 Write(previousPageNum); 190191192 #line default 193 #line hidden 194 WriteLiteral("\""); 195196 WriteLiteral("></div>\r\n </div>\r\n"); 197198199 #line 39 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 200201 if ( productCounter % Model.PageSize == 0 ) 202 { 203 previousPageNum++; 204205206 #line default 207 #line hidden 208 WriteLiteral(" <!-- Page "); 209210211 #line 43 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 212 Write(previousPageNum); 213214215 #line default 216 #line hidden 217 WriteLiteral(" of "); 218219220 #line 43 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 221 Write(Model.Paging); 222223224 #line default 225 #line hidden 226 WriteLiteral("?.Count -->\r\n"); 227228229 #line 44 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 230 } 231 productCounter++; 232 productsPerPageCounter++; 233 if ( productsPerPageCounter % Model.PageSize == ( Model.PageSize - 1 ) ) 234 { 235 isObservable = "is-observable"; 236 } 237 else if ( ( productsPerPageCounter + 1 ) > Model.PageSize ) 238 { 239 productsPerPageCounter = 0; 240 isObservable = string.Empty; 241 } 242 } 243 } 244245246 #line default 247 #line hidden 248 WriteLiteral(" <!-- Server rendered products from current page -->\r\n"); 249250251 #line 59 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 252253254 #line default 255 #line hidden 256257 #line 59 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 258 foreach ( MCHProduct espressoProduct in Model.Products ) 259 { 260261262 #line default 263 #line hidden 264 WriteLiteral(" <div"); 265266 WriteAttribute("class", Tuple.Create(" class=\"", 2430), Tuple.Create("\"", 2480) 267268 #line 61 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 269 , Tuple.Create(Tuple.Create("", 2438), Tuple.Create<System.Object, System.Int32>(handlebarsProductListTemplate.ItemClasses 270271 #line default 272 #line hidden 273 , 2438), false) 274 ); 275276 WriteLiteral(">\r\n \r\n\r\n \r\n"); 277278 WriteLiteral(" "); 279280281 #line 65 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 282 Write(espressoProduct.Render(productlistItemType)); 283284285 #line default 286 #line hidden 287 WriteLiteral("\r\n </div>\r\n"); 288289290 #line 67 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 291 } 292293294 #line default 295 #line hidden 296 WriteLiteral(" <!-- Handlebars template for rendering of whole product list - on filtering" + 297 "/sort -->\r\n <script"); 298299 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-products\""); 300301 WriteLiteral(" type=\"text/x-handlebars-template\""); 302303 WriteLiteral(">\r\n {{#each products}}\r\n {{> productlistProductPartial listItemHt" + 304 "ml}}\r\n {{/each}}\r\n </script>\r\n <!-- Handlebars partial for prod" + 305 "uct list items -->\r\n <script"); 306307 WriteLiteral(" id=\"js-e-handlebars-tmpl-productlist-product-partial\""); 308309 WriteLiteral(" type=\"text/x-handlebars-template\""); 310311 WriteLiteral(">\r\n <div class=\""); 312313314 #line 76 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 315 Write(handlebarsProductListTemplate.ItemClasses); 316317318 #line default 319 #line hidden 320 WriteLiteral("\">\r\n {{{this}}}\r\n </div>\r\n </script>\r\n </div>\r\n"); 321322323 #line 81 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 324325326327 #line default 328 #line hidden 329 WriteLiteral(" <!-- Load more products button -->\r\n"); 330331 WriteLiteral(" <div"); 332333 WriteLiteral(" class=\"row\""); 334335 WriteLiteral(">\r\n <div"); 336337 WriteLiteral(" class=\"col-12\""); 338339 WriteLiteral(">\r\n <a"); 340341 WriteLiteral(" class=\"btn btn-block btn-lg btn-primary d-none e-productlist-load-more-products-" + 342 "btn js-e-productlist-load-more-products-btn mt-3\""); 343344 WriteLiteral(" href=\"#\""); 345346 WriteLiteral(">\r\n"); 347348 WriteLiteral(" "); 349350351 #line 86 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 352 Write(Translate( "eCom Productlist - Load More Products - Button", "Hent flere produkter" )); 353354355 #line default 356 #line hidden 357 WriteLiteral("\r\n </a>\r\n </div>\r\n </div>\r\n"); 358359360 #line 90 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 361 } 362 else 363 { 364365366 #line default 367 #line hidden 368 WriteLiteral(" <div"); 369370 WriteLiteral(" class=\"alert alert-info mt-2\""); 371372 WriteLiteral(">\r\n"); 373374 WriteLiteral(" "); 375376377 #line 94 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 378 Write(Translation.GetTranslation( "eCom Productlist - No Products - Text" )); 379380381 #line default 382 #line hidden 383 WriteLiteral("\r\n </div>\r\n"); 384385386 #line 96 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 387 } 388389390 #line default 391 #line hidden 392 WriteLiteral(" <div"); 393394 WriteLiteral(" class=\"e-loading-overlay e-productlist-loading-overlay js-e-productlist-loading-" + 395 "overlay\""); 396397 WriteLiteral(">\r\n"); 398399 WriteLiteral(" "); 400401402 #line 98 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\productlist\partials\products.cshtml" 403 Write(RenderingService.Instance.PartialView( "_partials/loading-spinner.cshtml" )); 404405406 #line default 407 #line hidden 408 WriteLiteral("\r\n </div>\r\n</div>\r\n"); 409410 } 411 } 412 } 413

1 @inherits ViewModelTemplate< EspressoProductList > 2 @using Co3.Espresso.Website.Models.FrontEnd.Ecommerce 3 @using Co3.Espresso.Website.Models.FrontEnd.Handlebars 4 @using Co3.Espresso.Website.Models.FrontEnd.Settings 5 @using Co3.Espresso.Website.Services 6 @using Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce 7 @using Dynamicweb.Frontend 8 @using Dynamicweb.Rendering 9 @using Dynamicweb.Rendering.Translation 10 11 @{ 12 HandlebarsProductListTemplate handlebarsProductListTemplate = HandlebarsService.Instance.GetProductListTemplate( new HandlebarsProductListTemplateSettings() ); 13 14 string productlistItemType = PageView.Current().CurrentParagraph.Item["Type"]?.ToString(); 15 16 } 17 18 <!-- Product template for dynamic rendering with js --> 19 <div class="e-productlist"> 20 @if ( Model.Products.Any() ) 21 { 22 int productSkeletonCount = ( Model.PageSize * Model.CurrentPage ) - Model.PageSize; 23 int previousPageNum = 1; 24 int productCounter = 1; 25 26 <div class="row e-productlist-container" id="js-e-productlist-products"> 27 <!-- Previous products skeleton logics, if pagenum on load is more than 1 --> 28 <!-- Page 1 of @Model.Paging?.Count --> 29 @if ( productSkeletonCount > 0 && Model.CurrentPage > 1 ) 30 { 31 int productsPerPageCounter = 0; 32 string isObservable = string.Empty; 33 34 for ( int i = 0; i < productSkeletonCount; i++ ) 35 { 36 <div class="@handlebarsProductListTemplate.ItemClasses e-productlist-skeleton"> 37 <div class="e-productlist-skeleton-item js-e-productlist-skeleton-item @isObservable" data-index="@productsPerPageCounter" data-page="@previousPageNum"></div> 38 </div> 39 40 if ( productCounter % Model.PageSize == 0 ) 41 { 42 previousPageNum++; 43 <!-- Page @previousPageNum of @Model.Paging?.Count --> 44 } 45 productCounter++; 46 productsPerPageCounter++; 47 if ( productsPerPageCounter % Model.PageSize == ( Model.PageSize - 1 ) ) 48 { 49 isObservable = "is-observable"; 50 } 51 else if ( ( productsPerPageCounter + 1 ) > Model.PageSize ) 52 { 53 productsPerPageCounter = 0; 54 isObservable = string.Empty; 55 } 56 } 57 } 58 <!-- Server rendered products from current page --> 59 @foreach ( MCHProduct espressoProduct in Model.Products ) 60 { 61 <div class="@handlebarsProductListTemplate.ItemClasses"> 62 63 64 65 @espressoProduct.Render(productlistItemType) 66 </div> 67 } 68 <!-- Handlebars template for rendering of whole product list - on filtering/sort --> 69 <script id="js-e-handlebars-tmpl-productlist-products" type="text/x-handlebars-template"> 70 {{#each products}} 71 {{> productlistProductPartial listItemHtml}} 72 {{/each}} 73 </script> 74 <!-- Handlebars partial for product list items --> 75 <script id="js-e-handlebars-tmpl-productlist-product-partial" type="text/x-handlebars-template"> 76 <div class="@handlebarsProductListTemplate.ItemClasses"> 77 {{{this}}} 78 </div> 79 </script> 80 </div> 81 82 <!-- Load more products button --> 83 <div class="row"> 84 <div class="col-12"> 85 <a class="btn btn-block btn-lg btn-primary d-none e-productlist-load-more-products-btn js-e-productlist-load-more-products-btn mt-3" href="#"> 86 @Translate( "eCom Productlist - Load More Products - Button", "Hent flere produkter" ) 87 </a> 88 </div> 89 </div> 90 } 91 else 92 { 93 <div class="alert alert-info mt-2"> 94 @Translation.GetTranslation( "eCom Productlist - No Products - Text" ) 95 </div> 96 } 97 <div class="e-loading-overlay e-productlist-loading-overlay js-e-productlist-loading-overlay"> 98 @RenderingService.Instance.PartialView( "_partials/loading-spinner.cshtml" ) 99 </div> 100 </div> 101
keyboard_arrow_up