keyboard_arrow_down

Magnum Etna 340 & 400

Magnum 340 ja 400 Etna ovat liikkuvan matkailijan osatelttoja, jotka ovat nopeita pystyttää. Magnum 340 ja 400 Etna -teltat ovat 2,5 metriä syviä ja 3,4 tai 4 metriä leveitä.

Etu- ja päätypaneelit ovat alaslaskettavia ja tarjoavat yhdessä verkkosivuseinän kanssa runsaasti tuuletusmahdollisuuksia. Jos kaipaat lisää tilaa, Magnum 340 ja 400 Etna -telttoja voidaan laajentaa mm.

Eclipse-aurinkokatoksella (Magnum-erikoisvaruste) tai Cosy Corner ll:lla (Magnum-erikoisvaruste). Annexilla saat lisää makuu- tai säilytystilaa. Magnum 340 ja 400 Etna ovat valmistettu Isacrylistä, joka samalla varmistaa hyvän sisäilman. 

Erityistä

  • Syvyys: 250 cm
  • Irrotettavat/alaslaskettavat osat: Etu- ja päätypaneel.
  • Erikoispitkä kattosiipi, eturäystäs, hyttysverkkoikkunat molemmissa päädyissä.
  • Saatavana kahdella eri leveydellä: 340 cm ja 400 cm
Tarvitsetko apua?

Löydä lähin jälleenmyyjä

Lisää tietoa

Valitse koko

 

Saat 1 vuoden LISÄTAKUUN

Liity Isabella Clubiin ja saat 1 vuoden LISÄTAKUUN tälle tuotteelle.

Lisätietoja

  1. 1
