Category

Sub-category

Furniture & Storage

ACE OFFICE CHAIR BLACK/WHITE 69x68x117-126.5CM
ACE OFFICE CHAIR BLACK/WHITE 69x68x117-126.5CM
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_98b28adbfeb94a95afb01d11f2f4713b : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_98b28adbfeb94a95afb01d11f2f4713b() { 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
0229242
€ 149.99 InStock
In stock
AROXOL_4 FOR CRAWLING INSECTS 300ML
AROXOL_4 FOR CRAWLING INSECTS 300ML
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_44e5d15bea11420c984e7117a3f90923 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_44e5d15bea11420c984e7117a3f90923() { 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
0221289
€ 3.99 €13,30/1 l InStock
In stock
DOMOPAK CLOTH RACK COVER 95X50X160CM
DOMOPAK CLOTH RACK COVER 95X50X160CM
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_8b928b1d6d46401dbcefcf37cce755b8 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_8b928b1d6d46401dbcefcf37cce755b8() { 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
0206989
€ 6.99 InStock
In stock
THETA OFFICE CHAIR BLACK-RED 55Χ56CM
THETA OFFICE CHAIR BLACK-RED 55Χ56CM
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_e501ef6226be41e095dea66d6dbe8344 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_e501ef6226be41e095dea66d6dbe8344() { 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
0218704
€ 51.99 InStock
In stock
TEMPERED GLASS DESKTOP WITH WHITE PAINTING FINISH 8MM
TEMPERED GLASS DESKTOP WITH WHITE PAINTING FINISH 8MM
-28%
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_3339ba2ef0bd46aaa116b4753ad42437 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_3339ba2ef0bd46aaa116b4753ad42437() { 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
0208254
  €209,99  
€ 149.99 InStock
In stock
CARPET BAG 45X450CM TRASPARENT
CARPET BAG 45X450CM TRASPARENT
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_a0faaae0ebcd48708a16102954bc31a2 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_a0faaae0ebcd48708a16102954bc31a2() { 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
0244085
€ 0.89 InStock
In stock
KETER KIS BI-BOX GREY M 26L
KETER KIS BI-BOX GREY M 26L
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_9958b054d731474295370eaa17fbb538 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_9958b054d731474295370eaa17fbb538() { 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
0247589
€ 16.99 InStock
In stock
LOCK SET 2 PCS - BLACK
LOCK SET 2 PCS - BLACK
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_57ae158db764487b9e5bb6d12761de39 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_57ae158db764487b9e5bb6d12761de39() { 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
0264414
€ 2.99 InStock
In stock
KIS BI-BOX XS 3L - BLACK
KIS BI-BOX XS 3L - BLACK
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_54cd8f048ea14bf4af7f4402e12afaf3 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_54cd8f048ea14bf4af7f4402e12afaf3() { 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
0266616
€ 5.99 InStock
In stock
MELINA SOFA 208X85X82CM DARK GREY
MELINA SOFA 208X85X82CM DARK GREY
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_df5c165bf0e44113b643e33a47beb282 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_df5c165bf0e44113b643e33a47beb282() { 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
0229243
€ 169.99 InStock
In stock
LAPTOP DESK 62X38X(63-94.5)CM
LAPTOP DESK 62X38X(63-94.5)CM
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_b4abadc6db2e4cc7b697612f6c76c1ad : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_b4abadc6db2e4cc7b697612f6c76c1ad() { 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
0208256
€ 59.99 InStock
In stock
RAID MC NIGHT&DAY REFILL
RAID MC NIGHT&DAY REFILL
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_a7cde5f2280d4f519fd7f730b4ffa2c0 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_a7cde5f2280d4f519fd7f730b4ffa2c0() { 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
0144455
€ 6.69 InStock
In stock