Category

Sub-category

Furniture & Storage

ODELL BAR STOOL VELVET GREY 45X53X98CM
ODELL BAR STOOL VELVET GREY 45X53X98CM
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_bf391f75c23741139cc477d05e063b97 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_bf391f75c23741139cc477d05e063b97() { 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
0249358
€ 65.00 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
VIENNA TV STAND 150X52X40CM BLACK
VIENNA TV STAND 150X52X40CM 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_d72657323b8147e285043ebb3b21f8d8 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_d72657323b8147e285043ebb3b21f8d8() { 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
0249977
€ 229.99 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
DEMEYERE PERFECT STORAGE CABINET 2 DOORS OAK 79.7X35.1X101.2CM
DEMEYERE PERFECT STORAGE CABINET 2 DOORS OAK 79.7X35.1X101.2CM
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_d575401e9ea14890afc22897483fd098 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_d575401e9ea14890afc22897483fd098() { 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
0250226
€ 99.99 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
DELSEY LUGGAGE LAGOS 55CM SLIM SILVER
DELSEY LUGGAGE LAGOS 55CM SLIM SILVER
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_812bfcc666254fb1aa119fa577701abf : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_812bfcc666254fb1aa119fa577701abf() { 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
0250316
€ 89.99 OutOfStock
You will be contacted when the product is back in stock.
VACUUM CUBE BAGS 110X100X48CM
VACUUM CUBE BAGS 110X100X48CM
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_aee4f18e5e73490a91b4d3f7156e17a1 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_aee4f18e5e73490a91b4d3f7156e17a1() { 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
0250367
€ 3.99 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
PLASTIC DRAWER 3 DRAWERS 22.5X15.5X19CM 4 ASSORTED COLORS
PLASTIC DRAWER 3 DRAWERS 22.5X15.5X19CM 4 ASSORTED COLORS
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_6a97c51cc0424ba19a41144fb2ab53d5 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_6a97c51cc0424ba19a41144fb2ab53d5() { 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
0249951
€ 8.79 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
IGGY HM2211.01 SHOE CABINET 3 DOORS WENGE 114Χ34Χ68CM
IGGY HM2211.01 SHOE CABINET 3 DOORS WENGE 114Χ34Χ68CM
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_2c7da3c223fb43828681a02ab8444c6b : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_2c7da3c223fb43828681a02ab8444c6b() { 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
0251993
€ 119.99 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
IGGY HM2211.10 SHOE CABINET 3 DOORS GREY 114Χ34Χ68CM
IGGY HM2211.10 SHOE CABINET 3 DOORS GREY 114Χ34Χ68CM
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_1b3dd973b06840468d87b36e4476f713 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_1b3dd973b06840468d87b36e4476f713() { 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
0251995
€ 119.99 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
SOFIA HM8502.11 COFFEE TABLE ACACIA 115X65X41CM
SOFIA HM8502.11 COFFEE TABLE ACACIA 115X65X41CM
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_3f78cf62eca64f7caab443e73af1ed04 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_3f78cf62eca64f7caab443e73af1ed04() { 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
0251996
€ 179.99 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
STORAGE BASKET WITH HANDLE
STORAGE BASKET WITH HANDLE
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_f95527a62ade4110b06948e5bd579518 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_f95527a62ade4110b06948e5bd579518() { 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
0252247
€ 3.69 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
SOFT FOAM TO STORE L
SOFT FOAM TO STORE L
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_dc25a379bf394f859bd84cc625830a62 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_dc25a379bf394f859bd84cc625830a62() { 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
0253107
€ 10.99 OutOfStock
Out of stock
You will be contacted when the product is back in stock.
CHELSEA BED DRAWER 2 DRAWERS OAK 48x40,5x41,5CM
CHELSEA BED DRAWER 2 DRAWERS OAK 48x40,5x41,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_883ca24dadb9441db08a11dab0b0bf30 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_883ca24dadb9441db08a11dab0b0bf30() { 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
0255561
€ 42.99 OutOfStock
Out of stock
You will be contacted when the product is back in stock.