Error compiling template "Designs/isabella/eCom/Product/isabella-accessories.cshtml"
Line 919: 'Translation.GetTranslation(string)' is obsolete: 'Use GetTranslation(string key, Design design) instead.'
Line 1270: The name 'isCamplet' does not exist in the current context

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 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 17 using Dynamicweb.Ecommerce.Prices; 18 19 #line default 20 #line hidden 21 22 #line 3 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 23 using System.Text.RegularExpressions; 24 25 #line default 26 #line hidden 27 28 #line 390 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 29 using Co3.Espresso.Website.Services; 30 31 #line default 32 #line hidden 33 34 #line 5 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 35 using Co3.Isabella.Dw.Services; 36 37 #line default 38 #line hidden 39 40 #line 6 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 41 using Dynamicweb.Ecommerce.Common.eCom7; 42 43 #line default 44 #line hidden 45 46 #line 27 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 47 using Dynamicweb.Ecommerce.Products; 48 49 #line default 50 #line hidden 51 52 #line 29 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 53 using Dynamicweb.Rendering; 54 55 #line default 56 #line hidden 57 58 #line 9 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 59 using System.Web; 60 61 #line default 62 #line hidden 63 64 #line 388 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 65 using Co3.Espresso.Base.Extensions; 66 67 #line default 68 #line hidden 69 70 #line 391 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 71 using Dynamicweb.Frontend; 72 73 #line default 74 #line hidden 75 76 #line 12 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 77 using Co3.Espresso.Base.Models; 78 79 #line default 80 #line hidden 81 82 #line 13 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 83 using Dynamicweb.Admin.dk.dynamicweb.templates; 84 85 #line default 86 #line hidden 87 88 #line 14 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 89 using Dynamicweb.Controls; 90 91 #line default 92 #line hidden 93 94 #line 15 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 95 using Co3.Espresso.Website.Models.FrontEnd.Paragraphs; 96 97 #line default 98 #line hidden 99100 #line 33 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 101 using eProductService = Co3.Espresso.Website.Services.ProductService; 102103 #line default 104 #line hidden 105106 #line 19 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 107 using System.Globalization; 108109 #line default 110 #line hidden 111112 #line 20 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 113 using System.Security.Cryptography.X509Certificates; 114115 #line default 116 #line hidden 117118 #line 21 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 119 using System.Web.Razor.Parser.SyntaxTree; 120121 #line default 122 #line hidden 123124 #line 389 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 125 using Co3.Espresso.Website.Models.FrontEnd; 126127 #line default 128 #line hidden 129130 #line 25 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 131 using Co3.Isabella.Dw.Models.FrontEnd.Ecommerce; 132133 #line default 134 #line hidden 135136 #line 26 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 137 using Dynamicweb.Content; 138139 #line default 140 #line hidden 141142 #line 30 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 143 using Dynamicweb.Rendering.Translation; 144145 #line default 146 #line hidden 147148 #line 365 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 149 using Dynamicweb.SystemTools; 150151 #line default 152 #line hidden 153154 #line 32 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 155 using EcomContext = Dynamicweb.Ecommerce.Common.Context; 156157 #line default 158 #line hidden 159160 #line 34 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 161 using Page = Dynamicweb.Content.Page; 162163 #line default 164 #line hidden 165166 #line 35 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 167 using PageService = Dynamicweb.Content.PageService; 168169 #line default 170 #line hidden 171172173 public class RazorEngine_088a453ca89c408c862511b557635a13 : Co3.Espresso.Website.TemplateBases.Paragraphs.Module { 174175 #line hidden 176177 #line 37 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 178179180 public string getCountryCodeFromArea(Area area) 181 { 182 RegionInfo regionInfo = new RegionInfo( area.CultureInfo.LCID ); 183 return regionInfo.TwoLetterISORegionName; 184 } 185186 public string getCheckoutSetup(string shopType = "") 187 { 188 bool isB2bCheckout = PageView.Current().User != null; 189 if (isB2bCheckout) 190 { 191 return "shipping,customer,approve"; 192 } else if (shopType == "B2C") 193 { 194 return "shipping,payment,approve"; 195 } else if (shopType == "Outlet") 196 { 197 return "shipping,customer,payment,approve"; 198 } 199200 return "customer,approve"; 201 } 202203 public static string GetStandardCollapseToggleTextExpand() 204 { 205 return "Se mere"; 206 } 207208 public static string GetStandardCollapseToggleTextCollapse() 209 { 210 return "Se mindre"; 211 } 212213 public string getModelTypeLink() 214 { 215 bool isUserAuthenticated = PageView.Current().User != null; 216 string eComCountryCode = PageView.Current().Area.Item[ "EcommerceCountryCode" ] != null ? PageView.Current().Area.Item[ "EcommerceCountryCode" ].ToString() : ""; 217 string returnValue = string.Empty; 218219 if ( isUserAuthenticated == false ) 220 { 221 if ( string.IsNullOrEmpty(eComCountryCode) == false) 222 { 223 { 224 returnValue = string.Format( "Ecom:Product.CategoryField.ModelType.ModelTypeLink_{0}.Value", eComCountryCode ); 225 } 226 } 227 else 228 { 229 returnValue = "Ecom:Product.CategoryField.ModelType.ModelTypeLink.Value"; 230 } 231 } 232 else 233 { 234 if ( string.IsNullOrEmpty(eComCountryCode) == false) 235 { 236 { 237 returnValue = string.Format( "Ecom:Product.CategoryField.ModelType.ModelTypeLinkB2B_{0}.Value", eComCountryCode ); 238 } 239 } 240 else 241 { 242 returnValue = "Ecom:Product.CategoryField.ModelType.ModelTypeLinkB2B.Value"; 243 } 244 } 245246 return returnValue; 247 } 248249250 #line default 251 #line hidden 252253254 #line 110 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 255 public RazorEngine.Templating.TemplateWriter ProductDescription(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null) 256 { 257 #line default 258 #line hidden 259 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 260261 #line 111 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 262263 if ( string.IsNullOrEmpty( content ) == false ) 264 { 265 ClassList headingClassList = new ClassList(); 266 headingClassList.AddClasses( "col-12" ); 267 ClassList contentClassList = new ClassList(); 268 contentClassList.AddClasses( "col-12" ); 269270271272 #line default 273 #line hidden 274275 #line 119 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 276 WriteTo(__razor_helper_writer, sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses, collapseToggleTextCollapse: collapseToggleTextCollapse, collapseToggleTextExpand: collapseToggleTextExpand )); 277278279 #line default 280 #line hidden 281282 #line 119 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 283284285 if ( string.IsNullOrEmpty( heading ) == false ) 286 { 287288289 #line default 290 #line hidden 291 WriteLiteralTo(__razor_helper_writer, " <div"); 292293 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 4187), Tuple.Create("\"", 4212) 294295 #line 123 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 296 , Tuple.Create(Tuple.Create("", 4195), Tuple.Create<System.Object, System.Int32>(headingClassList 297298 #line default 299 #line hidden 300 , 4195), false) 301 ); 302303 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2>"); 304305306 #line 124 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 307 WriteTo(__razor_helper_writer, heading); 308309310 #line default 311 #line hidden 312 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n </div>\r\n"); 313314315 #line 126 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 316 } 317318319 #line default 320 #line hidden 321 WriteLiteralTo(__razor_helper_writer, " <div"); 322323 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 4272), Tuple.Create("\"", 4297) 324325 #line 127 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 326 , Tuple.Create(Tuple.Create("", 4280), Tuple.Create<System.Object, System.Int32>(contentClassList 327328 #line default 329 #line hidden 330 , 4280), false) 331 ); 332333 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 334335 WriteLiteralTo(__razor_helper_writer, " "); 336337338 #line 128 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 339 WriteTo(__razor_helper_writer, content); 340341342 #line default 343 #line hidden 344 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 345346347 #line 130 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 348349350351 #line default 352 #line hidden 353354 #line 131 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 355 WriteTo(__razor_helper_writer, sectionEnd()); 356357358 #line default 359 #line hidden 360361 #line 131 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 362363 } 364365366 #line default 367 #line hidden 368 }); 369370 #line 133 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 371 } 372 #line default 373 #line hidden 374375376 #line 136 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 377 public RazorEngine.Templating.TemplateWriter ProductVideo(string sectionClasses = "e-section", string contentClasses = null, string heading = null, string videoURL = null) 378 { 379 #line default 380 #line hidden 381 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 382383 #line 137 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 384385 if ( string.IsNullOrEmpty( videoURL ) == false ) 386 { 387 ClassList headingClassList = new ClassList(); 388 headingClassList.AddClasses( "col-12" ); 389 ClassList contentClassList = new ClassList(); 390 contentClassList.AddClasses( "col-12" ); 391392393394395 #line default 396 #line hidden 397398 #line 146 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 399 WriteTo(__razor_helper_writer, sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses )); 400401402 #line default 403 #line hidden 404405 #line 146 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 406407408 if ( string.IsNullOrEmpty( heading ) == false ) 409 { 410411412 #line default 413 #line hidden 414 WriteLiteralTo(__razor_helper_writer, " <div"); 415416 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 4913), Tuple.Create("\"", 4938) 417418 #line 150 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 419 , Tuple.Create(Tuple.Create("", 4921), Tuple.Create<System.Object, System.Int32>(headingClassList 420421 #line default 422 #line hidden 423 , 4921), false) 424 ); 425426 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2>"); 427428429 #line 151 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 430 WriteTo(__razor_helper_writer, heading); 431432433 #line default 434 #line hidden 435 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n </div>\r\n"); 436437438 #line 153 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 439 } 440441442443 #line default 444 #line hidden 445 WriteLiteralTo(__razor_helper_writer, " <div"); 446447 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 5000), Tuple.Create("\"", 5025) 448449 #line 155 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 450 , Tuple.Create(Tuple.Create("", 5008), Tuple.Create<System.Object, System.Int32>(contentClassList 451452 #line default 453 #line hidden 454 , 5008), false) 455 ); 456457 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 458459 WriteLiteralTo(__razor_helper_writer, " class=\"embed-responsive embed-responsive-16by9 mb-2\""); 460461 WriteLiteralTo(__razor_helper_writer, ">\r\n <iframe"); 462463 WriteLiteralTo(__razor_helper_writer, " class=\"embed-responsive-item cookieconsent-optin-marketing\""); 464465 WriteLiteralTo(__razor_helper_writer, " data-cookieconsent=\"marketing\""); 466467 WriteLiteralTo(__razor_helper_writer, " data-cookieblock-src=\""); 468469470 #line 157 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 471 WriteTo(__razor_helper_writer, videoURL); 472473474 #line default 475 #line hidden 476 WriteLiteralTo(__razor_helper_writer, "\""); 477478 WriteLiteralTo(__razor_helper_writer, " width=\"1080\""); 479480 WriteLiteralTo(__razor_helper_writer, " height=\"608\""); 481482 WriteLiteralTo(__razor_helper_writer, " frameborder=\"0\""); 483484 WriteLiteralTo(__razor_helper_writer, " webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\r\n <div" + 485 ""); 486487 WriteLiteralTo(__razor_helper_writer, " class=\"cookieconsent-optout-marketing\""); 488489 WriteLiteralTo(__razor_helper_writer, ">\r\n <div>\r\n <a"); 490491 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-primary\""); 492493 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:Cookiebot.renew()\""); 494495 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 496497 WriteLiteralTo(__razor_helper_writer, " "); 498499500 #line 161 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 501 WriteTo(__razor_helper_writer, Dynamicweb.Rendering.Translation.Translation.GetTranslation("CookieBot - Video - accept marketing-cookies", PageView.Current().Area.Layout.Design)); 502503504 #line default 505 #line hidden 506 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r" + 507 "\n"); 508509510 #line 168 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 511512513 #line default 514 #line hidden 515516 #line 168 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 517 WriteTo(__razor_helper_writer, sectionEnd()); 518519520 #line default 521 #line hidden 522523 #line 168 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 524525 } 526527528 #line default 529 #line hidden 530 }); 531532 #line 170 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 533 } 534 #line default 535 #line hidden 536537538 #line 172 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 539 public RazorEngine.Templating.TemplateWriter ProductRelatedProducts(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null, 540 IEnumerable< Product > productLoop = null) 541 { 542 #line default 543 #line hidden 544 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 545546 #line 174 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 547548 if ( productLoop != null && productLoop.Any() == true ) 549 { 550 ClassList headingClassList = new ClassList(); 551 headingClassList.AddClasses( "col-12" ); 552 ClassList contentClassList = new ClassList(); 553 contentClassList.AddClasses( "col-12" ); 554555556557 #line default 558 #line hidden 559560 #line 182 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 561 WriteTo(__razor_helper_writer, sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses, collapseToggleTextCollapse: collapseToggleTextCollapse, collapseToggleTextExpand: collapseToggleTextExpand )); 562563564 #line default 565 #line hidden 566567 #line 182 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 568569570 if ( string.IsNullOrEmpty( heading ) == false ) 571 { 572573574 #line default 575 #line hidden 576 WriteLiteralTo(__razor_helper_writer, " <div"); 577578 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6630), Tuple.Create("\"", 6655) 579580 #line 186 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 581 , Tuple.Create(Tuple.Create("", 6638), Tuple.Create<System.Object, System.Int32>(headingClassList 582583 #line default 584 #line hidden 585 , 6638), false) 586 ); 587588 WriteLiteralTo(__razor_helper_writer, ">\r\n <h4"); 589590 WriteLiteralTo(__razor_helper_writer, " class=\"isabella-text-bullets-left mb-3\""); 591592 WriteLiteralTo(__razor_helper_writer, ">"); 593594595 #line 187 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 596 WriteTo(__razor_helper_writer, heading); 597598599 #line default 600 #line hidden 601 WriteLiteralTo(__razor_helper_writer, "</h4>\r\n </div>\r\n"); 602603604 #line 189 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 605 } 606607608 #line default 609 #line hidden 610 WriteLiteralTo(__razor_helper_writer, " <div"); 611612 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6755), Tuple.Create("\"", 6780) 613614 #line 190 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 615 , Tuple.Create(Tuple.Create("", 6763), Tuple.Create<System.Object, System.Int32>(contentClassList 616617 #line default 618 #line hidden 619 , 6763), false) 620 ); 621622 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 623624 WriteLiteralTo(__razor_helper_writer, " class=\"e-products mb-2\""); 625626 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 627628 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 629630 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 631632633 #line 193 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 634635636 #line default 637 #line hidden 638639 #line 193 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 640641 string productlistItemClassList = "col-12 col-sm-6 col-md-3 col-lg-3 col-xl-3"; 642643644 #line default 645 #line hidden 646 WriteLiteralTo(__razor_helper_writer, "\r\n"); 647648649 #line 196 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 650651652 #line default 653 #line hidden 654655 #line 196 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 656 foreach ( Product product in productLoop.Where(p => p.Groups.Any(g => g.ShopId.Equals("SHOP1")) && (bool) p.GetCategoryValue( "ProductsGeneral", "PIMActive" ) != false && (bool) p.ShowInProductList && p.Active) ) 657 { 658659660 #line default 661 #line hidden 662663 #line 198 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 664 WriteTo(__razor_helper_writer, ProductlistItem(product, productlistItemClassList)); 665666667 #line default 668 #line hidden 669670 #line 198 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 671672 } 673674675 #line default 676 #line hidden 677 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n </div>\r\n"); 678679680 #line 203 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 681682683684 #line default 685 #line hidden 686687 #line 204 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 688 WriteTo(__razor_helper_writer, sectionEnd()); 689690691 #line default 692 #line hidden 693694 #line 204 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 695696 } 697698699 #line default 700 #line hidden 701 }); 702703 #line 206 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 704 } 705 #line default 706 #line hidden 707708709 #line 209 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 710 public RazorEngine.Templating.TemplateWriter ProductlistItem(Product product, string productlistItemClassList = null, string isModelProductList = null) 711 { 712 #line default 713 #line hidden 714 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 715716 #line 210 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 717718 Dynamicweb.Ecommerce.Products.ProductService dwProductService = new Dynamicweb.Ecommerce.Products.ProductService(); 719 string shopType = PageView.Current().Area.Item["ShopType"]?.ToString(); 720 string productLink = eProductService.Instance.GetProductLink( product.GetDefaultGroupByShopId( product.DefaultShopId ).Id, product.Id, product.VariantId ); 721722723 productLink = SearchEngineFriendlyURLs.GetFriendlyUrl( productLink ); 724725 if (shopType == "Outlet") 726 { 727 Page page = new PageService().GetPageByNavigationTag(PageView.Current().AreaID, "outletdisplaypage"); 728 if (page != null) 729 { 730 productLink = SearchEngineFriendlyURLs.GetFriendlyUrl( $"Default.aspx?ID={page.ID}&productId={product.Id}" ); 731 } 732733 } 734735 IsabellaProductImageUrl primaryImage = Co3.Isabella.Dw.Services.ProductService.Instance.GetImagePrimary(product); 736 List<IsabellaProductImageUrl> detailsImages = Co3.Isabella.Dw.Services.ProductService.Instance.GetImageDetails(product); 737 string detailsImage = detailsImages?.FirstOrDefault( pd => pd.Type == 0 && pd.GroupId == 4 )?.Medium ?? string.Empty; 738739 //string productlistDetailImage = product.Details.FirstOrDefault( pd => pd.Type == 0 && pd.GroupId == 4 )?.Value; 740741742743 string image = "/Files/Templates/Designs/isabella/_assets/img/NoImage.gif"; 744745 if (primaryImage != null) 746 { 747 image = primaryImage.Medium; 748 } 749750 if ( product != null ) 751 { 752 dynamic productData = new 753 { 754 id = product.Id, 755 url = productLink, 756 number = product.Number, 757 name = product.Name, 758 imageDefault = image, 759 price = Co3.Isabella.Dw.Services.ProductService.Instance.GetPrice( product.Id ).Format(), 760 priceClean = Co3.Isabella.Dw.Services.ProductService.Instance.GetPrice( product.Id ).Price, 761 productIntroText = product.GetCategoryValue( "ProductsGeneral", "ProductIntroText" )?.ToString(), 762 news = product.GetCategoryValue( "ProductsGeneral", "News" )?.ToString(), 763 productType = product.GetCategoryValue( "ProductsGeneral", "ProductType" )?.ToString(), 764 isModelProductList = isModelProductList, 765 productlistDetailImage = detailsImage, 766 shopType 767 }; 768769770771 #line default 772 #line hidden 773 WriteLiteralTo(__razor_helper_writer, " <div"); 774775 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 9737), Tuple.Create("\"", 9770) 776777 #line 262 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 778 , Tuple.Create(Tuple.Create("", 9745), Tuple.Create<System.Object, System.Int32>(productlistItemClassList 779780 #line default 781 #line hidden 782 , 9745), false) 783 ); 784785 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 786787 WriteLiteralTo(__razor_helper_writer, " class=\"border-1 card mb-6\""); 788789 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 790791 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 9824), Tuple.Create("\"", 9847) 792793 #line 264 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 794 , Tuple.Create(Tuple.Create("", 9831), Tuple.Create<System.Object, System.Int32>(productData.url 795796 #line default 797 #line hidden 798 , 9831), false) 799 ); 800801 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 802803804 #line 265 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 805806807 #line default 808 #line hidden 809810 #line 265 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 811 if ( productData.isModelProductList == "True" ) 812 { 813814815 #line default 816 #line hidden 817 WriteLiteralTo(__razor_helper_writer, " <img"); 818819 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 9940), Tuple.Create("\"", 9981) 820821 #line 267 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 822 , Tuple.Create(Tuple.Create("", 9946), Tuple.Create<System.Object, System.Int32>(productData.productlistDetailImage 823824 #line default 825 #line hidden 826 , 9946), false) 827 ); 828829 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 9982), Tuple.Create("\"", 10030) 830831 #line 267 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 832 , Tuple.Create(Tuple.Create("", 9988), Tuple.Create<System.Object, System.Int32>(productData.name 833834 #line default 835 #line hidden 836 , 9988), false) 837838 #line 267 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 839 , Tuple.Create(Tuple.Create(" ", 10005), Tuple.Create<System.Object, System.Int32>(productData.productType 840841 #line default 842 #line hidden 843 , 10006), false) 844 ); 845846 WriteLiteralTo(__razor_helper_writer, " class=\"col-12 p-0\""); 847848 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 849850851 #line 268 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 852 } 853 else 854 { 855856857 #line default 858 #line hidden 859 WriteLiteralTo(__razor_helper_writer, " <img"); 860861 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 10111), Tuple.Create("\"", 10142) 862863 #line 271 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 864 , Tuple.Create(Tuple.Create("", 10117), Tuple.Create<System.Object, System.Int32>(productData.imageDefault 865866 #line default 867 #line hidden 868 , 10117), false) 869 ); 870871 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 10143), Tuple.Create("\"", 10191) 872873 #line 271 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 874 , Tuple.Create(Tuple.Create("", 10149), Tuple.Create<System.Object, System.Int32>(productData.name 875876 #line default 877 #line hidden 878 , 10149), false) 879880 #line 271 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 881 , Tuple.Create(Tuple.Create(" ", 10166), Tuple.Create<System.Object, System.Int32>(productData.productType 882883 #line default 884 #line hidden 885 , 10167), false) 886 ); 887888 WriteLiteralTo(__razor_helper_writer, " class=\"col-12 p-0\""); 889890 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 891892893 #line 272 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 894 } 895896897 #line default 898 #line hidden 899 WriteLiteralTo(__razor_helper_writer, " "); 900901902 #line 273 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 903 if ( productData.news == "True" ) 904 { 905906907 #line default 908 #line hidden 909 WriteLiteralTo(__razor_helper_writer, " <div"); 910911 WriteLiteralTo(__razor_helper_writer, " class=\"isabella-product-item-news\""); 912913 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 914915 WriteLiteralTo(__razor_helper_writer, " "); 916917918 #line 276 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 919 WriteTo(__razor_helper_writer, Dynamicweb.Rendering.Translation.Translation.GetTranslation( "Ecom Product - News Badge - Text" )); 920921922 #line default 923 #line hidden 924 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 925926927 #line 278 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 928 } 929930931 #line default 932 #line hidden 933 WriteLiteralTo(__razor_helper_writer, " </a>\r\n <div"); 934935 WriteLiteralTo(__razor_helper_writer, " class=\"card-body p-1 p-lg-3\""); 936937 WriteLiteralTo(__razor_helper_writer, ">\r\n <h4"); 938939 WriteLiteralTo(__razor_helper_writer, " class=\"e-products-item-name mb-0\""); 940941 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 942943 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 10609), Tuple.Create("\"", 10632) 944945 #line 282 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 946 , Tuple.Create(Tuple.Create("", 10616), Tuple.Create<System.Object, System.Int32>(productData.url 947948 #line default 949 #line hidden 950 , 10616), false) 951 ); 952953 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 954955 WriteLiteralTo(__razor_helper_writer, " "); 956957958 #line 283 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 959 WriteTo(__razor_helper_writer, productData.name); 960961962 #line default 963 #line hidden 964 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </h4>\r\n \r\n </div>\r\n </div>\r\n " + 965 " </div>\r\n"); 966967968 #line 290 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 969 } 970971972 #line default 973 #line hidden 974 }); 975976 #line 291 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 977 } 978 #line default 979 #line hidden 980981982 #line 294 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 983 public RazorEngine.Templating.TemplateWriter sectionStart(string sectionClasses = "e-section", string contentClasses = null, bool sectionCollapse = false, string sectionId = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null) 984 { 985 #line default 986 #line hidden 987 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 988989 #line 295 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 990991 sectionId = string.IsNullOrEmpty( sectionId ) ? Guid.NewGuid().ToString( "N" ) : sectionId; 992 ClassList sectionClassList = new ClassList(); 993 sectionClassList.AddClasses( sectionClasses ); 994 ClassList contentClassList; 995996 if ( contentClasses == null ) 997 { 998 contentClassList = Co3.Espresso.Website.Services.PageService.Instance.GetResponsiveClassesFromPageItem( PageView.Current().Page.Item ); 999 } 1000 else 1001 { 1002 contentClassList = new ClassList(); 1003 contentClassList.AddClasses( contentClasses ); 1004 } 10051006 // TODO: Split collapse logic into separate helper function. 1007 string collapseId = Guid.NewGuid().ToString( "N" ); 1008 ClassList collapseToggleClassList = new ClassList(); 1009 if ( sectionCollapse ) 1010 { 1011 sectionClassList.AddClasses( "p-section-collapse js-p-section-collapse" ); 1012 collapseToggleClassList.AddClasses( contentClasses ); 1013 collapseToggleClassList.AddClasses( "p-section-collapse-toggle collapsed order-last text-center" ); 1014 contentClassList.AddClasses( "p-section-collapse-content collapse is-md" ); 1015 } 1016101710181019 #line default 1020 #line hidden 1021 WriteLiteralTo(__razor_helper_writer, " "); 10221023 WriteLiteralTo(__razor_helper_writer, "<section class=\""); 102410251026 #line 322 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1027 WriteTo(__razor_helper_writer, sectionClassList); 102810291030 #line default 1031 #line hidden 1032 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 103310341035 #line 322 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1036 WriteTo(__razor_helper_writer, sectionId); 103710381039 #line default 1040 #line hidden 1041 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 10421043 WriteLiteralTo(__razor_helper_writer, " "); 10441045 WriteLiteralTo(__razor_helper_writer, "<div class=\"container-fluid\">\r\n"); 10461047 WriteLiteralTo(__razor_helper_writer, " "); 10481049 WriteLiteralTo(__razor_helper_writer, "<div class=\"row\">\r\n"); 105010511052 #line 325 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 10531054 // TODO: Split collapse logic into separate helper function. 1055 if ( sectionCollapse ) 1056 { 105710581059 #line default 1060 #line hidden 1061 WriteLiteralTo(__razor_helper_writer, " <div"); 10621063 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 12283), Tuple.Create("\"", 12315) 10641065 #line 329 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1066 , Tuple.Create(Tuple.Create("", 12291), Tuple.Create<System.Object, System.Int32>(collapseToggleClassList 10671068 #line default 1069 #line hidden 1070 , 12291), false) 1071 ); 10721073 WriteLiteralTo(__razor_helper_writer, " data-toggle=\"collapse\""); 10741075 WriteLiteralTo(__razor_helper_writer, " data-target=\"#"); 107610771078 #line 329 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1079 WriteTo(__razor_helper_writer, collapseId); 108010811082 #line default 1083 #line hidden 1084 WriteLiteralTo(__razor_helper_writer, "\""); 10851086 WriteLiteralTo(__razor_helper_writer, ">\r\n <button"); 10871088 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-primary p-section-collapse-toggle-btn\""); 10891090 WriteLiteralTo(__razor_helper_writer, " type=\"button\""); 10911092 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 10931094 WriteLiteralTo(__razor_helper_writer, " class=\"material-icons p-section-collapse-toggle-icon\""); 10951096 WriteLiteralTo(__razor_helper_writer, ">keyboard_arrow_down</i>\r\n </button>\r\n <small"); 10971098 WriteLiteralTo(__razor_helper_writer, " class=\"h4 p-section-collapse-toggle-text\""); 10991100 WriteLiteralTo(__razor_helper_writer, " data-expand-text=\""); 110111021103 #line 333 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1104 WriteTo(__razor_helper_writer, string.IsNullOrEmpty( collapseToggleTextExpand ) ? GetStandardCollapseToggleTextExpand() : collapseToggleTextExpand ); 110511061107 #line default 1108 #line hidden 1109 WriteLiteralTo(__razor_helper_writer, "\""); 11101111 WriteLiteralTo(__razor_helper_writer, " data-collapse-text=\""); 111211131114 #line 333 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1115 WriteTo(__razor_helper_writer, string.IsNullOrEmpty( collapseToggleTextCollapse ) ? GetStandardCollapseToggleTextCollapse() : collapseToggleTextCollapse ); 111611171118 #line default 1119 #line hidden 1120 WriteLiteralTo(__razor_helper_writer, "\""); 11211122 WriteLiteralTo(__razor_helper_writer, "></small>\r\n </div>\r\n"); 112311241125 #line 335 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1126 } 1127112811291130 #line default 1131 #line hidden 1132 WriteLiteralTo(__razor_helper_writer, " "); 11331134 WriteLiteralTo(__razor_helper_writer, "<div class=\""); 113511361137 #line 337 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1138 WriteTo(__razor_helper_writer, contentClassList); 113911401141 #line default 1142 #line hidden 1143 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 114411451146 #line 337 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1147 WriteTo(__razor_helper_writer, collapseId); 114811491150 #line default 1151 #line hidden 1152 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 11531154 WriteLiteralTo(__razor_helper_writer, " "); 11551156 WriteLiteralTo(__razor_helper_writer, "<div class=\"row\">\r\n"); 115711581159 #line 339 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 116011611162 #line default 1163 #line hidden 1164 }); 11651166 #line 339 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1167 } 1168 #line default 1169 #line hidden 117011711172 #line 341 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1173 public RazorEngine.Templating.TemplateWriter sectionEnd() 1174 { 1175 #line default 1176 #line hidden 1177 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11781179 #line 342 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1180118111821183 #line default 1184 #line hidden 1185 WriteLiteralTo(__razor_helper_writer, " "); 11861187 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11881189 WriteLiteralTo(__razor_helper_writer, " "); 11901191 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11921193 WriteLiteralTo(__razor_helper_writer, " "); 11941195 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11961197 WriteLiteralTo(__razor_helper_writer, " "); 11981199 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 12001201 WriteLiteralTo(__razor_helper_writer, " "); 12021203 WriteLiteralTo(__razor_helper_writer, "</section>\r\n"); 120412051206 #line 348 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 120712081209 #line default 1210 #line hidden 1211 }); 12121213 #line 348 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1214 } 1215 #line default 1216 #line hidden 121712181219 public RazorEngine_088a453ca89c408c862511b557635a13() { 1220 } 12211222 public override void Execute() { 1223 WriteLiteral("\r\n"); 12241225 WriteLiteral("\r\n"); 12261227 WriteLiteral("\r\n\r\n"); 12281229 WriteLiteral("\r\n"); 12301231 WriteLiteral("\r\n\r\n"); 12321233 WriteLiteral("\r\n\r\n"); 12341235 WriteLiteral("\r\n"); 12361237 WriteLiteral("\r\n\r\n\r\n\r\n\r\n"); 123812391240 #line 354 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 12411242 Dynamicweb.Ecommerce.Products.ProductService dwProductService = new Dynamicweb.Ecommerce.Products.ProductService(); 1243 Product product = dwProductService.GetProductById( GetString( "Ecom:Product.ID" ), GetString( "Ecom:Product.VariantID" ), true ); 1244 IEnumerable< Product > parentProducts = Co3.Isabella.Dw.Services.ProductService.Instance.GetRelatedParentProducts( product ); 1245 string productImage = GetString( "Ecom:Product.ImageDefault.Clean" ); 1246 string shopType = PageView.Current().Area.Item["ShopType"]?.ToString(); 1247 bool isOutlet = shopType == "Outlet"; 1248124912501251 #line default 1252 #line hidden 1253 WriteLiteral("\r\n\r\n\r\n"); 12541255 WriteLiteral("\r\n"); 125612571258 #line 367 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 12591260 string boughtWithHeading = Translate("eCom - Recommended Products - Bought With - Heading", "Ofte købt sammen med"); 1261 string boughtWithFallbackHeading = Translate("eCom - Recommended Products - Best Sellers - Heading", "Populære produkter"); 126212631264 #line default 1265 #line hidden 1266 WriteLiteral("\r\n\r\n"); 126712681269 #line 372 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1270 if(!isOutlet && !isCamplet){ 127112721273 #line default 1274 #line hidden 12751276 #line 373 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1277 Write(sectionStart( sectionClasses: "e-section py-2 bg-septenary-opacity-low border-bottom js-e-recommended-products-container" )); 127812791280 #line default 1281 #line hidden 12821283 #line 373 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1284128512861287 #line default 1288 #line hidden 1289 WriteLiteral(" <div"); 12901291 WriteLiteral(" class=\"col-12 js-e-recommended-products\""); 12921293 WriteLiteral(" data-recommendation=\"boughtWith\""); 12941295 WriteLiteral(" data-heading=\""); 129612971298 #line 374 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1299 Write(boughtWithHeading); 130013011302 #line default 1303 #line hidden 1304 WriteLiteral("\""); 13051306 WriteLiteral(" data-fallback-heading=\""); 130713081309 #line 374 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1310 Write(boughtWithFallbackHeading); 131113121313 #line default 1314 #line hidden 1315 WriteLiteral("\""); 13161317 WriteLiteral(">\r\n \r\n <div"); 13181319 WriteLiteral(" class=\"js-e-recommended-products-container\""); 13201321 WriteLiteral(">\r\n <div"); 13221323 WriteLiteral(" class=\"e-loading-overlay e-products-loading-overlay js-e-products-loading-overla" + 1324 "y is-loading\""); 13251326 WriteLiteral(">\r\n <div"); 13271328 WriteLiteral(" class=\"e-loading-spinner\""); 13291330 WriteLiteral("></div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n"); 133113321333 #line 383 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 133413351336 #line default 1337 #line hidden 13381339 #line 383 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1340 Write(sectionEnd()); 134113421343 #line default 1344 #line hidden 13451346 #line 383 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 13471348 } 134913501351 #line default 1352 #line hidden 1353 WriteLiteral("\r\n\r\n<related-products"); 13541355 WriteLiteral(" type=\"RelatedProducts\""); 13561357 WriteAttribute("product-id", Tuple.Create(" product-id=\"", 14677), Tuple.Create("\"", 14701) 13581359 #line 387 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1360 , Tuple.Create(Tuple.Create("", 14690), Tuple.Create<System.Object, System.Int32>(product.Id 13611362 #line default 1363 #line hidden 1364 , 14690), false) 1365 ); 13661367 WriteAttribute("variant-id", Tuple.Create(" variant-id=\"", 14702), Tuple.Create("\"", 14733) 13681369 #line 387 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1370 , Tuple.Create(Tuple.Create("", 14715), Tuple.Create<System.Object, System.Int32>(product.VariantId 13711372 #line default 1373 #line hidden 1374 , 14715), false) 1375 ); 13761377 WriteLiteral("></related-products>\r\n"); 13781379 WriteLiteral("\r\n<script"); 13801381 WriteLiteral(" id=\"js-e-handlebars-tmpl-recommended-products\""); 13821383 WriteLiteral(" type=\"text/x-handlebars-template\""); 13841385 WriteLiteral(@"> 13861387 <h4 class=""isabella-text-bullets-left mb-3""> 1388 {{heading}} 1389 </h4> 1390 <div class=""e-products f""> 13911392 <div class=""row""> 1393 {{#each products}} 1394 {{#if pimActive}} 1395 <div class=""col-12 col-sm-6 col-md-3 col-lg-3 col-xl-3""> 1396 <div class=""card border-1 mb-6""> 1397 <a href=""{{url}}""> 1398 <img src=""{{imageDefault}}"" alt=""{{name}} {{productType}}"" class=""col-12 p-0""> 1399 {{#if news}} 1400 <div class=""isabella-product-item-news""> 1401 "); 14021403 WriteLiteral(" "); 140414051406 #line 409 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1407 Write(Translate("Ecom Product - News Badge - Text","Nyhed")); 140814091410 #line default 1411 #line hidden 1412 WriteLiteral(@" 1413 </div> 1414 {{/if}} 1415 </a> 1416 <div class=""card-body p-1 p-lg-3""> 1417 <h4 class=""e-products-item-name mb-0""> 1418 <a href=""{{url}}""> 1419 {{{name}}} 1420 </a> 1421 </h4> 14221423 </div> 1424 </div> 1425 </div> 14261427 {{/if}} 1428 {{/each}} 1429 </div> 1430 </div> 14311432 </script> 143314341435 "); 143614371438 #line 432 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1439 Write(SnippetStart("ProductOpenGraph")); 144014411442 #line default 1443 #line hidden 1444 WriteLiteral("\r\n"); 144514461447 #line 433 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 14481449 string openGraphTitle = product.Meta.Title; 1450 if (string.IsNullOrEmpty(openGraphTitle)) 1451 { 1452 openGraphTitle = product.Name; 1453 } 1454 string openGraphDescription = product.Meta.Description; 1455 if (string.IsNullOrEmpty(openGraphDescription)) 1456 { 1457 openGraphDescription = product.ShortDescription; 1458 } 1459 string openGraphImage = $"{HttpContext.Current.Request.Url.Scheme}://{HttpContext.Current.Request.Url.Host}/admin/public/getimage.ashx?Crop=0&Image={productImage}&Format=jpg&Width=1820&Height=1000&Quality=90"; 146014611462 #line default 1463 #line hidden 1464 WriteLiteral("\r\n<meta"); 14651466 WriteLiteral(" property=\"og:title\""); 14671468 WriteAttribute("content", Tuple.Create(" content=\"", 16676), Tuple.Create("\"", 16701) 14691470 #line 446 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1471 , Tuple.Create(Tuple.Create("", 16686), Tuple.Create<System.Object, System.Int32>(openGraphTitle 14721473 #line default 1474 #line hidden 1475 , 16686), false) 1476 ); 14771478 WriteLiteral(">\r\n<meta"); 14791480 WriteLiteral(" property=\"og:description\""); 14811482 WriteAttribute("content", Tuple.Create(" content=\"", 16736), Tuple.Create("\"", 16779) 14831484 #line 447 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1485 , Tuple.Create(Tuple.Create("", 16746), Tuple.Create<System.Object, System.Int32>(openGraphDescription.StripHtml() 14861487 #line default 1488 #line hidden 1489 , 16746), false) 1490 ); 14911492 WriteLiteral(">\r\n<meta"); 14931494 WriteLiteral(" property=\"og:image\""); 14951496 WriteAttribute("content", Tuple.Create(" content=\"", 16808), Tuple.Create("\"", 16833) 14971498 #line 448 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1499 , Tuple.Create(Tuple.Create("", 16818), Tuple.Create<System.Object, System.Int32>(openGraphImage 15001501 #line default 1502 #line hidden 1503 , 16818), false) 1504 ); 15051506 WriteLiteral(">\r\n"); 150715081509 #line 449 "F:\dynamicweb.net\Solutions\isabella.espresso4.dk\Files\Templates\Designs\isabella\eCom\Product\isabella-accessories.cshtml" 1510 Write(SnippetEnd("ProductOpenGraph")); 151115121513 #line default 1514 #line hidden 1515 } 1516 } 1517 } 1518

