Category

Sub-category

Computer Accessories

Find the Perfect PC Accessories for Your Devices!

Optimise your computing experience with our computer accessories collection. Explore a wide range of options to enhance productivity and convenience. From ergonomic keyboards to high-speed USB hubs, our accessories offer versatility and performance. With durable construction and compatibility with various devices, find the perfect additions to your workstation. 

Home Entertainment: Televisions | TV Accessories | Audio Gadget | Gaming Furniture | Cameras | Computer Accessories | Smartphone Accessories | Headsets | Digital Thermometers | Alarm Clocks | Cables | Network Devices | Telephones | Batteries

 
HP 22 COLOUR (C9352AE)
HP 22 COLOUR (C9352AE)
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_647beaeff23d4653857549bfff4492b0 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_647beaeff23d4653857549bfff4492b0() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0092221
€ 44.99 InStock
In stock
CANON PG-40 BLACK
CANON PG-40 BLACK
Only Mono Price
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_0290e2c5705546b2b2fe65098fb79e0d : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_0290e2c5705546b2b2fe65098fb79e0d() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0094436
€ 25.99 InStock
In stock
CANON CL-41 COLOUR
CANON CL-41 COLOUR
Only Mono Price
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_bdd6f97c8b7d4d579306bf980f380bfc : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_bdd6f97c8b7d4d579306bf980f380bfc() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0094437
€ 31.99 InStock
In stock
HP 350 BLACK (CB335EE)
HP 350 BLACK (CB335EE)
Only Mono Price
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_ad83d0f3bcbd4c6eaf6433f6545cb66e : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_ad83d0f3bcbd4c6eaf6433f6545cb66e() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0101090
€ 32.99 InStock
In stock
YENKEE YKB3500 MECHANICAL GAMING RNBW KEYBOARD
YENKEE YKB3500 MECHANICAL GAMING RNBW KEYBOARD
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_067fe3e7c6b24c8684b8dfc7552545a1 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_067fe3e7c6b24c8684b8dfc7552545a1() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0240183
€ 48.99 InStock
In stock
YENKEE YMS3000 PRO E-SPORT GAMING RGB MOUSE ZERO
YENKEE YMS3000 PRO E-SPORT GAMING RGB MOUSE ZERO
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_c72f405781914a06b5bcb0aa76b188e9 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_c72f405781914a06b5bcb0aa76b188e9() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0240161
€ 44.99 InStock
In stock
FELLOWES TABLET CLEAN KIT
FELLOWES TABLET CLEAN KIT
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_d84cee24784f4c5ea6e9a6be18f68953 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_d84cee24784f4c5ea6e9a6be18f68953() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0242333
€ 12.99 InStock
In stock
VERBATIM CD-R 80 SLIM SINGLE
VERBATIM CD-R 80 SLIM SINGLE
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_2645e11e0217492087a29984c06caca6 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_2645e11e0217492087a29984c06caca6() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0193824
€ 0.69 InStock
In stock
VERBATIM DVD+R DOUBLE 8.5GB SPINDLE 10PCS
VERBATIM DVD+R DOUBLE 8.5GB SPINDLE 10PCS
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_94d18f5004a2428dad83363ad9c48e13 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_94d18f5004a2428dad83363ad9c48e13() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0177144
€ 16.95 InStock
In stock
ERGONOMIC MOUSE PAD WITH GEL WRIST REST
ERGONOMIC MOUSE PAD WITH GEL WRIST REST
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_162d872171ce4a518cddb6f035e1a963 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_162d872171ce4a518cddb6f035e1a963() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0163947
€ 8.99 InStock
In stock
TNB MICRO USB OTG TO USB 2.1 ADAPTER
TNB MICRO USB OTG TO USB 2.1 ADAPTER
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_12d91c8c39c843c7a3a155535dcab848 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_12d91c8c39c843c7a3a155535dcab848() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0177135
€ 7.99 InStock
In stock
TNB DPDP2 MALE/MALE DISPLAYPORT CABLE 2M
TNB DPDP2 MALE/MALE DISPLAYPORT CABLE 2M
Error compiling template "Designs/Swift/Paragraph/Swift_ProductHeader.cshtml"
Line 63: The name 'MixAndMatchDescription' 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 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 17 using Dynamicweb.Ecommerce.ProductCatalog; 18 19 #line default 20 #line hidden 21 22 23 public class RazorEngine_f063a75913814ce5a9de637ac49e5b0b : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_f063a75913814ce5a9de637ac49e5b0b() { 28 } 29 30 public override void Execute() { 31 WriteLiteral("\r\n"); 32 33 34 #line 4 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 35 36 ProductViewModel product = null; 37 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 38 { 39 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 40 } 41 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 42 { 43 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 44 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 45 46 if (productList?.Products is object) 47 { 48 product = productList.Products[0]; 49 } 50 } 51 52 53 string DiscBuyXamountAndGetYDiscount_Text = ""; 54 string DiscBuyXamountAndGetYDiscount_percentage = ""; 55 56 57 #line default 58 #line hidden 59 WriteLiteral("\r\n\r\n"); 60 61 62 #line 26 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 63 if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 64 { 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\t<div"); 70 71 WriteLiteral(" style=\"width:100%\""); 72 73 WriteLiteral(" class=\"DiscBuyXamountAndGetYDiscount\""); 74 75 WriteLiteral(">"); 76 77 78 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 79 Write(DiscBuyXamountAndGetYDiscount_Text); 80 81 82 #line default 83 #line hidden 84 WriteLiteral(" "); 85 86 87 #line 28 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 88 Write(DiscBuyXamountAndGetYDiscount_percentage); 89 90 91 #line default 92 #line hidden 93 WriteLiteral("</div>\r\n"); 94 95 96 #line 29 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 97 } 98 99 100 #line default 101 #line hidden 102 103 #line 30 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 104 if (product is object) 105 { 106 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 107 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 108 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 109 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 110 111 112 //CS NT 113 114 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 115 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 116 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 117 118 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 119 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 120 string headingLevelStop = $"</{headingLevel}>"; 121 122 123 124 #line default 125 #line hidden 126 127 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 128 Write(headingLevelStart); 129 130 131 #line default 132 #line hidden 133 134 #line 48 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 135 136 137 138 #line default 139 #line hidden 140 141 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 142 Write(product.Name); 143 144 145 #line default 146 #line hidden 147 148 #line 49 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 149 150 151 152 #line default 153 #line hidden 154 155 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 156 Write(headingLevelStop); 157 158 159 #line default 160 #line hidden 161 162 #line 50 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 163 164 165 } 166 else if (Pageview.IsVisualEditorMode) 167 { 168 169 170 #line default 171 #line hidden 172 WriteLiteral("\t<div"); 173 174 WriteLiteral(" class=\"alert alert-dark m-0\""); 175 176 WriteLiteral(">"); 177 178 179 #line 55 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 180 Write(Translate("No products available")); 181 182 183 #line default 184 #line hidden 185 WriteLiteral("</div>\r\n"); 186 187 188 #line 56 "D:\dynamicweb.net\Solutions\nextech\Superhome.swiftstaging.dynamicweb-cms.com\files\Templates\Designs\Swift\Paragraph\Swift_ProductHeader.cshtml" 189 } 190 191 192 #line default 193 #line hidden 194 } 195 } 196 } 197

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 ProductViewModel product = null; 6 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 7 { 8 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 9 } 10 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 11 { 12 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 13 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 14 15 if (productList?.Products is object) 16 { 17 product = productList.Products[0]; 18 } 19 } 20 21 22 string DiscBuyXamountAndGetYDiscount_Text = ""; 23 string DiscBuyXamountAndGetYDiscount_percentage = ""; 24 } 25 26 @if(!string.IsNullOrWhiteSpace(MixAndMatchDescription)) 27 { 28 <div style="width:100%" class="DiscBuyXamountAndGetYDiscount">@DiscBuyXamountAndGetYDiscount_Text @DiscBuyXamountAndGetYDiscount_percentage</div> 29 } 30 @if (product is object) 31 { 32 string titleFontSize = Model.Item.GetRawValueString("FontSize", "fs-6"); 33 string horizontalAlign = Model.Item.GetRawValueString("HorizontalAlignment", ""); 34 horizontalAlign = horizontalAlign == "center" ? "text-center" : horizontalAlign; 35 horizontalAlign = horizontalAlign == "end" ? "text-end" : horizontalAlign; 36 37 38 //CS NT 39 40 string productId = !string.IsNullOrEmpty(Dynamicweb.Context.Current.Request.QueryString.Get("ProductID")) ? Dynamicweb.Context.Current.Request.QueryString.Get("ProductID") : ""; 41 bool isProductDetailsPage = !string.IsNullOrEmpty(productId); 42 string productHeaderCSSClass = isProductDetailsPage ? "productHeaderNT_Details" : "productHeaderNT"; 43 44 string headingLevel = Model.Item.GetString("HeadingLevel", "h2"); 45 string headingLevelStart = $"<{headingLevel} class=\"{productHeaderCSSClass} {titleFontSize} {horizontalAlign} m-0 item_{Model.Item.SystemName.ToLower()}\" itemprop=\"name\" >"; 46 string headingLevelStop = $"</{headingLevel}>"; 47 48 @headingLevelStart 49 @product.Name 50 @headingLevelStop 51 52 } 53 else if (Pageview.IsVisualEditorMode) 54 { 55 <div class="alert alert-dark m-0">@Translate("No products available")</div> 56 } 57
0252382
€ 15.99 InStock
In stock