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_4e245e3fac0e46a6832f880516c68fe3 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 24 25 #line hidden 26 27 public RazorEngine_4e245e3fac0e46a6832f880516c68fe3() { 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
0200399
ΣΕΣΚΟΥΛΟ
€ 0.99 InStock
Σε απόθεμα
•Όρθιο φυτό με μακριά, φαρδιά, ελαφρώς ογκώδη ξανθά φύλλα. •Πολύ φαρδύ ασημί λευκό μίσχο.

Λεπτομέρειες

Barcode
8014968027100
Μάρκα
Zorzi
Σε Προσφορά
No
Supplier Item
BSOBIE005
Κατηγορία
Σπόροι Λαχανικών
Βάρος
0.03kg