1 @inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase 2 @using Dynamicweb.Ecommerce.Prices 3 @using System.Text.RegularExpressions 4 @using Co3.Espresso.Website.Services 5 @using Co3.Isabella.Dw.Services; 6 @using Dynamicweb.Ecommerce.Common.eCom7 7 @using Dynamicweb.Ecommerce.Products 8 @using Dynamicweb.Rendering 9 @using System.Web 10 @using Co3.Espresso.Base.Extensions 11 @using Dynamicweb.Frontend 12 @using Co3.Espresso.Base.Models 13 @using Dynamicweb.Admin.dk.dynamicweb.templates 14 @using Dynamicweb.Controls 15 @using Co3.Espresso.Website.Models.FrontEnd.Paragraphs 16 @using eProductService = Co3.Espresso.Website.Services.ProductService 17 @inherits Co3.Espresso.Website.TemplateBases.Paragraphs.Module 18 19 @using System.Globalization 20 @using System.Security.Cryptography.X509Certificates 21 @using System.Web.Razor.Parser.SyntaxTree 22 @using Co3.Espresso.Base.Extensions 23 @using Co3.Espresso.Website.Models.FrontEnd 24 @using Co3.Espresso.Website.Services 25 @using Co3.Isabella.Dw.Models.FrontEnd.Ecommerce 26 @using Dynamicweb.Content 27 @using Dynamicweb.Ecommerce.Products 28 @using Dynamicweb.Frontend 29 @using Dynamicweb.Rendering 30 @using Dynamicweb.Rendering.Translation 31 @using Dynamicweb.SystemTools 32 @using EcomContext = Dynamicweb.Ecommerce.Common.Context 33 @using eProductService = Co3.Espresso.Website.Services.ProductService 34 @using Page = Dynamicweb.Content.Page 35 @using PageService = Dynamicweb.Content.PageService 36 37 @functions { 38 39 public string getCountryCodeFromArea(Area area) 40 { 41 RegionInfo regionInfo = new RegionInfo( area.CultureInfo.LCID ); 42 return regionInfo.TwoLetterISORegionName; 43 } 44 45 public string getCheckoutSetup(string shopType = "") 46 { 47 bool isB2bCheckout = PageView.Current().User != null; 48 if (isB2bCheckout) 49 { 50 return "shipping,customer,approve"; 51 } else if (shopType == "B2C") 52 { 53 return "shipping,payment,approve"; 54 } else if (shopType == "Outlet") 55 { 56 return "shipping,customer,payment,approve"; 57 } 58 59 return "customer,approve"; 60 } 61 62 public static string GetStandardCollapseToggleTextExpand() 63 { 64 return "Se mere"; 65 } 66 67 public static string GetStandardCollapseToggleTextCollapse() 68 { 69 return "Se mindre"; 70 } 71 72 public string getModelTypeLink() 73 { 74 bool isUserAuthenticated = PageView.Current().User != null; 75 string eComCountryCode = PageView.Current().Area.Item[ "EcommerceCountryCode" ] != null ? PageView.Current().Area.Item[ "EcommerceCountryCode" ].ToString() : ""; 76 string returnValue = string.Empty; 77 78 if ( isUserAuthenticated == false ) 79 { 80 if ( string.IsNullOrEmpty(eComCountryCode) == false) 81 { 82 { 83 returnValue = string.Format( "Ecom:Product.CategoryField.ModelType.ModelTypeLink_{0}.Value", eComCountryCode ); 84 } 85 } 86 else 87 { 88 returnValue = "Ecom:Product.CategoryField.ModelType.ModelTypeLink.Value"; 89 } 90 } 91 else 92 { 93 if ( string.IsNullOrEmpty(eComCountryCode) == false) 94 { 95 { 96 returnValue = string.Format( "Ecom:Product.CategoryField.ModelType.ModelTypeLinkB2B_{0}.Value", eComCountryCode ); 97 } 98 } 99 else 100 { 101 returnValue = "Ecom:Product.CategoryField.ModelType.ModelTypeLinkB2B.Value"; 102 } 103 } 104105 return returnValue; 106 } 107108 } 109110 @helper ProductDescription(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null) 111 { 112 if ( string.IsNullOrEmpty( content ) == false ) 113 { 114 ClassList headingClassList = new ClassList(); 115 headingClassList.AddClasses( "col-12" ); 116 ClassList contentClassList = new ClassList(); 117 contentClassList.AddClasses( "col-12" ); 118119 @sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses, collapseToggleTextCollapse: collapseToggleTextCollapse, collapseToggleTextExpand: collapseToggleTextExpand ) 120121 if ( string.IsNullOrEmpty( heading ) == false ) 122 { 123 <div class="@headingClassList"> 124 <h2>@heading</h2> 125 </div> 126 } 127 <div class="@contentClassList"> 128 @content 129 </div> 130131 @sectionEnd() 132 } 133 } 134135136 @helper ProductVideo(string sectionClasses = "e-section", string contentClasses = null, string heading = null, string videoURL = null) 137 { 138 if ( string.IsNullOrEmpty( videoURL ) == false ) 139 { 140 ClassList headingClassList = new ClassList(); 141 headingClassList.AddClasses( "col-12" ); 142 ClassList contentClassList = new ClassList(); 143 contentClassList.AddClasses( "col-12" ); 144145146 @sectionStart( sectionClasses: sectionClasses, contentClasses: contentClasses ) 147148 if ( string.IsNullOrEmpty( heading ) == false ) 149 { 150 <div class="@headingClassList"> 151 <h2>@heading</h2> 152 </div> 153 } 154155 <div class="@contentClassList"> 156 <div class="embed-responsive embed-responsive-16by9 mb-2"> 157 <iframe class="embed-responsive-item cookieconsent-optin-marketing" data-cookieconsent="marketing" data-cookieblock-src="@videoURL" width="1080" height="608" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> 158 <div class="cookieconsent-optout-marketing"> 159 <div> 160 <a class="btn btn-primary" href="javascript:Cookiebot.renew()"> 161 @Dynamicweb.Rendering.Translation.Translation.GetTranslation("CookieBot - Video - accept marketing-cookies", PageView.Current().Area.Layout.Design) 162 </a> 163164 </div> 165 </div> 166 </div> 167 </div> 168 @sectionEnd() 169 } 170 } 171172 @helper ProductRelatedProducts(string sectionClasses = "e-section", bool sectionCollapse = false, string contentClasses = null, string heading = null, string content = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null, 173 IEnumerable< Product > productLoop = null) 174 { 175 if ( productLoop != null && productLoop.Any() == true ) 176 { 177 ClassList headingClassList = new ClassList(); 178 headingClassList.AddClasses( "col-12" ); 179 ClassList contentClassList = new ClassList(); 180 contentClassList.AddClasses( "col-12" ); 181182 @sectionStart( sectionClasses: sectionClasses, sectionCollapse: sectionCollapse, contentClasses: contentClasses, collapseToggleTextCollapse: collapseToggleTextCollapse, collapseToggleTextExpand: collapseToggleTextExpand ) 183184 if ( string.IsNullOrEmpty( heading ) == false ) 185 { 186 <div class="@headingClassList"> 187 <h4 class="isabella-text-bullets-left mb-3">@heading</h4> 188 </div> 189 } 190 <div class="@contentClassList"> 191 <div class="e-products mb-2"> 192 <div class="row"> 193 @{ 194 string productlistItemClassList = "col-12 col-sm-6 col-md-3 col-lg-3 col-xl-3"; 195 } 196 @foreach ( Product product in productLoop.Where(p => p.Groups.Any(g => g.ShopId.Equals("SHOP1")) && (bool) p.GetCategoryValue( "ProductsGeneral", "PIMActive" ) != false && (bool) p.ShowInProductList && p.Active) ) 197 { 198 @ProductlistItem(product, productlistItemClassList) 199 } 200 </div> 201 </div> 202 </div> 203204 @sectionEnd() 205 } 206 } 207208209 @helper ProductlistItem(Product product, string productlistItemClassList = null, string isModelProductList = null) 210 { 211 Dynamicweb.Ecommerce.Products.ProductService dwProductService = new Dynamicweb.Ecommerce.Products.ProductService(); 212 string shopType = PageView.Current().Area.Item["ShopType"]?.ToString(); 213 string productLink = eProductService.Instance.GetProductLink( product.GetDefaultGroupByShopId( product.DefaultShopId ).Id, product.Id, product.VariantId ); 214215216 productLink = SearchEngineFriendlyURLs.GetFriendlyUrl( productLink ); 217218 if (shopType == "Outlet") 219 { 220 Page page = new PageService().GetPageByNavigationTag(PageView.Current().AreaID, "outletdisplaypage"); 221 if (page != null) 222 { 223 productLink = SearchEngineFriendlyURLs.GetFriendlyUrl( $"Default.aspx?ID={page.ID}&productId={product.Id}" ); 224 } 225226 } 227228 IsabellaProductImageUrl primaryImage = Co3.Isabella.Dw.Services.ProductService.Instance.GetImagePrimary(product); 229 List<IsabellaProductImageUrl> detailsImages = Co3.Isabella.Dw.Services.ProductService.Instance.GetImageDetails(product); 230 string detailsImage = detailsImages?.FirstOrDefault( pd => pd.Type == 0 && pd.GroupId == 4 )?.Medium ?? string.Empty; 231232 //string productlistDetailImage = product.Details.FirstOrDefault( pd => pd.Type == 0 && pd.GroupId == 4 )?.Value; 233234235236 string image = "/Files/Templates/Designs/isabella/_assets/img/NoImage.gif"; 237238 if (primaryImage != null) 239 { 240 image = primaryImage.Medium; 241 } 242243 if ( product != null ) 244 { 245 dynamic productData = new 246 { 247 id = product.Id, 248 url = productLink, 249 number = product.Number, 250 name = product.Name, 251 imageDefault = image, 252 price = Co3.Isabella.Dw.Services.ProductService.Instance.GetPrice( product.Id ).Format(), 253 priceClean = Co3.Isabella.Dw.Services.ProductService.Instance.GetPrice( product.Id ).Price, 254 productIntroText = product.GetCategoryValue( "ProductsGeneral", "ProductIntroText" )?.ToString(), 255 news = product.GetCategoryValue( "ProductsGeneral", "News" )?.ToString(), 256 productType = product.GetCategoryValue( "ProductsGeneral", "ProductType" )?.ToString(), 257 isModelProductList = isModelProductList, 258 productlistDetailImage = detailsImage, 259 shopType 260 }; 261262 <div class="@productlistItemClassList"> 263 <div class="border-1 card mb-6"> 264 <a href="@productData.url"> 265 @if ( productData.isModelProductList == "True" ) 266 { 267 <img src="@productData.productlistDetailImage" alt="@productData.name @productData.productType" class="col-12 p-0"> 268 } 269 else 270 { 271 <img src="@productData.imageDefault" alt="@productData.name @productData.productType" class="col-12 p-0"> 272 } 273 @if ( productData.news == "True" ) 274 { 275 <div class="isabella-product-item-news"> 276 @Dynamicweb.Rendering.Translation.Translation.GetTranslation( "Ecom Product - News Badge - Text" ) 277 </div> 278 } 279 </a> 280 <div class="card-body p-1 p-lg-3"> 281 <h4 class="e-products-item-name mb-0"> 282 <a href="@productData.url"> 283 @productData.name 284 </a> 285 </h4> 286287 </div> 288 </div> 289 </div> 290 } 291 } 292293294 @helper sectionStart(string sectionClasses = "e-section", string contentClasses = null, bool sectionCollapse = false, string sectionId = null, string collapseToggleTextExpand = null, string collapseToggleTextCollapse = null) 295 { 296 sectionId = string.IsNullOrEmpty( sectionId ) ? Guid.NewGuid().ToString( "N" ) : sectionId; 297 ClassList sectionClassList = new ClassList(); 298 sectionClassList.AddClasses( sectionClasses ); 299 ClassList contentClassList; 300301 if ( contentClasses == null ) 302 { 303 contentClassList = Co3.Espresso.Website.Services.PageService.Instance.GetResponsiveClassesFromPageItem( PageView.Current().Page.Item ); 304 } 305 else 306 { 307 contentClassList = new ClassList(); 308 contentClassList.AddClasses( contentClasses ); 309 } 310311 // TODO: Split collapse logic into separate helper function. 312 string collapseId = Guid.NewGuid().ToString( "N" ); 313 ClassList collapseToggleClassList = new ClassList(); 314 if ( sectionCollapse ) 315 { 316 sectionClassList.AddClasses( "p-section-collapse js-p-section-collapse" ); 317 collapseToggleClassList.AddClasses( contentClasses ); 318 collapseToggleClassList.AddClasses( "p-section-collapse-toggle collapsed order-last text-center" ); 319 contentClassList.AddClasses( "p-section-collapse-content collapse is-md" ); 320 } 321322 @:<section class="@sectionClassList" id="@sectionId"> 323 @:<div class="container-fluid"> 324 @:<div class="row"> 325326 // TODO: Split collapse logic into separate helper function. 327 if ( sectionCollapse ) 328 { 329 <div class="@collapseToggleClassList" data-toggle="collapse" data-target="#@collapseId"> 330 <button class="btn btn-primary p-section-collapse-toggle-btn" type="button"> 331 <i class="material-icons p-section-collapse-toggle-icon">keyboard_arrow_down</i> 332 </button> 333 <small class="h4 p-section-collapse-toggle-text" data-expand-text="@( string.IsNullOrEmpty( collapseToggleTextExpand ) ? GetStandardCollapseToggleTextExpand() : collapseToggleTextExpand )" data-collapse-text="@( string.IsNullOrEmpty( collapseToggleTextCollapse ) ? GetStandardCollapseToggleTextCollapse() : collapseToggleTextCollapse )"></small> 334 </div> 335 } 336337 @:<div class="@contentClassList" id="@collapseId"> 338 @:<div class="row"> 339 } 340341 @helper sectionEnd() 342 { 343 @:</div> 344 @:</div> 345 @:</div> 346 @:</div> 347 @:</section> 348 } 349350351352353354 @{ 355 Dynamicweb.Ecommerce.Products.ProductService dwProductService = new Dynamicweb.Ecommerce.Products.ProductService(); 356 Product product = dwProductService.GetProductById( GetString( "Ecom:Product.ID" ), GetString( "Ecom:Product.VariantID" ), true ); 357 IEnumerable< Product > parentProducts = Co3.Isabella.Dw.Services.ProductService.Instance.GetRelatedParentProducts( product ); 358 string productImage = GetString( "Ecom:Product.ImageDefault.Clean" ); 359 string shopType = PageView.Current().Area.Item["ShopType"]?.ToString(); 360 bool isOutlet = shopType == "Outlet"; 361362 } 363364365 @using Dynamicweb.SystemTools 366367 @{ 368 string boughtWithHeading = Translate("eCom - Recommended Products - Bought With - Heading", "Ofte købt sammen med"); 369 string boughtWithFallbackHeading = Translate("eCom - Recommended Products - Best Sellers - Heading", "Populære produkter"); 370 } 371372 @if(!isOutlet && !isCamplet){ 373 @sectionStart( sectionClasses: "e-section py-2 bg-septenary-opacity-low border-bottom js-e-recommended-products-container" ) 374 <div class="col-12 js-e-recommended-products" data-recommendation="boughtWith" data-heading="@boughtWithHeading" data-fallback-heading="@boughtWithFallbackHeading"> 375376 <div class="js-e-recommended-products-container"> 377 <div class="e-loading-overlay e-products-loading-overlay js-e-products-loading-overlay is-loading"> 378 <div class="e-loading-spinner"></div> 379 </div> 380 </div> 381382 </div> 383 @sectionEnd() 384 } 385386387 <related-products type="RelatedProducts" product-id="@product.Id" variant-id="@product.VariantId"></related-products> 388 @using Co3.Espresso.Base.Extensions 389 @using Co3.Espresso.Website.Models.FrontEnd 390 @using Co3.Espresso.Website.Services 391 @using Dynamicweb.Frontend 392393 <script id="js-e-handlebars-tmpl-recommended-products" type="text/x-handlebars-template"> 394395 <h4 class="isabella-text-bullets-left mb-3"> 396 {{heading}} 397 </h4> 398 <div class="e-products f"> 399400 <div class="row"> 401 {{#each products}} 402 {{#if pimActive}} 403 <div class="col-12 col-sm-6 col-md-3 col-lg-3 col-xl-3"> 404 <div class="card border-1 mb-6"> 405 <a href="{{url}}"> 406 <img src="{{imageDefault}}" alt="{{name}} {{productType}}" class="col-12 p-0"> 407 {{#if news}} 408 <div class="isabella-product-item-news"> 409 @Translate("Ecom Product - News Badge - Text","Nyhed") 410 </div> 411 {{/if}} 412 </a> 413 <div class="card-body p-1 p-lg-3"> 414 <h4 class="e-products-item-name mb-0"> 415 <a href="{{url}}"> 416 {{{name}}} 417 </a> 418 </h4> 419420 </div> 421 </div> 422 </div> 423424 {{/if}} 425 {{/each}} 426 </div> 427 </div> 428429 </script> 430431432 @SnippetStart("ProductOpenGraph") 433 @{ 434 string openGraphTitle = product.Meta.Title; 435 if (string.IsNullOrEmpty(openGraphTitle)) 436 { 437 openGraphTitle = product.Name; 438 } 439 string openGraphDescription = product.Meta.Description; 440 if (string.IsNullOrEmpty(openGraphDescription)) 441 { 442 openGraphDescription = product.ShortDescription; 443 } 444 string openGraphImage = $"{HttpContext.Current.Request.Url.Scheme}://{HttpContext.Current.Request.Url.Host}/admin/public/getimage.ashx?Crop=0&Image={productImage}&Format=jpg&Width=1820&Height=1000&Quality=90"; 445 } 446 <meta property="og:title" content="@openGraphTitle"> 447 <meta property="og:description" content="@openGraphDescription.StripHtml()"> 448 <meta property="og:image" content="@openGraphImage"> 449 @SnippetEnd("ProductOpenGraph")

Good advice for Magnum

Muut Osateltat

keyboard_arrow_up