{{EmailMarketing:Email.PreHeader}}
Abandoned cart

If this email is not being shown properly, click here

There's something in your cart

 
Error compiling template "Designs/CHG/eCom/Order/OrderDetailsEmail.cshtml"
Line 2402: 'Order.GetOrderById(string)' is obsolete: 'Use Ecommerce.Services.Orders.GetById instead.'
Line 2411: 'Order.Save()' is obsolete: 'Use Ecommerce.Services.Orders.Save instead.'
Line 2846: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 3423: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 14022: The name 'RenderCartContentsReceiptCustom' 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 13 #line 3678 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 3669 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 3679 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 3892 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 32 using Dynamicweb.Rendering; 33 34 #line default 35 #line hidden 36 37 #line 3 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 38 using System.Globalization; 39 40 #line default 41 #line hidden 42 43 #line 3671 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 44 using Dna.Frontend.UI; 45 46 #line default 47 #line hidden 48 49 #line 3893 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 50 using Dynamicweb.Core; 51 52 #line default 53 #line hidden 54 55 #line 1065 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 56 using System.Web; 57 58 #line default 59 #line hidden 60 61 #line 12 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 62 using System.Web.Script.Serialization; 63 64 #line default 65 #line hidden 66 67 #line 3680 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 68 using Dna.Frontend; 69 70 #line default 71 #line hidden 72 73 #line 1075 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 74 using Dna.Frontend.Forms; 75 76 #line default 77 #line hidden 78 79 #line 31 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 80 using Dynamicweb.Ecommerce.Orders; 81 82 #line default 83 #line hidden 84 85 #line 18 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 86 using Dynamicweb.Ecommerce.Orders.SalesDiscounts; 87 88 #line default 89 #line hidden 90 91 #line 1077 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 92 using Dynamicweb.Forms; 93 94 #line default 95 #line hidden 96 97 #line 1060 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 98 using Dynamicweb.Security.UserManagement; 99 100 #line default 101 #line hidden 102 103 #line 1072 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 104 using Dna.Validation; 105 106 #line default 107 #line hidden 108 109 #line 3682 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 110 using Dna.UrlServices; 111 112 #line default 113 #line hidden 114 115 #line 1067 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 116 using System.Text; 117 118 #line default 119 #line hidden 120 121 #line 1057 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 122 using Dynamicweb.Content; 123 124 #line default 125 #line hidden 126 127 #line 1058 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 128 using Dynamicweb.Ecommerce; 129 130 #line default 131 #line hidden 132 133 #line 1061 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 134 using SF.Snowball; 135 136 #line default 137 #line hidden 138 139 #line 1064 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 140 using System.IO; 141 142 #line default 143 #line hidden 144 145 #line 1068 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 146 using System.Text.RegularExpressions; 147 148 #line default 149 #line hidden 150 151 #line 1070 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 152 using System.Collections.Specialized; 153 154 #line default 155 #line hidden 156 157 #line 3681 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 158 using Dna.ImageProcessing; 159 160 #line default 161 #line hidden 162 163 164 public class RazorEngine_9fe468760521476bb403b9fe9543e016 : RazorTemplateBase<RazorTemplateModel<Template>> { 165 166 #line hidden 167 168 #line 34 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 169 170 171 public void CreateNewAddress(AddressSource addressSource) 172 { 173 switch (addressSource) 174 { 175 case AddressSource.EcomCustomer: 176 CreateNewAddress( 177 GetString("Ecom:Order.Customer.Address"), 178 GetString("Ecom:Order.Customer.Address2"), 179 GetString("Ecom:Order.Customer.City"), 180 GetString("Ecom:Order.Customer.Region"), 181 GetString("Ecom:Order.Customer.Zip"), 182 GetString("Ecom:Order.Customer.Country.Code"), 183 Pageview.User.ID 184 ); 185 break; 186 case AddressSource.EcomDelivery: 187 CreateNewAddress( 188 GetString("Ecom:Order.Delivery.Address"), 189 GetString("Ecom:Order.Delivery.Address2"), 190 GetString("Ecom:Order.Delivery.City"), 191 GetString("Ecom:Order.Delivery.Region"), 192 GetString("Ecom:Order.Delivery.Zip"), 193 GetString("Ecom:Order.Delivery.Country.Code"), 194 Pageview.User.ID 195 ); 196 break; 197 case AddressSource.UserProfile: 198 case AddressSource.UserAddress: 199 throw new NotSupportedException("Unsupported address source for this method."); 200 default: 201 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 202 } 203 204 } 205 206 public void CreateNewAddress(string address, string address2, string city, string state, string zip, string country, int userId ) 207 { 208 var newAddress = new Dynamicweb.Security.UserManagement.UserAddress 209 { 210 Address = address, 211 Address2 = address2, 212 City = city, 213 State = state, 214 Zip = zip, 215 CountryCode = country, 216 UserID = userId 217 }; 218 newAddress.Save(); 219 } 220 221 public void UpdateUserAddress(AddressSource addressSource, int addressId, string addressName = "") 222 { 223 switch (addressSource) 224 { 225 case AddressSource.EcomCustomer: 226 UpdateUserAddress( 227 GetString("Ecom:Order.Customer.Address"), 228 GetString("Ecom:Order.Customer.Address2"), 229 GetString("Ecom:Order.Customer.City"), 230 GetString("Ecom:Order.Customer.Region"), 231 GetString("Ecom:Order.Customer.Zip"), 232 GetString("Ecom:Order.Customer.Country.Code"), 233 addressId, 234 addressName 235 ); 236 break; 237 case AddressSource.EcomDelivery: 238 UpdateUserAddress( 239 GetString("Ecom:Order.Delivery.Address"), 240 GetString("Ecom:Order.Delivery.Address2"), 241 GetString("Ecom:Order.Delivery.City"), 242 GetString("Ecom:Order.Delivery.Region"), 243 GetString("Ecom:Order.Delivery.Zip"), 244 GetString("Ecom:Order.Delivery.Country.Code"), 245 addressId, 246 addressName 247 ); 248 break; 249 case AddressSource.UserProfile: 250 case AddressSource.UserAddress: 251 throw new NotSupportedException("Unsupported address source for this method."); 252 default: 253 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 254 } 255 } 256 257 public void UpdateUserAddress(string address, string address2, string city, string state, string zip, string country, int addressId, string addressName ) 258 { 259 if (addressId == Pageview.User.ID) 260 { 261 var addressToUpdate = User.GetCurrentExtranetUser(); 262 263 addressToUpdate.Address = address; 264 addressToUpdate.Address2 = address2; 265 addressToUpdate.City = city; 266 addressToUpdate.State = state; 267 addressToUpdate.Zip = zip; 268 addressToUpdate.CountryCode = country; 269 addressToUpdate.Save(); 270 } 271 else 272 { 273 var addressToUpdate = UserAddress.GetUserAddressById(addressId); 274 addressToUpdate.Name = addressName; 275 addressToUpdate.Address = address; 276 addressToUpdate.Address2 = address2; 277 addressToUpdate.City = city; 278 addressToUpdate.State = state; 279 addressToUpdate.Zip = zip; 280 addressToUpdate.CountryCode = country; 281 addressToUpdate.Save(); 282 } 283 } 284 285 public void CreateAddressFromBillingAndShipping() 286 { 287 if (HttpContext.Current.Request.Cookies["SaveAddress"] == null) return; 288 289 var saveAddressCookie = HttpContext.Current.Request.Cookies["SaveAddress"]; 290 291 if (saveAddressCookie.HasKeys) 292 { 293 if(saveAddressCookie["SaveBillingAddress"] != null) { 294 if (saveAddressCookie["SaveBillingAddress"] == "True") 295 { 296 if (!isAnUserAddress(GetAddressHash(AddressSource.EcomCustomer))) 297 { 298 CreateNewAddress(AddressSource.EcomCustomer); 299 } 300 } 301 if (saveAddressCookie["SaveDeliveryAddress"] == "True") 302 { 303 if (!isAnUserAddress(GetAddressHash(AddressSource.EcomDelivery))) 304 { 305 CreateNewAddress(AddressSource.EcomDelivery); 306 } 307 } 308 } 309 else 310 { 311 if (saveAddressCookie["UpdateBillingAddress"] != null) 312 { 313 int num; 314 if(int.TryParse(saveAddressCookie["UpdateBillingAddress"], out num)) 315 { 316 UpdateUserAddress(AddressSource.EcomCustomer, num); 317 } 318 } 319 if (saveAddressCookie["UpdateDeliveryAddress"] != null) 320 { 321 int num; 322 var addressName = saveAddressCookie["DeliveryAddressName"] ?? string.Empty; 323 if (int.TryParse(saveAddressCookie["UpdateDeliveryAddress"], out num)) 324 { 325 UpdateUserAddress(AddressSource.EcomDelivery, num, addressName); 326 } 327 } 328 } 329 } 330 saveAddressCookie.Expires = DateTime.Now.AddDays(-1d); 331 HttpContext.Current.Response.Cookies.Add(saveAddressCookie); 332 } 333 334 public bool isAnUserAddress(string addressHash) 335 { 336 return UserAddress.GetUserAddresses(Pageview.User.ID).Any(address => string.Equals(GetAddressHash(address.Address, address.Address2, address.City, address.State, address.Zip, address.Country), addressHash, StringComparison.OrdinalIgnoreCase)); 337 } 338 339 340 #line default 341 #line hidden 342 343 344 #line 207 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 345 public RazorEngine.Templating.TemplateWriter InternalRenderCartContentLine(LoopItem orderline, CartOutputType outputType = CartOutputType.ReadOnly, bool isOutOfStock = false) 346 { 347 #line default 348 #line hidden 349 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 350 351 #line 208 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 352 353 354 355 #line default 356 #line hidden 357 358 #line 215 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 359 360 var isService = orderline.GetInteger("Ecom:Product.Type") == 1; 361 var productStock = isService ? 10000 : orderline.GetInteger("Ecom:Product.Stock"); 362 var productAvailableAmount = isService ? 10000 : orderline.GetInteger("Ecom:Product.AvailableAmount"); 363 var productQuantity = orderline.GetInteger("Ecom:Order:OrderLine.Quantity"); 364 var productId = orderline.GetString("Ecom:Order:OrderLine.ProductID"); 365 var productName = orderline.GetString("Ecom:Order:OrderLine.ProductName"); 366 var productNumber = orderline.GetString("Ecom:Product.Number"); 367 var productImage = orderline.GetImagePath(); 368 var imageUrl = Images.GetImage(productImage, 95, 95); 369 var variantText = orderline.GetString("Ecom:Order:OrderLine.ProductVariantText"); 370 var productUrl = "/Default.aspx?Id=" + Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.Area.ID, "Products").ID + "&amp;GroupID=" + orderline.GetString("Ecom:Product.PrimaryOrFirstGroupID") + "&amp;ProductID=" +productId; 371 var figureClass = outputType == CartOutputType.MiniCart ? "text-center col-xs-3 col-sm-3 noPadding" : "text-center col-xs-4 col-sm-4"; 372 var prodContainerClass = outputType == CartOutputType.MiniCart ? "col-xs-9 col-sm-9 noPaddingRight" : "col-xs-8 col-sm-8 prodName noPadding"; 373 var productFriendlyUrl = string.Concat(HttpContext.Current.Request.Url.Scheme, "://", HttpContext.Current.Request.Url.Host, Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.Area.ID, "Products").ID) + string.Concat("?ProductID=", productId)); 374 var shareFacebookUrl = string.Concat("https://www.facebook.com/sharer/sharer.php?u=",productFriendlyUrl); 375 var shareTwitterUrl = string.Concat("https://twitter.com/home?status=", productFriendlyUrl); 376 var imageSettings = new ImageSettings 377 { 378 Source = imageUrl, 379 AltText = productName, 380 Href = productUrl, 381 IncludeWrapper = true, 382 WrapperElement = Sanitize.Parameter("print").IsNotNullOrEmpty() ? "div" : "figure", 383 WrapperCssClass = figureClass 384 }; 385 386 387 388 #line default 389 #line hidden 390 WriteLiteralTo(__razor_helper_writer, " <li"); 391 392 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 393 394 WriteLiteralTo(__razor_helper_writer, " data-facebook=\""); 395 396 397 #line 242 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 398 WriteTo(__razor_helper_writer, shareFacebookUrl); 399 400 401 #line default 402 #line hidden 403 WriteLiteralTo(__razor_helper_writer, "\""); 404 405 WriteLiteralTo(__razor_helper_writer, " data-twitter=\""); 406 407 408 #line 242 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 409 WriteTo(__razor_helper_writer, shareTwitterUrl); 410 411 412 #line default 413 #line hidden 414 WriteLiteralTo(__razor_helper_writer, "\""); 415 416 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 417 418 419 #line 243 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 420 421 422 #line default 423 #line hidden 424 425 #line 243 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 426 if (outputType != CartOutputType.MiniCart) 427 { 428 429 430 #line default 431 #line hidden 432 WriteLiteralTo(__razor_helper_writer, " "); 433 434 WriteLiteralTo(__razor_helper_writer, "<div class=\"col-xs-12 col-sm-4 noPaddingLeft noPadding-xs\">\r\n"); 435 436 437 #line 246 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 438 } 439 440 #line default 441 #line hidden 442 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 443 444 WriteLiteralTo(__razor_helper_writer, " "); 445 446 447 #line 248 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 448 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 449 450 451 #line default 452 #line hidden 453 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n <div"); 454 455 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 11212), Tuple.Create("\"", 11239) 456 457 #line 250 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 458 , Tuple.Create(Tuple.Create("", 11220), Tuple.Create<System.Object, System.Int32>(prodContainerClass 459 460 #line default 461 #line hidden 462 , 11220), false) 463 ); 464 465 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2>\r\n <a"); 466 467 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 11287), Tuple.Create("\"", 11305) 468 469 #line 252 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 470 , Tuple.Create(Tuple.Create("", 11294), Tuple.Create<System.Object, System.Int32>(productUrl 471 472 #line default 473 #line hidden 474 , 11294), false) 475 ); 476 477 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 478 479 480 #line 253 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 481 WriteTo(__razor_helper_writer, productName); 482 483 484 #line default 485 #line hidden 486 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 487 488 489 #line 254 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 490 491 492 #line default 493 #line hidden 494 495 #line 254 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 496 if (variantText.IsNotNullOrEmpty()) 497 { 498 499 500 #line default 501 #line hidden 502 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 503 504 WriteLiteralTo(__razor_helper_writer, " <small>"); 505 506 507 #line 257 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 508 WriteTo(__razor_helper_writer, variantText); 509 510 511 #line default 512 #line hidden 513 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 514 515 516 #line 258 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 517 } 518 519 #line default 520 #line hidden 521 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </h2>\r\n"); 522 523 524 #line 261 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 525 526 527 #line default 528 #line hidden 529 530 #line 261 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 531 if (outputType == CartOutputType.MiniCart) 532 { 533 534 535 #line default 536 #line hidden 537 WriteLiteralTo(__razor_helper_writer, " <span"); 538 539 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 540 541 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 542 543 544 #line 264 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 545 WriteTo(__razor_helper_writer, Translate("Qty")); 546 547 548 #line default 549 #line hidden 550 WriteLiteralTo(__razor_helper_writer, ": </strong>"); 551 552 553 #line 264 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 554 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Quantity")); 555 556 557 #line default 558 #line hidden 559 WriteLiteralTo(__razor_helper_writer, " <span"); 560 561 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 562 563 WriteLiteralTo(__razor_helper_writer, ">"); 564 565 566 #line 264 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 567 WriteTo(__razor_helper_writer, RenderProductPrice(orderline.GetString("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.PriceWithoutVATFormatted"))); 568 569 570 #line default 571 #line hidden 572 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n"); 573 574 575 #line 266 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 576 } 577 else if (productNumber.IsNotNullOrEmpty() && outputType != CartOutputType.MiniCart) 578 { 579 580 581 #line default 582 #line hidden 583 WriteLiteralTo(__razor_helper_writer, " <div"); 584 585 WriteLiteralTo(__razor_helper_writer, " class=\"itemDetails\""); 586 587 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 588 589 WriteLiteralTo(__razor_helper_writer, " "); 590 591 592 #line 270 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 593 WriteTo(__razor_helper_writer, Translate("Item number")); 594 595 596 #line default 597 #line hidden 598 WriteLiteralTo(__razor_helper_writer, ": "); 599 600 601 #line 270 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 602 WriteTo(__razor_helper_writer, productNumber); 603 604 605 #line default 606 #line hidden 607 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 608 609 610 #line 272 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 611 } 612 613 #line default 614 #line hidden 615 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n"); 616 617 618 #line 275 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 619 620 621 #line default 622 #line hidden 623 624 #line 275 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 625 if (outputType != CartOutputType.MiniCart) 626 { 627 628 629 #line default 630 #line hidden 631 WriteLiteralTo(__razor_helper_writer, " "); 632 633 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 634 635 636 #line 278 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 637 } 638 639 #line default 640 #line hidden 641 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n \r\n"); 642 643 644 #line 281 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 645 646 647 #line default 648 #line hidden 649 650 #line 281 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 651 if (outputType != CartOutputType.MiniCart) 652 { 653 654 655 #line default 656 #line hidden 657 WriteLiteralTo(__razor_helper_writer, " <div"); 658 659 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 col-xs-offset-4 col-sm-offset-0 col-sm-2 price noPadding mdAlign" + 660 "Right\""); 661 662 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 663 664 665 #line 284 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 666 667 668 #line default 669 #line hidden 670 671 #line 284 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 672 673 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 674 if (orderLineType == OrderLineType.PointProduct) 675 { 676 677 678 #line default 679 #line hidden 680 WriteLiteralTo(__razor_helper_writer, " "); 681 682 683 #line 288 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 684 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPoints")); 685 686 687 #line default 688 #line hidden 689 WriteLiteralTo(__razor_helper_writer, "&nbsp;"); 690 691 692 #line 288 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 693 WriteTo(__razor_helper_writer, Translate(orderline.GetString("Ecom:Order:OrderLine.UnitPoints") == "1" ? "point" : "points")); 694 695 696 #line default 697 #line hidden 698 WriteLiteralTo(__razor_helper_writer, "\r\n"); 699 700 701 #line 289 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 702 } 703 else 704 { 705 706 707 #line default 708 #line hidden 709 710 #line 292 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 711 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPrice")); 712 713 714 #line default 715 #line hidden 716 717 #line 292 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 718 719 } 720 721 722 #line default 723 #line hidden 724 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 725 726 727 #line 296 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 728 729 if (isOutOfStock) 730 { 731 var stockAvailable = productStock <= 0 ? 0 : productStock; 732 733 734 #line default 735 #line hidden 736 WriteLiteralTo(__razor_helper_writer, " <div"); 737 738 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 col-xs-offset-4 col-sm-offset-0 col-sm-2 noPadding stockAvailabl" + 739 "e mdAlignRight\""); 740 741 WriteLiteralTo(__razor_helper_writer, ">"); 742 743 744 #line 300 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 745 WriteTo(__razor_helper_writer, stockAvailable); 746 747 748 #line default 749 #line hidden 750 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 751 752 WriteLiteralTo(__razor_helper_writer, " <div"); 753 754 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 col-xs-offset-4 col-sm-offset-0 col-sm-2 noPadding productQuanti" + 755 "ty mdAlignRight\""); 756 757 WriteLiteralTo(__razor_helper_writer, ">"); 758 759 760 #line 301 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 761 WriteTo(__razor_helper_writer, productQuantity); 762 763 764 #line default 765 #line hidden 766 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 767 768 769 #line 302 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 770 } 771 else 772 { 773 774 775 #line default 776 #line hidden 777 WriteLiteralTo(__razor_helper_writer, " <div"); 778 779 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 col-xs-offset-4 col-sm-offset-0 col-sm-2 quantity noPaddingLeft " + 780 "mdAlignRight\""); 781 782 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong"); 783 784 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-sm hidden-md hidden-lg pull-left\""); 785 786 WriteLiteralTo(__razor_helper_writer, ">"); 787 788 789 #line 306 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 790 WriteTo(__razor_helper_writer, Translate("Qty")); 791 792 793 #line default 794 #line hidden 795 WriteLiteralTo(__razor_helper_writer, "&nbsp;&nbsp;</strong>\r\n"); 796 797 798 #line 307 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 799 800 801 #line default 802 #line hidden 803 804 #line 307 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 805 if (outputType != CartOutputType.Editable || orderLineType == OrderLineType.Discount || orderLineType == OrderLineType.ProductDiscount || orderLineType == OrderLineType.GiftCard || orderline.GetInteger("Ecom:Product.Type") == 1) 806 { 807 808 809 #line default 810 #line hidden 811 812 #line 309 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 813 WriteTo(__razor_helper_writer, productQuantity); 814 815 816 #line default 817 #line hidden 818 819 #line 309 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 820 821 } 822 else 823 { 824 825 826 #line default 827 #line hidden 828 WriteLiteralTo(__razor_helper_writer, " <form"); 829 830 WriteLiteralTo(__razor_helper_writer, " class=\"cartChange\""); 831 832 WriteLiteralTo(__razor_helper_writer, " method=\"POST\""); 833 834 WriteAttributeTo(__razor_helper_writer, "action", Tuple.Create(" action=\"", 14574), Tuple.Create("\"", 14661) 835 836 #line 313 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 837 , Tuple.Create(Tuple.Create("", 14583), Tuple.Create<System.Object, System.Int32>(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Pageview.Page.ID) 838 839 #line default 840 #line hidden 841 , 14583), false) 842 ); 843 844 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 845 846 WriteLiteralTo(__razor_helper_writer, " "); 847 848 849 #line 314 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 850 WriteTo(__razor_helper_writer, InternalRenderQuantityField(productStock, productAvailableAmount, productQuantity, orderline.GetString("Ecom:Order:OrderLine.Quantity.Input.Name"), 10, true, variantText.IsNotNullOrEmpty())); 851 852 853 #line default 854 #line hidden 855 WriteLiteralTo(__razor_helper_writer, "\r\n </form>\r\n"); 856 857 858 #line 316 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 859 } 860 861 #line default 862 #line hidden 863 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 864 865 866 #line 318 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 867 868 869 870 #line default 871 #line hidden 872 WriteLiteralTo(__razor_helper_writer, " <div"); 873 874 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 col-xs-offset-4 col-sm-offset-0 col-sm-2 discount noPadding mdAl" + 875 "ignRight\""); 876 877 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 878 879 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-sm hidden-md hidden-lg\""); 880 881 WriteLiteralTo(__razor_helper_writer, ">"); 882 883 884 #line 320 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 885 WriteTo(__razor_helper_writer, Translate("Discount")); 886 887 888 #line default 889 #line hidden 890 WriteLiteralTo(__razor_helper_writer, ":</span>\r\n"); 891 892 893 #line 321 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 894 895 896 #line default 897 #line hidden 898 899 #line 321 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 900 if (orderline.GetBoolean("Ecom:Product.Discount.TotalAmount.IsZero") || orderline.GetBoolean("Ecom:Order:OrderLine.IsDiscount")) 901 { 902 903 904 #line default 905 #line hidden 906 WriteLiteralTo(__razor_helper_writer, " "); 907 908 WriteLiteralTo(__razor_helper_writer, "-.--\r\n"); 909 910 911 #line 324 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 912 } 913 else 914 { 915 916 917 #line default 918 #line hidden 919 920 #line 327 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 921 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Product.Discount.TotalAmount.PriceWithoutVATFormatted")); 922 923 924 #line default 925 #line hidden 926 927 #line 327 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 928 929 } 930 931 #line default 932 #line hidden 933 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 934 935 936 #line 330 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 937 } 938 939 940 941 #line default 942 #line hidden 943 WriteLiteralTo(__razor_helper_writer, " <div"); 944 945 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-2 totalPrice noPadding text-right noPadding-xs mdAlignRi" + 946 "ght\""); 947 948 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 949 950 WriteLiteralTo(__razor_helper_writer, " "); 951 952 953 #line 333 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 954 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.PriceWithoutVATFormatted")); 955 956 957 #line default 958 #line hidden 959 WriteLiteralTo(__razor_helper_writer, "\r\n"); 960 961 962 #line 334 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 963 964 965 #line default 966 #line hidden 967 968 #line 334 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 969 if (outputType == CartOutputType.Editable && !orderline.GetBoolean("Ecom:Order:OrderLine.IsDiscount")) 970 { 971 972 973 #line default 974 #line hidden 975 WriteLiteralTo(__razor_helper_writer, " <a"); 976 977 WriteLiteralTo(__razor_helper_writer, " class=\"removeFromCart\""); 978 979 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 16132), Tuple.Create("\"", 16194) 980 981 #line 336 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 982 , Tuple.Create(Tuple.Create("", 16139), Tuple.Create<System.Object, System.Int32>(orderline.GetString("Ecom:Order:OrderLine.DeleteLink") 983 984 #line default 985 #line hidden 986 , 16139), false) 987 ); 988 989 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 990 991 WriteLiteralTo(__razor_helper_writer, " "); 992 993 994 #line 337 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 995 WriteTo(__razor_helper_writer, RenderIcon("fa-times")); 996 997 998 #line default 999 #line hidden 1000 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 1001 1002 1003 #line 339 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1004 } 1005 1006 #line default 1007 #line hidden 1008 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1009 1010 1011 #line 341 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1012 } 1013 1014 #line default 1015 #line hidden 1016 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n"); 1017 1018 1019 #line 343 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1020 1021 1022 #line default 1023 #line hidden 1024 }); 1025 1026 #line 343 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1027 } 1028 #line default 1029 #line hidden 1030 1031 1032 #line 345 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1033 public RazorEngine.Templating.TemplateWriter InternalRenderEmailCartContentLine(LoopItem orderline) 1034 { 1035 #line default 1036 #line hidden 1037 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1038 1039 #line 346 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1040 1041 var domain = Helpers.GetCurrentUrl(true) + "/"; 1042 var productId = orderline.GetString("Ecom:Order:OrderLine.ProductID"); 1043 var productName = orderline.GetString("Ecom:Order:OrderLine.ProductName"); 1044 var productNumber = orderline.GetString("Ecom:Product.Number"); 1045 var productImage = orderline.GetImagePath(); 1046 var imageUrl = domain + Images.GetImage(productImage, 95, 123); 1047 var variantText = orderline.GetString("Ecom:Order:OrderLine.ProductVariantText"); 1048 var productUrl = "Default.aspx?Id=" + Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.Area.ID, "Products").ID + "&amp;GroupID=" + orderline.GetString("Ecom:Product.PrimaryOrFirstGroupID") + "&amp;ProductID=" + productId; 1049 productUrl = domain + Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(productUrl); 1050 1051 1052 1053 #line default 1054 #line hidden 1055 1056 #line 357 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1057 WriteTo(__razor_helper_writer, RenderTableRowSpacer(10, 3)); 1058 1059 1060 #line default 1061 #line hidden 1062 1063 #line 357 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1064 1065 1066 1067 #line default 1068 #line hidden 1069 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td>\r\n <figure"); 1070 1071 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 1072 1073 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 1074 1075 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 1076 1077 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 17455), Tuple.Create("\"", 17473) 1078 1079 #line 361 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1080 , Tuple.Create(Tuple.Create("", 17462), Tuple.Create<System.Object, System.Int32>(productUrl 1081 1082 #line default 1083 #line hidden 1084 , 17462), false) 1085 ); 1086 1087 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 1088 1089 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 17505), Tuple.Create("\"", 17523) 1090 1091 #line 362 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1092 , Tuple.Create(Tuple.Create("", 17511), Tuple.Create<System.Object, System.Int32>(productName 1093 1094 #line default 1095 #line hidden 1096 , 17511), false) 1097 ); 1098 1099 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 17524), Tuple.Create("\"", 17544) 1100 1101 #line 362 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1102 , Tuple.Create(Tuple.Create("", 17532), Tuple.Create<System.Object, System.Int32>(productName 1103 1104 #line default 1105 #line hidden 1106 , 17532), false) 1107 ); 1108 1109 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 17545), Tuple.Create("\"", 17560) 1110 1111 #line 362 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1112 , Tuple.Create(Tuple.Create("", 17551), Tuple.Create<System.Object, System.Int32>(imageUrl 1113 1114 #line default 1115 #line hidden 1116 , 17551), false) 1117 ); 1118 1119 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n </figure>\r\n </td>\r\n " + 1120 " <td"); 1121 1122 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 1123 1124 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 1125 1126 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 1127 1128 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 17702), Tuple.Create("\"", 17720) 1129 1130 #line 367 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1131 , Tuple.Create(Tuple.Create("", 17709), Tuple.Create<System.Object, System.Int32>(productUrl 1132 1133 #line default 1134 #line hidden 1135 , 17709), false) 1136 ); 1137 1138 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 1139 1140 1141 #line 368 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1142 WriteTo(__razor_helper_writer, productName); 1143 1144 1145 #line default 1146 #line hidden 1147 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 1148 1149 1150 #line 369 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1151 1152 1153 #line default 1154 #line hidden 1155 1156 #line 369 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1157 if (variantText.IsNotNullOrEmpty() || productNumber.IsNotNullOrEmpty()) 1158 { 1159 1160 1161 #line default 1162 #line hidden 1163 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 1164 1165 1166 #line 372 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1167 } 1168 1169 #line default 1170 #line hidden 1171 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1172 1173 1174 #line 373 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1175 1176 1177 #line default 1178 #line hidden 1179 1180 #line 373 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1181 if (variantText.IsNotNullOrEmpty()) 1182 { 1183 1184 1185 #line default 1186 #line hidden 1187 1188 #line 375 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1189 WriteTo(__razor_helper_writer, variantText); 1190 1191 1192 #line default 1193 #line hidden 1194 1195 #line 375 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1196 1197 if (productNumber.IsNotNullOrEmpty()) 1198 { 1199 1200 1201 #line default 1202 #line hidden 1203 WriteLiteralTo(__razor_helper_writer, " "); 1204 1205 WriteLiteralTo(__razor_helper_writer, " - "); 1206 1207 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1208 1209 1210 #line 379 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1211 } 1212 } 1213 1214 #line default 1215 #line hidden 1216 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1217 1218 1219 #line 381 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1220 1221 1222 #line default 1223 #line hidden 1224 1225 #line 381 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1226 if (productNumber.IsNotNullOrEmpty()) 1227 { 1228 1229 1230 #line default 1231 #line hidden 1232 WriteLiteralTo(__razor_helper_writer, " "); 1233 1234 1235 #line 383 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1236 WriteTo(__razor_helper_writer, Translate("Item number")); 1237 1238 1239 #line default 1240 #line hidden 1241 WriteLiteralTo(__razor_helper_writer, ": "); 1242 1243 1244 #line 383 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1245 WriteTo(__razor_helper_writer, productNumber); 1246 1247 1248 #line default 1249 #line hidden 1250 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1251 1252 1253 #line 384 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1254 } 1255 1256 #line default 1257 #line hidden 1258 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n <br/>\r\n"); 1259 1260 1261 #line 387 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1262 1263 1264 #line default 1265 #line hidden 1266 1267 #line 387 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1268 1269 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 1270 if (orderLineType == OrderLineType.PointProduct) 1271 { 1272 1273 1274 #line default 1275 #line hidden 1276 WriteLiteralTo(__razor_helper_writer, " "); 1277 1278 WriteLiteralTo(__razor_helper_writer, "<strong>"); 1279 1280 1281 #line 391 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1282 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPoints")); 1283 1284 1285 #line default 1286 #line hidden 1287 WriteLiteralTo(__razor_helper_writer, "&nbsp;"); 1288 1289 1290 #line 391 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1291 WriteTo(__razor_helper_writer, Translate(orderline.GetString("Ecom:Order:OrderLine.UnitPoints") == "1" ? "point" : "points")); 1292 1293 1294 #line default 1295 #line hidden 1296 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 1297 1298 1299 #line 392 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1300 } 1301 else 1302 { 1303 1304 1305 #line default 1306 #line hidden 1307 WriteLiteralTo(__razor_helper_writer, " <strong>"); 1308 1309 1310 #line 395 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1311 WriteTo(__razor_helper_writer, Translate("Unit price")); 1312 1313 1314 #line default 1315 #line hidden 1316 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 1317 1318 1319 #line 396 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1320 1321 1322 #line default 1323 #line hidden 1324 1325 #line 396 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1326 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPrice")); 1327 1328 1329 #line default 1330 #line hidden 1331 1332 #line 396 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1333 1334 } 1335 1336 1337 #line default 1338 #line hidden 1339 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n <strong>"); 1340 1341 1342 #line 400 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1343 WriteTo(__razor_helper_writer, Translate("Quantity")); 1344 1345 1346 #line default 1347 #line hidden 1348 WriteLiteralTo(__razor_helper_writer, "</strong> "); 1349 1350 1351 #line 400 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1352 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Quantity")); 1353 1354 1355 #line default 1356 #line hidden 1357 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n </td>\r\n <td"); 1358 1359 WriteLiteralTo(__razor_helper_writer, " class=\"noPadding\""); 1360 1361 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 1362 1363 WriteLiteralTo(__razor_helper_writer, " style=\"text-align: right; padding-right: 90px\""); 1364 1365 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 1366 1367 1368 #line 404 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1369 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.PriceWithoutVATFormatted")); 1370 1371 1372 #line default 1373 #line hidden 1374 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n </td>\r\n </tr>\r\n"); 1375 1376 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 1377 1378 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 19634), Tuple.Create("\"", 19707) 1379 , Tuple.Create(Tuple.Create("", 19642), Tuple.Create("border-bottom:", 19642), true) 1380 , Tuple.Create(Tuple.Create(" ", 19656), Tuple.Create("1px", 19657), true) 1381 , Tuple.Create(Tuple.Create(" ", 19660), Tuple.Create("solid", 19661), true) 1382 1383 #line 408 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1384 , Tuple.Create(Tuple.Create(" ", 19666), Tuple.Create<System.Object, System.Int32>(GetPalletColorNumber(1) 1385 1386 #line default 1387 #line hidden 1388 , 19667), false) 1389 , Tuple.Create(Tuple.Create(" ", 19691), Tuple.Create("text-align:left", 19692), true) 1390 ); 1391 1392 WriteLiteralTo(__razor_helper_writer, " colspan=\"3\""); 1393 1394 WriteLiteralTo(__razor_helper_writer, " height=\"10\""); 1395 1396 WriteLiteralTo(__razor_helper_writer, "></td>\r\n </tr>\r\n"); 1397 1398 1399 #line 410 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1400 1401 1402 #line default 1403 #line hidden 1404 }); 1405 1406 #line 410 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1407 } 1408 #line default 1409 #line hidden 1410 1411 1412 #line 412 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1413 public RazorEngine.Templating.TemplateWriter InternalRenderTotalAmountLine(string label, string value, bool isBold = false, CartOutputType outputType = CartOutputType.ReadOnly) 1414 { 1415 #line default 1416 #line hidden 1417 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1418 1419 #line 413 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1420 1421 if (outputType == CartOutputType.Email) 1422 { 1423 1424 1425 #line default 1426 #line hidden 1427 WriteLiteralTo(__razor_helper_writer, " <tr"); 1428 1429 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 1430 1431 WriteLiteralTo(__razor_helper_writer, ">\r\n <td>\r\n"); 1432 1433 WriteLiteralTo(__razor_helper_writer, " "); 1434 1435 1436 #line 418 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1437 WriteTo(__razor_helper_writer, InternalRenderValue(label, isBold)); 1438 1439 1440 #line default 1441 #line hidden 1442 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n <td>\r\n &nbsp;\r\n " + 1443 " </td>\r\n <td"); 1444 1445 WriteLiteralTo(__razor_helper_writer, " class=\"noPadding\""); 1446 1447 WriteLiteralTo(__razor_helper_writer, " style=\"padding-right: 90px; text-align: right;\""); 1448 1449 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1450 1451 WriteLiteralTo(__razor_helper_writer, " "); 1452 1453 1454 #line 424 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1455 WriteTo(__razor_helper_writer, InternalRenderValue(value, isBold)); 1456 1457 1458 #line default 1459 #line hidden 1460 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr>\r\n"); 1461 1462 1463 #line 427 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1464 } 1465 else 1466 { 1467 1468 1469 #line default 1470 #line hidden 1471 WriteLiteralTo(__razor_helper_writer, " <div"); 1472 1473 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6 col-sm-7 noPadding clearLeft\""); 1474 1475 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1476 1477 WriteLiteralTo(__razor_helper_writer, " "); 1478 1479 1480 #line 431 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1481 WriteTo(__razor_helper_writer, InternalRenderValue(label, isBold)); 1482 1483 1484 #line default 1485 #line hidden 1486 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1487 1488 WriteLiteralTo(__razor_helper_writer, " <div"); 1489 1490 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6 col-sm-5 price pull-right noPadding-xs text-right\""); 1491 1492 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1493 1494 WriteLiteralTo(__razor_helper_writer, " "); 1495 1496 1497 #line 434 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1498 WriteTo(__razor_helper_writer, InternalRenderValue(value, isBold)); 1499 1500 1501 #line default 1502 #line hidden 1503 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1504 1505 1506 #line 436 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1507 } 1508 1509 1510 #line default 1511 #line hidden 1512 }); 1513 1514 #line 437 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1515 } 1516 #line default 1517 #line hidden 1518 1519 1520 #line 439 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1521 public RazorEngine.Templating.TemplateWriter InternalRenderValue(string value, bool isBold = false) 1522 { 1523 #line default 1524 #line hidden 1525 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1526 1527 #line 440 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1528 1529 if (isBold) 1530 { 1531 1532 1533 #line default 1534 #line hidden 1535 WriteLiteralTo(__razor_helper_writer, " <strong>"); 1536 1537 1538 #line 443 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1539 WriteTo(__razor_helper_writer, value); 1540 1541 1542 #line default 1543 #line hidden 1544 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 1545 1546 1547 #line 444 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1548 } 1549 else 1550 { 1551 1552 1553 #line default 1554 #line hidden 1555 1556 #line 447 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1557 WriteTo(__razor_helper_writer, value); 1558 1559 1560 #line default 1561 #line hidden 1562 1563 #line 447 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1564 1565 } 1566 1567 1568 #line default 1569 #line hidden 1570 }); 1571 1572 #line 449 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1573 } 1574 #line default 1575 #line hidden 1576 1577 1578 #line 451 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1579 public RazorEngine.Templating.TemplateWriter InternalRenderCartSummaryLine(string label, string value, string labelId = "", string valueId = "", bool isBold = false, bool hasValidation = false) 1580 { 1581 #line default 1582 #line hidden 1583 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1584 1585 #line 452 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1586 1587 var classToHide = hasValidation && (label.IsNullOrEmpty() || value.IsNullOrEmpty()) ? "hidden" : ""; 1588 1589 1590 1591 #line default 1592 #line hidden 1593 WriteLiteralTo(__razor_helper_writer, " <dt"); 1594 1595 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 21254), Tuple.Create("\"", 21267) 1596 1597 #line 455 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1598 , Tuple.Create(Tuple.Create("", 21259), Tuple.Create<System.Object, System.Int32>(labelId 1599 1600 #line default 1601 #line hidden 1602 , 21259), false) 1603 ); 1604 1605 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21268), Tuple.Create("\"", 21297) 1606 , Tuple.Create(Tuple.Create("", 21276), Tuple.Create("col-xs-8", 21276), true) 1607 1608 #line 455 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1609 , Tuple.Create(Tuple.Create(" ", 21284), Tuple.Create<System.Object, System.Int32>(classToHide 1610 1611 #line default 1612 #line hidden 1613 , 21285), false) 1614 ); 1615 1616 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1617 1618 1619 #line 456 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1620 1621 1622 #line default 1623 #line hidden 1624 1625 #line 456 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1626 if (isBold) 1627 { 1628 1629 1630 #line default 1631 #line hidden 1632 WriteLiteralTo(__razor_helper_writer, " "); 1633 1634 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 1635 1636 1637 #line 459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1638 } 1639 1640 #line default 1641 #line hidden 1642 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1643 1644 WriteLiteralTo(__razor_helper_writer, " "); 1645 1646 1647 #line 460 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1648 WriteTo(__razor_helper_writer, label); 1649 1650 1651 #line default 1652 #line hidden 1653 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1654 1655 1656 #line 461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1657 1658 1659 #line default 1660 #line hidden 1661 1662 #line 461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1663 if (isBold) 1664 { 1665 1666 1667 #line default 1668 #line hidden 1669 WriteLiteralTo(__razor_helper_writer, " "); 1670 1671 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 1672 1673 1674 #line 464 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1675 } 1676 1677 #line default 1678 #line hidden 1679 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 1680 1681 WriteLiteralTo(__razor_helper_writer, " <dd"); 1682 1683 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 21518), Tuple.Create("\"", 21531) 1684 1685 #line 466 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1686 , Tuple.Create(Tuple.Create("", 21523), Tuple.Create<System.Object, System.Int32>(valueId 1687 1688 #line default 1689 #line hidden 1690 , 21523), false) 1691 ); 1692 1693 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21532), Tuple.Create("\"", 21572) 1694 , Tuple.Create(Tuple.Create("", 21540), Tuple.Create("col-xs-4", 21540), true) 1695 , Tuple.Create(Tuple.Create(" ", 21548), Tuple.Create("text-right", 21549), true) 1696 1697 #line 466 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1698 , Tuple.Create(Tuple.Create(" ", 21559), Tuple.Create<System.Object, System.Int32>(classToHide 1699 1700 #line default 1701 #line hidden 1702 , 21560), false) 1703 ); 1704 1705 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1706 1707 1708 #line 467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1709 1710 1711 #line default 1712 #line hidden 1713 1714 #line 467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1715 if (isBold) 1716 { 1717 1718 1719 #line default 1720 #line hidden 1721 WriteLiteralTo(__razor_helper_writer, " "); 1722 1723 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 1724 1725 1726 #line 470 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1727 } 1728 1729 #line default 1730 #line hidden 1731 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1732 1733 WriteLiteralTo(__razor_helper_writer, " "); 1734 1735 1736 #line 471 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1737 WriteTo(__razor_helper_writer, value); 1738 1739 1740 #line default 1741 #line hidden 1742 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1743 1744 1745 #line 472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1746 1747 1748 #line default 1749 #line hidden 1750 1751 #line 472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1752 if (isBold) 1753 { 1754 1755 1756 #line default 1757 #line hidden 1758 WriteLiteralTo(__razor_helper_writer, " "); 1759 1760 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 1761 1762 1763 #line 475 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1764 } 1765 1766 #line default 1767 #line hidden 1768 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 1769 1770 1771 #line 477 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1772 1773 1774 #line default 1775 #line hidden 1776 }); 1777 1778 #line 477 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1779 } 1780 #line default 1781 #line hidden 1782 1783 1784 #line 479 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1785 public RazorEngine.Templating.TemplateWriter InternalRenderOrderAmountsDisclaimer() 1786 { 1787 #line default 1788 #line hidden 1789 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1790 1791 #line 480 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1792 1793 1794 1795 #line default 1796 #line hidden 1797 1798 #line 481 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1799 1800 if (GetString("Ecom:Order.Taxes.Total.Price") == "0.00" || GetBoolean("Ecom:Order.ShippingFee.IsZero")) 1801 { 1802 1803 1804 #line default 1805 #line hidden 1806 WriteLiteralTo(__razor_helper_writer, " <small"); 1807 1808 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 1809 1810 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1811 1812 1813 #line 485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1814 1815 1816 #line default 1817 #line hidden 1818 1819 #line 485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1820 if (GetBoolean("Ecom:Order.ShippingFee.IsZero") && GetString("Ecom:Order.Taxes.Total.Price") == "0.00") 1821 { 1822 1823 1824 #line default 1825 #line hidden 1826 1827 #line 487 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1828 WriteTo(__razor_helper_writer, Translate("* Taxes and Shipping calculated at Checkout")); 1829 1830 1831 #line default 1832 #line hidden 1833 1834 #line 487 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1835 1836 } 1837 else 1838 { 1839 1840 1841 #line default 1842 #line hidden 1843 1844 #line 491 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1845 WriteTo(__razor_helper_writer, Translate("*Taxes Calculated at Checkout")); 1846 1847 1848 #line default 1849 #line hidden 1850 1851 #line 491 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1852 1853 } 1854 1855 #line default 1856 #line hidden 1857 WriteLiteralTo(__razor_helper_writer, "\r\n </small>\r\n"); 1858 1859 1860 #line 494 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1861 } 1862 1863 1864 #line default 1865 #line hidden 1866 }); 1867 1868 #line 495 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1869 } 1870 #line default 1871 #line hidden 1872 1873 1874 #line 498 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1875 1876 1877 public bool AreAddressesTheSame() 1878 { 1879 var customerAddressHash = GetAddressHash(AddressSource.EcomCustomer); 1880 var deliveryAddressHash = GetAddressHash(AddressSource.EcomDelivery); 1881 1882 return customerAddressHash == deliveryAddressHash; 1883 } 1884 1885 public string GetAddressHash(int addressId) 1886 { 1887 var address = UserAddress.GetUserAddressById(addressId); 1888 return GetAddressHash(address.Address, address.Address2, address.City, address.Region.TwoLetterISORegionName, address.Zip, address.Country); 1889 } 1890 1891 public string GetAddressHash(AddressSource addressSource) 1892 { 1893 switch (addressSource) 1894 { 1895 case AddressSource.EcomCustomer: 1896 return GetAddressHash(GetString("Ecom:Order.Customer.Address"), GetString("Ecom:Order.Customer.Address2"), GetString("Ecom:Order.Customer.City"), GetString("Ecom:Order.Customer.Region"), GetString("Ecom:Order.Customer.Zip"), GetString("Ecom:Order.Customer.Country")); 1897 case AddressSource.EcomDelivery: 1898 return GetAddressHash(GetString("Ecom:Order.Delivery.Address"), GetString("Ecom:Order.Delivery.Address2"), GetString("Ecom:Order.Delivery.City"), GetString("Ecom:Order.Delivery.Region"), GetString("Ecom:Order.Delivery.Zip"), GetString("Ecom:Order.Delivery.Country")); 1899 case AddressSource.UserProfile: 1900 return GetAddressHash(GetString("UserManagement:User.Address"), GetString("UserManagement:User.Address2"), GetString("UserManagement:User.City"), GetString("UserManagement:User.State"), GetString("UserManagement:User.Zip"), GetString("UserManagement:User.Country")); 1901 case AddressSource.UserAddress: 1902 throw new NotSupportedException("Unsupported address source. Use an AddressId instead"); 1903 default: 1904 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 1905 } 1906 } 1907 1908 public string GetAddressHash(string address, string address2, string city, string region, string zip, string country) 1909 { 1910 return string.Concat(address, address2, city, region, zip, country); 1911 } 1912 1913 1914 #line default 1915 #line hidden 1916 1917 1918 #line 539 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1919 public RazorEngine.Templating.TemplateWriter RenderViewCartActions() 1920 { 1921 #line default 1922 #line hidden 1923 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1924 1925 #line 540 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1926 1927 1928 1929 #line default 1930 #line hidden 1931 WriteLiteralTo(__razor_helper_writer, " <div"); 1932 1933 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 1934 1935 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1936 1937 WriteLiteralTo(__razor_helper_writer, " "); 1938 1939 1940 #line 542 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1941 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Go to checkout"), "#", "btn-default col-xs-12 col-sm-offset-8 col-sm-4 col-md-offset-9 col-md-3 gotoCheckout"))); 1942 1943 1944 #line default 1945 #line hidden 1946 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1947 1948 1949 #line 544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1950 1951 1952 #line default 1953 #line hidden 1954 }); 1955 1956 #line 544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1957 } 1958 #line default 1959 #line hidden 1960 1961 1962 #line 546 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1963 public RazorEngine.Templating.TemplateWriter RenderCheckoutActions(bool showPrevious = false) 1964 { 1965 #line default 1966 #line hidden 1967 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1968 1969 #line 547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1970 1971 1972 1973 #line default 1974 #line hidden 1975 WriteLiteralTo(__razor_helper_writer, " <div"); 1976 1977 WriteLiteralTo(__razor_helper_writer, " class=\"continueButton col-xs-12\""); 1978 1979 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1980 1981 1982 #line 549 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1983 1984 1985 #line default 1986 #line hidden 1987 1988 #line 549 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1989 if (showPrevious) 1990 { 1991 var previousButton = "/Default.aspx?Id=" + Pageview.Page.ID + "&amp;" + GetString("CartV2.PreviousStepButtonName") + "=true"; 1992 1993 1994 #line default 1995 #line hidden 1996 1997 #line 552 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1998 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Previous"), previousButton, "pull-left previousButton"))); 1999 2000 2001 #line default 2002 #line hidden 2003 2004 #line 552 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2005 2006 } 2007 2008 #line default 2009 #line hidden 2010 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2011 2012 WriteLiteralTo(__razor_helper_writer, " "); 2013 2014 2015 #line 554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2016 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateSubmitField(Translate("Continue Checkout"), "btn-default pull-right"))); 2017 2018 2019 #line default 2020 #line hidden 2021 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2022 2023 2024 #line 556 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2025 2026 2027 #line default 2028 #line hidden 2029 }); 2030 2031 #line 556 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2032 } 2033 #line default 2034 #line hidden 2035 2036 2037 #line 558 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2038 public RazorEngine.Templating.TemplateWriter RenderCheckoutCompleteActions(bool isCheckoutFlow = true) 2039 { 2040 #line default 2041 #line hidden 2042 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2043 2044 #line 559 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2045 2046 var printUrl = HttpContext.Current.Request.RawUrl + "&amp;print=true"; 2047 var pdfUrl = printUrl + "&amp;pdf=true&amp;filename=Order_" + GetString("Ecom:Order.ID") + ".pdf"; 2048 2049 2050 2051 #line default 2052 #line hidden 2053 WriteLiteralTo(__razor_helper_writer, " <div"); 2054 2055 WriteLiteralTo(__razor_helper_writer, " class=\"continueButton col-xs-12 hidden-xs\""); 2056 2057 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2058 2059 WriteLiteralTo(__razor_helper_writer, " "); 2060 2061 2062 #line 564 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2063 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 2064 { 2065 Label = Translate("Print"), 2066 Href = printUrl, 2067 CssClass = "btn-default pull-left print", 2068 Target = "_blank" 2069 })); 2070 2071 2072 #line default 2073 #line hidden 2074 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2075 2076 WriteLiteralTo(__razor_helper_writer, " "); 2077 2078 2079 #line 571 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2080 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 2081 { 2082 Label = Translate("Download as PDF"), 2083 Href = pdfUrl, 2084 CssClass = "btn-default pull-left dwnPdf", 2085 Target = "_blank" 2086 })); 2087 2088 2089 #line default 2090 #line hidden 2091 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 2092 2093 2094 #line 579 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2095 2096 2097 #line default 2098 #line hidden 2099 2100 #line 579 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2101 if (!isCheckoutFlow) 2102 { 2103 2104 2105 #line default 2106 #line hidden 2107 2108 #line 581 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2109 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 2110 { 2111 Label = Translate("Back"), 2112 Href = "javascript:history.back();", 2113 CssClass = "btn-bg2 pull-right", 2114 IconCssClass = "fa-arrow-left" 2115 })); 2116 2117 2118 #line default 2119 #line hidden 2120 2121 #line 587 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2122 2123 } 2124 2125 #line default 2126 #line hidden 2127 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2128 2129 2130 #line 590 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2131 2132 2133 #line default 2134 #line hidden 2135 }); 2136 2137 #line 590 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2138 } 2139 #line default 2140 #line hidden 2141 2142 2143 #line 592 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2144 public RazorEngine.Templating.TemplateWriter RenderCartContents(List<LoopItem> orderlines, CartOutputType outputType = CartOutputType.ReadOnly, List<LoopItem> orderLinesOutOfStock = null) 2145 { 2146 #line default 2147 #line hidden 2148 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2149 2150 #line 593 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2151 2152 var ulCssClass = outputType != CartOutputType.Email && outputType != CartOutputType.MiniCart ? "cartProductsList" : "col-xs-12"; 2153 var ulCssId = outputType == CartOutputType.MiniCart ? "miniCartContainer" : ""; 2154 2155 if (outputType == CartOutputType.Editable && orderLinesOutOfStock.Any()) 2156 { 2157 2158 2159 #line default 2160 #line hidden 2161 WriteLiteralTo(__razor_helper_writer, " <h2"); 2162 2163 WriteLiteralTo(__razor_helper_writer, " class=\"outOfStock\""); 2164 2165 WriteLiteralTo(__razor_helper_writer, ">"); 2166 2167 2168 #line 599 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2169 WriteTo(__razor_helper_writer, Translate("One or more items in your cart are not available")); 2170 2171 2172 #line default 2173 #line hidden 2174 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 2175 2176 2177 #line 600 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2178 2179 2180 2181 #line default 2182 #line hidden 2183 WriteLiteralTo(__razor_helper_writer, " <header"); 2184 2185 WriteLiteralTo(__razor_helper_writer, " class=\"showCartHeader col-sm-12 noPadding\""); 2186 2187 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2188 2189 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 col-xs-offset-4 noPadding mdAlignRight\""); 2190 2191 WriteLiteralTo(__razor_helper_writer, ">"); 2192 2193 2194 #line 602 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2195 WriteTo(__razor_helper_writer, Translate("Unit price")); 2196 2197 2198 #line default 2199 #line hidden 2200 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2201 2202 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 2203 2204 WriteLiteralTo(__razor_helper_writer, ">"); 2205 2206 2207 #line 603 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2208 WriteTo(__razor_helper_writer, Translate("Qty Available")); 2209 2210 2211 #line default 2212 #line hidden 2213 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2214 2215 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 2216 2217 WriteLiteralTo(__razor_helper_writer, ">"); 2218 2219 2220 #line 604 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2221 WriteTo(__razor_helper_writer, Translate("Qty Requested")); 2222 2223 2224 #line default 2225 #line hidden 2226 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2227 2228 WriteLiteralTo(__razor_helper_writer, " class=\"col-sm-2 totalPrice text-right\""); 2229 2230 WriteLiteralTo(__razor_helper_writer, ">"); 2231 2232 2233 #line 605 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2234 WriteTo(__razor_helper_writer, Translate("Total Price")); 2235 2236 2237 #line default 2238 #line hidden 2239 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </header>\r\n"); 2240 2241 2242 #line 607 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2243 2244 2245 2246 #line default 2247 #line hidden 2248 WriteLiteralTo(__razor_helper_writer, " "); 2249 2250 WriteLiteralTo(__razor_helper_writer, "<ul class=\""); 2251 2252 2253 #line 608 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2254 WriteTo(__razor_helper_writer, ulCssClass); 2255 2256 2257 #line default 2258 #line hidden 2259 WriteLiteralTo(__razor_helper_writer, " outOfStock\" id=\""); 2260 2261 2262 #line 608 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2263 WriteTo(__razor_helper_writer, ulCssId); 2264 2265 2266 #line default 2267 #line hidden 2268 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 2269 2270 2271 #line 609 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2272 2273 foreach (var orderline in orderLinesOutOfStock) 2274 { 2275 2276 2277 #line default 2278 #line hidden 2279 2280 #line 612 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2281 WriteTo(__razor_helper_writer, InternalRenderCartContentLine(orderline, outputType, true)); 2282 2283 2284 #line default 2285 #line hidden 2286 2287 #line 612 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2288 2289 } 2290 2291 2292 2293 #line default 2294 #line hidden 2295 WriteLiteralTo(__razor_helper_writer, " "); 2296 2297 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 2298 2299 2300 #line 616 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2301 } 2302 2303 if (outputType == CartOutputType.Editable && orderLinesOutOfStock.Any()) 2304 { 2305 2306 2307 #line default 2308 #line hidden 2309 WriteLiteralTo(__razor_helper_writer, " <h2"); 2310 2311 WriteLiteralTo(__razor_helper_writer, " class=\"outOfStock\""); 2312 2313 WriteLiteralTo(__razor_helper_writer, ">"); 2314 2315 2316 #line 620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2317 WriteTo(__razor_helper_writer, Translate("The following products are in stock and can be ordered")); 2318 2319 2320 #line default 2321 #line hidden 2322 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 2323 2324 2325 #line 621 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2326 } 2327 2328 if (outputType != CartOutputType.Email && outputType != CartOutputType.MiniCart) 2329 { 2330 2331 2332 #line default 2333 #line hidden 2334 WriteLiteralTo(__razor_helper_writer, " <header"); 2335 2336 WriteLiteralTo(__razor_helper_writer, " class=\"showCartHeader col-sm-12 noPadding\""); 2337 2338 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2339 2340 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 col-xs-offset-4 noPadding mdAlignRight\""); 2341 2342 WriteLiteralTo(__razor_helper_writer, ">"); 2343 2344 2345 #line 626 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2346 WriteTo(__razor_helper_writer, Translate("Unit price")); 2347 2348 2349 #line default 2350 #line hidden 2351 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2352 2353 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 2354 2355 WriteLiteralTo(__razor_helper_writer, ">"); 2356 2357 2358 #line 627 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2359 WriteTo(__razor_helper_writer, Translate("Qty")); 2360 2361 2362 #line default 2363 #line hidden 2364 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2365 2366 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 2367 2368 WriteLiteralTo(__razor_helper_writer, ">"); 2369 2370 2371 #line 628 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2372 WriteTo(__razor_helper_writer, Translate("Discount")); 2373 2374 2375 #line default 2376 #line hidden 2377 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2378 2379 WriteLiteralTo(__razor_helper_writer, " class=\"col-sm-2 totalPrice text-right\""); 2380 2381 WriteLiteralTo(__razor_helper_writer, ">"); 2382 2383 2384 #line 629 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2385 WriteTo(__razor_helper_writer, Translate("Total Price")); 2386 2387 2388 #line default 2389 #line hidden 2390 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </header>\r\n"); 2391 2392 2393 #line 631 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2394 } 2395 else if (outputType == CartOutputType.MiniCart) 2396 { 2397 var totalQty = GetInteger("Ecom:Order.OrderLines.TotalProductQuantity"); // variable needed to avoid Ajax issues with the attribute value 2398 2399 // This will allow carts to be picked up by "Abandoned Carts" provider without users going to the cart 2400 if (User.IsExtranetUserLoggedIn() && GetString("Ecom:Order.Customer.Email").IsNullOrEmpty() || GetString("Ecom:Order.ShopID").IsNullOrEmpty()) 2401 { 2402 var order = Order.GetOrderById(GetString("Ecom:Order.ID")); 2403 var userEmail = Pageview.User != null ? Pageview.User.Email : string.Empty; 2404 if (order != null) 2405 { 2406 order.ShopId = Pageview.Area.EcomShopId; 2407 if (userEmail.IsNotNullOrEmpty()) 2408 { 2409 order.CustomerEmail = userEmail; 2410 } 2411 order.Save(); 2412 } 2413 } 2414 2415 2416 2417 #line default 2418 #line hidden 2419 WriteLiteralTo(__razor_helper_writer, " "); 2420 2421 WriteLiteralTo(__razor_helper_writer, "<div>\r\n"); 2422 2423 2424 #line 653 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2425 var orderMinicart = Dynamicweb.Ecommerce.Common.Context.Cart; 2426 var lastDateMinicart = (DateTime?) null; 2427 2428 if (orderMinicart != null) 2429 { 2430 var lineModifedMinicart = orderMinicart.OrderLines.Max(x => x.Modified); // Gets the latest changed date on the line, requires at least one line to be present 2431 lastDateMinicart = lineModifedMinicart > orderMinicart.Modified ? lineModifedMinicart : orderMinicart.Modified; 2432 } 2433 2434 2435 #line default 2436 #line hidden 2437 WriteLiteralTo(__razor_helper_writer, " "); 2438 2439 WriteLiteralTo(__razor_helper_writer, "<div id=\"miniCart\" data-quantity=\""); 2440 2441 2442 #line 661 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2443 WriteTo(__razor_helper_writer, totalQty); 2444 2445 2446 #line default 2447 #line hidden 2448 WriteLiteralTo(__razor_helper_writer, "\" data-orderId=\'"); 2449 2450 2451 #line 661 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2452 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ID")); 2453 2454 2455 #line default 2456 #line hidden 2457 WriteLiteralTo(__razor_helper_writer, "\' data-modifiedDate=\""); 2458 2459 2460 #line 661 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2461 WriteTo(__razor_helper_writer, lastDateMinicart); 2462 2463 2464 #line default 2465 #line hidden 2466 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 2467 2468 2469 #line 662 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2470 } 2471 2472 2473 2474 #line default 2475 #line hidden 2476 WriteLiteralTo(__razor_helper_writer, " "); 2477 2478 WriteLiteralTo(__razor_helper_writer, "<ul class=\""); 2479 2480 2481 #line 664 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2482 WriteTo(__razor_helper_writer, ulCssClass); 2483 2484 2485 #line default 2486 #line hidden 2487 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 2488 2489 2490 #line 664 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2491 WriteTo(__razor_helper_writer, ulCssId); 2492 2493 2494 #line default 2495 #line hidden 2496 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 2497 2498 2499 #line 665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2500 2501 foreach (var orderline in orderlines) 2502 { 2503 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 2504 2505 if (orderLineType == OrderLineType.Product || 2506 orderLineType == OrderLineType.GiftCard || 2507 orderLineType == OrderLineType.Fixed || 2508 orderLineType == OrderLineType.PointProduct || 2509 orderLineType == OrderLineType.Discount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero") || 2510 orderLineType == OrderLineType.ProductDiscount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero")) 2511 { 2512 if (outputType == CartOutputType.Email) 2513 { 2514 2515 2516 #line default 2517 #line hidden 2518 2519 #line 679 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2520 WriteTo(__razor_helper_writer, InternalRenderEmailCartContentLine(orderline)); 2521 2522 2523 #line default 2524 #line hidden 2525 2526 #line 679 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2527 2528 } 2529 else if (outputType != CartOutputType.Editable || orderLinesOutOfStock == null || !orderLinesOutOfStock.Any() || !orderLinesOutOfStock.Contains(orderline)) 2530 { 2531 2532 2533 #line default 2534 #line hidden 2535 2536 #line 683 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2537 WriteTo(__razor_helper_writer, InternalRenderCartContentLine(orderline, outputType)); 2538 2539 2540 #line default 2541 #line hidden 2542 2543 #line 683 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2544 2545 } 2546 } 2547 } 2548 2549 if (outputType != CartOutputType.Email) 2550 { 2551 2552 2553 #line default 2554 #line hidden 2555 WriteLiteralTo(__razor_helper_writer, " "); 2556 2557 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 2558 2559 2560 #line 691 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2561 } 2562 if (outputType == CartOutputType.MiniCart) 2563 { 2564 var checkoutUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.Area.ID, "MyCart").ID + "&CartV2.GotoStep1=true"); 2565 2566 2567 2568 #line default 2569 #line hidden 2570 WriteLiteralTo(__razor_helper_writer, " <footer"); 2571 2572 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 2573 2574 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2575 2576 WriteLiteralTo(__razor_helper_writer, " class=\"subTotal col-xs-12 noPadding\""); 2577 2578 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2579 2580 WriteLiteralTo(__razor_helper_writer, " "); 2581 2582 2583 #line 698 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2584 WriteTo(__razor_helper_writer, Translate("Subtotal")); 2585 2586 2587 #line default 2588 #line hidden 2589 WriteLiteralTo(__razor_helper_writer, " <span"); 2590 2591 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 2592 2593 WriteLiteralTo(__razor_helper_writer, ">"); 2594 2595 2596 #line 698 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2597 WriteTo(__razor_helper_writer, RenderProductPrice(GetString("Ecom:Order.PriceWithoutFees.PriceFormatted"))); 2598 2599 2600 #line default 2601 #line hidden 2602 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n <div"); 2603 2604 WriteLiteralTo(__razor_helper_writer, " class=\"miniCartBtns col-xs-12 noPadding\""); 2605 2606 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2607 2608 WriteLiteralTo(__razor_helper_writer, " "); 2609 2610 2611 #line 701 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2612 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Show Cart"), Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetPageIdByNavigationTag("MyCart")), "btn-default pull-left"))); 2613 2614 2615 #line default 2616 #line hidden 2617 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 2618 2619 2620 #line 703 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2621 2622 2623 #line default 2624 #line hidden 2625 2626 #line 703 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2627 2628 var isWebServiceConnectionAvailable = Dna.Ecommerce.LiveIntegration.TemplatesHelper.IsWebServiceConnectionAvailable(); 2629 2630 if ((isWebServiceConnectionAvailable || !ShowNoErpConnectionMessage()) && !orderLinesOutOfStock.Any()) 2631 { 2632 2633 2634 #line default 2635 #line hidden 2636 2637 #line 708 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2638 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Checkout"), checkoutUrl, "btn-default pull-right"))); 2639 2640 2641 #line default 2642 #line hidden 2643 2644 #line 708 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2645 2646 } 2647 2648 2649 #line default 2650 #line hidden 2651 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n"); 2652 2653 WriteLiteralTo(__razor_helper_writer, " "); 2654 2655 2656 #line 713 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2657 WriteTo(__razor_helper_writer, InternalRenderOrderAmountsDisclaimer()); 2658 2659 2660 #line default 2661 #line hidden 2662 WriteLiteralTo(__razor_helper_writer, "\r\n </footer>\r\n"); 2663 2664 WriteLiteralTo(__razor_helper_writer, " "); 2665 2666 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2667 2668 WriteLiteralTo(__razor_helper_writer, " "); 2669 2670 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2671 2672 WriteLiteralTo(__razor_helper_writer, " "); 2673 2674 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2675 2676 2677 #line 718 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2678 } 2679 2680 2681 #line default 2682 #line hidden 2683 }); 2684 2685 #line 719 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2686 } 2687 #line default 2688 #line hidden 2689 2690 2691 #line 721 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2692 public RazorEngine.Templating.TemplateWriter RenderCartContentsSummary(List<LoopItem> orderlines, string voucherValue, CartOutputType outputType = CartOutputType.ReadOnly) 2693 { 2694 #line default 2695 #line hidden 2696 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2697 2698 #line 722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2699 2700 var voucherResult = PromoCodeChecker.CheckOrderPromoCode(voucherValue); 2701 2702 2703 #line default 2704 #line hidden 2705 2706 #line 724 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2707 WriteTo(__razor_helper_writer, RenderCartContentsSummary(orderlines, voucherValue, voucherResult, outputType)); 2708 2709 2710 #line default 2711 #line hidden 2712 2713 #line 724 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2714 2715 2716 2717 #line default 2718 #line hidden 2719 }); 2720 2721 #line 725 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2722 } 2723 #line default 2724 #line hidden 2725 2726 2727 #line 727 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2728 public RazorEngine.Templating.TemplateWriter RenderCartContentsSummary(List<LoopItem> orderlines, string voucherValue, PromoCodeInfo voucherResult, CartOutputType outputType = CartOutputType.ReadOnly) 2729 { 2730 #line default 2731 #line hidden 2732 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2733 2734 #line 728 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2735 2736 var orderDiscount = orderlines 2737 .Where(t => t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Discount || t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.ProductDiscount && t.GetString("Ecom:Order:OrderLine.ParentLineID").IsNullOrEmpty()) 2738 .Sum(s => s.GetDouble("Ecom:Order:OrderLine.Price.Price")); 2739 2740 if (outputType != CartOutputType.Email) 2741 { 2742 2743 2744 #line default 2745 #line hidden 2746 WriteLiteralTo(__razor_helper_writer, " "); 2747 2748 WriteLiteralTo(__razor_helper_writer, "<div id=\"totalPriceContainer\" class=\"col-xs-12 col-sm-5 noPadding pull-right noPa" + 2749 "dding-xs\"> \r\n"); 2750 2751 2752 #line 736 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2753 } 2754 2755 if (voucherResult.Valid && !voucherResult.Expired && !voucherResult.Inactive && voucherValue.IsNotNullOrEmpty()) 2756 { 2757 2758 2759 #line default 2760 #line hidden 2761 WriteLiteralTo(__razor_helper_writer, " <div"); 2762 2763 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 2764 2765 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2766 2767 WriteLiteralTo(__razor_helper_writer, " class=\"discountContainer col-xs-12\""); 2768 2769 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2770 2771 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 2772 2773 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 2774 2775 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 col-sm-7 noPadding\""); 2776 2777 WriteLiteralTo(__razor_helper_writer, ">"); 2778 2779 2780 #line 743 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2781 WriteTo(__razor_helper_writer, Translate("Voucher")); 2782 2783 2784 #line default 2785 #line hidden 2786 WriteLiteralTo(__razor_helper_writer, ": "); 2787 2788 2789 #line 743 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2790 WriteTo(__razor_helper_writer, EcommerceHelpers.GetVoucherName(voucherValue)); 2791 2792 2793 #line default 2794 #line hidden 2795 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n </div>\r\n </div>\r\n" + 2796 ""); 2797 2798 2799 #line 747 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2800 } 2801 2802 if (GetDouble("Ecom:Order.TotalPoints") > 0) 2803 { 2804 2805 2806 #line default 2807 #line hidden 2808 2809 #line 751 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2810 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Loyalty Points Spent"), GetString("Ecom:Order.TotalPoints"), false, outputType)); 2811 2812 2813 #line default 2814 #line hidden 2815 2816 #line 751 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2817 2818 } 2819 2820 if (GetDouble("Ecom:Order.RewardTotalPoints") > 0) 2821 { 2822 2823 2824 #line default 2825 #line hidden 2826 2827 #line 756 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2828 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Loyalty Points Earned"), GetString("Ecom:Order.RewardTotalPoints"), false, outputType)); 2829 2830 2831 #line default 2832 #line hidden 2833 2834 #line 756 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2835 2836 } 2837 2838 if (orderDiscount < 0) 2839 { 2840 2841 2842 #line default 2843 #line hidden 2844 2845 #line 761 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2846 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Order Savings"), Dynamicweb.Ecommerce.Common.Context.Currency.Format(orderDiscount, true), false, outputType)); 2847 2848 2849 #line default 2850 #line hidden 2851 2852 #line 761 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2853 2854 } 2855 if (GetString("Ecom:Order.PriceWithoutFees.PriceFormatted") != "0.00") 2856 { 2857 2858 2859 #line default 2860 #line hidden 2861 2862 #line 765 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2863 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Subtotal"), GetString("Ecom:Order.PriceWithoutFees.PriceFormatted"), true, outputType)); 2864 2865 2866 #line default 2867 #line hidden 2868 2869 #line 765 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2870 2871 } 2872 if (GetString("Ecom:Order.ShippingMethodID").IsNotNullOrEmpty()) 2873 { 2874 2875 2876 #line default 2877 #line hidden 2878 2879 #line 769 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2880 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(GetString("Ecom:Order.ShippingMethod"), GetString("Ecom:Order.ShippingFee.PriceWithoutVATFormatted"), false, outputType)); 2881 2882 2883 #line default 2884 #line hidden 2885 2886 #line 769 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2887 2888 } 2889 if (GetString("Ecom:Order.Taxes.Total.Price") != "0.00") 2890 { 2891 2892 2893 #line default 2894 #line hidden 2895 2896 #line 773 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2897 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Taxes"), GetString("Ecom:Order.Taxes.Total"), false, outputType)); 2898 2899 2900 #line default 2901 #line hidden 2902 2903 #line 773 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2904 2905 } 2906 2907 2908 #line default 2909 #line hidden 2910 2911 #line 775 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2912 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Total"), GetString("Ecom:Order.Price"), true, outputType)); 2913 2914 2915 #line default 2916 #line hidden 2917 2918 #line 775 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2919 2920 2921 if (outputType != CartOutputType.Email) 2922 { 2923 2924 2925 #line default 2926 #line hidden 2927 2928 #line 779 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2929 WriteTo(__razor_helper_writer, InternalRenderOrderAmountsDisclaimer()); 2930 2931 2932 #line default 2933 #line hidden 2934 2935 #line 779 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2936 2937 2938 2939 #line default 2940 #line hidden 2941 WriteLiteralTo(__razor_helper_writer, " "); 2942 2943 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 2944 2945 2946 #line 781 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2947 } 2948 2949 2950 #line default 2951 #line hidden 2952 }); 2953 2954 #line 782 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2955 } 2956 #line default 2957 #line hidden 2958 2959 2960 #line 784 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2961 public RazorEngine.Templating.TemplateWriter RenderCartSummary(List<LoopItem> orderlines) 2962 { 2963 #line default 2964 #line hidden 2965 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2966 2967 #line 785 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2968 2969 var orderDiscount = orderlines 2970 .Where(t => t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Discount || t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.ProductDiscount && t.GetString("Ecom:Order:OrderLine.ParentLineID").IsNullOrEmpty()) 2971 .Sum(s => s.GetDouble("Ecom:Order:OrderLine.Price.Price")); 2972 2973 var areAddessesTheSame = AreAddressesTheSame(); 2974 2975 2976 2977 #line default 2978 #line hidden 2979 WriteLiteralTo(__razor_helper_writer, " <h2"); 2980 2981 WriteLiteralTo(__razor_helper_writer, " data-cartid=\""); 2982 2983 2984 #line 792 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2985 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ID")); 2986 2987 2988 #line default 2989 #line hidden 2990 WriteLiteralTo(__razor_helper_writer, "\""); 2991 2992 WriteLiteralTo(__razor_helper_writer, ">"); 2993 2994 2995 #line 792 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2996 WriteTo(__razor_helper_writer, Translate("Order Summary")); 2997 2998 2999 #line default 3000 #line hidden 3001 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 3002 3003 3004 #line 793 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3005 3006 if (orderlines.Any()) 3007 { 3008 var billingAndShippingAddressesTranslate = Translate("Billing & Shipping Address"); 3009 var billingAddressTranslate = Translate("Billing Address"); 3010 var shippingAddressTranslate = Translate("Shipping Address"); 3011 3012 3013 3014 #line default 3015 #line hidden 3016 WriteLiteralTo(__razor_helper_writer, " <dl"); 3017 3018 WriteLiteralTo(__razor_helper_writer, " data-billingandshippingaddresses=\'"); 3019 3020 3021 #line 800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3022 WriteTo(__razor_helper_writer, billingAndShippingAddressesTranslate); 3023 3024 3025 #line default 3026 #line hidden 3027 WriteLiteralTo(__razor_helper_writer, "\'"); 3028 3029 WriteLiteralTo(__razor_helper_writer, " data-billingaddress=\'"); 3030 3031 3032 #line 800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3033 WriteTo(__razor_helper_writer, billingAddressTranslate); 3034 3035 3036 #line default 3037 #line hidden 3038 WriteLiteralTo(__razor_helper_writer, "\'"); 3039 3040 WriteLiteralTo(__razor_helper_writer, " data-shippingaddress=\'"); 3041 3042 3043 #line 800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3044 WriteTo(__razor_helper_writer, shippingAddressTranslate); 3045 3046 3047 #line default 3048 #line hidden 3049 WriteLiteralTo(__razor_helper_writer, "\'"); 3050 3051 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3052 3053 3054 #line 801 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3055 3056 3057 #line default 3058 #line hidden 3059 3060 #line 801 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3061 if(GetString("Ecom:Order.Customer.Name").IsNotNullOrEmpty()) { 3062 3063 3064 #line default 3065 #line hidden 3066 WriteLiteralTo(__razor_helper_writer, " <dt"); 3067 3068 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 rightTitle borderBottom shippingAddressTitle\""); 3069 3070 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3071 3072 WriteLiteralTo(__razor_helper_writer, " "); 3073 3074 3075 #line 803 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3076 WriteTo(__razor_helper_writer, areAddessesTheSame ? billingAndShippingAddressesTranslate : shippingAddressTranslate); 3077 3078 3079 #line default 3080 #line hidden 3081 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 3082 3083 WriteLiteralTo(__razor_helper_writer, " <dd"); 3084 3085 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 shippingAddress\""); 3086 3087 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3088 3089 3090 #line 806 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3091 3092 3093 #line default 3094 #line hidden 3095 3096 #line 806 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3097 if(GetString("Ecom:Order.Delivery.Name").IsNotNullOrEmpty()) 3098 { 3099 3100 3101 #line default 3102 #line hidden 3103 3104 #line 808 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3105 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Delivery.Name")); 3106 3107 3108 #line default 3109 #line hidden 3110 WriteLiteralTo(__razor_helper_writer, "<br/>\r\n"); 3111 3112 3113 #line 809 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3114 } 3115 3116 #line default 3117 #line hidden 3118 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3119 3120 WriteLiteralTo(__razor_helper_writer, " "); 3121 3122 3123 #line 810 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3124 WriteTo(__razor_helper_writer, GetAddressFormatted(AddressSource.EcomDelivery, false, true, true, "<br/>")); 3125 3126 3127 #line default 3128 #line hidden 3129 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 3130 3131 3132 #line 812 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3133 if (!areAddessesTheSame && GetString("Ecom:Order.Delivery.Address").IsNotNullOrEmpty()) 3134 { 3135 3136 3137 #line default 3138 #line hidden 3139 WriteLiteralTo(__razor_helper_writer, " <dt"); 3140 3141 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 rightTitle billingAddressTitle\""); 3142 3143 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3144 3145 WriteLiteralTo(__razor_helper_writer, " "); 3146 3147 3148 #line 815 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3149 WriteTo(__razor_helper_writer, billingAddressTranslate); 3150 3151 3152 #line default 3153 #line hidden 3154 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 3155 3156 WriteLiteralTo(__razor_helper_writer, " <dd"); 3157 3158 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 billingAddress\""); 3159 3160 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3161 3162 WriteLiteralTo(__razor_helper_writer, " "); 3163 3164 3165 #line 818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3166 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Customer.Name")); 3167 3168 3169 #line default 3170 #line hidden 3171 WriteLiteralTo(__razor_helper_writer, "<br/>\r\n"); 3172 3173 WriteLiteralTo(__razor_helper_writer, " "); 3174 3175 3176 #line 819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3177 WriteTo(__razor_helper_writer, GetAddressFormatted(AddressSource.EcomCustomer, false, true, true, "<br/>")); 3178 3179 3180 #line default 3181 #line hidden 3182 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 3183 3184 3185 #line 821 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3186 } 3187 } 3188 3189 #line default 3190 #line hidden 3191 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3192 3193 WriteLiteralTo(__razor_helper_writer, " "); 3194 3195 3196 #line 824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3197 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Payment Method"), GetString("Ecom:Order.PaymentMethod"), string.Empty, "paymentMethodName", false, true)); 3198 3199 3200 #line default 3201 #line hidden 3202 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n <dt"); 3203 3204 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 borderBottom orderSummaryDeta\""); 3205 3206 WriteLiteralTo(__razor_helper_writer, ">"); 3207 3208 3209 #line 826 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3210 WriteTo(__razor_helper_writer, Translate("Order Details")); 3211 3212 3213 #line default 3214 #line hidden 3215 WriteLiteralTo(__razor_helper_writer, "</dt>\r\n <dd"); 3216 3217 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 osProducts\""); 3218 3219 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul>\r\n"); 3220 3221 3222 #line 829 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3223 3224 3225 #line default 3226 #line hidden 3227 3228 #line 829 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3229 foreach (var orderline in orderlines) 3230 { 3231 var variantText = orderline.GetString("Ecom:Order:OrderLine.ProductVariantText"); 3232 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 3233 3234 if (orderLineType == OrderLineType.Product || 3235 orderLineType == OrderLineType.GiftCard || 3236 orderLineType == OrderLineType.Fixed || 3237 orderLineType == OrderLineType.PointProduct || 3238 orderLineType == OrderLineType.Discount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero") || 3239 orderLineType == OrderLineType.ProductDiscount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero")) 3240 { 3241 3242 3243 #line default 3244 #line hidden 3245 WriteLiteralTo(__razor_helper_writer, " <li"); 3246 3247 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 3248 3249 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 3250 3251 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPaddingLeft\""); 3252 3253 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3254 3255 WriteLiteralTo(__razor_helper_writer, " "); 3256 3257 3258 #line 843 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3259 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductName")); 3260 3261 3262 #line default 3263 #line hidden 3264 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3265 3266 3267 #line 844 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3268 3269 3270 #line default 3271 #line hidden 3272 3273 #line 844 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3274 if (variantText.IsNotNullOrEmpty()) 3275 { 3276 3277 3278 #line default 3279 #line hidden 3280 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 3281 3282 WriteLiteralTo(__razor_helper_writer, " <small>"); 3283 3284 3285 #line 847 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3286 WriteTo(__razor_helper_writer, variantText); 3287 3288 3289 #line default 3290 #line hidden 3291 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3292 3293 3294 #line 848 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3295 } 3296 3297 #line default 3298 #line hidden 3299 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n " + 3300 " <div>\r\n <small"); 3301 3302 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 noPaddingLeft\""); 3303 3304 WriteLiteralTo(__razor_helper_writer, ">"); 3305 3306 3307 #line 851 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3308 WriteTo(__razor_helper_writer, Translate("Qty")); 3309 3310 3311 #line default 3312 #line hidden 3313 WriteLiteralTo(__razor_helper_writer, ": "); 3314 3315 3316 #line 851 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3317 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Quantity")); 3318 3319 3320 #line default 3321 #line hidden 3322 WriteLiteralTo(__razor_helper_writer, "</small>\r\n <span"); 3323 3324 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 text-right noPadding\""); 3325 3326 WriteLiteralTo(__razor_helper_writer, ">"); 3327 3328 3329 #line 852 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3330 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts")); 3331 3332 3333 #line default 3334 #line hidden 3335 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n " + 3336 " </li>\r\n"); 3337 3338 3339 #line 855 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3340 } 3341 } 3342 3343 #line default 3344 #line hidden 3345 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n </dd>\r\n \r\n"); 3346 3347 3348 #line 860 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3349 3350 3351 #line default 3352 #line hidden 3353 3354 #line 860 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3355 if (GetDouble("Ecom:Order.TotalPoints") > 0) 3356 { 3357 3358 3359 #line default 3360 #line hidden 3361 3362 #line 862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3363 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Loyalty Points Spent"), GetString("Ecom:Order.TotalPoints"), "orderSummaryPointsSpent")); 3364 3365 3366 #line default 3367 #line hidden 3368 3369 #line 862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3370 3371 } 3372 3373 #line default 3374 #line hidden 3375 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3376 3377 3378 #line 865 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3379 3380 3381 #line default 3382 #line hidden 3383 3384 #line 865 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3385 if (GetDouble("Ecom:Order.RewardTotalPoints") > 0) 3386 { 3387 3388 3389 #line default 3390 #line hidden 3391 3392 #line 867 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3393 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Loyalty Points Earned"), GetString("Ecom:Order.RewardTotalPoints"), "orderSummaryPointsEarned")); 3394 3395 3396 #line default 3397 #line hidden 3398 3399 #line 867 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3400 3401 } 3402 3403 #line default 3404 #line hidden 3405 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3406 3407 3408 #line 870 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3409 3410 3411 #line default 3412 #line hidden 3413 3414 #line 870 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3415 if (orderDiscount < 0) 3416 { 3417 3418 3419 #line default 3420 #line hidden 3421 3422 #line 872 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3423 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Order Savings"), Dynamicweb.Ecommerce.Common.Context.Currency.Format(orderDiscount, true), "orderSummaryOrderSavings")); 3424 3425 3426 #line default 3427 #line hidden 3428 3429 #line 872 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3430 3431 } 3432 3433 #line default 3434 #line hidden 3435 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3436 3437 WriteLiteralTo(__razor_helper_writer, " "); 3438 3439 3440 #line 875 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3441 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Subtotal"), GetString("Ecom:Order.PriceWithoutFees.PriceFormatted"), "orderSummarySubtotal", string.Empty, true)); 3442 3443 3444 #line default 3445 #line hidden 3446 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3447 3448 WriteLiteralTo(__razor_helper_writer, " "); 3449 3450 3451 #line 877 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3452 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(GetString("Ecom:Order.ShippingMethod"), GetString("Ecom:Order.ShippingFee.PriceWithoutVATFormatted"), "orderSummaryShippingName", "orderSummaryShippingPrice", false, true)); 3453 3454 3455 #line default 3456 #line hidden 3457 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3458 3459 3460 #line 879 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3461 3462 3463 #line default 3464 #line hidden 3465 3466 #line 879 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3467 if (GetString("Ecom:Order.Taxes.Total.Price") != "0.00") 3468 { 3469 3470 3471 #line default 3472 #line hidden 3473 3474 #line 881 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3475 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Taxes"), GetString("Ecom:Order.Taxes.Total"), "orderSummaryTaxes")); 3476 3477 3478 #line default 3479 #line hidden 3480 3481 #line 881 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3482 3483 } 3484 3485 #line default 3486 #line hidden 3487 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3488 3489 WriteLiteralTo(__razor_helper_writer, " "); 3490 3491 3492 #line 884 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3493 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Total"), GetString("Ecom:Order.OrderLines.Total.PriceWithoutVAT"), "", "orderSummaryTotal", true)); 3494 3495 3496 #line default 3497 #line hidden 3498 WriteLiteralTo(__razor_helper_writer, "\r\n </dl>\r\n"); 3499 3500 3501 #line 886 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3502 3503 3504 3505 #line default 3506 #line hidden 3507 3508 #line 887 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3509 WriteTo(__razor_helper_writer, InternalRenderOrderAmountsDisclaimer()); 3510 3511 3512 #line default 3513 #line hidden 3514 3515 #line 887 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3516 3517 3518 3519 3520 #line default 3521 #line hidden 3522 WriteLiteralTo(__razor_helper_writer, " <div"); 3523 3524 WriteLiteralTo(__razor_helper_writer, " id=\"editOrderButton\""); 3525 3526 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 text-center\""); 3527 3528 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3529 3530 WriteLiteralTo(__razor_helper_writer, " "); 3531 3532 3533 #line 890 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3534 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Edit order"), Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.Area.ID, "MyCart").ID), "btn-outline"))); 3535 3536 3537 #line default 3538 #line hidden 3539 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3540 3541 3542 #line 892 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3543 } 3544 3545 3546 #line default 3547 #line hidden 3548 }); 3549 3550 #line 893 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3551 } 3552 #line default 3553 #line hidden 3554 3555 3556 #line 895 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3557 public RazorEngine.Templating.TemplateWriter RenderVoucherField() 3558 { 3559 #line default 3560 #line hidden 3561 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3562 3563 #line 896 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3564 3565 var voucherCode = GetString("Ecom:Order.Customer.VoucherCode"); 3566 var voucherCodeErrorMessage = GetString("Ecom:Cart.ValidationError.EcomOrderVoucherCode.ErrorMessage"); 3567 3568 3569 3570 #line default 3571 #line hidden 3572 WriteLiteralTo(__razor_helper_writer, " <h2>"); 3573 3574 3575 #line 900 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3576 WriteTo(__razor_helper_writer, Translate("Voucher Code")); 3577 3578 3579 #line default 3580 #line hidden 3581 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 3582 3583 WriteLiteralTo(__razor_helper_writer, " <div"); 3584 3585 WriteLiteralTo(__razor_helper_writer, " id=\"promoCodeContainer\""); 3586 3587 WriteLiteralTo(__razor_helper_writer, " class=\"DMForms col-xs-12 noPadding\""); 3588 3589 WriteLiteralTo(__razor_helper_writer, " data-error=\""); 3590 3591 3592 #line 901 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3593 WriteTo(__razor_helper_writer, voucherCodeErrorMessage); 3594 3595 3596 #line default 3597 #line hidden 3598 WriteLiteralTo(__razor_helper_writer, "\""); 3599 3600 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3601 3602 3603 #line 902 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3604 3605 3606 #line default 3607 #line hidden 3608 3609 #line 902 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3610 if (voucherCode.IsNullOrEmpty() || voucherCodeErrorMessage.IsNotNullOrEmpty()) 3611 { 3612 3613 3614 #line default 3615 #line hidden 3616 3617 #line 904 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3618 WriteTo(__razor_helper_writer, RenderField(new FieldSettings { Type = FieldType.Text, Label = Translate("Enter a Voucher Code"), SystemName = "EcomOrderVoucherCode", Value = GetString("Ecom:Order.Customer.VoucherCode"), IncludeWrapper = true})); 3619 3620 3621 #line default 3622 #line hidden 3623 3624 #line 904 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3625 3626 3627 3628 #line default 3629 #line hidden 3630 3631 #line 905 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3632 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Apply"), string.Empty, "btn-default submitVoucher"))); 3633 3634 3635 #line default 3636 #line hidden 3637 3638 #line 905 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3639 3640 } 3641 else 3642 { 3643 3644 3645 #line default 3646 #line hidden 3647 WriteLiteralTo(__razor_helper_writer, " <div"); 3648 3649 WriteLiteralTo(__razor_helper_writer, " class=\"promoCodeApplied col-xs-12\""); 3650 3651 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3652 3653 WriteLiteralTo(__razor_helper_writer, " "); 3654 3655 3656 #line 910 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3657 WriteTo(__razor_helper_writer, Translate("Promo Code")); 3658 3659 3660 #line default 3661 #line hidden 3662 WriteLiteralTo(__razor_helper_writer, ": <span>"); 3663 3664 3665 #line 910 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3666 WriteTo(__razor_helper_writer, voucherCode); 3667 3668 3669 #line default 3670 #line hidden 3671 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <a"); 3672 3673 WriteLiteralTo(__razor_helper_writer, " class=\"removeVoucher\""); 3674 3675 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0)\""); 3676 3677 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3678 3679 WriteLiteralTo(__razor_helper_writer, " "); 3680 3681 3682 #line 912 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3683 WriteTo(__razor_helper_writer, RenderIcon("fa-times", Translate("Remove"))); 3684 3685 3686 #line default 3687 #line hidden 3688 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </div>\r\n"); 3689 3690 3691 #line 915 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3692 } 3693 3694 #line default 3695 #line hidden 3696 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3697 3698 3699 #line 917 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3700 3701 3702 #line default 3703 #line hidden 3704 }); 3705 3706 #line 917 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3707 } 3708 #line default 3709 #line hidden 3710 3711 3712 #line 919 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3713 public RazorEngine.Templating.TemplateWriter RenderRegions(List<LoopItem> countries) 3714 { 3715 #line default 3716 #line hidden 3717 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3718 3719 #line 920 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3720 3721 var locations = new Dictionary<string, dynamic> 3722 { 3723 {"locations", new Dictionary<string, dynamic>()} 3724 }; 3725 3726 locations["locations"].Add("Countries", new List<dynamic>()); 3727 3728 foreach (var ct in countries) 3729 { 3730 var regionsList = ct.GetLoop("Regions"); 3731 var countryDict = new Dictionary<string, dynamic>(); 3732 var countryKey = new Dictionary<string, dynamic> 3733 { 3734 {"id", ct.GetString("Ecom:Country.Code2")}, {"regions", new List<dynamic>()} 3735 }; 3736 3737 3738 foreach (var region in regionsList.OrderBy(s => s.GetString("Ecom:Region.Name"))) 3739 { 3740 var regionsDict = new Dictionary<string, string> 3741 { 3742 {"name", region.GetString("Ecom:Region.Name")}, 3743 {"code", region.GetString("Ecom:Region.RegionCode")} 3744 }; 3745 3746 countryKey["regions"].Add(regionsDict); 3747 } 3748 countryDict.Add("country", countryKey); 3749 locations["locations"]["Countries"].Add(countryDict); 3750 } 3751 var productJson = new JavaScriptSerializer().Serialize(locations); 3752 3753 3754 #line default 3755 #line hidden 3756 3757 #line 952 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3758 WriteTo(__razor_helper_writer, productJson); 3759 3760 3761 #line default 3762 #line hidden 3763 3764 #line 952 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3765 3766 3767 3768 #line default 3769 #line hidden 3770 }); 3771 3772 #line 953 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3773 } 3774 #line default 3775 #line hidden 3776 3777 3778 #line 956 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3779 public RazorEngine.Templating.TemplateWriter RenderCheckoutGoogleTagProducts(List<LoopItem> orderlines) 3780 { 3781 #line default 3782 #line hidden 3783 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3784 3785 #line 957 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3786 3787 var objectChar = "{"; 3788 3789 3790 #line default 3791 #line hidden 3792 WriteLiteralTo(__razor_helper_writer, " "); 3793 3794 WriteLiteralTo(__razor_helper_writer, "\r\n \'products\': [\r\n"); 3795 3796 3797 #line 961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3798 3799 3800 #line default 3801 #line hidden 3802 3803 #line 961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3804 foreach (var orderline in orderlines.Where(ol => ol.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Product)) 3805 { 3806 3807 3808 #line default 3809 #line hidden 3810 WriteLiteralTo(__razor_helper_writer, " "); 3811 3812 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3813 3814 WriteLiteralTo(__razor_helper_writer, " "); 3815 3816 3817 #line 964 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3818 WriteTo(__razor_helper_writer, objectChar); 3819 3820 3821 #line default 3822 #line hidden 3823 WriteLiteralTo(__razor_helper_writer, "\r\n \"id\": \""); 3824 3825 3826 #line 965 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3827 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductID")); 3828 3829 3830 #line default 3831 #line hidden 3832 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"name\": \""); 3833 3834 3835 #line 966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3836 WriteTo(__razor_helper_writer, HttpUtility.JavaScriptStringEncode(orderline.GetString("Ecom:Order:OrderLine.ProductName"))); 3837 3838 3839 #line default 3840 #line hidden 3841 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"variant\": \""); 3842 3843 3844 #line 967 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3845 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductVariantText")); 3846 3847 3848 #line default 3849 #line hidden 3850 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"quantity\": "); 3851 3852 3853 #line 968 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3854 WriteTo(__razor_helper_writer, orderline.GetInteger("Ecom:Order:OrderLine.Quantity")); 3855 3856 3857 #line default 3858 #line hidden 3859 WriteLiteralTo(__razor_helper_writer, ",\r\n \"price\": \'"); 3860 3861 3862 #line 969 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3863 WriteTo(__razor_helper_writer, orderline.GetDouble("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.Price")); 3864 3865 3866 #line default 3867 #line hidden 3868 WriteLiteralTo(__razor_helper_writer, "\'\r\n }\r\n "); 3869 3870 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3871 3872 3873 #line 972 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3874 objectChar = ",{"; 3875 } 3876 3877 #line default 3878 #line hidden 3879 WriteLiteralTo(__razor_helper_writer, "]\r\n "); 3880 3881 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3882 3883 3884 #line 975 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3885 3886 3887 #line default 3888 #line hidden 3889 }); 3890 3891 #line 975 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3892 } 3893 #line default 3894 #line hidden 3895 3896 3897 #line 977 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3898 public RazorEngine.Templating.TemplateWriter RenderCheckoutGoogleTag(List<LoopItem> orderlines,string eventName, int stepNumber) 3899 { 3900 #line default 3901 #line hidden 3902 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3903 3904 #line 978 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3905 3906 if ((Pageview.Area.Item["GoogleAnalytics"] ?? "").ToString().IsNotNullOrEmpty() && orderlines.Any()) 3907 { 3908 if (eventName == "purchase") 3909 { 3910 3911 3912 #line default 3913 #line hidden 3914 WriteLiteralTo(__razor_helper_writer, " "); 3915 3916 WriteLiteralTo(__razor_helper_writer, "\r\n dataLayer.push({\r\n \'ecommerce\': {\r\n " + 3917 " \'currency\': \""); 3918 3919 3920 #line 986 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3921 WriteTo(__razor_helper_writer, Dynamicweb.Ecommerce.Common.Context.Currency.Code); 3922 3923 3924 #line default 3925 #line hidden 3926 WriteLiteralTo(__razor_helper_writer, "\",\r\n \'purchase\': {\r\n \'actionFie" + 3927 "ld\': {\r\n \'id\': \'"); 3928 3929 3930 #line 989 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3931 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ID")); 3932 3933 3934 #line default 3935 #line hidden 3936 WriteLiteralTo(__razor_helper_writer, "\',\r\n \'revenue\': \'"); 3937 3938 3939 #line 990 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3940 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Price.Price")); 3941 3942 3943 #line default 3944 #line hidden 3945 WriteLiteralTo(__razor_helper_writer, "\',\r\n \'tax\':\'"); 3946 3947 3948 #line 991 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3949 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Taxes.Total.Price")); 3950 3951 3952 #line default 3953 #line hidden 3954 WriteLiteralTo(__razor_helper_writer, "\',\r\n \'shipping\': \'"); 3955 3956 3957 #line 992 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3958 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ShippingFee.Price")); 3959 3960 3961 #line default 3962 #line hidden 3963 WriteLiteralTo(__razor_helper_writer, "\',\r\n \'coupon\': \'"); 3964 3965 3966 #line 993 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3967 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Customer.VoucherCode")); 3968 3969 3970 #line default 3971 #line hidden 3972 WriteLiteralTo(__razor_helper_writer, "\'\r\n },\r\n"); 3973 3974 WriteLiteralTo(__razor_helper_writer, " "); 3975 3976 3977 #line 995 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3978 WriteTo(__razor_helper_writer, RenderCheckoutGoogleTagProducts(orderlines)); 3979 3980 3981 #line default 3982 #line hidden 3983 WriteLiteralTo(__razor_helper_writer, "\r\n }\r\n }\r\n });\r\n " + 3984 " "); 3985 3986 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3987 3988 3989 #line 1000 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3990 } 3991 else 3992 { 3993 3994 3995 #line default 3996 #line hidden 3997 WriteLiteralTo(__razor_helper_writer, " "); 3998 3999 WriteLiteralTo(__razor_helper_writer, "\r\n dataLayer.push({\r\n \'event\': \'checkout\',\r" + 4000 "\n \'ecommerce\': {\r\n \'currency\': \""); 4001 4002 4003 #line 1007 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4004 WriteTo(__razor_helper_writer, Dynamicweb.Ecommerce.Common.Context.Currency.Code); 4005 4006 4007 #line default 4008 #line hidden 4009 WriteLiteralTo(__razor_helper_writer, "\",\r\n \'checkout\': {\r\n \'actionFie" + 4010 "ld\': {\'step\': "); 4011 4012 4013 #line 1009 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4014 WriteTo(__razor_helper_writer, stepNumber); 4015 4016 4017 #line default 4018 #line hidden 4019 WriteLiteralTo(__razor_helper_writer, "},\r\n"); 4020 4021 WriteLiteralTo(__razor_helper_writer, " "); 4022 4023 4024 #line 1010 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4025 WriteTo(__razor_helper_writer, RenderCheckoutGoogleTagProducts(orderlines)); 4026 4027 4028 #line default 4029 #line hidden 4030 WriteLiteralTo(__razor_helper_writer, "\r\n }\r\n }\r\n });\r\n " + 4031 " "); 4032 4033 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4034 4035 4036 #line 1015 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4037 } 4038 } 4039 4040 4041 #line default 4042 #line hidden 4043 }); 4044 4045 #line 1017 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4046 } 4047 #line default 4048 #line hidden 4049 4050 4051 #line 1019 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4052 public RazorEngine.Templating.TemplateWriter RenderAddressTextContainer(AddressSource addressSource, string wrapperId, string addressId, bool isShippingEditable, bool isBillingReadOnly) 4053 { 4054 #line default 4055 #line hidden 4056 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4057 4058 #line 1020 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4059 4060 var isEcomDelivery = addressSource == AddressSource.EcomDelivery; 4061 var addressHash = GetAddressHash(addressSource); 4062 var editTranslate = isBillingReadOnly && !isShippingEditable ? Translate("Edit Address for Current Order Only") : Translate("Edit"); 4063 4064 if (isEcomDelivery && GetString("Ecom:Order.Delivery.Name").IsNotNullOrEmpty()) 4065 { 4066 4067 4068 #line default 4069 #line hidden 4070 4071 #line 1027 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4072 WriteTo(__razor_helper_writer, string.Concat(Translate("Attn.")," ",GetString("Ecom:Order.Delivery.Name"))); 4073 4074 4075 #line default 4076 #line hidden 4077 4078 #line 1027 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4079 4080 } 4081 4082 4083 #line default 4084 #line hidden 4085 WriteLiteralTo(__razor_helper_writer, " <div"); 4086 4087 WriteLiteralTo(__razor_helper_writer, " data-hash=\""); 4088 4089 4090 #line 1029 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4091 WriteTo(__razor_helper_writer, addressHash); 4092 4093 4094 #line default 4095 #line hidden 4096 WriteLiteralTo(__razor_helper_writer, "\""); 4097 4098 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 50065), Tuple.Create("\"", 50080) 4099 4100 #line 1029 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4101 , Tuple.Create(Tuple.Create("", 50070), Tuple.Create<System.Object, System.Int32>(wrapperId 4102 4103 #line default 4104 #line hidden 4105 , 50070), false) 4106 ); 4107 4108 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4109 4110 WriteLiteralTo(__razor_helper_writer, " "); 4111 4112 4113 #line 1030 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4114 WriteTo(__razor_helper_writer, GetAddressFormatted(addressSource, false, true, true, "<br/>")); 4115 4116 4117 #line default 4118 #line hidden 4119 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4120 4121 4122 #line 1032 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4123 if (isEcomDelivery) 4124 { 4125 4126 4127 #line default 4128 #line hidden 4129 4130 #line 1034 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4131 WriteTo(__razor_helper_writer, RenderHtmlElementBetweenEachString(new List<string>{GetString("Ecom:Order.Customer.Email"),GetString("Ecom:Order.Customer.Phone")})); 4132 4133 4134 #line default 4135 #line hidden 4136 4137 #line 1034 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4138 4139 } 4140 4141 4142 #line default 4143 #line hidden 4144 WriteLiteralTo(__razor_helper_writer, " <a"); 4145 4146 WriteLiteralTo(__razor_helper_writer, " class=\"editCurrentAddress\""); 4147 4148 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0);\""); 4149 4150 WriteLiteralTo(__razor_helper_writer, ">"); 4151 4152 4153 #line 1036 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4154 WriteTo(__razor_helper_writer, RenderIcon("fa-edit", editTranslate)); 4155 4156 4157 #line default 4158 #line hidden 4159 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 4160 4161 4162 #line 1037 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4163 4164 4165 #line default 4166 #line hidden 4167 }); 4168 4169 #line 1037 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4170 } 4171 #line default 4172 #line hidden 4173 4174 4175 #line 1079 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4176 4177 4178 #region Url functions 4179 4180 public string GetCustomerCenterSortUrl(string field, string listType = "Order") 4181 { 4182 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 4183 var sortDirectionParameter = "CCSort" + listType + paragraphId; 4184 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 4185 var sortDirection = Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 4186 4187 if (field.IsNotNullOrEmpty()) 4188 { 4189 return "/Default.aspx?Id=" + Pageview.Page.ID + "&" + sortFieldParameter + "=" + field + "&" + sortDirectionParameter + "=" + sortDirection; 4190 } 4191 4192 return string.Empty; 4193 } 4194 4195 public string GetSortFieldParameter(string key, string field = "", string listType = "Order") 4196 { 4197 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 4198 if (key.IsNullOrEmpty()) throw new NotSupportedException("'key' is a required field"); 4199 4200 switch (key) 4201 { 4202 case "name": 4203 var parameter = "CC" + listType + "ByField" + paragraphId; 4204 return Sanitize.Parameter(parameter); 4205 case "value": 4206 if (field.IsNullOrEmpty()) return "asc"; 4207 var sortDirectionParameter = "CCSort" + listType + paragraphId; 4208 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 4209 return Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 4210 default: 4211 throw new NotSupportedException(string.Format("The key '{0}' in not supported", key)); 4212 } 4213 } 4214 4215 #endregion Url functions 4216 4217 #region Generic functions 4218 4219 public static string GetAttributes(Dictionary<string, string> attributes) 4220 { 4221 if (attributes == null || !attributes.Any()) 4222 { 4223 return string.Empty; 4224 } 4225 4226 var attributesConcat = attributes.Aggregate(string.Empty, (current, attribute) => current + GetAttribute(attribute.Key, attribute.Value)); 4227 4228 return attributesConcat; 4229 } 4230 4231 public static string GetAttribute(string attributeName, string attributeValue) 4232 { 4233 if (attributeValue.IsNullOrEmpty() && !attributeName.Equals("value", StringComparison.InvariantCultureIgnoreCase)) return string.Empty; 4234 return " " + attributeName + "=\"" + attributeValue + "\""; 4235 } 4236 4237 #endregion Generic functions 4238 4239 #region Files functions 4240 4241 const string ImagesListTitleKey = "title"; 4242 const string ImagesListImageKey = "image"; 4243 4244 /// <summary> 4245 /// Gets the list of files from a folder. 4246 /// </summary> 4247 /// <return>Item1 is filename (with extension), Item2 is the title and Item3 is the FileType.</return> 4248 public static List<Tuple<string,string,FileType>> GetFilesInFolder(string defaultFile, string searchPattern, string fileTitle = "", bool addDefaultFile = true) 4249 { 4250 var files = new List<Tuple<string,string,FileType>>(); 4251 var mapPath = HttpContext.Current.Server.MapPath(defaultFile); 4252 var folderServerPath = Path.GetDirectoryName(mapPath); 4253 4254 if (!Directory.Exists(folderServerPath)) return files; 4255 4256 // Get Images from folder 4257 const string temp = @"\"; 4258 const string metafield = "title"; 4259 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(defaultFile); 4260 var title = metadata != null && metadata.GetValue(metafield).IsNotNullOrEmpty() ? metadata.GetValue(metafield) : fileTitle; 4261 var folderWebPath = defaultFile.Contains("/") ? defaultFile.Substring(0, defaultFile.LastIndexOf("/")) : defaultFile; 4262 4263 var dctImage = new Dictionary<string, string>(); 4264 4265 if (addDefaultFile && File.Exists(mapPath)) 4266 { 4267 files.Add(new Tuple<string, string, FileType>(defaultFile, title, defaultFile.GetFileType())); 4268 } 4269 4270 foreach (var file in Directory.GetFiles(folderServerPath, searchPattern)) 4271 { 4272 var filePath = folderWebPath + "/" + file.Substring(file.LastIndexOf(temp, StringComparison.Ordinal) + 1, file.Length - file.LastIndexOf(temp, StringComparison.Ordinal) - 1); 4273 metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(filePath); 4274 title = metadata != null && metadata.GetValue(metafield).IsNullOrEmpty() ? metadata.GetValue(metafield) : fileTitle; 4275 4276 files.Add(new Tuple<string, string, FileType>(filePath, title, file.GetFileType())); 4277 } 4278 4279 return files; 4280 } 4281 /// <summary> 4282 /// Gets the list of image or HTML5 video files from a folder. 4283 /// </summary> 4284 /// <return>Item1 is filename (with extension), Item2 is the title and Item3 is the FileType (Image, Video).</return> 4285 public static List<Tuple<string,string,FileType>> GetMediaFilesInFolder(string defaulMedia, string searchPattern, string defaultName = "", bool addDefaultMedia = true) 4286 { 4287 return GetFilesInFolder(defaulMedia, searchPattern, defaultName, addDefaultMedia).Where(f => f.Item3 == FileType.Image || f.Item3 == FileType.Video).ToList(); 4288 } 4289 4290 #endregion Files functions 4291 4292 #region Image functions 4293 4294 public static Dictionary<string, string> GetWidthAndHeightFromQueryString(string imageSource, bool addSource = false) 4295 { 4296 var widthAndHeight = new Dictionary<string, string>(); 4297 4298 if(imageSource.Contains("?")){ 4299 var querySubstring = imageSource.Substring(imageSource.LastIndexOf('?') + 1); 4300 var queryParams = HttpUtility.HtmlDecode(querySubstring).Split('&'); 4301 4302 if (!queryParams.Any()) 4303 return widthAndHeight; 4304 4305 foreach (var param in queryParams.Where(k => k.StartsWith("width") || k.StartsWith("height"))) 4306 { 4307 var keyValuePair = param.Split('='); 4308 4309 if (keyValuePair[1].IsNotNullOrEmpty()) 4310 { 4311 widthAndHeight.Add(keyValuePair[0].ToLower(), keyValuePair[1]); 4312 } 4313 } 4314 } 4315 else if(imageSource.Contains("width") || imageSource.Contains("height")) 4316 { 4317 var queryParams = imageSource.Split('/'); 4318 var imgParam = string.Empty; 4319 4320 foreach (var param in queryParams) 4321 { 4322 switch (imgParam) 4323 { 4324 case "width": 4325 widthAndHeight.Add("width", param); 4326 break; 4327 case "height": 4328 widthAndHeight.Add("height", param); 4329 break; 4330 } 4331 4332 switch (param) 4333 { 4334 case "width": 4335 imgParam = "width"; 4336 break; 4337 case "height": 4338 imgParam = "height"; 4339 break; 4340 default: 4341 imgParam = string.Empty; 4342 break; 4343 } 4344 } 4345 } 4346 4347 if (addSource && imageSource.IsNotNullOrEmpty()) 4348 { 4349 widthAndHeight.Add("srcset", imageSource); 4350 } 4351 4352 return widthAndHeight; 4353 } 4354 4355 #endregion Image functions 4356 4357 #region Form Field functions 4358 4359 public string GetWrapperStart(bool includeWrapper, FieldType fieldType, string htmlElement, bool isRequired = false, string fieldClass = "") 4360 { 4361 if (!includeWrapper || htmlElement.IsNullOrEmpty()) return string.Empty; 4362 var cssClass = new List<string> {fieldType.ToString().ToLower(), fieldClass}; 4363 if (isRequired) 4364 { 4365 cssClass.Add("mandatory"); 4366 } 4367 var attributes = new Dictionary<string, string>() 4368 { 4369 {"class", string.Join(" ", cssClass.ToArray())} 4370 }; 4371 return GetHtmlElement(htmlElement, attributes); 4372 } 4373 4374 public string GetWrapperEnd(bool includeWrapper, string htmlElement) 4375 { 4376 return !includeWrapper ? string.Empty : GetHtmlElement(htmlElement, true); 4377 } 4378 4379 public string GetControlWithRequiredClass(bool isRequired, string control, string cssClass = "") 4380 { 4381 if (!isRequired) return control; 4382 var regex = new Regex(Regex.Escape(" ")); 4383 return regex.Replace(control, " required class=\"mandatory "+cssClass+"\"", 1); 4384 } 4385 4386 public static string GetAttributes(FieldSettings settings, bool returnFieldType = true) 4387 { 4388 var attributes = new StringBuilder(); 4389 if (returnFieldType) 4390 { 4391 var fieldType = string.Empty; 4392 switch (settings.Type) 4393 { 4394 case FieldType.Select: 4395 break; 4396 case FieldType.Checkboxlist: 4397 fieldType = FieldType.Checkbox.ToString().ToLower(); 4398 break; 4399 case FieldType.DatetimeLocal: 4400 fieldType = "datetime-local"; 4401 break; 4402 case FieldType.Textarea: 4403 case FieldType.File: 4404 case FieldType.Text: 4405 case FieldType.Hidden: 4406 case FieldType.Submit: 4407 case FieldType.Reset: 4408 case FieldType.Radio: 4409 case FieldType.Checkbox: 4410 case FieldType.Divider: 4411 case FieldType.Image: 4412 case FieldType.Password: 4413 case FieldType.Textstring: 4414 case FieldType.Button: 4415 case FieldType.Search: 4416 case FieldType.Email: 4417 case FieldType.Url: 4418 case FieldType.Tel: 4419 case FieldType.Number: 4420 case FieldType.Range: 4421 case FieldType.Date: 4422 case FieldType.Month: 4423 case FieldType.Week: 4424 case FieldType.Time: 4425 case FieldType.Datetime: 4426 case FieldType.Color: 4427 case FieldType.Unknown: 4428 default: 4429 fieldType = settings.Type.ToString().ToLower(); 4430 break; 4431 } 4432 if (!settings.Attributes.ContainsKey("type")) 4433 { 4434 attributes.Append(GetAttribute("type", fieldType)); 4435 } 4436 } 4437 attributes.Append(GetAttribute("class", settings.CssClass)); 4438 attributes.Append(GetAttribute("id", settings.Id)); 4439 attributes.Append(GetAttribute("name", settings.SystemName)); 4440 attributes.Append(GetAttribute("value", settings.Value)); 4441 if (settings.Type == FieldType.Email || settings.Type == FieldType.Password || settings.Type == FieldType.Search || settings.Type == FieldType.Tel || settings.Type == FieldType.Text || settings.Type == FieldType.Url) 4442 { 4443 // Only works wit these types 4444 attributes.Append(GetAttribute("placeholder", settings.Placeholder)); 4445 } 4446 if (settings.Type == FieldType.Datetime) 4447 { 4448 attributes.Append(GetAttribute("placeholder", "&#x1f4c5;")); 4449 } 4450 if (settings.Type != FieldType.Checkboxlist) 4451 { 4452 attributes.Append(GetAttribute("required", settings.IsRequired)); 4453 } 4454 attributes.Append(GetAttributes(settings.Attributes)); 4455 return attributes.ToString(); 4456 } 4457 4458 public static string GetAttributes(FieldOption optionSettings, FieldType fieldType = FieldType.Select) 4459 { 4460 var attributes = new StringBuilder(); 4461 if (fieldType != FieldType.Select) 4462 { 4463 attributes.Append(GetAttribute("name", optionSettings.SystemName)); 4464 } 4465 attributes.Append(GetAttribute("value", optionSettings.Value)); 4466 attributes.Append(GetAttributes(optionSettings.Attributes)); 4467 return attributes.ToString(); 4468 } 4469 4470 public static string GetAttribute(string attributeName, bool attributeValue) 4471 { 4472 if (!attributeValue) return string.Empty; 4473 return " " + attributeName + "=\"" + attributeName + "\""; 4474 } 4475 4476 #endregion 4477 4478 #region Dynamicweb Template Engine Workaround 4479 4480 public static string GetHtmlElement(string element, bool isClosingElement = false) 4481 { 4482 return GetHtmlElementForDw(element, null, string.Empty, isClosingElement); 4483 } 4484 4485 public static string GetHtmlElement(string element, Dictionary<string, string> attributes, bool isClosingElement = false) 4486 { 4487 return GetHtmlElementForDw(element, attributes, string.Empty, isClosingElement); 4488 } 4489 4490 public static string GetHtmlElement(string element, string processedAttributes, bool isClosingElement = false) 4491 { 4492 return GetHtmlElementForDw(element, null, processedAttributes, isClosingElement); 4493 } 4494 4495 private static string GetHtmlElementForDw(string element, Dictionary<string, string> attributes = null, string processedAttributes = "", bool isClosingElement = false) 4496 { 4497 var result = new StringBuilder("<"); 4498 4499 if (attributes != null || processedAttributes.IsNotNullOrEmpty()) 4500 { 4501 result.Append(element); 4502 if (attributes != null) 4503 { 4504 result.Append(GetAttributes(attributes)); 4505 } 4506 else if (processedAttributes.IsNotNullOrEmpty()) 4507 { 4508 result.Append(processedAttributes); 4509 } 4510 if (isClosingElement) 4511 { 4512 result.Append("/"); 4513 } 4514 } 4515 else 4516 { 4517 if (isClosingElement) 4518 { 4519 result.Append("/"); 4520 } 4521 result.Append(element); 4522 } 4523 4524 result.Append(">"); 4525 4526 return result.ToString(); 4527 } 4528 4529 #endregion Dynamicweb Template Engine Workaround 4530 4531 #line default 4532 #line hidden 4533 4534 4535 #line 1437 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4536 public RazorEngine.Templating.TemplateWriter InternalRenderTabHeader(string key, string label, string cssClass = "") 4537 { 4538 #line default 4539 #line hidden 4540 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4541 4542 #line 1438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4543 4544 4545 4546 #line default 4547 #line hidden 4548 4549 #line 1439 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4550 WriteTo(__razor_helper_writer, SnippetStart("tabHeaders")); 4551 4552 4553 #line default 4554 #line hidden 4555 4556 #line 1439 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4557 4558 4559 4560 #line default 4561 #line hidden 4562 WriteLiteralTo(__razor_helper_writer, " <li"); 4563 4564 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 66050), Tuple.Create("\"", 66067) 4565 4566 #line 1440 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4567 , Tuple.Create(Tuple.Create("", 66058), Tuple.Create<System.Object, System.Int32>(cssClass 4568 4569 #line default 4570 #line hidden 4571 , 66058), false) 4572 ); 4573 4574 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 4575 4576 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 66085), Tuple.Create("\"", 66096) 4577 4578 #line 1441 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4579 , Tuple.Create(Tuple.Create("", 66092), Tuple.Create<System.Object, System.Int32>(key 4580 4581 #line default 4582 #line hidden 4583 , 66092), false) 4584 ); 4585 4586 WriteLiteralTo(__razor_helper_writer, ">"); 4587 4588 4589 #line 1441 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4590 WriteTo(__razor_helper_writer, label); 4591 4592 4593 #line default 4594 #line hidden 4595 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 4596 4597 4598 #line 1443 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4599 4600 4601 #line default 4602 #line hidden 4603 4604 #line 1443 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4605 WriteTo(__razor_helper_writer, SnippetEnd("tabHeaders")); 4606 4607 4608 #line default 4609 #line hidden 4610 4611 #line 1443 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4612 4613 4614 4615 #line default 4616 #line hidden 4617 }); 4618 4619 #line 1444 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4620 } 4621 #line default 4622 #line hidden 4623 4624 4625 #line 1448 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4626 public RazorEngine.Templating.TemplateWriter InternalRenderGoToFirstPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int currentPageNum = 0) 4627 { 4628 #line default 4629 #line hidden 4630 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4631 4632 #line 1449 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4633 4634 if (currentPageNum == 0) 4635 { 4636 currentPageNum = currentPage; 4637 } 4638 4639 if (currentPage > 2 && numOfPages > loopPageSize && currentPageNum != 1) 4640 { 4641 queryParameters.Remove(pageNumQueryParameter); 4642 4643 4644 #line default 4645 #line hidden 4646 4647 #line 1458 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4648 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, "1")); 4649 4650 4651 #line default 4652 #line hidden 4653 4654 #line 1458 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4655 4656 4657 4658 #line default 4659 #line hidden 4660 4661 #line 1459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4662 WriteTo(__razor_helper_writer, InternalRenderEllipsis()); 4663 4664 4665 #line default 4666 #line hidden 4667 4668 #line 1459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4669 4670 } 4671 4672 4673 #line default 4674 #line hidden 4675 }); 4676 4677 #line 1461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4678 } 4679 #line default 4680 #line hidden 4681 4682 4683 #line 1463 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4684 public RazorEngine.Templating.TemplateWriter InternalRenderGoToLastPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int endPage) 4685 { 4686 #line default 4687 #line hidden 4688 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4689 4690 #line 1464 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4691 4692 if (currentPage < numOfPages - 1 && numOfPages > loopPageSize && endPage != numOfPages) 4693 { 4694 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, numOfPages.ToString()); 4695 4696 4697 #line default 4698 #line hidden 4699 4700 #line 1468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4701 WriteTo(__razor_helper_writer, InternalRenderEllipsis()); 4702 4703 4704 #line default 4705 #line hidden 4706 4707 #line 1468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4708 4709 4710 4711 #line default 4712 #line hidden 4713 4714 #line 1469 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4715 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, numOfPages.ToString())); 4716 4717 4718 #line default 4719 #line hidden 4720 4721 #line 1469 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4722 4723 } 4724 4725 4726 #line default 4727 #line hidden 4728 }); 4729 4730 #line 1471 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4731 } 4732 #line default 4733 #line hidden 4734 4735 4736 #line 1473 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4737 public RazorEngine.Templating.TemplateWriter InternalRenderPageItem(NameValueCollection queryParameters, string pageNum, string cssClass = "") 4738 { 4739 #line default 4740 #line hidden 4741 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4742 4743 #line 1474 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4744 4745 var url = Dna.UrlServices.Helpers.GetCurrentUrl(true, true); 4746 var href = Dna.UrlServices.Helpers.BuildUri(url, queryParameters); 4747 4748 4749 4750 #line default 4751 #line hidden 4752 WriteLiteralTo(__razor_helper_writer, " <li"); 4753 4754 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 67632), Tuple.Create("\"", 67649) 4755 4756 #line 1478 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4757 , Tuple.Create(Tuple.Create("", 67640), Tuple.Create<System.Object, System.Int32>(cssClass 4758 4759 #line default 4760 #line hidden 4761 , 67640), false) 4762 ); 4763 4764 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 4765 4766 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 67667), Tuple.Create("\"", 67692) 4767 4768 #line 1479 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4769 , Tuple.Create(Tuple.Create("", 67674), Tuple.Create<System.Object, System.Int32>(href.PathAndQuery 4770 4771 #line default 4772 #line hidden 4773 , 67674), false) 4774 ); 4775 4776 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4777 4778 WriteLiteralTo(__razor_helper_writer, " "); 4779 4780 4781 #line 1480 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4782 WriteTo(__razor_helper_writer, pageNum); 4783 4784 4785 #line default 4786 #line hidden 4787 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 4788 4789 4790 #line 1483 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4791 4792 4793 #line default 4794 #line hidden 4795 }); 4796 4797 #line 1483 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4798 } 4799 #line default 4800 #line hidden 4801 4802 4803 #line 1485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4804 public RazorEngine.Templating.TemplateWriter InternalRenderPageItem(string href, string label, string cssPartialClass, IconPosition position) 4805 { 4806 #line default 4807 #line hidden 4808 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4809 4810 #line 1486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4811 4812 4813 4814 #line default 4815 #line hidden 4816 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 4817 4818 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 67913), Tuple.Create("\"", 67925) 4819 4820 #line 1488 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4821 , Tuple.Create(Tuple.Create("", 67920), Tuple.Create<System.Object, System.Int32>(href 4822 4823 #line default 4824 #line hidden 4825 , 67920), false) 4826 ); 4827 4828 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4829 4830 WriteLiteralTo(__razor_helper_writer, " "); 4831 4832 4833 #line 1489 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4834 WriteTo(__razor_helper_writer, RenderIcon(cssPartialClass, label, position)); 4835 4836 4837 #line default 4838 #line hidden 4839 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 4840 4841 4842 #line 1492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4843 4844 4845 #line default 4846 #line hidden 4847 }); 4848 4849 #line 1492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4850 } 4851 #line default 4852 #line hidden 4853 4854 4855 #line 1494 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4856 public RazorEngine.Templating.TemplateWriter InternalRenderEllipsis() 4857 { 4858 #line default 4859 #line hidden 4860 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4861 4862 #line 1495 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4863 4864 4865 4866 #line default 4867 #line hidden 4868 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <span>...</span>\r\n </li>\r\n"); 4869 4870 4871 #line 1499 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4872 4873 4874 #line default 4875 #line hidden 4876 }); 4877 4878 #line 1499 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4879 } 4880 #line default 4881 #line hidden 4882 4883 4884 #line 1503 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4885 public RazorEngine.Templating.TemplateWriter InternalRenderLabel(FieldSettings settings) 4886 { 4887 #line default 4888 #line hidden 4889 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4890 4891 #line 1504 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4892 4893 4894 4895 #line default 4896 #line hidden 4897 4898 #line 1505 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4899 WriteTo(__razor_helper_writer, InternalRenderLabel(settings.Label, settings.TranslateKeyForLabel)); 4900 4901 4902 #line default 4903 #line hidden 4904 4905 #line 1505 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4906 4907 4908 4909 #line default 4910 #line hidden 4911 }); 4912 4913 #line 1506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4914 } 4915 #line default 4916 #line hidden 4917 4918 4919 #line 1508 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4920 public RazorEngine.Templating.TemplateWriter InternalRenderLabel(string label, string translateKey = "") 4921 { 4922 #line default 4923 #line hidden 4924 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4925 4926 #line 1509 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4927 4928 4929 4930 #line default 4931 #line hidden 4932 4933 #line 1510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4934 WriteTo(__razor_helper_writer, translateKey.IsNotNullOrEmpty() ? Translate(translateKey) : label); 4935 4936 4937 #line default 4938 #line hidden 4939 4940 #line 1510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4941 4942 4943 4944 #line default 4945 #line hidden 4946 }); 4947 4948 #line 1511 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4949 } 4950 #line default 4951 #line hidden 4952 4953 4954 #line 1513 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4955 public RazorEngine.Templating.TemplateWriter InternalRenderCheckboxField(FieldSettings settings) 4956 { 4957 #line default 4958 #line hidden 4959 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4960 4961 #line 1514 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4962 4963 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 4964 { 4965 settings.Assert(FieldType.Checkbox); 4966 if (settings.IsChecked && !settings.Attributes.ContainsKey("checked")) 4967 { 4968 settings.Attributes.Add("checked", "checked"); 4969 } 4970 4971 4972 4973 #line default 4974 #line hidden 4975 4976 #line 1523 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4977 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings, false)); 4978 4979 4980 #line default 4981 #line hidden 4982 4983 #line 1523 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4984 4985 4986 if (settings.Label.IsNotNullOrEmpty() || settings.TranslateKeyForLabel.IsNotNullOrEmpty()) 4987 { 4988 var possibleClasses = new List<string> {settings.Type.ToString().ToLower(), settings.LabelCssClass}; 4989 var cssClass = string.Join(" ", possibleClasses.Where(s => s.IsNotNullOrEmpty())); 4990 4991 if (!settings.LabelAttributes.ContainsKey("class")) 4992 { 4993 settings.LabelAttributes.Add("class", cssClass); 4994 } 4995 else 4996 { 4997 settings.LabelAttributes["class"] = string.Concat(cssClass, " ", settings.LabelAttributes["class"]); 4998 } 4999 if (!settings.LabelAttributes.ContainsKey("for")) 5000 { 5001 settings.LabelAttributes.Add("for", settings.Id); 5002 } 5003 5004 5005 5006 #line default 5007 #line hidden 5008 5009 #line 1543 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5010 WriteTo(__razor_helper_writer, GetHtmlElement("label", settings.LabelAttributes)); 5011 5012 5013 #line default 5014 #line hidden 5015 5016 #line 1543 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5017 5018 5019 5020 #line default 5021 #line hidden 5022 5023 #line 1544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5024 WriteTo(__razor_helper_writer, settings.Control.IsNotNullOrEmpty() ? settings.Control : GetHtmlElement("input", GetAttributes(settings))); 5025 5026 5027 #line default 5028 #line hidden 5029 5030 #line 1544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5031 5032 5033 5034 #line default 5035 #line hidden 5036 WriteLiteralTo(__razor_helper_writer, " <span>\r\n"); 5037 5038 WriteLiteralTo(__razor_helper_writer, " "); 5039 5040 5041 #line 1546 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5042 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 5043 5044 5045 #line default 5046 #line hidden 5047 WriteLiteralTo(__razor_helper_writer, " \r\n </span>\r\n"); 5048 5049 5050 #line 1548 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5051 5052 5053 #line default 5054 #line hidden 5055 5056 #line 1548 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5057 WriteTo(__razor_helper_writer, GetHtmlElement("label", true)); 5058 5059 5060 #line default 5061 #line hidden 5062 5063 #line 1548 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5064 5065 } 5066 else 5067 { 5068 if (settings.Control.IsNotNullOrEmpty()) 5069 { 5070 5071 5072 #line default 5073 #line hidden 5074 5075 #line 1554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5076 WriteTo(__razor_helper_writer, settings.Control); 5077 5078 5079 #line default 5080 #line hidden 5081 5082 #line 1554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5083 5084 } 5085 else 5086 { 5087 5088 5089 #line default 5090 #line hidden 5091 5092 #line 1558 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5093 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5094 5095 5096 #line default 5097 #line hidden 5098 5099 #line 1558 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5100 5101 } 5102 } 5103 5104 5105 5106 #line default 5107 #line hidden 5108 5109 #line 1562 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5110 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5111 5112 5113 #line default 5114 #line hidden 5115 5116 #line 1562 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5117 5118 } 5119 5120 5121 #line default 5122 #line hidden 5123 }); 5124 5125 #line 1564 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5126 } 5127 #line default 5128 #line hidden 5129 5130 5131 #line 1566 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5132 public RazorEngine.Templating.TemplateWriter InternalRenderTextareaField(FieldSettings settings) 5133 { 5134 #line default 5135 #line hidden 5136 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5137 5138 #line 1567 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5139 5140 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 5141 { 5142 settings.Assert(FieldType.Textarea); 5143 5144 5145 5146 #line default 5147 #line hidden 5148 5149 #line 1572 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5150 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5151 5152 5153 #line default 5154 #line hidden 5155 5156 #line 1572 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5157 5158 5159 if (settings.Control.IsNotNullOrEmpty()) 5160 { 5161 5162 5163 #line default 5164 #line hidden 5165 5166 #line 1576 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5167 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 5168 5169 5170 #line default 5171 #line hidden 5172 5173 #line 1576 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5174 5175 } 5176 else 5177 { 5178 if (!settings.Attributes.ContainsKey("rows")) 5179 { 5180 settings.Attributes.Add("rows", "6"); 5181 } 5182 if (!settings.Attributes.ContainsKey("cols")) 5183 { 5184 settings.Attributes.Add("cols", "50"); 5185 } 5186 5187 5188 #line default 5189 #line hidden 5190 5191 #line 1588 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5192 WriteTo(__razor_helper_writer, GetHtmlElement("textarea", GetAttributes(settings, false))); 5193 5194 5195 #line default 5196 #line hidden 5197 5198 #line 1588 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5199 5200 5201 5202 #line default 5203 #line hidden 5204 5205 #line 1589 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5206 WriteTo(__razor_helper_writer, GetHtmlElement("textarea", true)); 5207 5208 5209 #line default 5210 #line hidden 5211 5212 #line 1589 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5213 5214 } 5215 5216 5217 5218 #line default 5219 #line hidden 5220 5221 #line 1592 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5222 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5223 5224 5225 #line default 5226 #line hidden 5227 5228 #line 1592 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5229 5230 } 5231 5232 5233 #line default 5234 #line hidden 5235 }); 5236 5237 #line 1594 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5238 } 5239 #line default 5240 #line hidden 5241 5242 5243 #line 1596 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5244 public RazorEngine.Templating.TemplateWriter InternalRenderRadioOrCheckboxListField(FieldSettings settings) 5245 { 5246 #line default 5247 #line hidden 5248 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5249 5250 #line 1597 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5251 5252 if (settings.LoopOptions.Any() || settings.FieldOptionsList.Any() || settings.Control.IsNotNullOrEmpty()) 5253 { 5254 var optionCount = 0; 5255 5256 settings.Assert(FieldType.Radio); 5257 5258 5259 5260 #line default 5261 #line hidden 5262 5263 #line 1604 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5264 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5265 5266 5267 #line default 5268 #line hidden 5269 5270 #line 1604 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5271 5272 5273 if (settings.LoopOptions.Any()) 5274 { 5275 settings.CssClass = settings.Type.ToString().ToLower(); 5276 foreach (var option in settings.LoopOptions) 5277 { 5278 optionCount++; 5279 if (settings.Id.IsNullOrEmpty() || settings.Id == settings.SystemName) 5280 { 5281 settings.Id = settings.SystemName + optionCount; 5282 } 5283 5284 5285 #line default 5286 #line hidden 5287 WriteLiteralTo(__razor_helper_writer, " <label"); 5288 5289 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 72515), Tuple.Create("\"", 72541) 5290 5291 #line 1616 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5292 , Tuple.Create(Tuple.Create("", 72523), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5293 5294 #line default 5295 #line hidden 5296 , 72523), false) 5297 ); 5298 5299 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 72542), Tuple.Create("\"", 72560) 5300 5301 #line 1616 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5302 , Tuple.Create(Tuple.Create("", 72548), Tuple.Create<System.Object, System.Int32>(settings.Id 5303 5304 #line default 5305 #line hidden 5306 , 72548), false) 5307 ); 5308 5309 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5310 5311 WriteLiteralTo(__razor_helper_writer, " "); 5312 5313 5314 #line 1617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5315 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5316 5317 5318 #line default 5319 #line hidden 5320 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 5321 5322 5323 #line 1618 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5324 WriteTo(__razor_helper_writer, option.GetString(settings.LabelLoopTag)); 5325 5326 5327 #line default 5328 #line hidden 5329 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n"); 5330 5331 5332 #line 1620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5333 } 5334 } 5335 else if (settings.FieldOptionsList.Any()) 5336 { 5337 foreach (var option in settings.FieldOptionsList) 5338 { 5339 optionCount++; 5340 if (option.Id.IsNullOrEmpty() || option.Id == option.SystemName) 5341 { 5342 option.Id = settings.SystemName + optionCount; 5343 } 5344 option.CssClass = settings.Type.ToString().ToLower(); 5345 5346 5347 5348 #line default 5349 #line hidden 5350 WriteLiteralTo(__razor_helper_writer, " <label"); 5351 5352 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 73307), Tuple.Create("\"", 73331) 5353 5354 #line 1633 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5355 , Tuple.Create(Tuple.Create("", 73315), Tuple.Create<System.Object, System.Int32>(option.CssClass 5356 5357 #line default 5358 #line hidden 5359 , 73315), false) 5360 ); 5361 5362 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 73332), Tuple.Create("\"", 73348) 5363 5364 #line 1633 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5365 , Tuple.Create(Tuple.Create("", 73338), Tuple.Create<System.Object, System.Int32>(option.Id 5366 5367 #line default 5368 #line hidden 5369 , 73338), false) 5370 ); 5371 5372 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5373 5374 WriteLiteralTo(__razor_helper_writer, " "); 5375 5376 5377 #line 1634 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5378 WriteTo(__razor_helper_writer, InternalRenderInputOptionField("input", option, settings.Type)); 5379 5380 5381 #line default 5382 #line hidden 5383 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 5384 5385 5386 #line 1635 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5387 WriteTo(__razor_helper_writer, option.Label); 5388 5389 5390 #line default 5391 #line hidden 5392 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n"); 5393 5394 5395 #line 1637 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5396 } 5397 } 5398 else if (settings.Control.IsNotNullOrEmpty()) 5399 { 5400 5401 5402 #line default 5403 #line hidden 5404 5405 #line 1641 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5406 WriteTo(__razor_helper_writer, settings.Control); 5407 5408 5409 #line default 5410 #line hidden 5411 5412 #line 1641 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5413 5414 } 5415 5416 5417 5418 #line default 5419 #line hidden 5420 5421 #line 1644 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5422 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5423 5424 5425 #line default 5426 #line hidden 5427 5428 #line 1644 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5429 5430 } 5431 5432 5433 #line default 5434 #line hidden 5435 }); 5436 5437 #line 1646 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5438 } 5439 #line default 5440 #line hidden 5441 5442 5443 #line 1648 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5444 public RazorEngine.Templating.TemplateWriter InternalRenderInputField(FieldSettings settings) 5445 { 5446 #line default 5447 #line hidden 5448 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5449 5450 #line 1649 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5451 5452 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 5453 { 5454 settings.Assert(FieldType.Text); 5455 5456 5457 5458 #line default 5459 #line hidden 5460 5461 #line 1654 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5462 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5463 5464 5465 #line default 5466 #line hidden 5467 5468 #line 1654 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5469 5470 5471 if (settings.Control.IsNotNullOrEmpty()) 5472 { 5473 var type = settings.Type.ToString().ToLower(); 5474 if (settings.Type == FieldType.DatetimeLocal) 5475 { 5476 type = "datetime-local"; 5477 } 5478 5479 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 5480 if (settings.Type == FieldType.Password) 5481 { 5482 settings.Control = settings.Control.Replace("input ", "input autocomplete=\"off\" "); 5483 } 5484 5485 5486 #line default 5487 #line hidden 5488 5489 #line 1669 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5490 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 5491 5492 5493 #line default 5494 #line hidden 5495 5496 #line 1669 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5497 5498 } 5499 else 5500 { 5501 if (settings.Type == FieldType.Password && !settings.Attributes.ContainsKey("autocomplete")) 5502 { 5503 settings.Attributes.Add("autocomplete", "off"); 5504 } 5505 5506 5507 #line default 5508 #line hidden 5509 5510 #line 1677 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5511 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5512 5513 5514 #line default 5515 #line hidden 5516 5517 #line 1677 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5518 5519 } 5520 5521 5522 5523 #line default 5524 #line hidden 5525 5526 #line 1680 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5527 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5528 5529 5530 #line default 5531 #line hidden 5532 5533 #line 1680 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5534 5535 } 5536 5537 5538 #line default 5539 #line hidden 5540 }); 5541 5542 #line 1682 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5543 } 5544 #line default 5545 #line hidden 5546 5547 5548 #line 1684 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5549 public RazorEngine.Templating.TemplateWriter InternalRenderDateTimeField(FieldSettings settings) 5550 { 5551 #line default 5552 #line hidden 5553 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5554 5555 #line 1685 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5556 5557 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 5558 { 5559 settings.Assert(FieldType.Datetime); 5560 settings.Attributes = new Dictionary<string, string> 5561 { 5562 {"placeholder", "&#xf073;"} 5563 }; 5564 5565 5566 5567 #line default 5568 #line hidden 5569 5570 #line 1694 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5571 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5572 5573 5574 #line default 5575 #line hidden 5576 5577 #line 1694 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5578 5579 5580 if (settings.Control.IsNotNullOrEmpty()) 5581 { 5582 var type = settings.Type.ToString().ToLower(); 5583 5584 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 5585 5586 5587 #line default 5588 #line hidden 5589 5590 #line 1701 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5591 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 5592 5593 5594 #line default 5595 #line hidden 5596 5597 #line 1701 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5598 5599 } 5600 else 5601 { 5602 5603 5604 #line default 5605 #line hidden 5606 5607 #line 1705 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5608 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5609 5610 5611 #line default 5612 #line hidden 5613 5614 #line 1705 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5615 5616 } 5617 5618 5619 5620 #line default 5621 #line hidden 5622 5623 #line 1708 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5624 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5625 5626 5627 #line default 5628 #line hidden 5629 5630 #line 1708 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5631 5632 } 5633 5634 5635 #line default 5636 #line hidden 5637 }); 5638 5639 #line 1710 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5640 } 5641 #line default 5642 #line hidden 5643 5644 5645 #line 1712 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5646 public RazorEngine.Templating.TemplateWriter InternalRenderSelectField(FieldSettings settings) 5647 { 5648 #line default 5649 #line hidden 5650 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5651 5652 #line 1713 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5653 5654 const int limit = 10; 5655 5656 settings.Assert(FieldType.Select); 5657 5658 if (settings.CssClass.ToLower().Contains("country")) 5659 { 5660 5661 5662 #line default 5663 #line hidden 5664 5665 #line 1720 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5666 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(settings, true, settings.CssClass.ToLower().Contains("highlights"))); 5667 5668 5669 #line default 5670 #line hidden 5671 5672 #line 1720 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5673 5674 } 5675 else 5676 { 5677 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty() || settings.FieldOptionsList.Any() || settings.ValuesList.Any()) 5678 { 5679 5680 5681 #line default 5682 #line hidden 5683 5684 #line 1726 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5685 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5686 5687 5688 #line default 5689 #line hidden 5690 5691 #line 1726 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5692 5693 5694 var optionsCount = 0; 5695 if (settings.Control.IsNotNullOrEmpty()) 5696 { 5697 optionsCount = Regex.Matches(settings.Control, "option ").Count; 5698 5699 if (optionsCount > limit || optionsCount == 0) 5700 { 5701 settings.Control = settings.Control.Replace("select ", "select data-live-search=\"true\" "); 5702 } 5703 5704 5705 #line default 5706 #line hidden 5707 5708 #line 1737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5709 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control, settings.CssClass)); 5710 5711 5712 #line default 5713 #line hidden 5714 5715 #line 1737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5716 5717 } 5718 else 5719 { 5720 optionsCount = settings.FieldOptionsList.Count + settings.ValuesList.Count; 5721 5722 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && (optionsCount > limit || optionsCount == 0)) 5723 { 5724 settings.Attributes.Add("data-live-search", "true"); 5725 } 5726 5727 5728 #line default 5729 #line hidden 5730 5731 #line 1747 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5732 WriteTo(__razor_helper_writer, GetHtmlElement("select", GetAttributes(settings, false))); 5733 5734 5735 #line default 5736 #line hidden 5737 5738 #line 1747 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5739 5740 5741 if (settings.FirstHardcodedOptionLabel.IsNotNullOrEmpty()) 5742 { 5743 5744 5745 #line default 5746 #line hidden 5747 5748 #line 1751 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5749 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected))); 5750 5751 5752 #line default 5753 #line hidden 5754 5755 #line 1751 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5756 5757 } 5758 5759 foreach (var option in settings.FieldOptionsList) 5760 { 5761 5762 5763 #line default 5764 #line hidden 5765 5766 #line 1756 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5767 WriteTo(__razor_helper_writer, InternalRenderOption(option)); 5768 5769 5770 #line default 5771 #line hidden 5772 5773 #line 1756 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5774 5775 } 5776 foreach (var option in settings.ValuesList) 5777 { 5778 5779 5780 #line default 5781 #line hidden 5782 5783 #line 1760 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5784 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(option, option))); 5785 5786 5787 #line default 5788 #line hidden 5789 5790 #line 1760 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5791 5792 } 5793 5794 5795 5796 #line default 5797 #line hidden 5798 5799 #line 1763 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5800 WriteTo(__razor_helper_writer, GetHtmlElement("select", false)); 5801 5802 5803 #line default 5804 #line hidden 5805 5806 #line 1763 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5807 5808 } 5809 5810 5811 5812 #line default 5813 #line hidden 5814 5815 #line 1766 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5816 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5817 5818 5819 #line default 5820 #line hidden 5821 5822 #line 1766 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5823 5824 } 5825 } 5826 5827 5828 #line default 5829 #line hidden 5830 }); 5831 5832 #line 1769 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5833 } 5834 #line default 5835 #line hidden 5836 5837 5838 #line 1771 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5839 public RazorEngine.Templating.TemplateWriter InternalRenderButtonField(FieldSettings settings) 5840 { 5841 #line default 5842 #line hidden 5843 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5844 5845 #line 1772 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5846 5847 settings.Assert(FieldType.Button); 5848 5849 5850 5851 #line default 5852 #line hidden 5853 5854 #line 1775 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5855 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings, false)); 5856 5857 5858 #line default 5859 #line hidden 5860 5861 #line 1775 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5862 5863 5864 if (settings.Control.IsNotNullOrEmpty()) 5865 { 5866 var controlOutput = settings.Control; 5867 switch (settings.Type) 5868 { 5869 case FieldType.Submit: 5870 controlOutput = controlOutput.Replace("input ", "input class='btn btn-default'"); 5871 break; 5872 case FieldType.Reset: 5873 controlOutput = controlOutput.Replace("input ", "input class='btn btn-bg2'"); 5874 break; 5875 case FieldType.Button: 5876 case FieldType.Textarea: 5877 case FieldType.File: 5878 case FieldType.Text: 5879 case FieldType.Hidden: 5880 case FieldType.Radio: 5881 case FieldType.Checkbox: 5882 case FieldType.Select: 5883 case FieldType.Checkboxlist: 5884 case FieldType.Divider: 5885 case FieldType.Image: 5886 case FieldType.Password: 5887 case FieldType.Textstring: 5888 case FieldType.Search: 5889 case FieldType.Email: 5890 case FieldType.Url: 5891 case FieldType.Tel: 5892 case FieldType.Number: 5893 case FieldType.Range: 5894 case FieldType.Date: 5895 case FieldType.Month: 5896 case FieldType.Week: 5897 case FieldType.Time: 5898 case FieldType.Datetime: 5899 case FieldType.DatetimeLocal: 5900 case FieldType.Color: 5901 case FieldType.Unknown: 5902 default: 5903 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 5904 } 5905 5906 5907 #line default 5908 #line hidden 5909 5910 #line 1818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5911 WriteTo(__razor_helper_writer, controlOutput); 5912 5913 5914 #line default 5915 #line hidden 5916 5917 #line 1818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5918 5919 } 5920 else 5921 { 5922 settings.CssClass = settings.CssClass.IsNullOrEmpty() ? "btn btn-default" : "btn " + settings.CssClass; 5923 settings.Value = settings.Value.IsNotNullOrEmpty() ? settings.Value : settings.Label; 5924 if (settings.Type == FieldType.Button) 5925 { 5926 if (settings.Label.IsNullOrEmpty()) 5927 { 5928 settings.Label = Translate("Button"); 5929 } 5930 5931 5932 #line default 5933 #line hidden 5934 5935 #line 1830 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5936 WriteTo(__razor_helper_writer, GetHtmlElement("button", GetAttributes(settings))); 5937 5938 5939 #line default 5940 #line hidden 5941 5942 #line 1830 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5943 5944 5945 5946 #line default 5947 #line hidden 5948 5949 #line 1831 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5950 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 5951 5952 5953 #line default 5954 #line hidden 5955 5956 #line 1831 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5957 5958 5959 5960 #line default 5961 #line hidden 5962 5963 #line 1832 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5964 WriteTo(__razor_helper_writer, GetHtmlElement("button", true)); 5965 5966 5967 #line default 5968 #line hidden 5969 5970 #line 1832 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5971 5972 } 5973 else 5974 { 5975 5976 5977 #line default 5978 #line hidden 5979 5980 #line 1836 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5981 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5982 5983 5984 #line default 5985 #line hidden 5986 5987 #line 1836 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5988 5989 } 5990 } 5991 5992 5993 5994 #line default 5995 #line hidden 5996 5997 #line 1840 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5998 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5999 6000 6001 #line default 6002 #line hidden 6003 6004 #line 1840 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6005 6006 6007 6008 #line default 6009 #line hidden 6010 }); 6011 6012 #line 1841 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6013 } 6014 #line default 6015 #line hidden 6016 6017 6018 #line 1845 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6019 public RazorEngine.Templating.TemplateWriter InternalRenderTextStringField(FieldSettings settings) 6020 { 6021 #line default 6022 #line hidden 6023 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6024 6025 #line 1846 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6026 6027 settings.Assert(FieldType.Textstring); 6028 6029 if (settings.Description.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 6030 { 6031 if (settings.Control.IsNotNullOrEmpty()) 6032 { 6033 6034 6035 #line default 6036 #line hidden 6037 6038 #line 1853 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6039 WriteTo(__razor_helper_writer, settings.Control); 6040 6041 6042 #line default 6043 #line hidden 6044 6045 #line 1853 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6046 6047 } 6048 else 6049 { 6050 6051 6052 #line default 6053 #line hidden 6054 WriteLiteralTo(__razor_helper_writer, " <p"); 6055 6056 WriteLiteralTo(__razor_helper_writer, " class=\"help-block\""); 6057 6058 WriteLiteralTo(__razor_helper_writer, ">"); 6059 6060 6061 #line 1857 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6062 WriteTo(__razor_helper_writer, settings.Description); 6063 6064 6065 #line default 6066 #line hidden 6067 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 6068 6069 6070 #line 1858 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6071 } 6072 } 6073 6074 6075 #line default 6076 #line hidden 6077 }); 6078 6079 #line 1860 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6080 } 6081 #line default 6082 #line hidden 6083 6084 6085 #line 1862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6086 public RazorEngine.Templating.TemplateWriter InternalRenderImageField(FieldSettings settings) 6087 { 6088 #line default 6089 #line hidden 6090 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6091 6092 #line 1863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6093 6094 settings.Assert(FieldType.Image); 6095 6096 if (settings.Control.IsNotNullOrEmpty()) 6097 { 6098 6099 6100 #line default 6101 #line hidden 6102 6103 #line 1868 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6104 WriteTo(__razor_helper_writer, settings.Control); 6105 6106 6107 #line default 6108 #line hidden 6109 6110 #line 1868 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6111 6112 } 6113 6114 6115 #line default 6116 #line hidden 6117 }); 6118 6119 #line 1870 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6120 } 6121 #line default 6122 #line hidden 6123 6124 6125 #line 1872 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6126 public RazorEngine.Templating.TemplateWriter InternalRenderDividerField(FieldSettings settings) 6127 { 6128 #line default 6129 #line hidden 6130 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6131 6132 #line 1873 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6133 6134 settings.Assert(FieldType.Divider); 6135 6136 6137 6138 #line default 6139 #line hidden 6140 WriteLiteralTo(__razor_helper_writer, " <hr"); 6141 6142 WriteLiteralTo(__razor_helper_writer, " class=\"divider\""); 6143 6144 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 6145 6146 6147 #line 1877 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6148 6149 6150 #line default 6151 #line hidden 6152 }); 6153 6154 #line 1877 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6155 } 6156 #line default 6157 #line hidden 6158 6159 6160 #line 1879 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6161 public RazorEngine.Templating.TemplateWriter InternalRenderInputOptionField(string htmlElement, FieldOption optionSettings, FieldType type = FieldType.Radio) 6162 { 6163 #line default 6164 #line hidden 6165 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6166 6167 #line 1880 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6168 6169 var fieldType = type == FieldType.Checkboxlist ? FieldType.Checkbox.ToString().ToLower() : type.ToString().ToLower(); 6170 var attributes = new StringBuilder(GetAttribute("type", fieldType)); 6171 attributes.Append(GetAttribute("value", optionSettings.Value)); 6172 attributes.Append(GetAttribute("name", optionSettings.SystemName)); 6173 attributes.Append(optionSettings.Id.IsNotNullOrEmpty() ? GetAttribute("id", optionSettings.Id) : optionSettings.SystemName); 6174 attributes.Append(GetAttributes(optionSettings.Attributes)); 6175 6176 if (optionSettings.IsSelected) 6177 { 6178 attributes.Append(GetAttribute("checked", "checked")); 6179 } 6180 if (optionSettings.IsDisabled) 6181 { 6182 attributes.Append(GetAttribute("disabled", "disabled")); 6183 } 6184 6185 6186 6187 #line default 6188 #line hidden 6189 6190 #line 1897 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6191 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, attributes.ToString())); 6192 6193 6194 #line default 6195 #line hidden 6196 6197 #line 1897 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6198 6199 6200 6201 #line default 6202 #line hidden 6203 }); 6204 6205 #line 1898 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6206 } 6207 #line default 6208 #line hidden 6209 6210 6211 #line 1900 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6212 public RazorEngine.Templating.TemplateWriter InternalRenderOption(FieldOption optionSettings) 6213 { 6214 #line default 6215 #line hidden 6216 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6217 6218 #line 1901 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6219 6220 var selected = optionSettings.IsSelected ? " selected" : string.Empty; 6221 var disabled = optionSettings.IsDisabled ? " disabled" : string.Empty; 6222 var readOnly = optionSettings.IsReadOnly ? " readonly" : string.Empty; 6223 var attributes = GetAttributes(optionSettings); 6224 6225 6226 6227 #line default 6228 #line hidden 6229 6230 #line 1907 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6231 WriteTo(__razor_helper_writer, GetHtmlElement("option", attributes + selected + disabled + readOnly)); 6232 6233 6234 #line default 6235 #line hidden 6236 6237 #line 1907 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6238 6239 6240 6241 #line default 6242 #line hidden 6243 6244 #line 1908 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6245 WriteTo(__razor_helper_writer, InternalRenderLabel(optionSettings.Label, optionSettings.TranslateKeyForLabel)); 6246 6247 6248 #line default 6249 #line hidden 6250 6251 #line 1908 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6252 6253 6254 6255 #line default 6256 #line hidden 6257 6258 #line 1909 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6259 WriteTo(__razor_helper_writer, GetHtmlElement("option", true)); 6260 6261 6262 #line default 6263 #line hidden 6264 6265 #line 1909 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6266 6267 6268 6269 #line default 6270 #line hidden 6271 }); 6272 6273 #line 1910 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6274 } 6275 #line default 6276 #line hidden 6277 6278 6279 #line 1912 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6280 public RazorEngine.Templating.TemplateWriter InternalRenderFieldHeader(FieldSettings settings, bool renderLabel = true) 6281 { 6282 #line default 6283 #line hidden 6284 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6285 6286 #line 1913 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6287 6288 6289 6290 #line default 6291 #line hidden 6292 6293 #line 1914 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6294 WriteTo(__razor_helper_writer, GetWrapperStart(settings.IncludeWrapper, settings.Type, settings.WrapperElement, settings.IsRequired, settings.WrapperCssClass)); 6295 6296 6297 #line default 6298 #line hidden 6299 6300 #line 1914 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6301 6302 if ((settings.Label.IsNotNullOrEmpty() || settings.TranslateKeyForLabel.IsNotNullOrEmpty()) && renderLabel) 6303 { 6304 if (settings.Type == FieldType.Checkboxlist || settings.Type == FieldType.Radio) 6305 { 6306 6307 6308 #line default 6309 #line hidden 6310 WriteLiteralTo(__razor_helper_writer, " <label"); 6311 6312 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 84598), Tuple.Create("\"", 84640) 6313 , Tuple.Create(Tuple.Create("", 84606), Tuple.Create("form-label", 84606), true) 6314 6315 #line 1919 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6316 , Tuple.Create(Tuple.Create(" ", 84616), Tuple.Create<System.Object, System.Int32>(settings.LabelCssClass 6317 6318 #line default 6319 #line hidden 6320 , 84617), false) 6321 ); 6322 6323 WriteLiteralTo(__razor_helper_writer, ">"); 6324 6325 6326 #line 1919 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6327 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 6328 6329 6330 #line default 6331 #line hidden 6332 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 6333 6334 6335 #line 1920 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6336 } 6337 else 6338 { 6339 6340 6341 #line default 6342 #line hidden 6343 WriteLiteralTo(__razor_helper_writer, " <label"); 6344 6345 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 84752), Tuple.Create("\"", 84778) 6346 6347 #line 1923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6348 , Tuple.Create(Tuple.Create("", 84758), Tuple.Create<System.Object, System.Int32>(settings.SystemName 6349 6350 #line default 6351 #line hidden 6352 , 84758), false) 6353 ); 6354 6355 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 84779), Tuple.Create("\"", 84821) 6356 , Tuple.Create(Tuple.Create("", 84787), Tuple.Create("form-label", 84787), true) 6357 6358 #line 1923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6359 , Tuple.Create(Tuple.Create(" ", 84797), Tuple.Create<System.Object, System.Int32>(settings.LabelCssClass 6360 6361 #line default 6362 #line hidden 6363 , 84798), false) 6364 ); 6365 6366 WriteLiteralTo(__razor_helper_writer, ">"); 6367 6368 6369 #line 1923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6370 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 6371 6372 6373 #line default 6374 #line hidden 6375 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 6376 6377 6378 #line 1924 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6379 } 6380 6381 } 6382 if (settings.Prepend.IsNotNullOrEmpty()) 6383 { 6384 6385 6386 #line default 6387 #line hidden 6388 WriteLiteralTo(__razor_helper_writer, " <div"); 6389 6390 WriteLiteralTo(__razor_helper_writer, " class=\"fieldPrepend input-group-addon\""); 6391 6392 WriteLiteralTo(__razor_helper_writer, ">"); 6393 6394 6395 #line 1929 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6396 WriteTo(__razor_helper_writer, settings.Prepend); 6397 6398 6399 #line default 6400 #line hidden 6401 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 6402 6403 6404 #line 1930 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6405 } 6406 if (settings.IncludeFieldWrapper) 6407 { 6408 6409 6410 #line default 6411 #line hidden 6412 WriteLiteralTo(__razor_helper_writer, " "); 6413 6414 WriteLiteralTo(__razor_helper_writer, "<div class=\"fieldContainer hidden "); 6415 6416 6417 #line 1933 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6418 WriteTo(__razor_helper_writer, settings.FieldWrapperCssClass); 6419 6420 6421 #line default 6422 #line hidden 6423 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 6424 6425 6426 #line 1934 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6427 } 6428 6429 6430 #line default 6431 #line hidden 6432 }); 6433 6434 #line 1935 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6435 } 6436 #line default 6437 #line hidden 6438 6439 6440 #line 1937 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6441 public RazorEngine.Templating.TemplateWriter InternalRenderFieldFooter(FieldSettings settings) 6442 { 6443 #line default 6444 #line hidden 6445 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6446 6447 #line 1938 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6448 6449 if (settings.Icon.IsNotNullOrEmpty()) 6450 { 6451 6452 6453 #line default 6454 #line hidden 6455 6456 #line 1941 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6457 WriteTo(__razor_helper_writer, RenderIcon(settings.Icon, settings.Tooltip, IconPosition.Left, true)); 6458 6459 6460 #line default 6461 #line hidden 6462 6463 #line 1941 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6464 6465 } 6466 if (settings.Append.IsNotNullOrEmpty()) 6467 { 6468 6469 6470 #line default 6471 #line hidden 6472 WriteLiteralTo(__razor_helper_writer, " <div"); 6473 6474 WriteLiteralTo(__razor_helper_writer, " class=\"fieldAppend input-group-addon\""); 6475 6476 WriteLiteralTo(__razor_helper_writer, ">"); 6477 6478 6479 #line 1945 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6480 WriteTo(__razor_helper_writer, settings.Append); 6481 6482 6483 #line default 6484 #line hidden 6485 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 6486 6487 6488 #line 1946 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6489 } 6490 if (settings.Description.IsNotNullOrEmpty()) 6491 { 6492 6493 6494 #line default 6495 #line hidden 6496 WriteLiteralTo(__razor_helper_writer, " <p"); 6497 6498 WriteLiteralTo(__razor_helper_writer, " class=\"help-block\""); 6499 6500 WriteLiteralTo(__razor_helper_writer, ">"); 6501 6502 6503 #line 1949 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6504 WriteTo(__razor_helper_writer, settings.Description); 6505 6506 6507 #line default 6508 #line hidden 6509 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 6510 6511 6512 #line 1950 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6513 } 6514 if (settings.IncludeFieldWrapper) 6515 { 6516 6517 6518 #line default 6519 #line hidden 6520 WriteLiteralTo(__razor_helper_writer, " "); 6521 6522 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 6523 6524 6525 #line 1954 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6526 } 6527 6528 6529 #line default 6530 #line hidden 6531 6532 #line 1955 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6533 WriteTo(__razor_helper_writer, GetWrapperEnd(settings.IncludeWrapper, settings.WrapperElement)); 6534 6535 6536 #line default 6537 #line hidden 6538 6539 #line 1955 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6540 6541 6542 6543 #line default 6544 #line hidden 6545 }); 6546 6547 #line 1956 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6548 } 6549 #line default 6550 #line hidden 6551 6552 6553 #line 1958 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6554 public RazorEngine.Templating.TemplateWriter InternalRenderQuantityField(int productStock, int productAvailableAmount, int selectedQuantity = 1, int productType = 0) 6555 { 6556 #line default 6557 #line hidden 6558 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6559 6560 #line 1959 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6561 6562 6563 6564 #line default 6565 #line hidden 6566 6567 #line 1960 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6568 WriteTo(__razor_helper_writer, InternalRenderQuantityField(productStock, productAvailableAmount, selectedQuantity, string.Empty, 10, false, false, productType)); 6569 6570 6571 #line default 6572 #line hidden 6573 6574 #line 1960 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6575 6576 6577 6578 #line default 6579 #line hidden 6580 }); 6581 6582 #line 1961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6583 } 6584 #line default 6585 #line hidden 6586 6587 6588 #line 1963 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6589 public RazorEngine.Templating.TemplateWriter InternalRenderQuantityField(int productStock, int productAvailableAmount, int selectedQuantity = 1, bool variantGroupsExistList = false) 6590 { 6591 #line default 6592 #line hidden 6593 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6594 6595 #line 1964 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6596 6597 6598 6599 #line default 6600 #line hidden 6601 6602 #line 1965 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6603 WriteTo(__razor_helper_writer, InternalRenderQuantityField(productStock, productAvailableAmount, selectedQuantity, string.Empty, 10, false, variantGroupsExistList)); 6604 6605 6606 #line default 6607 #line hidden 6608 6609 #line 1965 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6610 6611 6612 6613 #line default 6614 #line hidden 6615 }); 6616 6617 #line 1966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6618 } 6619 #line default 6620 #line hidden 6621 6622 6623 #line 1968 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6624 public RazorEngine.Templating.TemplateWriter InternalRenderQuantityField(int productStock, int productAvailableAmount, int selectedQuantity = 1, string fieldSystemName = "", int limit = 10, bool isCheckout = true, bool variantGroupsExistList = false, int productType = 0, string productId = "") 6625 { 6626 #line default 6627 #line hidden 6628 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6629 6630 #line 1969 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6631 6632 // var isQuantityTextHidden = selectedQuantity < 10 && productStock > 0 || !isCheckout ? " hidden" : string.Empty; 6633 var isQuantityTextHidden = string.Empty; 6634 var isSelectDisabled = productStock <= 0 && !isCheckout; 6635 var quantityTextFieldSettings = new FieldSettings 6636 { 6637 Value = selectedQuantity.ToString(), 6638 SystemName = fieldSystemName.IsNullOrEmpty() ? "quantity" : fieldSystemName, 6639 Id = (fieldSystemName.IsNullOrEmpty() ? "quantity_" : fieldSystemName) + productId, 6640 Attributes = new Dictionary<string, string> 6641 { 6642 {"min", "1"}, 6643 {"max", "999999"}, 6644 {"autocomplete", "off"}, 6645 {"data-productStock", productStock.ToString()}, 6646 {"data-productAvailable", productAvailableAmount.ToString()}, 6647 {"data-outofstock", Translate("Out of stock")}, 6648 {"data-stocktranslate", Translate("The current stock is")}, 6649 {"data-currentValue", selectedQuantity.ToString()} 6650 } 6651 }; 6652 6653 if (productType != 1 && productType != 3) 6654 { 6655 quantityTextFieldSettings.Type = FieldType.Number; 6656 quantityTextFieldSettings.Label = Translate("Qty"); 6657 quantityTextFieldSettings.CssClass = "col-xs-4 col-sm-7 quantityInput" + isQuantityTextHidden; 6658 //quantityTextFieldSettings.LabelCssClass = productStock > 0 ? "" : "hidden"; 6659 6660 6661 6662 #line default 6663 #line hidden 6664 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 6665 6666 WriteLiteralTo(__razor_helper_writer, " class=\"quantity-container pull-left\""); 6667 6668 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6669 6670 6671 #line 1999 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6672 6673 6674 #line default 6675 #line hidden 6676 6677 #line 1999 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6678 if (isCheckout) 6679 { 6680 6681 6682 #line default 6683 #line hidden 6684 WriteLiteralTo(__razor_helper_writer, " <div"); 6685 6686 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 88436), Tuple.Create("\"", 88488) 6687 6688 #line 2001 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6689 , Tuple.Create(Tuple.Create("", 88444), Tuple.Create<System.Object, System.Int32>(isQuantityTextHidden 6690 6691 #line default 6692 #line hidden 6693 , 88444), false) 6694 , Tuple.Create(Tuple.Create(" ", 88465), Tuple.Create("quantityPriceContainer", 88466), true) 6695 ); 6696 6697 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6698 6699 WriteLiteralTo(__razor_helper_writer, " "); 6700 6701 6702 #line 2002 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6703 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 6704 6705 6706 #line default 6707 #line hidden 6708 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6709 6710 WriteLiteralTo(__razor_helper_writer, " "); 6711 6712 6713 #line 2003 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6714 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings {IconCssClass = "fa-refresh", CssClass = "submitQuantity btnCart-blue", ButtonType = BootstrapButtonSettings.BootstrapButtonType.Button})); 6715 6716 6717 #line default 6718 #line hidden 6719 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6720 6721 6722 #line 2005 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6723 } 6724 else 6725 { 6726 6727 6728 #line default 6729 #line hidden 6730 6731 #line 2008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6732 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 6733 6734 6735 #line default 6736 #line hidden 6737 6738 #line 2008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6739 6740 } 6741 6742 #line default 6743 #line hidden 6744 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n "); 6745 6746 WriteLiteralTo(__razor_helper_writer, "\r\n </fieldset>\r\n"); 6747 6748 6749 #line 2040 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6750 } 6751 else 6752 { 6753 quantityTextFieldSettings.Type = FieldType.Hidden; 6754 6755 6756 #line default 6757 #line hidden 6758 6759 #line 2044 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6760 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 6761 6762 6763 #line default 6764 #line hidden 6765 6766 #line 2044 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6767 6768 } 6769 6770 6771 #line default 6772 #line hidden 6773 }); 6774 6775 #line 2046 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6776 } 6777 #line default 6778 #line hidden 6779 6780 6781 #line 2049 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6782 public RazorEngine.Templating.TemplateWriter InternalRenderCountryAndRegionsJsVariables(Dynamicweb.Ecommerce.International.CountryCollection countries = null) 6783 { 6784 #line default 6785 #line hidden 6786 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6787 6788 #line 2050 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6789 6790 if (countries == null) 6791 { 6792 countries = Dynamicweb.Ecommerce.Services.Countries.GetCountries(); 6793 } 6794 6795 if (countries.Any()) 6796 { 6797 6798 6799 #line default 6800 #line hidden 6801 WriteLiteralTo(__razor_helper_writer, " "); 6802 6803 WriteLiteralTo(__razor_helper_writer, " "); 6804 6805 6806 #line 2058 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6807 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 6808 6809 6810 #line default 6811 #line hidden 6812 WriteLiteralTo(__razor_helper_writer, " var countryRegions = {}; "); 6813 6814 6815 #line 2058 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6816 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 6817 6818 6819 #line default 6820 #line hidden 6821 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6822 6823 6824 #line 2059 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6825 6826 foreach (var country in countries.OrderBy(s => s.Name)) 6827 { 6828 var regions = Dynamicweb.Ecommerce.Services.Countries.GetRegions(country.Code2); 6829 6830 if (regions.Any()) 6831 { 6832 6833 6834 #line default 6835 #line hidden 6836 WriteLiteralTo(__razor_helper_writer, " "); 6837 6838 WriteLiteralTo(__razor_helper_writer, " "); 6839 6840 6841 #line 2066 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6842 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 6843 6844 6845 #line default 6846 #line hidden 6847 WriteLiteralTo(__razor_helper_writer, " countryRegions."); 6848 6849 6850 #line 2066 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6851 WriteTo(__razor_helper_writer, country.Code2); 6852 6853 6854 #line default 6855 #line hidden 6856 WriteLiteralTo(__razor_helper_writer, " = {}; "); 6857 6858 6859 #line 2066 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6860 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 6861 6862 6863 #line default 6864 #line hidden 6865 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6866 6867 WriteLiteralTo(__razor_helper_writer, " "); 6868 6869 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6870 6871 WriteLiteralTo(__razor_helper_writer, " "); 6872 6873 6874 #line 2068 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6875 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 6876 6877 6878 #line default 6879 #line hidden 6880 WriteLiteralTo(__razor_helper_writer, "\r\n countryRegions."); 6881 6882 6883 #line 2069 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6884 WriteTo(__razor_helper_writer, country.Code2); 6885 6886 6887 #line default 6888 #line hidden 6889 WriteLiteralTo(__razor_helper_writer, ".code = [];\r\n countryRegions."); 6890 6891 6892 #line 2070 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6893 WriteTo(__razor_helper_writer, country.Code2); 6894 6895 6896 #line default 6897 #line hidden 6898 WriteLiteralTo(__razor_helper_writer, ".name = [];\r\n"); 6899 6900 WriteLiteralTo(__razor_helper_writer, " "); 6901 6902 6903 #line 2071 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6904 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 6905 6906 6907 #line default 6908 #line hidden 6909 WriteLiteralTo(__razor_helper_writer, "\r\n "); 6910 6911 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6912 6913 6914 #line 2073 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6915 foreach (var region in regions.OrderBy(s => s.Name)) 6916 { 6917 6918 6919 #line default 6920 #line hidden 6921 WriteLiteralTo(__razor_helper_writer, " "); 6922 6923 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6924 6925 WriteLiteralTo(__razor_helper_writer, " "); 6926 6927 6928 #line 2076 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6929 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 6930 6931 6932 #line default 6933 #line hidden 6934 WriteLiteralTo(__razor_helper_writer, "\r\n countryRegions[\""); 6935 6936 6937 #line 2077 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6938 WriteTo(__razor_helper_writer, country.Code2); 6939 6940 6941 #line default 6942 #line hidden 6943 WriteLiteralTo(__razor_helper_writer, "\"].code.push(\""); 6944 6945 6946 #line 2077 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6947 WriteTo(__razor_helper_writer, region.RegionCode); 6948 6949 6950 #line default 6951 #line hidden 6952 WriteLiteralTo(__razor_helper_writer, "\");\r\n countryRegions[\""); 6953 6954 6955 #line 2078 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6956 WriteTo(__razor_helper_writer, country.Code2); 6957 6958 6959 #line default 6960 #line hidden 6961 WriteLiteralTo(__razor_helper_writer, "\"].name.push(\""); 6962 6963 6964 #line 2078 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6965 WriteTo(__razor_helper_writer, region.Name); 6966 6967 6968 #line default 6969 #line hidden 6970 WriteLiteralTo(__razor_helper_writer, "\");\r\n"); 6971 6972 WriteLiteralTo(__razor_helper_writer, " "); 6973 6974 6975 #line 2079 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6976 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 6977 6978 6979 #line default 6980 #line hidden 6981 WriteLiteralTo(__razor_helper_writer, "\r\n "); 6982 6983 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6984 6985 6986 #line 2081 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6987 } 6988 } 6989 } 6990 } 6991 6992 6993 #line default 6994 #line hidden 6995 }); 6996 6997 #line 2085 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6998 } 6999 #line default 7000 #line hidden 7001 7002 7003 #line 2090 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7004 7005 public static bool IsBillingAddressReadOnly() 7006 { 7007 return Dna.Modules.Features.FeatureManager.IsEnabled("IsBillingAddressReadOnly", "Set to 'true' if the Billing Address should be read-only."); 7008 } 7009 7010 public static bool IsBillingAddressEditable() 7011 { 7012 return Dna.Modules.Features.FeatureManager.IsEnabled("IsBillingAddressEditable", "Set to 'true' if the Billing Address should be editable."); 7013 } 7014 7015 public static bool IsShippingAddressEditable() 7016 { 7017 return Dna.Modules.Features.FeatureManager.IsEnabled("IsShippingAddressEditable", "Set to 'true' if the Shipping Address should be editable."); 7018 } 7019 7020 public static bool ShowNoErpConnectionMessage() 7021 { 7022 return Dna.Modules.Features.FeatureManager.IsEnabled("showNoErpConnectionMessage", "Set to 'true' if want to show the 'No ERP Connection Message'."); 7023 } 7024 7025 public static bool ShowStateFieldAsDropdown() 7026 { 7027 return Dna.Modules.Features.FeatureManager.IsEnabled("showStateFieldAsDropdown", "Set to 'true' if the State field should be a drop-down."); 7028 } 7029 public static bool ShowVariantsAsDropdown() 7030 { 7031 return Dna.Modules.Features.FeatureManager.IsEnabled("showVariantsAsDropdown", "Set to 'true' if the Variant field should be a drop-down."); 7032 } 7033 public static bool ShowB2BLogin() 7034 { 7035 return Dna.Modules.Features.FeatureManager.IsEnabled("showB2BLogin", "Set to 'true' if it should display a login page."); 7036 } 7037 7038 7039 #line default 7040 #line hidden 7041 7042 7043 #line 2125 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7044 7045 7046 #region Redirect Workaround 7047 7048 public static void Redirect(string url) 7049 { 7050 HttpContext.Current.Response.Redirect(url, false); 7051 HttpContext.Current.ApplicationInstance.CompleteRequest(); 7052 } 7053 7054 #endregion Redirect Workaround 7055 7056 #region Css functions 7057 7058 public static string GetPalletColorNumber(int number = 0) 7059 { 7060 switch (number) 7061 { 7062 case 1: 7063 return "#666666"; 7064 case 2: 7065 return "#333333"; 7066 default: 7067 return "#ffffff"; 7068 } 7069 } 7070 7071 public static string GetFontFamilyNumber(int number = 0) 7072 { 7073 switch (number) 7074 { 7075 case 1: 7076 return "font-family: Arial, sans-serif;"; 7077 default: 7078 return "font-family: Helvetica, Arial, sans-serif;"; 7079 } 7080 } 7081 7082 public static string GetFontSize(int fontSize = 0) 7083 { 7084 return fontSize >= 0 ? string.Concat("font-size: ", fontSize, "px;") : "font-size: 14px"; 7085 } 7086 7087 #endregion Css functions 7088 7089 #region Icon functions 7090 7091 public static string GetIcon(string cssPartialClass, string label = "", string position = "") 7092 { 7093 var icon = "<i class='fa " + cssPartialClass + "'></i>"; 7094 var spacing = string.Empty; 7095 7096 if (!label.IsNullOrEmpty()) 7097 { 7098 spacing = "&nbsp;"; 7099 } 7100 7101 if (cssPartialClass.IsNullOrEmpty()) return label; 7102 if (position == IconPosition.Left.ToString() || position.IsNullOrEmpty()) 7103 { 7104 return icon + spacing + label; 7105 } 7106 return label + spacing + icon; 7107 } 7108 7109 #endregion Icon functions 7110 7111 #region Address functions 7112 7113 public string GetAddressFormatted(User user, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 7114 { 7115 return GetAddressFormatted(user.Address, user.Address2, user.City, user.State, user.Zip, user.Country, getRegionName, getCountryName, addLineBreakBetweenAddressAndCity, splitBetweenRegionAndCountry); 7116 } 7117 7118 public string GetAddressFormatted(UserAddress userAddress, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 7119 { 7120 return GetAddressFormatted(userAddress.Address, userAddress.Address2, userAddress.City, userAddress.State, userAddress.Zip, userAddress.Country, getRegionName, getCountryName, addLineBreakBetweenAddressAndCity, splitBetweenRegionAndCountry); 7121 } 7122 7123 public string GetAddressFormatted(int addressId) 7124 { 7125 var address = UserAddress.GetUserAddressById(addressId); 7126 return GetAddressFormatted(address.Address, address.Address2, address.City, address.State, address.Zip, address.Country); 7127 } 7128 7129 public string GetAddressFormatted(AddressSource addressSource, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 7130 { 7131 switch (addressSource) 7132 { 7133 case AddressSource.UserProfile: 7134 return GetAddressFormatted( 7135 GetString("UserManagement:User.Address"), 7136 GetString("UserManagement:User.Address2"), 7137 GetString("UserManagement:User.City"), 7138 GetString("UserManagement:User.State"), 7139 GetString("UserManagement:User.Zip"), 7140 GetString("UserManagement:User.Country"), 7141 getRegionName, 7142 getCountryName, 7143 addLineBreakBetweenAddressAndCity, 7144 splitBetweenRegionAndCountry 7145 ); 7146 case AddressSource.EcomCustomer: 7147 return GetAddressFormatted( 7148 GetString("Ecom:Order.Customer.Address"), 7149 GetString("Ecom:Order.Customer.Address2"), 7150 GetString("Ecom:Order.Customer.City"), 7151 GetString("Ecom:Order.Customer.Region"), 7152 GetString("Ecom:Order.Customer.Zip"), 7153 GetString("Ecom:Order.Customer.Country"), 7154 getRegionName, 7155 getCountryName, 7156 addLineBreakBetweenAddressAndCity, 7157 splitBetweenRegionAndCountry 7158 ); 7159 case AddressSource.EcomDelivery: 7160 return GetAddressFormatted( 7161 GetString("Ecom:Order.Delivery.Address"), 7162 GetString("Ecom:Order.Delivery.Address2"), 7163 GetString("Ecom:Order.Delivery.City"), 7164 GetString("Ecom:Order.Delivery.Region"), 7165 GetString("Ecom:Order.Delivery.Zip"), 7166 GetString("Ecom:Order.Delivery.Country"), 7167 getRegionName, 7168 getCountryName, 7169 addLineBreakBetweenAddressAndCity, 7170 splitBetweenRegionAndCountry 7171 ); 7172 case AddressSource.UserAddress: 7173 throw new NotSupportedException("Unsupported address source. Use an AddressId instead"); 7174 default: 7175 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 7176 } 7177 } 7178 7179 public string GetAddressFormatted(string address, string address2, string city, string region, string zip, string country, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 7180 { 7181 7182 var formattedAddress = new StringBuilder(address); 7183 var hasCountry = country.IsNotNullOrEmpty(); 7184 var zipBeforeRegionCountries = new List<string>{"US","United States of America"}; 7185 7186 if (address2.IsNotNullOrEmpty()) 7187 { 7188 formattedAddress.Append(string.Concat(" ",address2)); 7189 } 7190 if (addLineBreakBetweenAddressAndCity && (city + region + country).IsNotNullOrEmpty()) 7191 { 7192 formattedAddress.Append("<br/>"); 7193 } 7194 if (city.IsNotNullOrEmpty()) 7195 { 7196 formattedAddress.Append(string.Concat(" ",city)); 7197 } 7198 if (hasCountry && zipBeforeRegionCountries.Contains(country) && zip.IsNotNullOrEmpty()) 7199 { 7200 formattedAddress.Append(string.Concat(" ",zip)); 7201 } 7202 7203 if (region.IsNotNullOrEmpty()) 7204 { 7205 formattedAddress.Append(zip.IsNotNullOrEmpty() ? string.Empty : ","); 7206 if (getRegionName && country.IsNotNullOrEmpty()) 7207 { 7208 var getRegions = Services.Countries.GetRegions(country); 7209 if(getRegions != null) { 7210 var regionName = getRegions.First(c => c.RegionCode == region).Name; 7211 region = regionName.IsNotNullOrEmpty() ? regionName : region; 7212 } 7213 } 7214 formattedAddress.Append(string.Concat(" ",region)); 7215 } 7216 if (hasCountry && !zipBeforeRegionCountries.Contains(country) && zip.IsNotNullOrEmpty()) 7217 { 7218 formattedAddress.Append(string.Concat(" ",zip)); 7219 } 7220 if (hasCountry) 7221 { 7222 return formattedAddress.ToString(); 7223 } 7224 7225 formattedAddress.Append(splitBetweenRegionAndCountry.IsNotNullOrEmpty() ? splitBetweenRegionAndCountry : " "); 7226 if (getCountryName) 7227 { 7228 var getCountry = Services.Countries.GetCountry(country); 7229 if(getCountry != null) 7230 { 7231 var countryName = getCountry.Name; 7232 country = countryName.IsNotNullOrEmpty() ? countryName : country; 7233 } 7234 } 7235 formattedAddress.Append(country); 7236 return formattedAddress.ToString(); 7237 } 7238 7239 #endregion Address functions 7240 7241 #region Field helper functions 7242 7243 const string HighlightedCountriesSplit = "----------------"; 7244 7245 internal readonly List<string> HighlightedCountries = new List<string> 7246 { 7247 "CA", 7248 "US", 7249 HighlightedCountriesSplit 7250 }; 7251 7252 #endregion Field helper functions 7253 7254 #region Generic functions 7255 7256 private static int FormatInteger(object value) 7257 { 7258 int num; 7259 if (value == null) 7260 { 7261 value = string.Empty; 7262 } 7263 return int.TryParse(value.ToString(), out num) ? num : 0; 7264 } 7265 7266 #endregion Generic functions 7267 7268 private string GetProductPrice(string productPrice = "") 7269 { 7270 var showNoErpConnectionMessage = ShowNoErpConnectionMessage(); 7271 var isWebServiceConnectionAvailable = Dna.Ecommerce.LiveIntegration.TemplatesHelper.IsWebServiceConnectionAvailable(); 7272 7273 if (!isWebServiceConnectionAvailable && showNoErpConnectionMessage) 7274 { 7275 if (productPrice.IsNullOrEmpty()) 7276 { 7277 return GetNoErpConnectionMessage(); 7278 } 7279 else 7280 { 7281 return string.Concat("<span class='noErpConnection'>", Translate("Unavailable"), "</span>"); 7282 } 7283 } 7284 return productPrice; 7285 } 7286 7287 public string GetNoErpConnectionMessage() 7288 { 7289 return string.Concat("<div class='col-xs-12 warningBox'><p>", Translate("Pricing and inventory are currently not available. Please check back soon"), "</p></div>"); 7290 } 7291 7292 #line default 7293 #line hidden 7294 7295 7296 #line 2375 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7297 public RazorEngine.Templating.TemplateWriter RenderTableHeading(string label, string sortByField = "", string listType = "Order") 7298 { 7299 #line default 7300 #line hidden 7301 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7302 7303 #line 2376 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7304 7305 if (sortByField.IsNotNullOrEmpty()) 7306 { 7307 var href = string.Empty; 7308 var icon = "fa-sort-amount-asc"; 7309 if (listType == "Order" || listType == "Rma") 7310 { 7311 href = GetCustomerCenterSortUrl(sortByField, listType); 7312 if (GetSortFieldParameter("name") == sortByField) 7313 { 7314 icon = "fa-sort-amount-" + GetSortFieldParameter("value", sortByField).ToLower(); 7315 } 7316 } 7317 7318 7319 #line default 7320 #line hidden 7321 WriteLiteralTo(__razor_helper_writer, " <a"); 7322 7323 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 104376), Tuple.Create("\"", 104388) 7324 7325 #line 2389 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7326 , Tuple.Create(Tuple.Create("", 104383), Tuple.Create<System.Object, System.Int32>(href 7327 7328 #line default 7329 #line hidden 7330 , 104383), false) 7331 ); 7332 7333 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7334 7335 WriteLiteralTo(__razor_helper_writer, " "); 7336 7337 7338 #line 2390 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7339 WriteTo(__razor_helper_writer, RenderIcon(icon, label, IconPosition.Right)); 7340 7341 7342 #line default 7343 #line hidden 7344 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 7345 7346 7347 #line 2392 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7348 } 7349 else 7350 { 7351 7352 7353 #line default 7354 #line hidden 7355 7356 #line 2395 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7357 WriteTo(__razor_helper_writer, label); 7358 7359 7360 #line default 7361 #line hidden 7362 7363 #line 2395 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7364 7365 } 7366 7367 7368 #line default 7369 #line hidden 7370 }); 7371 7372 #line 2397 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7373 } 7374 #line default 7375 #line hidden 7376 7377 7378 #line 2399 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7379 public RazorEngine.Templating.TemplateWriter RenderDataListItem(string label, string value, string labelCss = "col-xs-4 text-right", string valueCss = "col-xs-8", string alternativeValue = "", bool isLabelBold = true) 7380 { 7381 #line default 7382 #line hidden 7383 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7384 7385 #line 2400 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7386 7387 if (value.IsNotNullOrEmpty() || alternativeValue.IsNotNullOrEmpty()) 7388 { 7389 var displayValue = alternativeValue.IsNullOrEmpty() ? value : alternativeValue; 7390 7391 7392 #line default 7393 #line hidden 7394 WriteLiteralTo(__razor_helper_writer, " <dt"); 7395 7396 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 104942), Tuple.Create("\"", 104959) 7397 7398 #line 2404 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7399 , Tuple.Create(Tuple.Create("", 104950), Tuple.Create<System.Object, System.Int32>(labelCss 7400 7401 #line default 7402 #line hidden 7403 , 104950), false) 7404 ); 7405 7406 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7407 7408 7409 #line 2405 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7410 7411 7412 #line default 7413 #line hidden 7414 7415 #line 2405 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7416 if (isLabelBold) 7417 { 7418 7419 7420 #line default 7421 #line hidden 7422 WriteLiteralTo(__razor_helper_writer, " "); 7423 7424 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 7425 7426 7427 #line 2408 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7428 } 7429 7430 #line default 7431 #line hidden 7432 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7433 7434 WriteLiteralTo(__razor_helper_writer, " "); 7435 7436 7437 #line 2409 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7438 WriteTo(__razor_helper_writer, label); 7439 7440 7441 #line default 7442 #line hidden 7443 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7444 7445 7446 #line 2410 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7447 7448 7449 #line default 7450 #line hidden 7451 7452 #line 2410 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7453 if (isLabelBold) 7454 { 7455 7456 7457 #line default 7458 #line hidden 7459 WriteLiteralTo(__razor_helper_writer, " "); 7460 7461 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 7462 7463 7464 #line 2413 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7465 } 7466 7467 #line default 7468 #line hidden 7469 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 7470 7471 WriteLiteralTo(__razor_helper_writer, " <dd"); 7472 7473 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 105234), Tuple.Create("\"", 105251) 7474 7475 #line 2415 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7476 , Tuple.Create(Tuple.Create("", 105242), Tuple.Create<System.Object, System.Int32>(valueCss 7477 7478 #line default 7479 #line hidden 7480 , 105242), false) 7481 ); 7482 7483 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7484 7485 WriteLiteralTo(__razor_helper_writer, " "); 7486 7487 7488 #line 2416 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7489 WriteTo(__razor_helper_writer, displayValue); 7490 7491 7492 #line default 7493 #line hidden 7494 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 7495 7496 7497 #line 2418 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7498 } 7499 7500 7501 #line default 7502 #line hidden 7503 }); 7504 7505 #line 2419 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7506 } 7507 #line default 7508 #line hidden 7509 7510 7511 #line 2421 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7512 public RazorEngine.Templating.TemplateWriter RenderTableRowSpacer(int height = 30, int colspan = 1) 7513 { 7514 #line default 7515 #line hidden 7516 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7517 7518 #line 2422 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7519 7520 if (height == 0) 7521 { 7522 height = 30; 7523 } 7524 7525 7526 7527 #line default 7528 #line hidden 7529 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n"); 7530 7531 7532 #line 2429 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7533 7534 7535 #line default 7536 #line hidden 7537 7538 #line 2429 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7539 if (colspan > 1) 7540 { 7541 7542 7543 #line default 7544 #line hidden 7545 WriteLiteralTo(__razor_helper_writer, " "); 7546 7547 WriteLiteralTo(__razor_helper_writer, " <td colspan=\""); 7548 7549 7550 #line 2431 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7551 WriteTo(__razor_helper_writer, colspan); 7552 7553 7554 #line default 7555 #line hidden 7556 WriteLiteralTo(__razor_helper_writer, "\" height=\""); 7557 7558 7559 #line 2431 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7560 WriteTo(__razor_helper_writer, height); 7561 7562 7563 #line default 7564 #line hidden 7565 WriteLiteralTo(__razor_helper_writer, "\"></td>\r\n"); 7566 7567 7568 #line 2432 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7569 } 7570 else 7571 { 7572 7573 7574 #line default 7575 #line hidden 7576 WriteLiteralTo(__razor_helper_writer, " <td"); 7577 7578 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 105677), Tuple.Create("\"", 105693) 7579 7580 #line 2435 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7581 , Tuple.Create(Tuple.Create("", 105686), Tuple.Create<System.Object, System.Int32>(height 7582 7583 #line default 7584 #line hidden 7585 , 105686), false) 7586 ); 7587 7588 WriteLiteralTo(__razor_helper_writer, "></td>\r\n"); 7589 7590 7591 #line 2436 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7592 } 7593 7594 #line default 7595 #line hidden 7596 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n"); 7597 7598 7599 #line 2438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7600 7601 7602 #line default 7603 #line hidden 7604 }); 7605 7606 #line 2438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7607 } 7608 #line default 7609 #line hidden 7610 7611 7612 #line 2440 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7613 public RazorEngine.Templating.TemplateWriter RenderTableCellSpacer(int width = 10, int height = 10) 7614 { 7615 #line default 7616 #line hidden 7617 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7618 7619 #line 2441 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7620 7621 if (width == 0) 7622 { 7623 width = 10; 7624 } 7625 if (height == 0) 7626 { 7627 height = 10; 7628 } 7629 7630 7631 #line default 7632 #line hidden 7633 WriteLiteralTo(__razor_helper_writer, " <td"); 7634 7635 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 105977), Tuple.Create("\"", 105991) 7636 7637 #line 2450 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7638 , Tuple.Create(Tuple.Create("", 105985), Tuple.Create<System.Object, System.Int32>(width 7639 7640 #line default 7641 #line hidden 7642 , 105985), false) 7643 ); 7644 7645 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 105992), Tuple.Create("\"", 106008) 7646 7647 #line 2450 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7648 , Tuple.Create(Tuple.Create("", 106001), Tuple.Create<System.Object, System.Int32>(height 7649 7650 #line default 7651 #line hidden 7652 , 106001), false) 7653 ); 7654 7655 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</td>\r\n"); 7656 7657 7658 #line 2451 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7659 7660 7661 #line default 7662 #line hidden 7663 }); 7664 7665 #line 2451 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7666 } 7667 #line default 7668 #line hidden 7669 7670 7671 #line 2455 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7672 public RazorEngine.Templating.TemplateWriter RenderTabContent(string tabKey, string tabLabel, string tabContent, string cssClass = "") 7673 { 7674 #line default 7675 #line hidden 7676 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7677 7678 #line 2456 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7679 7680 if (tabContent.IsNotNullOrEmpty()) 7681 { 7682 7683 7684 #line default 7685 #line hidden 7686 7687 #line 2459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7688 WriteTo(__razor_helper_writer, InternalRenderTabHeader("#" + tabKey, tabLabel, cssClass)); 7689 7690 7691 #line default 7692 #line hidden 7693 7694 #line 2459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7695 7696 7697 7698 #line default 7699 #line hidden 7700 WriteLiteralTo(__razor_helper_writer, " <div"); 7701 7702 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 106318), Tuple.Create("\"", 106345) 7703 , Tuple.Create(Tuple.Create("", 106326), Tuple.Create("col-xs-12", 106326), true) 7704 7705 #line 2460 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7706 , Tuple.Create(Tuple.Create(" ", 106335), Tuple.Create<System.Object, System.Int32>(cssClass 7707 7708 #line default 7709 #line hidden 7710 , 106336), false) 7711 ); 7712 7713 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 106346), Tuple.Create("\"", 106358) 7714 7715 #line 2460 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7716 , Tuple.Create(Tuple.Create("", 106351), Tuple.Create<System.Object, System.Int32>(tabKey 7717 7718 #line default 7719 #line hidden 7720 , 106351), false) 7721 ); 7722 7723 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7724 7725 WriteLiteralTo(__razor_helper_writer, " "); 7726 7727 7728 #line 2461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7729 WriteTo(__razor_helper_writer, tabContent); 7730 7731 7732 #line default 7733 #line hidden 7734 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7735 7736 7737 #line 2463 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7738 } 7739 7740 7741 #line default 7742 #line hidden 7743 }); 7744 7745 #line 2464 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7746 } 7747 #line default 7748 #line hidden 7749 7750 7751 #line 2468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7752 public RazorEngine.Templating.TemplateWriter RenderField(FieldSettings settings) 7753 { 7754 #line default 7755 #line hidden 7756 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7757 7758 #line 2469 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7759 7760 switch (settings.Type) 7761 { 7762 case FieldType.Button: 7763 case FieldType.Reset: 7764 case FieldType.Submit: 7765 7766 7767 #line default 7768 #line hidden 7769 7770 #line 2475 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7771 WriteTo(__razor_helper_writer, InternalRenderButtonField(settings)); 7772 7773 7774 #line default 7775 #line hidden 7776 7777 #line 2475 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7778 7779 break; 7780 case FieldType.Checkbox: 7781 7782 7783 #line default 7784 #line hidden 7785 7786 #line 2478 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7787 WriteTo(__razor_helper_writer, InternalRenderCheckboxField(settings)); 7788 7789 7790 #line default 7791 #line hidden 7792 7793 #line 2478 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7794 7795 break; 7796 case FieldType.Image: 7797 7798 7799 #line default 7800 #line hidden 7801 7802 #line 2481 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7803 WriteTo(__razor_helper_writer, InternalRenderImageField(settings)); 7804 7805 7806 #line default 7807 #line hidden 7808 7809 #line 2481 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7810 7811 break; 7812 case FieldType.Checkboxlist: 7813 case FieldType.Radio: 7814 7815 7816 #line default 7817 #line hidden 7818 7819 #line 2485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7820 WriteTo(__razor_helper_writer, InternalRenderRadioOrCheckboxListField(settings)); 7821 7822 7823 #line default 7824 #line hidden 7825 7826 #line 2485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7827 7828 break; 7829 case FieldType.Select: 7830 7831 7832 #line default 7833 #line hidden 7834 7835 #line 2488 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7836 WriteTo(__razor_helper_writer, InternalRenderSelectField(settings)); 7837 7838 7839 #line default 7840 #line hidden 7841 7842 #line 2488 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7843 7844 break; 7845 case FieldType.Color: 7846 case FieldType.Date: 7847 case FieldType.DatetimeLocal: 7848 case FieldType.Email: 7849 case FieldType.File: 7850 case FieldType.Hidden: 7851 case FieldType.Password: 7852 case FieldType.Month: 7853 case FieldType.Number: 7854 case FieldType.Search: 7855 case FieldType.Tel: 7856 case FieldType.Text: 7857 case FieldType.Time: 7858 case FieldType.Url: 7859 case FieldType.Week: 7860 case FieldType.Range: 7861 7862 7863 #line default 7864 #line hidden 7865 7866 #line 2506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7867 WriteTo(__razor_helper_writer, InternalRenderInputField(settings)); 7868 7869 7870 #line default 7871 #line hidden 7872 7873 #line 2506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7874 7875 break; 7876 7877 case FieldType.Textarea: 7878 7879 7880 #line default 7881 #line hidden 7882 7883 #line 2510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7884 WriteTo(__razor_helper_writer, InternalRenderTextareaField(settings)); 7885 7886 7887 #line default 7888 #line hidden 7889 7890 #line 2510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7891 7892 break; 7893 case FieldType.Textstring: 7894 7895 7896 #line default 7897 #line hidden 7898 7899 #line 2513 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7900 WriteTo(__razor_helper_writer, InternalRenderTextStringField(settings)); 7901 7902 7903 #line default 7904 #line hidden 7905 7906 #line 2513 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7907 7908 break; 7909 case FieldType.Divider: 7910 7911 7912 #line default 7913 #line hidden 7914 7915 #line 2516 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7916 WriteTo(__razor_helper_writer, InternalRenderDividerField(settings)); 7917 7918 7919 #line default 7920 #line hidden 7921 7922 #line 2516 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7923 7924 break; 7925 case FieldType.Datetime: 7926 7927 7928 #line default 7929 #line hidden 7930 7931 #line 2519 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7932 WriteTo(__razor_helper_writer, InternalRenderDateTimeField(settings)); 7933 7934 7935 #line default 7936 #line hidden 7937 7938 #line 2519 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7939 7940 break; 7941 case FieldType.Unknown: 7942 7943 7944 #line default 7945 #line hidden 7946 WriteLiteralTo(__razor_helper_writer, " "); 7947 7948 WriteLiteralTo(__razor_helper_writer, "<div style=\"color: #f00\">Undefined FieldType: <strong>"); 7949 7950 7951 #line 2522 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7952 WriteTo(__razor_helper_writer, settings.Type); 7953 7954 7955 #line default 7956 #line hidden 7957 WriteLiteralTo(__razor_helper_writer, "</strong></div>\r\n"); 7958 7959 7960 #line 2523 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7961 break; 7962 default: 7963 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 7964 } 7965 7966 7967 #line default 7968 #line hidden 7969 }); 7970 7971 #line 2527 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7972 } 7973 #line default 7974 #line hidden 7975 7976 7977 #line 2529 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7978 public RazorEngine.Templating.TemplateWriter RenderCountriesDropdownField(List<string> countries, bool renderJsVariables = true, bool renderHighlightOptions = true, bool isFirstHardcodedOptionDisabled = true) 7979 { 7980 #line default 7981 #line hidden 7982 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7983 7984 #line 2530 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7985 7986 var settings = new FieldSettings 7987 { 7988 SystemName = "Country", 7989 Id = "Country", 7990 Label = Translate("Select your country:"), 7991 FirstHardcodedOptionLabel = Translate("All"), 7992 ValuesList = countries 7993 }; 7994 7995 7996 #line default 7997 #line hidden 7998 7999 #line 2539 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8000 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(settings, renderJsVariables, renderHighlightOptions, isFirstHardcodedOptionDisabled)); 8001 8002 8003 #line default 8004 #line hidden 8005 8006 #line 2539 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8007 8008 8009 8010 #line default 8011 #line hidden 8012 }); 8013 8014 #line 2540 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8015 } 8016 #line default 8017 #line hidden 8018 8019 8020 #line 2542 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8021 public RazorEngine.Templating.TemplateWriter RenderCountriesDropdownField(FieldSettings settings, bool renderJsVariables = true, bool renderHighlightOptions = true, bool isFirstHardcodedOptionDisabled = true) 8022 { 8023 #line default 8024 #line hidden 8025 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8026 8027 #line 2543 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8028 8029 8030 if (settings.SystemName.IsNotNullOrEmpty()) 8031 { 8032 const int limit = 10; 8033 const int numOfCountriesForHighlight = 10; 8034 var countries = EcommerceHelpers.GetEcomCountries(); 8035 var numOfCountries = settings.LoopOptions.Any() ? settings.LoopOptions.Count : settings.ValuesList.Any() ? settings.ValuesList.Count : countries.Count; 8036 8037 settings.Assert(FieldType.Select); 8038 if (settings.FirstHardcodedOptionLabel.IsNullOrEmpty()) 8039 { 8040 settings.FirstHardcodedOptionLabel = Translate("Select an option"); 8041 } 8042 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && numOfCountries > limit) 8043 { 8044 settings.Attributes.Add("data-live-search", "true"); 8045 } 8046 8047 if (renderJsVariables) 8048 { 8049 8050 8051 #line default 8052 #line hidden 8053 8054 #line 2564 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8055 WriteTo(__razor_helper_writer, InternalRenderCountryAndRegionsJsVariables(countries)); 8056 8057 8058 #line default 8059 #line hidden 8060 8061 #line 2564 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8062 8063 } 8064 8065 8066 8067 #line default 8068 #line hidden 8069 8070 #line 2567 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8071 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 8072 8073 8074 #line default 8075 #line hidden 8076 8077 #line 2567 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8078 8079 8080 8081 #line default 8082 #line hidden 8083 8084 #line 2568 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8085 WriteTo(__razor_helper_writer, GetHtmlElement("select", GetAttributes(settings))); 8086 8087 8088 #line default 8089 #line hidden 8090 8091 #line 2568 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8092 8093 8094 8095 #line default 8096 #line hidden 8097 8098 #line 2569 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8099 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected, isFirstHardcodedOptionDisabled))); 8100 8101 8102 #line default 8103 #line hidden 8104 8105 #line 2569 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8106 8107 8108 if (numOfCountries > numOfCountriesForHighlight) 8109 { 8110 8111 8112 #line default 8113 #line hidden 8114 8115 #line 2573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8116 WriteTo(__razor_helper_writer, RenderSnippet("highlightedContries")); 8117 8118 8119 #line default 8120 #line hidden 8121 8122 #line 2573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8123 8124 } 8125 8126 if (settings.LoopOptions.Any()) 8127 { 8128 8129 foreach (var country in settings.LoopOptions) 8130 { 8131 var countryName = country.GetString("Ecom:Country.Name"); 8132 var countryCode = country.GetString("Ecom:Country.Code2"); 8133 8134 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 8135 { 8136 8137 8138 #line default 8139 #line hidden 8140 8141 #line 2586 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8142 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(countryName, countryCode)); 8143 8144 8145 #line default 8146 #line hidden 8147 8148 #line 2586 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8149 8150 } 8151 8152 8153 #line default 8154 #line hidden 8155 8156 #line 2588 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8157 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(countryName, countryCode))); 8158 8159 8160 #line default 8161 #line hidden 8162 8163 #line 2588 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8164 8165 } 8166 } 8167 else if (settings.ValuesList.Any()) 8168 { 8169 foreach (var countryCode in settings.ValuesList.OrderBy(s => s)) 8170 { 8171 var countryName = countries.Any(c => c.Code2 == countryCode) ? countries.First(c => c.Code2 == countryCode).Name : countryCode; 8172 8173 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 8174 { 8175 8176 8177 #line default 8178 #line hidden 8179 8180 #line 2599 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8181 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(countryName, countryCode)); 8182 8183 8184 #line default 8185 #line hidden 8186 8187 #line 2599 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8188 8189 } 8190 8191 8192 #line default 8193 #line hidden 8194 8195 #line 2601 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8196 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(countryName, countryCode))); 8197 8198 8199 #line default 8200 #line hidden 8201 8202 #line 2601 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8203 8204 } 8205 } 8206 else 8207 { 8208 foreach (var country in countries.OrderBy(s => s.Name)) 8209 { 8210 var countryCode = country.Code2; 8211 8212 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 8213 { 8214 8215 8216 #line default 8217 #line hidden 8218 8219 #line 2612 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8220 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(country.Name, countryCode)); 8221 8222 8223 #line default 8224 #line hidden 8225 8226 #line 2612 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8227 8228 } 8229 8230 8231 #line default 8232 #line hidden 8233 8234 #line 2614 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8235 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(country.Name, countryCode))); 8236 8237 8238 #line default 8239 #line hidden 8240 8241 #line 2614 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8242 8243 } 8244 } 8245 8246 if (renderHighlightOptions && numOfCountries > numOfCountriesForHighlight && HighlightedCountries.Any(c => HighlightedCountriesSplit.Equals(c, StringComparison.CurrentCultureIgnoreCase))) 8247 { 8248 8249 8250 #line default 8251 #line hidden 8252 8253 #line 2620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8254 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(HighlightedCountriesSplit, string.Empty, false, true)); 8255 8256 8257 #line default 8258 #line hidden 8259 8260 #line 2620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8261 8262 } 8263 8264 8265 8266 #line default 8267 #line hidden 8268 8269 #line 2623 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8270 WriteTo(__razor_helper_writer, GetHtmlElement("select", true)); 8271 8272 8273 #line default 8274 #line hidden 8275 8276 #line 2623 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8277 8278 8279 8280 8281 #line default 8282 #line hidden 8283 8284 #line 2625 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8285 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 8286 8287 8288 #line default 8289 #line hidden 8290 8291 #line 2625 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8292 8293 } 8294 8295 8296 #line default 8297 #line hidden 8298 }); 8299 8300 #line 2627 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8301 } 8302 #line default 8303 #line hidden 8304 8305 8306 #line 2629 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8307 public RazorEngine.Templating.TemplateWriter PopulateHighlightedCountries(string label, string value, bool isSelected = false, bool isDisabled = false) 8308 { 8309 #line default 8310 #line hidden 8311 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8312 8313 #line 2630 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8314 8315 HighlightedCountries.Remove(value); 8316 if (value.IsNullOrEmpty()) 8317 { 8318 HighlightedCountries.Remove(label); 8319 } 8320 8321 8322 #line default 8323 #line hidden 8324 8325 #line 2636 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8326 WriteTo(__razor_helper_writer, SnippetStart("highlightedContries")); 8327 8328 8329 #line default 8330 #line hidden 8331 8332 #line 2636 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8333 8334 8335 8336 #line default 8337 #line hidden 8338 8339 #line 2637 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8340 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(label, value, isSelected, isDisabled))); 8341 8342 8343 #line default 8344 #line hidden 8345 8346 #line 2637 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8347 8348 8349 8350 #line default 8351 #line hidden 8352 8353 #line 2638 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8354 WriteTo(__razor_helper_writer, SnippetEnd("highlightedContries")); 8355 8356 8357 #line default 8358 #line hidden 8359 8360 #line 2638 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8361 8362 8363 8364 #line default 8365 #line hidden 8366 }); 8367 8368 #line 2639 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8369 } 8370 #line default 8371 #line hidden 8372 8373 8374 #line 2643 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8375 public RazorEngine.Templating.TemplateWriter RenderPaging() 8376 { 8377 #line default 8378 #line hidden 8379 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8380 8381 #line 2644 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8382 8383 8384 8385 #line default 8386 #line hidden 8387 8388 #line 2645 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8389 WriteTo(__razor_helper_writer, RenderPaging( 8390 GetInteger("Ecom:CustomerCenter.Paging.NumPages"), 8391 "CCPage", 8392 GetString("Ecom:CustomerCenter.Paging.Back.URL"), 8393 GetString("Ecom:CustomerCenter.Paging.Forward.URL"), 8394 GetInteger("Ecom:CustomerCenter.Paging.CurrentPage"), 8395 GetLoop("Ecom:CustomerCenter.Paging.Pages"), 8396 "Ecom:CustomerCenter.Paging.PageIndex", 8397 string.Empty, 8398 true, 8399 false 8400 )); 8401 8402 8403 #line default 8404 #line hidden 8405 8406 #line 2656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8407 8408 8409 8410 #line default 8411 #line hidden 8412 }); 8413 8414 #line 2657 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8415 } 8416 #line default 8417 #line hidden 8418 8419 8420 #line 2659 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8421 public RazorEngine.Templating.TemplateWriter RenderPaging(int numOfPages, string pageQueryParameter, int currentPage) 8422 { 8423 #line default 8424 #line hidden 8425 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8426 8427 #line 2660 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8428 8429 var queryParameters = HttpUtility.ParseQueryString(Dynamicweb.Context.Current.Request.Url.Query); 8430 var url = Dna.UrlServices.Helpers.GetCurrentUrl(true, true); 8431 var previousPageUrl = string.Empty; 8432 var nextPageUrl = string.Empty; 8433 8434 if (currentPage > 1) 8435 { 8436 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageQueryParameter, (currentPage - 1).ToString()); 8437 previousPageUrl = (string) Dna.UrlServices.Helpers.BuildUri(url, queryParameters).ToString(); 8438 } 8439 if (currentPage < numOfPages) 8440 { 8441 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageQueryParameter, (currentPage + 1).ToString()); 8442 nextPageUrl = (string) Dna.UrlServices.Helpers.BuildUri(url, queryParameters).ToString(); 8443 } 8444 8445 8446 8447 #line default 8448 #line hidden 8449 8450 #line 2677 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8451 WriteTo(__razor_helper_writer, RenderPaging(numOfPages, pageQueryParameter, previousPageUrl, nextPageUrl, currentPage)); 8452 8453 8454 #line default 8455 #line hidden 8456 8457 #line 2677 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8458 8459 8460 8461 #line default 8462 #line hidden 8463 }); 8464 8465 #line 2678 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8466 } 8467 #line default 8468 #line hidden 8469 8470 8471 #line 2680 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8472 public RazorEngine.Templating.TemplateWriter RenderPaging(int numOfPages, string pageQueryParameter, string previousPageUrl, string nextPageUrl, int currentPage, List<LoopItem> pagesLoop = null, string pageNumTag = "", string pageHrefTag = "", bool includeWrapper = true, bool includeFirstAndLastLabel = true) 8473 { 8474 #line default 8475 #line hidden 8476 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8477 8478 #line 2681 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8479 8480 if (numOfPages > 1) 8481 { 8482 8483 8484 #line default 8485 #line hidden 8486 8487 #line 2684 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8488 8489 8490 8491 #line default 8492 #line hidden 8493 8494 #line 2690 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8495 8496 8497 var loopPageSize = 3; 8498 var startPage = 1; 8499 var endPage = numOfPages; 8500 8501 var pageQueryParameter2 = pageQueryParameter == "PageNum" || pageQueryParameter == "page" || pageQueryParameter == "DWPagingPageNum" ? string.Empty : Pageview.CurrentParagraph.ID.ToString(); 8502 var pageNumQueryParameter = pageQueryParameter + pageQueryParameter2; 8503 8504 var queryParameters = HttpUtility.ParseQueryString(Dynamicweb.Context.Current.Request.Url.Query); 8505 queryParameters.Remove(pageNumQueryParameter); 8506 queryParameters.Remove("pid"); 8507 8508 if (pageQueryParameter == "page") 8509 { 8510 queryParameters.Add("pid", Pageview.CurrentParagraph.ID.ToString()); 8511 } 8512 8513 if (pagesLoop != null) 8514 { 8515 loopPageSize = pagesLoop.Count; 8516 endPage = 1; 8517 } 8518 else 8519 { 8520 var pageOffset = Math.Floor(Convert.ToDecimal(loopPageSize / 2)); 8521 var middlePage = pageOffset + 1; 8522 8523 if (numOfPages > loopPageSize) 8524 { 8525 startPage = Convert.ToInt32(currentPage - pageOffset) < 1 ? 1 : Convert.ToInt32(currentPage - pageOffset); 8526 endPage = Convert.ToInt32(currentPage + pageOffset) > numOfPages ? numOfPages : Convert.ToInt32(currentPage + pageOffset); 8527 8528 if (currentPage < middlePage) 8529 { 8530 endPage = loopPageSize; 8531 } 8532 else if (currentPage >= middlePage) 8533 { 8534 if (numOfPages < currentPage + pageOffset) 8535 { 8536 startPage = numOfPages - loopPageSize; 8537 if (loopPageSize % 2 != 0) 8538 { 8539 startPage += 1; 8540 } 8541 } 8542 8543 if (loopPageSize % 2 == 0) 8544 { 8545 startPage += 1; 8546 } 8547 } 8548 } 8549 } 8550 8551 if (includeWrapper) 8552 { 8553 8554 8555 #line default 8556 #line hidden 8557 WriteLiteralTo(__razor_helper_writer, " "); 8558 8559 WriteLiteralTo(__razor_helper_writer, "<div class=\"col-xs-12 text-center paginationContainer\">\r\n"); 8560 8561 8562 #line 2749 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8563 } 8564 8565 8566 #line default 8567 #line hidden 8568 WriteLiteralTo(__razor_helper_writer, " <ul"); 8569 8570 WriteLiteralTo(__razor_helper_writer, " class=\"pagination\""); 8571 8572 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8573 8574 8575 #line 2751 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8576 8577 8578 #line default 8579 #line hidden 8580 8581 #line 2751 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8582 if (previousPageUrl.IsNotNullOrEmpty() && previousPageUrl != "#") 8583 { 8584 var label = includeFirstAndLastLabel ? Translate("Previous") : string.Empty; 8585 8586 8587 #line default 8588 #line hidden 8589 8590 #line 2754 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8591 WriteTo(__razor_helper_writer, InternalRenderPageItem(previousPageUrl, label, "fa-caret-left", IconPosition.Left)); 8592 8593 8594 #line default 8595 #line hidden 8596 8597 #line 2754 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8598 8599 } 8600 8601 #line default 8602 #line hidden 8603 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8604 8605 8606 #line 2756 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8607 8608 8609 #line default 8610 #line hidden 8611 8612 #line 2756 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8613 if (pagesLoop != null) 8614 { 8615 8616 8617 #line default 8618 #line hidden 8619 8620 #line 2758 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8621 WriteTo(__razor_helper_writer, InternalRenderGoToFirstPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, pagesLoop[0].GetInteger(pageNumTag))); 8622 8623 8624 #line default 8625 #line hidden 8626 8627 #line 2758 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8628 8629 foreach (var page in pagesLoop) 8630 { 8631 var pageItemHref = pageQueryParameter == "PageNum" || pageQueryParameter == "page" ? page.GetString(pageHrefTag) : pageQueryParameter.StartsWith("CCPage") ? string.Concat("CCPage=", page.GetString(pageHrefTag)) : string.Empty; 8632 endPage = page.GetInteger(pageNumTag); 8633 8634 queryParameters.Remove(pageNumQueryParameter); 8635 if (pageItemHref.IsNotNullOrEmpty()) 8636 { 8637 queryParameters.Add(pageNumQueryParameter, page.GetString(pageNumTag)); 8638 } 8639 8640 8641 #line default 8642 #line hidden 8643 8644 #line 2769 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8645 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, page.GetString(pageNumTag), page.GetInteger(pageNumTag) == currentPage ? "active" : string.Empty)); 8646 8647 8648 #line default 8649 #line hidden 8650 8651 #line 2769 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8652 8653 8654 } 8655 8656 8657 #line default 8658 #line hidden 8659 8660 #line 2772 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8661 WriteTo(__razor_helper_writer, InternalRenderGoToLastPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, endPage)); 8662 8663 8664 #line default 8665 #line hidden 8666 8667 #line 2772 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8668 8669 } 8670 else 8671 { 8672 8673 8674 #line default 8675 #line hidden 8676 8677 #line 2776 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8678 WriteTo(__razor_helper_writer, InternalRenderGoToFirstPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize)); 8679 8680 8681 #line default 8682 #line hidden 8683 8684 #line 2776 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8685 8686 for (var page = startPage; page <= endPage; page++) 8687 { 8688 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, page.ToString()); 8689 8690 8691 #line default 8692 #line hidden 8693 8694 #line 2780 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8695 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, page.ToString(), page == currentPage ? "active" : string.Empty)); 8696 8697 8698 #line default 8699 #line hidden 8700 8701 #line 2780 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8702 8703 } 8704 8705 8706 #line default 8707 #line hidden 8708 8709 #line 2782 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8710 WriteTo(__razor_helper_writer, InternalRenderGoToLastPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, endPage)); 8711 8712 8713 #line default 8714 #line hidden 8715 8716 #line 2782 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8717 8718 } 8719 8720 #line default 8721 #line hidden 8722 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 8723 8724 8725 #line 2785 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8726 8727 8728 #line default 8729 #line hidden 8730 8731 #line 2785 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8732 if (nextPageUrl.IsNotNullOrEmpty() && nextPageUrl != "#") 8733 { 8734 var label = includeFirstAndLastLabel ? Translate("Next") : string.Empty; 8735 8736 8737 #line default 8738 #line hidden 8739 8740 #line 2788 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8741 WriteTo(__razor_helper_writer, InternalRenderPageItem(nextPageUrl, label, "fa-caret-right", IconPosition.Right)); 8742 8743 8744 #line default 8745 #line hidden 8746 8747 #line 2788 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8748 8749 } 8750 8751 #line default 8752 #line hidden 8753 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 8754 8755 8756 #line 2791 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8757 if (includeWrapper) 8758 { 8759 8760 8761 #line default 8762 #line hidden 8763 WriteLiteralTo(__razor_helper_writer, " "); 8764 8765 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 8766 8767 8768 #line 2794 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8769 } 8770 } 8771 8772 8773 #line default 8774 #line hidden 8775 }); 8776 8777 #line 2796 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8778 } 8779 #line default 8780 #line hidden 8781 8782 8783 #line 2800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8784 public RazorEngine.Templating.TemplateWriter RenderIcon(string cssPartialClass, string label = "", IconPosition position = IconPosition.Left, bool isLabelATooltip = false) 8785 { 8786 #line default 8787 #line hidden 8788 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8789 8790 #line 2801 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8791 8792 var icon = !isLabelATooltip ? "<i class='fa " + cssPartialClass + "'></i>" : "<i class='fa " + cssPartialClass + "' data-toggle='" + label + "'></i>"; 8793 var spacing = string.Empty; 8794 8795 if (label.IsNotNullOrEmpty()) 8796 { 8797 spacing = "&nbsp;"; 8798 } 8799 if (cssPartialClass.IsNotNullOrEmpty()) 8800 { 8801 if (isLabelATooltip) 8802 { 8803 8804 8805 #line default 8806 #line hidden 8807 8808 #line 2813 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8809 WriteTo(__razor_helper_writer, icon); 8810 8811 8812 #line default 8813 #line hidden 8814 8815 #line 2813 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8816 8817 } 8818 else if (position == IconPosition.Left) 8819 { 8820 8821 8822 #line default 8823 #line hidden 8824 8825 #line 2817 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8826 WriteTo(__razor_helper_writer, icon); 8827 8828 8829 #line default 8830 #line hidden 8831 8832 #line 2817 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8833 8834 8835 8836 #line default 8837 #line hidden 8838 8839 #line 2818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8840 WriteTo(__razor_helper_writer, spacing); 8841 8842 8843 #line default 8844 #line hidden 8845 8846 #line 2818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8847 8848 8849 8850 #line default 8851 #line hidden 8852 8853 #line 2819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8854 WriteTo(__razor_helper_writer, label); 8855 8856 8857 #line default 8858 #line hidden 8859 8860 #line 2819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8861 8862 } 8863 else 8864 { 8865 8866 8867 #line default 8868 #line hidden 8869 8870 #line 2823 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8871 WriteTo(__razor_helper_writer, label); 8872 8873 8874 #line default 8875 #line hidden 8876 8877 #line 2823 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8878 8879 8880 8881 #line default 8882 #line hidden 8883 8884 #line 2824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8885 WriteTo(__razor_helper_writer, spacing); 8886 8887 8888 #line default 8889 #line hidden 8890 8891 #line 2824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8892 8893 8894 8895 #line default 8896 #line hidden 8897 8898 #line 2825 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8899 WriteTo(__razor_helper_writer, icon); 8900 8901 8902 #line default 8903 #line hidden 8904 8905 #line 2825 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8906 8907 } 8908 } 8909 else 8910 { 8911 8912 8913 #line default 8914 #line hidden 8915 8916 #line 2830 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8917 WriteTo(__razor_helper_writer, label); 8918 8919 8920 #line default 8921 #line hidden 8922 8923 #line 2830 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8924 8925 } 8926 8927 8928 #line default 8929 #line hidden 8930 }); 8931 8932 #line 2832 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8933 } 8934 #line default 8935 #line hidden 8936 8937 8938 #line 2834 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8939 public RazorEngine.Templating.TemplateWriter RenderStackedIcons(string cssPrincipalPartialClass, string cssSecondaryPartialClass, string label = "", IconPosition position = IconPosition.Left, bool isLabelATooltip = false) 8940 { 8941 #line default 8942 #line hidden 8943 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8944 8945 #line 2835 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8946 8947 var spacing = string.Empty; 8948 var icon = new StringBuilder("<span class='fa-stack'>"); 8949 8950 icon.Append(!isLabelATooltip ? "<i class='fa " + cssPrincipalPartialClass + " fa-stack-2x'></i>" : "<i class='fa " + cssPrincipalPartialClass + " fa-stack-2x' data-toggle='" + label + "'></i>"); 8951 icon.Append("<i class='fa " + cssSecondaryPartialClass + " fa-stack-1x'></i>"); 8952 icon.Append("</span>"); 8953 8954 if (label.IsNotNullOrEmpty()) 8955 { 8956 spacing = "<text>&nbsp;</text>"; 8957 } 8958 if (cssPrincipalPartialClass.IsNotNullOrEmpty() && cssSecondaryPartialClass.IsNotNullOrEmpty()) 8959 { 8960 if (isLabelATooltip) 8961 { 8962 8963 8964 #line default 8965 #line hidden 8966 8967 #line 2851 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8968 WriteTo(__razor_helper_writer, icon.ToString()); 8969 8970 8971 #line default 8972 #line hidden 8973 8974 #line 2851 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8975 8976 } 8977 else if (position == IconPosition.Left) 8978 { 8979 8980 8981 #line default 8982 #line hidden 8983 8984 #line 2855 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8985 WriteTo(__razor_helper_writer, icon.ToString()); 8986 8987 8988 #line default 8989 #line hidden 8990 8991 #line 2855 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8992 8993 8994 8995 #line default 8996 #line hidden 8997 8998 #line 2856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8999 WriteTo(__razor_helper_writer, spacing); 9000 9001 9002 #line default 9003 #line hidden 9004 9005 #line 2856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9006 9007 9008 9009 #line default 9010 #line hidden 9011 9012 #line 2857 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9013 WriteTo(__razor_helper_writer, label); 9014 9015 9016 #line default 9017 #line hidden 9018 9019 #line 2857 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9020 9021 } 9022 else 9023 { 9024 9025 9026 #line default 9027 #line hidden 9028 9029 #line 2861 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9030 WriteTo(__razor_helper_writer, label); 9031 9032 9033 #line default 9034 #line hidden 9035 9036 #line 2861 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9037 9038 9039 9040 #line default 9041 #line hidden 9042 9043 #line 2862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9044 WriteTo(__razor_helper_writer, spacing); 9045 9046 9047 #line default 9048 #line hidden 9049 9050 #line 2862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9051 9052 9053 9054 #line default 9055 #line hidden 9056 9057 #line 2863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9058 WriteTo(__razor_helper_writer, icon.ToString()); 9059 9060 9061 #line default 9062 #line hidden 9063 9064 #line 2863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9065 9066 } 9067 } 9068 else 9069 { 9070 9071 9072 #line default 9073 #line hidden 9074 9075 #line 2868 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9076 WriteTo(__razor_helper_writer, label); 9077 9078 9079 #line default 9080 #line hidden 9081 9082 #line 2868 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9083 9084 } 9085 9086 9087 #line default 9088 #line hidden 9089 }); 9090 9091 #line 2870 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9092 } 9093 #line default 9094 #line hidden 9095 9096 9097 #line 2872 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9098 public RazorEngine.Templating.TemplateWriter RenderAction(IconAction action, string href = "", string title = "", string onClickConfirm = "") 9099 { 9100 #line default 9101 #line hidden 9102 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9103 9104 #line 2873 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9105 9106 var attributes = new Dictionary<string, string>(); 9107 9108 if (title.IsNotNullOrEmpty()) 9109 { 9110 attributes.Add("title", title); 9111 } 9112 if (onClickConfirm.IsNotNullOrEmpty()) 9113 { 9114 attributes.Add("onclick", "return confirm('" + onClickConfirm + "');"); 9115 } 9116 if (href.IsNotNullOrEmpty()) 9117 { 9118 attributes.Add("href", href); 9119 } 9120 9121 9122 #line default 9123 #line hidden 9124 9125 #line 2888 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9126 WriteTo(__razor_helper_writer, RenderAction(action, href, attributes)); 9127 9128 9129 #line default 9130 #line hidden 9131 9132 #line 2888 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9133 9134 9135 9136 #line default 9137 #line hidden 9138 }); 9139 9140 #line 2889 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9141 } 9142 #line default 9143 #line hidden 9144 9145 9146 #line 2891 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9147 public RazorEngine.Templating.TemplateWriter RenderAction(IconAction action, string href, Dictionary<string, string> attributes) 9148 { 9149 #line default 9150 #line hidden 9151 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9152 9153 #line 2892 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9154 9155 var icon = string.Empty; 9156 var linkAttributes = string.Empty; 9157 var label = Translate(action.ToString()); 9158 9159 switch (action) 9160 { 9161 case IconAction.Add: 9162 break; 9163 case IconAction.View: 9164 icon = "fa-eye"; 9165 break; 9166 case IconAction.Edit: 9167 icon = "fa-edit"; 9168 break; 9169 case IconAction.Cancel: 9170 case IconAction.Remove: 9171 icon = "fa-times"; 9172 break; 9173 case IconAction.Delete: 9174 icon = "fa-trash"; 9175 break; 9176 case IconAction.Print: 9177 icon = "fa-print"; 9178 attributes.Add("target", "_blank"); 9179 break; 9180 case IconAction.Save: 9181 break; 9182 case IconAction.Reset: 9183 break; 9184 case IconAction.Undo: 9185 break; 9186 case IconAction.Reorder: 9187 icon = "fa-repeat"; 9188 break; 9189 case IconAction.SetDefault: 9190 icon = "fa-times"; 9191 label = string.Empty; 9192 break; 9193 case IconAction.IsDefault: 9194 icon = "fa-check"; 9195 label = string.Empty; 9196 break; 9197 default: 9198 throw new NotSupportedException("An action is needed to render this helper!"); 9199 } 9200 if (icon.IsNotNullOrEmpty()) 9201 { 9202 if (href.IsNotNullOrEmpty()) 9203 { 9204 9205 9206 #line default 9207 #line hidden 9208 9209 #line 2942 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9210 WriteTo(__razor_helper_writer, GetHtmlElement("a", GetAttributes(attributes))); 9211 9212 9213 #line default 9214 #line hidden 9215 9216 #line 2942 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9217 9218 9219 9220 #line default 9221 #line hidden 9222 9223 #line 2943 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9224 WriteTo(__razor_helper_writer, RenderIcon(icon, label)); 9225 9226 9227 #line default 9228 #line hidden 9229 9230 #line 2943 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9231 9232 9233 9234 #line default 9235 #line hidden 9236 9237 #line 2944 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9238 WriteTo(__razor_helper_writer, GetHtmlElement("a", true)); 9239 9240 9241 #line default 9242 #line hidden 9243 9244 #line 2944 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9245 9246 } 9247 else if (label.IsNullOrEmpty()) 9248 { 9249 9250 9251 #line default 9252 #line hidden 9253 9254 #line 2948 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9255 WriteTo(__razor_helper_writer, RenderIcon(icon)); 9256 9257 9258 #line default 9259 #line hidden 9260 9261 #line 2948 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9262 9263 } 9264 } 9265 9266 9267 9268 #line default 9269 #line hidden 9270 }); 9271 9272 #line 2952 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9273 } 9274 #line default 9275 #line hidden 9276 9277 9278 #line 2954 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9279 public RazorEngine.Templating.TemplateWriter RenderBootstrapButton(BootstrapButtonSettings settings) 9280 { 9281 #line default 9282 #line hidden 9283 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9284 9285 #line 2955 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9286 9287 var attributes = new StringBuilder(GetAttribute("class", "btn " + (settings.CssClass.IsNotNullOrEmpty() ? settings.CssClass : "btn-default"))); 9288 attributes.Append(GetAttribute("target", settings.Target)); 9289 attributes.Append(GetAttribute("href", settings.Href)); 9290 attributes.Append(GetAttribute("name", settings.SystemName)); 9291 attributes.Append(GetAttribute("id", settings.Id)); 9292 attributes.Append(GetAttribute("value", settings.Value)); 9293 if (settings.ButtonType == BootstrapButtonSettings.BootstrapButtonType.Button && !settings.Attributes.ContainsKey("type")) 9294 { 9295 settings.Attributes.Add("type","submit"); 9296 } 9297 9298 attributes.Append(GetAttributes(settings.Attributes)); 9299 string htmlElement; 9300 9301 switch (settings.ButtonType) 9302 { 9303 case BootstrapButtonSettings.BootstrapButtonType.Button: 9304 htmlElement = "button"; 9305 break; 9306 case BootstrapButtonSettings.BootstrapButtonType.Anchor: 9307 htmlElement = "a"; 9308 break; 9309 default: 9310 throw new NotSupportedException(string.Format("Unsupported Bootstrap Button type: {0}.", settings.ButtonType.ToString())); 9311 } 9312 9313 9314 #line default 9315 #line hidden 9316 9317 #line 2981 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9318 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, attributes.ToString())); 9319 9320 9321 #line default 9322 #line hidden 9323 9324 #line 2981 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9325 9326 9327 9328 #line default 9329 #line hidden 9330 9331 #line 2982 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9332 WriteTo(__razor_helper_writer, RenderIcon(settings.IconCssClass, settings.Label, settings.IconPosition)); 9333 9334 9335 #line default 9336 #line hidden 9337 9338 #line 2982 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9339 9340 9341 9342 #line default 9343 #line hidden 9344 9345 #line 2983 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9346 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, true)); 9347 9348 9349 #line default 9350 #line hidden 9351 9352 #line 2983 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9353 9354 9355 9356 #line default 9357 #line hidden 9358 }); 9359 9360 #line 2984 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9361 } 9362 #line default 9363 #line hidden 9364 9365 9366 #line 2986 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9367 public RazorEngine.Templating.TemplateWriter RenderAddToCart(string productId, string productUnitId, string productVariantId, int availableAmount = 0, bool doNotRenderHiddenFields = false, string textButton = "") 9368 { 9369 #line default 9370 #line hidden 9371 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9372 9373 #line 2987 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9374 9375 var addToCartButtonSettings = new BootstrapButtonSettings 9376 { 9377 Label = textButton.IsNotNullOrEmpty() ? textButton : Translate("Add to Cart"), 9378 CssClass = availableAmount <= 0 ? "btn-default addToCartSubmit disabled" : "btn-default addToCartSubmit", 9379 Href = string.Concat(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MiniCart").ID),"?productid=", productId, "&amp;variantID=", productVariantId, "&amp;cartcmd=add"), 9380 IconCssClass = "fa-shopping-cart", 9381 Attributes = new Dictionary<string, string> 9382 { 9383 {"data-add", Translate("Add to Cart")}, 9384 {"data-added", Translate("Added")}, 9385 {"data-outofstock", Translate("Out of stock")}, 9386 {"data-stock", availableAmount.ToString()} 9387 } 9388 }; 9389 9390 9391 #line default 9392 #line hidden 9393 9394 #line 3002 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9395 WriteTo(__razor_helper_writer, RenderBootstrapButton(addToCartButtonSettings)); 9396 9397 9398 #line default 9399 #line hidden 9400 9401 #line 3002 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9402 9403 if (!doNotRenderHiddenFields) 9404 { 9405 9406 9407 #line default 9408 #line hidden 9409 9410 #line 3005 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9411 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("redirect", "false", "redirect" + productId))); 9412 9413 9414 #line default 9415 #line hidden 9416 9417 #line 3005 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9418 9419 9420 9421 #line default 9422 #line hidden 9423 9424 #line 3006 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9425 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("cartcmd", "add", "cartcmd" + productId))); 9426 9427 9428 #line default 9429 #line hidden 9430 9431 #line 3006 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9432 9433 9434 9435 #line default 9436 #line hidden 9437 9438 #line 3007 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9439 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("productid", productId, "productId" + productId))); 9440 9441 9442 #line default 9443 #line hidden 9444 9445 #line 3007 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9446 9447 9448 9449 #line default 9450 #line hidden 9451 9452 #line 3008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9453 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("unitID", productUnitId, "unitID" + productId))); 9454 9455 9456 #line default 9457 #line hidden 9458 9459 #line 3008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9460 9461 if (Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) 9462 { 9463 9464 9465 #line default 9466 #line hidden 9467 9468 #line 3011 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9469 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("getproductinfo", "true", "getproductinfo" + productId))); 9470 9471 9472 #line default 9473 #line hidden 9474 9475 #line 3011 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9476 9477 } 9478 } 9479 9480 9481 #line default 9482 #line hidden 9483 9484 #line 3014 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9485 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateSubmitField(Translate("Add to Cart"), "hidden"))); 9486 9487 9488 #line default 9489 #line hidden 9490 9491 #line 3014 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9492 9493 9494 9495 #line default 9496 #line hidden 9497 }); 9498 9499 #line 3015 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9500 } 9501 #line default 9502 #line hidden 9503 9504 9505 #line 3017 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9506 public RazorEngine.Templating.TemplateWriter RenderSocialMediaShare() 9507 { 9508 #line default 9509 #line hidden 9510 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9511 9512 #line 3018 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9513 9514 9515 9516 #line default 9517 #line hidden 9518 WriteLiteralTo(__razor_helper_writer, " <div"); 9519 9520 WriteLiteralTo(__razor_helper_writer, " class=\"shareIcons\""); 9521 9522 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>"); 9523 9524 9525 #line 3020 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9526 WriteTo(__razor_helper_writer, Translate("Share")); 9527 9528 9529 #line default 9530 #line hidden 9531 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 9532 9533 WriteLiteralTo(__razor_helper_writer, " "); 9534 9535 9536 #line 3021 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9537 WriteTo(__razor_helper_writer, RenderSocialMedia(false, true)); 9538 9539 9540 #line default 9541 #line hidden 9542 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9543 9544 9545 #line 3023 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9546 9547 9548 #line default 9549 #line hidden 9550 }); 9551 9552 #line 3023 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9553 } 9554 #line default 9555 #line hidden 9556 9557 9558 #line 3025 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9559 public RazorEngine.Templating.TemplateWriter RenderOpenGraphMeta(string type, string image, string title, string teaser = "", string imageAlt = "") 9560 { 9561 #line default 9562 #line hidden 9563 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9564 9565 #line 3026 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9566 9567 var culture = Pageview.Area.Culture.Replace("-", "_"); 9568 teaser = System.Text.RegularExpressions.Regex.Replace(teaser, "<.*?>", string.Empty); 9569 if (type.IsNullOrEmpty()) 9570 { 9571 type = "article"; 9572 } 9573 if (imageAlt.IsNullOrEmpty()) 9574 { 9575 imageAlt = title; 9576 } 9577 9578 9579 #line default 9580 #line hidden 9581 9582 #line 3037 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9583 WriteTo(__razor_helper_writer, SnippetStart("OGMeta")); 9584 9585 9586 #line default 9587 #line hidden 9588 9589 #line 3037 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9590 9591 9592 9593 #line default 9594 #line hidden 9595 WriteLiteralTo(__razor_helper_writer, " <meta"); 9596 9597 WriteLiteralTo(__razor_helper_writer, " property=\"og:title\""); 9598 9599 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 130972), Tuple.Create("\"", 131012) 9600 9601 #line 3038 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9602 , Tuple.Create(Tuple.Create("", 130982), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlEncode(title) 9603 9604 #line default 9605 #line hidden 9606 , 130982), false) 9607 ); 9608 9609 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9610 9611 WriteLiteralTo(__razor_helper_writer, " <meta"); 9612 9613 WriteLiteralTo(__razor_helper_writer, " property=\"og:image\""); 9614 9615 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131050), Tuple.Create("\"", 131110) 9616 9617 #line 3039 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9618 , Tuple.Create(Tuple.Create("", 131060), Tuple.Create<System.Object, System.Int32>(string.Concat(Helpers.GetCurrentUrl(true), image) 9619 9620 #line default 9621 #line hidden 9622 , 131060), false) 9623 ); 9624 9625 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9626 9627 WriteLiteralTo(__razor_helper_writer, " <meta"); 9628 9629 WriteLiteralTo(__razor_helper_writer, " property=\"og:image:alt\""); 9630 9631 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131152), Tuple.Create("\"", 131171) 9632 9633 #line 3040 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9634 , Tuple.Create(Tuple.Create("", 131162), Tuple.Create<System.Object, System.Int32>(imageAlt 9635 9636 #line default 9637 #line hidden 9638 , 131162), false) 9639 ); 9640 9641 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9642 9643 WriteLiteralTo(__razor_helper_writer, " <meta"); 9644 9645 WriteLiteralTo(__razor_helper_writer, " property=\"og:site_name\""); 9646 9647 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131213), Tuple.Create("\"", 131257) 9648 9649 #line 3041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9650 , Tuple.Create(Tuple.Create("", 131223), Tuple.Create<System.Object, System.Int32>(Pageview.Area.Item["CompanyName"] 9651 9652 #line default 9653 #line hidden 9654 , 131223), false) 9655 ); 9656 9657 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9658 9659 WriteLiteralTo(__razor_helper_writer, " <meta"); 9660 9661 WriteLiteralTo(__razor_helper_writer, " property=\"og:url\""); 9662 9663 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131293), Tuple.Create("\"", 131327) 9664 9665 #line 3042 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9666 , Tuple.Create(Tuple.Create("", 131303), Tuple.Create<System.Object, System.Int32>(Helpers.GetCurrentUrl() 9667 9668 #line default 9669 #line hidden 9670 , 131303), false) 9671 ); 9672 9673 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9674 9675 WriteLiteralTo(__razor_helper_writer, " <meta"); 9676 9677 WriteLiteralTo(__razor_helper_writer, " property=\"og:description\""); 9678 9679 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131371), Tuple.Create("\"", 131412) 9680 9681 #line 3043 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9682 , Tuple.Create(Tuple.Create("", 131381), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlEncode(teaser) 9683 9684 #line default 9685 #line hidden 9686 , 131381), false) 9687 ); 9688 9689 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9690 9691 WriteLiteralTo(__razor_helper_writer, " <meta"); 9692 9693 WriteLiteralTo(__razor_helper_writer, " property=\"og:type\""); 9694 9695 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131449), Tuple.Create("\"", 131464) 9696 9697 #line 3044 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9698 , Tuple.Create(Tuple.Create("", 131459), Tuple.Create<System.Object, System.Int32>(type 9699 9700 #line default 9701 #line hidden 9702 , 131459), false) 9703 ); 9704 9705 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9706 9707 WriteLiteralTo(__razor_helper_writer, " <meta"); 9708 9709 WriteLiteralTo(__razor_helper_writer, " property=\"og:locale\""); 9710 9711 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131503), Tuple.Create("\"", 131521) 9712 9713 #line 3045 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9714 , Tuple.Create(Tuple.Create("", 131513), Tuple.Create<System.Object, System.Int32>(culture 9715 9716 #line default 9717 #line hidden 9718 , 131513), false) 9719 ); 9720 9721 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9722 9723 9724 #line 3046 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9725 9726 9727 #line default 9728 #line hidden 9729 9730 #line 3046 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9731 WriteTo(__razor_helper_writer, SnippetEnd("OGMeta")); 9732 9733 9734 #line default 9735 #line hidden 9736 9737 #line 3046 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9738 9739 9740 9741 #line default 9742 #line hidden 9743 }); 9744 9745 #line 3047 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9746 } 9747 #line default 9748 #line hidden 9749 9750 9751 #line 3049 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9752 public RazorEngine.Templating.TemplateWriter RenderSocialMedia(bool isEmailTemplate = false, bool isToShare = false) 9753 { 9754 #line default 9755 #line hidden 9756 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9757 9758 #line 3050 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9759 9760 var page = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "GeneralSettings").ID); 9761 var generalSettings = Dynamicweb.Content.Items.Item.GetItemById(page.ItemType, page.ItemId); 9762 9763 if(generalSettings["SocialMedia"] != null) { 9764 var socialMedia = Dynamicweb.Content.Items.ItemList.GetItemListById(int.Parse(generalSettings["SocialMedia"].ToString())); 9765 9766 if(socialMedia.Relations.Any()) 9767 { 9768 if(!isEmailTemplate) 9769 { 9770 9771 9772 #line default 9773 #line hidden 9774 WriteLiteralTo(__razor_helper_writer, " "); 9775 9776 WriteLiteralTo(__razor_helper_writer, "<ul class=\"socialMedia\">\r\n"); 9777 9778 9779 #line 3062 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9780 } 9781 foreach (var r in socialMedia.Relations) 9782 { 9783 var socialNetwork = Dynamicweb.Content.Items.Item.GetItemById("SocialLinks", r.Id); 9784 var className = (socialNetwork["Icon"] ?? "").ToString(); 9785 var socialName = (socialNetwork["Name"] ?? "").ToString(); 9786 var socialLink = (socialNetwork["Link"] ?? "").ToString(); 9787 var shareLink = (socialNetwork["ShareURL"] ?? "").ToString(); 9788 9789 if (isEmailTemplate) 9790 { 9791 9792 9793 #line default 9794 #line hidden 9795 WriteLiteralTo(__razor_helper_writer, " "); 9796 9797 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 9798 9799 WriteLiteralTo(__razor_helper_writer, " <a"); 9800 9801 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 132996), Tuple.Create("\"", 133015) 9802 9803 #line 3074 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9804 , Tuple.Create(Tuple.Create("", 133004), Tuple.Create<System.Object, System.Int32>(socialName 9805 9806 #line default 9807 #line hidden 9808 , 133004), false) 9809 ); 9810 9811 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 9812 9813 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 133032), Tuple.Create("\"", 133050) 9814 9815 #line 3074 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9816 , Tuple.Create(Tuple.Create("", 133039), Tuple.Create<System.Object, System.Int32>(socialLink 9817 9818 #line default 9819 #line hidden 9820 , 133039), false) 9821 ); 9822 9823 WriteLiteralTo(__razor_helper_writer, ">"); 9824 9825 9826 #line 3074 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9827 WriteTo(__razor_helper_writer, socialName); 9828 9829 9830 #line default 9831 #line hidden 9832 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 9833 9834 WriteLiteralTo(__razor_helper_writer, " "); 9835 9836 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 9837 9838 9839 #line 3076 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9840 } 9841 else if(!isToShare || shareLink.IsNotNullOrEmpty()) 9842 { 9843 9844 9845 #line default 9846 #line hidden 9847 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 9848 9849 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 133282), Tuple.Create("\"", 133301) 9850 9851 #line 3080 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9852 , Tuple.Create(Tuple.Create("", 133290), Tuple.Create<System.Object, System.Int32>(socialName 9853 9854 #line default 9855 #line hidden 9856 , 133290), false) 9857 ); 9858 9859 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 133302), Tuple.Create("\"", 133323) 9860 9861 #line 3080 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9862 , Tuple.Create(Tuple.Create("", 133310), Tuple.Create<System.Object, System.Int32>(className 9863 9864 #line default 9865 #line hidden 9866 , 133310), false) 9867 , Tuple.Create(Tuple.Create(" ", 133320), Tuple.Create("fa", 133321), true) 9868 ); 9869 9870 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 9871 9872 WriteLiteralTo(__razor_helper_writer, " data-sharehref=\""); 9873 9874 9875 #line 3080 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9876 WriteTo(__razor_helper_writer, shareLink); 9877 9878 9879 #line default 9880 #line hidden 9881 9882 #line 3080 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9883 WriteTo(__razor_helper_writer, Helpers.GetCurrentUrl()); 9884 9885 9886 #line default 9887 #line hidden 9888 WriteLiteralTo(__razor_helper_writer, "\""); 9889 9890 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 133392), Tuple.Create("\"", 133410) 9891 9892 #line 3080 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9893 , Tuple.Create(Tuple.Create("", 133399), Tuple.Create<System.Object, System.Int32>(socialLink 9894 9895 #line default 9896 #line hidden 9897 , 133399), false) 9898 ); 9899 9900 WriteLiteralTo(__razor_helper_writer, "><span"); 9901 9902 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\""); 9903 9904 WriteLiteralTo(__razor_helper_writer, ">"); 9905 9906 9907 #line 3080 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9908 WriteTo(__razor_helper_writer, socialName); 9909 9910 9911 #line default 9912 #line hidden 9913 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n </li>\r\n"); 9914 9915 9916 #line 3082 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9917 } 9918 } 9919 if(!isEmailTemplate) 9920 { 9921 9922 9923 #line default 9924 #line hidden 9925 WriteLiteralTo(__razor_helper_writer, " "); 9926 9927 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 9928 9929 9930 #line 3087 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9931 } 9932 } 9933 } 9934 9935 9936 #line default 9937 #line hidden 9938 }); 9939 9940 #line 3090 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9941 } 9942 #line default 9943 #line hidden 9944 9945 9946 #line 3092 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9947 public RazorEngine.Templating.TemplateWriter RenderNoResults(string wording, string title = "", bool hasWrapper = false, string wrapperClass = "col-xs-12 noPadding" ) 9948 { 9949 #line default 9950 #line hidden 9951 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9952 9953 #line 3093 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9954 9955 if (hasWrapper) 9956 { 9957 9958 9959 #line default 9960 #line hidden 9961 WriteLiteralTo(__razor_helper_writer, " "); 9962 9963 WriteLiteralTo(__razor_helper_writer, "<div class=\"noResultsWrapper "); 9964 9965 9966 #line 3096 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9967 WriteTo(__razor_helper_writer, wrapperClass); 9968 9969 9970 #line default 9971 #line hidden 9972 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 9973 9974 9975 #line 3097 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9976 } 9977 if (title.IsNotNullOrEmpty()) 9978 { 9979 9980 9981 #line default 9982 #line hidden 9983 WriteLiteralTo(__razor_helper_writer, " <h2>"); 9984 9985 9986 #line 3100 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9987 WriteTo(__razor_helper_writer, title); 9988 9989 9990 #line default 9991 #line hidden 9992 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 9993 9994 9995 #line 3101 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9996 } 9997 9998 9999 #line default 10000 #line hidden 10001 WriteLiteralTo(__razor_helper_writer, " <p>"); 10002 10003 10004 #line 3102 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10005 WriteTo(__razor_helper_writer, wording); 10006 10007 10008 #line default 10009 #line hidden 10010 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 10011 10012 10013 #line 3103 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10014 if (hasWrapper) 10015 { 10016 10017 10018 #line default 10019 #line hidden 10020 WriteLiteralTo(__razor_helper_writer, " "); 10021 10022 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10023 10024 10025 #line 3106 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10026 } 10027 10028 10029 #line default 10030 #line hidden 10031 }); 10032 10033 #line 3107 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10034 } 10035 #line default 10036 #line hidden 10037 10038 10039 #line 3109 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10040 public RazorEngine.Templating.TemplateWriter RenderImage(ImageSettings imageSettings) 10041 { 10042 #line default 10043 #line hidden 10044 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10045 10046 #line 3110 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10047 10048 var imageMarkup = new StringBuilder(); 10049 var widthAndHeight = GetWidthAndHeightFromQueryString(imageSettings.Source); 10050 var widthAndHeightForMobile = GetWidthAndHeightFromQueryString(imageSettings.SourceForMobile, true); 10051 var widthAndHeightForTablet = GetWidthAndHeightFromQueryString(imageSettings.SourceForTablet, true); 10052 10053 if (!imageSettings.Attributes.ContainsKey("width") && widthAndHeight.ContainsKey("width") && widthAndHeight["width"].IsNotNullOrEmpty()) 10054 { 10055 imageSettings.Attributes.Add("width", widthAndHeight["width"]); 10056 } 10057 if (!imageSettings.Attributes.ContainsKey("height") && widthAndHeight.ContainsKey("height") && widthAndHeight["height"].IsNotNullOrEmpty()) 10058 { 10059 imageSettings.Attributes.Add("height", widthAndHeight["height"]); 10060 } 10061 if (!imageSettings.Attributes.ContainsKey("class")) 10062 { 10063 imageSettings.Attributes.Add("class", "img-responsive " + imageSettings.CssClass); 10064 } 10065 if (!imageSettings.Attributes.ContainsKey("src")) 10066 { 10067 imageSettings.Attributes.Add("src", imageSettings.Source); 10068 } 10069 if (!imageSettings.Attributes.ContainsKey("alt")) 10070 { 10071 imageSettings.Attributes.Add("alt", imageSettings.AltText); 10072 } 10073 if (!imageSettings.Attributes.ContainsKey("title")) 10074 { 10075 imageSettings.Attributes.Add("title", imageSettings.Title); 10076 } 10077 10078 if (imageSettings.IncludeWrapper) 10079 { 10080 var wrapperAttributes = new Dictionary<string, string>(); 10081 if (imageSettings.WrapperCssClass.IsNotNullOrEmpty()) 10082 { 10083 wrapperAttributes.Add("class", imageSettings.WrapperCssClass); 10084 } 10085 10086 imageMarkup.Append(GetHtmlElement(imageSettings.WrapperElement, wrapperAttributes)); 10087 } 10088 10089 if (imageSettings.Href.IsNotNullOrEmpty()) 10090 { 10091 var linkAttributes = new Dictionary<string, string> {{"href", imageSettings.Href}}; 10092 if (imageSettings.HrefCssClass.IsNotNullOrEmpty()) 10093 { 10094 linkAttributes.Add("class", imageSettings.HrefCssClass); 10095 } 10096 if (imageSettings.HrefTarget.IsNotNullOrEmpty()) 10097 { 10098 linkAttributes.Add("target", imageSettings.HrefTarget); 10099 } 10100 10101 imageMarkup.Append(GetHtmlElement("a", linkAttributes)); 10102 } 10103 10104 if (widthAndHeightForMobile.Any() || widthAndHeightForTablet.Any()) 10105 { 10106 imageMarkup.Append(GetHtmlElement("picture")); 10107 10108 imageMarkup.Append(GetHtmlElement("source")); 10109 10110 if (widthAndHeightForMobile.Any()) 10111 { 10112 imageMarkup.Append(GetHtmlElement("srcset", widthAndHeightForMobile)); 10113 } 10114 10115 if (widthAndHeightForTablet.Any()) 10116 { 10117 imageMarkup.Append(GetHtmlElement("srcset", widthAndHeightForTablet)); 10118 } 10119 10120 imageMarkup.Append(GetHtmlElement("source", true)); 10121 } 10122 10123 imageMarkup.Append(GetHtmlElement("img", imageSettings.Attributes, true)); 10124 10125 if (imageSettings.SourceForMobile.IsNotNullOrEmpty() || imageSettings.SourceForTablet.IsNotNullOrEmpty()) 10126 { 10127 imageMarkup.Append(GetHtmlElement("picture", true)); 10128 } 10129 10130 if (imageSettings.Href.IsNotNullOrEmpty()) 10131 { 10132 imageMarkup.Append(GetHtmlElement("a", true)); 10133 } 10134 10135 if (imageSettings.IncludeWrapper) 10136 { 10137 imageMarkup.Append(GetHtmlElement(imageSettings.WrapperElement, true)); 10138 } 10139 10140 10141 10142 #line default 10143 #line hidden 10144 10145 #line 3203 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10146 WriteTo(__razor_helper_writer, imageMarkup.ToString()); 10147 10148 10149 #line default 10150 #line hidden 10151 10152 #line 3203 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10153 10154 10155 10156 #line default 10157 #line hidden 10158 }); 10159 10160 #line 3204 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10161 } 10162 #line default 10163 #line hidden 10164 10165 10166 #line 3206 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10167 public RazorEngine.Templating.TemplateWriter RenderHtmlElementBetweenEachString(List<string> listOfStrings, string htmlElement = "br" ) 10168 { 10169 #line default 10170 #line hidden 10171 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10172 10173 #line 3207 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10174 10175 foreach (var str in listOfStrings) 10176 { 10177 if (str.IsNullOrEmpty()){continue;} 10178 10179 10180 #line default 10181 #line hidden 10182 10183 #line 3211 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10184 WriteTo(__razor_helper_writer, string.Concat(str, GetHtmlElement(htmlElement, true))); 10185 10186 10187 #line default 10188 #line hidden 10189 10190 #line 3211 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10191 10192 } 10193 10194 10195 #line default 10196 #line hidden 10197 }); 10198 10199 #line 3213 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10200 } 10201 #line default 10202 #line hidden 10203 10204 10205 #line 3215 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10206 public RazorEngine.Templating.TemplateWriter RenderProductPrice(string productPrice = "") 10207 { 10208 #line default 10209 #line hidden 10210 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10211 10212 #line 3216 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10213 10214 10215 10216 #line default 10217 #line hidden 10218 10219 #line 3217 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10220 WriteTo(__razor_helper_writer, GetProductPrice(productPrice)); 10221 10222 10223 #line default 10224 #line hidden 10225 10226 #line 3217 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10227 10228 10229 10230 #line default 10231 #line hidden 10232 }); 10233 10234 #line 3218 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10235 } 10236 #line default 10237 #line hidden 10238 10239 10240 #line 3220 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10241 public RazorEngine.Templating.TemplateWriter RenderNoErpConnectionMessage() 10242 { 10243 #line default 10244 #line hidden 10245 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10246 10247 #line 3221 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10248 10249 10250 10251 #line default 10252 #line hidden 10253 10254 #line 3222 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10255 WriteTo(__razor_helper_writer, GetNoErpConnectionMessage()); 10256 10257 10258 #line default 10259 #line hidden 10260 10261 #line 3222 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10262 10263 10264 10265 #line default 10266 #line hidden 10267 }); 10268 10269 #line 3223 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10270 } 10271 #line default 10272 #line hidden 10273 10274 10275 #line 3228 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10276 public RazorEngine.Templating.TemplateWriter RenderEmailHtmlHead() 10277 { 10278 #line default 10279 #line hidden 10280 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10281 10282 #line 3229 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10283 10284 var backgroundColor = GetPalletColorNumber(); 10285 var fontFamily = GetFontFamilyNumber(); 10286 var textColor = GetPalletColorNumber(1); 10287 10288 10289 10290 #line default 10291 #line hidden 10292 WriteLiteralTo(__razor_helper_writer, " <head>\r\n <title>Email</title>\r\n <meta"); 10293 10294 WriteLiteralTo(__razor_helper_writer, " http-equiv=\"content-type\""); 10295 10296 WriteLiteralTo(__razor_helper_writer, " content=\"text/html; charset=utf-8\""); 10297 10298 WriteLiteralTo(__razor_helper_writer, "/>\r\n <style"); 10299 10300 WriteLiteralTo(__razor_helper_writer, " type=\"text/css\""); 10301 10302 WriteLiteralTo(__razor_helper_writer, @"> 10303 #outlook a { 10304 padding: 0; 10305 margin: 0; 10306 } 10307 10308 body { 10309 width: 100% !important; 10310 -webkit-text-size-adjust: 100%; 10311 -ms-text-size-adjust: 100%; 10312 margin: 0; 10313 padding: 0; 10314 background-color: "); 10315 10316 10317 #line 3249 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10318 WriteTo(__razor_helper_writer, backgroundColor); 10319 10320 10321 #line default 10322 #line hidden 10323 WriteLiteralTo(__razor_helper_writer, @"; 10324 } 10325 10326 .ExternalClass { width: 100%; } 10327 10328 .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { 10329 mso-line-height-rule: exactly; 10330 line-height: 100%; 10331 } 10332 10333 .backgroundTable { 10334 margin: 0; 10335 padding: 0; 10336 width: 100% !important; 10337 mso-line-height-rule: exactly; 10338 line-height: 100% !important; 10339 } 10340 10341 img { 10342 outline: none; 10343 text-decoration: none; 10344 -ms-interpolation-mode: bicubic; 10345 display: block; 10346 border: 0 none; 10347 } 10348 10349 a img { border: 0 none; } 10350 10351 .image_fix { display: block; } 10352 10353 p { 10354 margin: 0 0; 10355 font-size: 14px; 10356 line-height: 20px; 10357 } 10358 10359 div { 10360 padding: 0; 10361 margin: 0; 10362 } 10363 10364 table td { 10365 border-collapse: collapse; 10366 font-size: 14px; 10367 "); 10368 10369 WriteLiteralTo(__razor_helper_writer, " "); 10370 10371 10372 #line 3293 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10373 WriteTo(__razor_helper_writer, fontFamily); 10374 10375 10376 #line default 10377 #line hidden 10378 WriteLiteralTo(__razor_helper_writer, @" 10379 } 10380 10381 table { 10382 border-collapse: collapse; 10383 mso-table-lspace: 0; 10384 mso-table-rspace: 0; 10385 } 10386 10387 a { 10388 text-decoration: underline; 10389 padding: 0; 10390 margin: 0; 10391 } 10392 10393 a:hover { text-decoration: none; } 10394 10395 p { 10396 font-size: 14px; 10397 line-height: 16px; 10398 line-height: 20px; 10399 margin: 0; 10400 "); 10401 10402 WriteLiteralTo(__razor_helper_writer, " "); 10403 10404 10405 #line 3315 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10406 WriteTo(__razor_helper_writer, fontFamily); 10407 10408 10409 #line default 10410 #line hidden 10411 WriteLiteralTo(__razor_helper_writer, "\r\n }\r\n \r\n /* CLIENT-SPECIFIC STYLES */\r\n \r\n " + 10412 " #outlook a { padding: 0; }\r\n \r\n /* Force Outlook to provide a \"v" + 10413 "iew in browser\" message */\r\n \r\n .ReadMsgBody { width: 100%; }\r\n " + 10414 " \r\n .ExternalClass { width: 100%; }\r\n \r\n /* Force Hotma" + 10415 "il to display emails at full width */\r\n \r\n .ExternalClass, .Extern" + 10416 "alClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .Externa" + 10417 "lClass div { line-height: 100%; }\r\n \r\n /* Force Hotmail to display" + 10418 " normal line spacing */\r\n \r\n body, table, td, a {\r\n " + 10419 " -webkit-text-size-adjust: 100%;\r\n -ms-text-size-adjust: 100%;\r\n " + 10420 " }\r\n \r\n /* Prevent WebKit and Windows mobile changing de" + 10421 "fault text sizes */\r\n \r\n table, td {\r\n mso-table-ls" + 10422 "pace: 0;\r\n mso-table-rspace: 0;\r\n }\r\n \r\n " + 10423 " /* Remove spacing between tables in Outlook 2007 and up */\r\n \r\n i" + 10424 "mg { -ms-interpolation-mode: bicubic; }\r\n \r\n /* Allow smoother ren" + 10425 "dering of resized image in Internet Explorer */\r\n \r\n /* RESET STYL" + 10426 "ES */\r\n \r\n body, body p {\r\n margin: 0;\r\n " + 10427 " padding: 0;\r\n }\r\n \r\n img {\r\n border" + 10428 ": 0;\r\n height: auto;\r\n line-height: 100%;\r\n " + 10429 " outline: none;\r\n text-decoration: none;\r\n }\r\n" + 10430 " \r\n table { border-collapse: collapse !important; }\r\n \r\n " + 10431 " body {\r\n height: 100% !important;\r\n margin: 0" + 10432 ";\r\n padding: 0;\r\n width: 100% !important;\r\n " + 10433 " }\r\n \r\n /* iOS BLUE LINKS */\r\n \r\n .appleBody a {" + 10434 " color: "); 10435 10436 10437 #line 3378 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10438 WriteTo(__razor_helper_writer, textColor); 10439 10440 10441 #line default 10442 #line hidden 10443 WriteLiteralTo(__razor_helper_writer, " text-decoration:none; }\r\n \r\n .appleFooter a { color: "); 10444 10445 10446 #line 3380 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10447 WriteTo(__razor_helper_writer, textColor); 10448 10449 10450 #line default 10451 #line hidden 10452 WriteLiteralTo(__razor_helper_writer, " text-decoration:none; }\r\n \r\n /* MOBILE STYLES */\r\n \r\n " + 10453 " "); 10454 10455 WriteLiteralTo(__razor_helper_writer, "@media screen and (max-width: 525px) {\r\n /* ALLOWS FOR FLUID TABLE" + 10456 "S */\r\n table[class=\"wrapper\"] { width: 100% !important; }\r\n \r\n" + 10457 " /* ADJUSTS LAYOUT OF LOGO IMAGE */\r\n td[class=\"lo" + 10458 "go\"] {\r\n text-align: left;\r\n padding: 20px" + 10459 " 0 20px 0 !important;\r\n }\r\n \r\n td[class=\"logo\"]" + 10460 " img { margin: 0 auto !important; }\r\n \r\n /* USE THESE CLASSES " + 10461 "TO HIDE CONTENT ON MOBILE */\r\n td[class=\"mobile-hide\"] { display:" + 10462 " none; }\r\n \r\n img[class=\"mobile-hide\"] { display: none !import" + 10463 "ant; }\r\n \r\n img[class=\"img-max\"] {\r\n max-wi" + 10464 "dth: 100% !important;\r\n width: 100% !important;\r\n " + 10465 " height: auto !important;\r\n }\r\n \r\n /* FU" + 10466 "LL-WIDTH TABLES */\r\n table[class=\"responsive-table\"],\r\n " + 10467 " .responsive-table {\r\n width: 100% !important;\r\n " + 10468 " display: table;\r\n }\r\n \r\n /* UTILITY" + 10469 " CLASSES FOR ADJUSTING PADDING ON MOBILE */\r\n td[class=\"padding\"]" + 10470 " { padding: 10px 5% 15px 5% !important; }\r\n \r\n td[class=\"paddi" + 10471 "ng-copy\"] {\r\n padding: 10px 5% 10px 5% !important;\r\n " + 10472 " text-align: center;\r\n }\r\n \r\n td[clas" + 10473 "s=\"padding-meta\"] {\r\n padding: 30px 5% 0 5% !important;\r\n " + 10474 " text-align: center;\r\n }\r\n \r\n td" + 10475 "[class=\"no-pad\"] { padding: 0 0 20px 0 !important; }\r\n \r\n td[c" + 10476 "lass=\"no-padding\"] { padding: 0 !important; }\r\n \r\n td[class=\"s" + 10477 "ection-padding\"] { padding: 50px 15px 50px 15px !important; }\r\n \r\n " + 10478 " td[class=\"section-padding-bottom-image\"] { padding: 10px 15px 0 15px !impor" + 10479 "tant; }\r\n \r\n /* ADJUST BUTTONS ON MOBILE */\r\n t" + 10480 "d[class=\"mobile-wrapper\"] { padding: 10px 5% 15px 5% !important; }\r\n \r\n " + 10481 " table[class=\"mobile-button-container\"] {\r\n margin: " + 10482 "0 auto;\r\n width: 100% !important;\r\n }\r\n \r\n " + 10483 " a[class=\"mobile-button\"] {\r\n width: 80% !impor" + 10484 "tant;\r\n padding: 4px !important;\r\n border:" + 10485 " 0 !important;\r\n font-size: 16px !important;\r\n " + 10486 " border-radius: 3px;\r\n -webkit-border-radius: 3px;\r\n " + 10487 " -moz-border-radius: 3px;\r\n }\r\n \r\n " + 10488 " .clearLeft { clear: left; }\r\n \r\n .preheader {\r\n " + 10489 " display: none !important;\r\n visibility: hidden;\r\n " + 10490 " opacity: 0;\r\n color: transparent;\r\n " + 10491 " height: 0;\r\n width: 0;\r\n }\r\n " + 10492 " }\r\n </style>\r\n </head>\r\n"); 10493 10494 10495 #line 3466 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10496 10497 10498 #line default 10499 #line hidden 10500 }); 10501 10502 #line 3466 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10503 } 10504 #line default 10505 #line hidden 10506 10507 10508 #line 3468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10509 public RazorEngine.Templating.TemplateWriter RenderEmailFooter(bool renderEmailFooter = true, bool renderSocialMedia = true) 10510 { 10511 #line default 10512 #line hidden 10513 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10514 10515 #line 3469 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10516 10517 if (renderEmailFooter) 10518 { 10519 var copyrightMessage = Pageview != null ? string.Concat(Pageview.Area.Item["CompanyName"], " ", Pageview.Area.Item["Copyright"]) : string.Concat(Translate("Company Name"), " ", Translate("Inc. All rights reserved")); 10520 var backgroundColor = GetPalletColorNumber(); 10521 var fontSize = GetFontSize(12); 10522 var fontFamily = GetFontFamilyNumber(); 10523 var fontColor = GetPalletColorNumber(1); 10524 10525 10526 10527 #line default 10528 #line hidden 10529 WriteLiteralTo(__razor_helper_writer, " <table"); 10530 10531 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 10532 10533 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 10534 10535 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 10536 10537 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 10538 10539 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n <td"); 10540 10541 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 146796), Tuple.Create("\"", 146822) 10542 10543 #line 3480 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10544 , Tuple.Create(Tuple.Create("", 146806), Tuple.Create<System.Object, System.Int32>(backgroundColor 10545 10546 #line default 10547 #line hidden 10548 , 146806), false) 10549 ); 10550 10551 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10552 10553 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 20px 0;\""); 10554 10555 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 10556 10557 WriteLiteralTo(__razor_helper_writer, " width=\"500\""); 10558 10559 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 10560 10561 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 10562 10563 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 10564 10565 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10566 10567 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 10568 10569 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10570 10571 10572 #line 3482 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10573 10574 10575 #line default 10576 #line hidden 10577 10578 #line 3482 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10579 if (renderSocialMedia) 10580 { 10581 10582 10583 #line default 10584 #line hidden 10585 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 10586 10587 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10588 10589 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 147170), Tuple.Create("\"", 147236) 10590 10591 #line 3485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10592 , Tuple.Create(Tuple.Create("", 147178), Tuple.Create<System.Object, System.Int32>(fontSize 10593 10594 #line default 10595 #line hidden 10596 , 147178), false) 10597 , Tuple.Create(Tuple.Create(" ", 147187), Tuple.Create("line-height:", 147188), true) 10598 , Tuple.Create(Tuple.Create(" ", 147200), Tuple.Create("18px;", 147201), true) 10599 10600 #line 3485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10601 , Tuple.Create(Tuple.Create(" ", 147206), Tuple.Create<System.Object, System.Int32>(fontFamily 10602 10603 #line default 10604 #line hidden 10605 , 147207), false) 10606 , Tuple.Create(Tuple.Create(" ", 147218), Tuple.Create("color:", 147219), true) 10607 10608 #line 3485 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10609 , Tuple.Create(Tuple.Create(" ", 147225), Tuple.Create<System.Object, System.Int32>(fontColor 10610 10611 #line default 10612 #line hidden 10613 , 147226), false) 10614 ); 10615 10616 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10617 10618 WriteLiteralTo(__razor_helper_writer, " "); 10619 10620 10621 #line 3486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10622 WriteTo(__razor_helper_writer, RenderSocialMedia(true)); 10623 10624 10625 #line default 10626 #line hidden 10627 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr" + 10628 ">\r\n"); 10629 10630 WriteLiteralTo(__razor_helper_writer, " <tr><td"); 10631 10632 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 10633 10634 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</td></tr>\r\n"); 10635 10636 10637 #line 3490 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10638 } 10639 10640 #line default 10641 #line hidden 10642 WriteLiteralTo(__razor_helper_writer, "\r\n <tr>\r\n <td"); 10643 10644 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 10645 10646 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 147571), Tuple.Create("\"", 147637) 10647 10648 #line 3492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10649 , Tuple.Create(Tuple.Create("", 147579), Tuple.Create<System.Object, System.Int32>(fontSize 10650 10651 #line default 10652 #line hidden 10653 , 147579), false) 10654 , Tuple.Create(Tuple.Create(" ", 147588), Tuple.Create("line-height:", 147589), true) 10655 , Tuple.Create(Tuple.Create(" ", 147601), Tuple.Create("18px;", 147602), true) 10656 10657 #line 3492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10658 , Tuple.Create(Tuple.Create(" ", 147607), Tuple.Create<System.Object, System.Int32>(fontFamily 10659 10660 #line default 10661 #line hidden 10662 , 147608), false) 10663 , Tuple.Create(Tuple.Create(" ", 147619), Tuple.Create("color:", 147620), true) 10664 10665 #line 3492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10666 , Tuple.Create(Tuple.Create(" ", 147626), Tuple.Create<System.Object, System.Int32>(fontColor 10667 10668 #line default 10669 #line hidden 10670 , 147627), false) 10671 ); 10672 10673 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 10674 10675 WriteLiteralTo(__razor_helper_writer, " class=\"appleFooter\""); 10676 10677 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 147702), Tuple.Create("\"", 147727) 10678 , Tuple.Create(Tuple.Create("", 147710), Tuple.Create("color:", 147710), true) 10679 10680 #line 3493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10681 , Tuple.Create(Tuple.Create(" ", 147716), Tuple.Create<System.Object, System.Int32>(fontColor 10682 10683 #line default 10684 #line hidden 10685 , 147717), false) 10686 ); 10687 10688 WriteLiteralTo(__razor_helper_writer, ">&copy; "); 10689 10690 10691 #line 3493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10692 WriteTo(__razor_helper_writer, DateTime.Now.Year); 10693 10694 10695 #line default 10696 #line hidden 10697 WriteLiteralTo(__razor_helper_writer, " "); 10698 10699 10700 #line 3493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10701 WriteTo(__razor_helper_writer, copyrightMessage); 10702 10703 10704 #line default 10705 #line hidden 10706 WriteLiteralTo(__razor_helper_writer, "</span><br/>\r\n </td>\r\n " + 10707 "</tr>\r\n </table>\r\n </td>\r\n " + 10708 " </tr>\r\n </table>\r\n"); 10709 10710 10711 #line 3500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10712 } 10713 10714 10715 10716 #line default 10717 #line hidden 10718 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.getElementById(\"remove\").style.display = \"" + 10719 "none\";\r\n document.getElementById(\"remove2\").style.display = \"none\";\r\n" + 10720 " </script>\r\n"); 10721 10722 10723 #line 3506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10724 10725 10726 #line default 10727 #line hidden 10728 }); 10729 10730 #line 3506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10731 } 10732 #line default 10733 #line hidden 10734 10735 10736 #line 3508 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10737 public RazorEngine.Templating.TemplateWriter RenderEmailHeader(string receiptUrl, string preHeader, bool showLinkToPage = true) 10738 { 10739 #line default 10740 #line hidden 10741 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10742 10743 #line 3509 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10744 10745 var companyName = Pageview != null ? Pageview.Area.Item["CompanyName"] : Translate("Company Name"); 10746 var websiteUrl = Pageview != null ? string.Concat(Helpers.GetCurrentUrl(true),"/Default.aspx?AreaId=", Pageview.Area.ID) : Helpers.GetCurrentUrl(true) ; 10747 var designName = Pageview != null ? Pageview.Layout.Design.Name : "CHG"; // We need to manually update this folder name for when the helper is used outside of the context of a Design, like the Email notifications triggered by Order State or Scheduled tasks 10748 var fontSize = GetFontSize(14); 10749 var fontFamily = GetFontFamilyNumber(2); 10750 var fontColor = GetPalletColorNumber(1); 10751 var backgroundColor = GetPalletColorNumber(2); 10752 10753 if (preHeader.IsNotNullOrEmpty()) 10754 { 10755 10756 10757 #line default 10758 #line hidden 10759 10760 #line 3520 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10761 WriteTo(__razor_helper_writer, SnippetStart("preHeader")); 10762 10763 10764 #line default 10765 #line hidden 10766 10767 #line 3520 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10768 10769 10770 10771 #line default 10772 #line hidden 10773 WriteLiteralTo(__razor_helper_writer, " <div"); 10774 10775 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 149130), Tuple.Create("\"", 149231) 10776 10777 #line 3521 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10778 , Tuple.Create(Tuple.Create("", 149138), Tuple.Create<System.Object, System.Int32>(fontSize 10779 10780 #line default 10781 #line hidden 10782 , 149138), false) 10783 10784 #line 3521 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10785 , Tuple.Create(Tuple.Create(" ", 149147), Tuple.Create<System.Object, System.Int32>(fontFamily 10786 10787 #line default 10788 #line hidden 10789 , 149148), false) 10790 , Tuple.Create(Tuple.Create(" ", 149159), Tuple.Create("text-decoration:none;", 149160), true) 10791 , Tuple.Create(Tuple.Create(" ", 149181), Tuple.Create("font-size:", 149182), true) 10792 , Tuple.Create(Tuple.Create(" ", 149192), Tuple.Create("1px;", 149193), true) 10793 , Tuple.Create(Tuple.Create(" ", 149197), Tuple.Create("color:", 149198), true) 10794 , Tuple.Create(Tuple.Create(" ", 149204), Tuple.Create("#ffffff;", 149205), true) 10795 , Tuple.Create(Tuple.Create(" ", 149213), Tuple.Create("line-height:", 149214), true) 10796 , Tuple.Create(Tuple.Create(" ", 149226), Tuple.Create("1px;", 149227), true) 10797 ); 10798 10799 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 10800 10801 WriteLiteralTo(__razor_helper_writer, " style=\"color: #ffffff; font-size: 1px;\""); 10802 10803 WriteLiteralTo(__razor_helper_writer, ">"); 10804 10805 10806 #line 3522 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10807 WriteTo(__razor_helper_writer, preHeader); 10808 10809 10810 #line default 10811 #line hidden 10812 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n"); 10813 10814 10815 #line 3524 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10816 10817 10818 #line default 10819 #line hidden 10820 10821 #line 3524 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10822 WriteTo(__razor_helper_writer, SnippetEnd("preHeader")); 10823 10824 10825 #line default 10826 #line hidden 10827 10828 #line 3524 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10829 10830 } 10831 10832 10833 10834 #line default 10835 #line hidden 10836 WriteLiteralTo(__razor_helper_writer, " <table"); 10837 10838 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 10839 10840 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 10841 10842 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 10843 10844 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 10845 10846 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10847 10848 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10849 10850 10851 #line 3528 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10852 10853 10854 #line default 10855 #line hidden 10856 10857 #line 3528 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10858 if (showLinkToPage && receiptUrl.IsNotNullOrEmpty()) 10859 { 10860 10861 10862 #line default 10863 #line hidden 10864 WriteLiteralTo(__razor_helper_writer, " <tr"); 10865 10866 WriteLiteralTo(__razor_helper_writer, " id=\"remove2\""); 10867 10868 WriteLiteralTo(__razor_helper_writer, ">\r\n <td"); 10869 10870 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 149623), Tuple.Create("\"", 149692) 10871 10872 #line 3531 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10873 , Tuple.Create(Tuple.Create("", 149631), Tuple.Create<System.Object, System.Int32>(fontSize 10874 10875 #line default 10876 #line hidden 10877 , 149631), false) 10878 10879 #line 3531 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10880 , Tuple.Create(Tuple.Create(" ", 149640), Tuple.Create<System.Object, System.Int32>(fontFamily 10881 10882 #line default 10883 #line hidden 10884 , 149641), false) 10885 , Tuple.Create(Tuple.Create(" ", 149652), Tuple.Create("color:", 149653), true) 10886 10887 #line 3531 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10888 , Tuple.Create(Tuple.Create(" ", 149659), Tuple.Create<System.Object, System.Int32>(fontColor 10889 10890 #line default 10891 #line hidden 10892 , 149660), false) 10893 , Tuple.Create(Tuple.Create(" ", 149670), Tuple.Create("text-decoration:none;", 149671), true) 10894 ); 10895 10896 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 10897 10898 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 10899 10900 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10901 10902 WriteLiteralTo(__razor_helper_writer, ">\r\n <br/>"); 10903 10904 10905 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10906 WriteTo(__razor_helper_writer, Translate("If this email is not being shown properly, click")); 10907 10908 10909 #line default 10910 #line hidden 10911 WriteLiteralTo(__razor_helper_writer, " <a"); 10912 10913 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 149830), Tuple.Create("\"", 149904) 10914 10915 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10916 , Tuple.Create(Tuple.Create("", 149838), Tuple.Create<System.Object, System.Int32>(fontSize 10917 10918 #line default 10919 #line hidden 10920 , 149838), false) 10921 10922 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10923 , Tuple.Create(Tuple.Create(" ", 149847), Tuple.Create<System.Object, System.Int32>(fontFamily 10924 10925 #line default 10926 #line hidden 10927 , 149848), false) 10928 , Tuple.Create(Tuple.Create(" ", 149859), Tuple.Create("color:", 149860), true) 10929 10930 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10931 , Tuple.Create(Tuple.Create(" ", 149866), Tuple.Create<System.Object, System.Int32>(fontColor 10932 10933 #line default 10934 #line hidden 10935 , 149867), false) 10936 , Tuple.Create(Tuple.Create(" ", 149877), Tuple.Create("text-decoration:underline;", 149878), true) 10937 ); 10938 10939 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 149905), Tuple.Create("\"", 149923) 10940 10941 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10942 , Tuple.Create(Tuple.Create("", 149912), Tuple.Create<System.Object, System.Int32>(receiptUrl 10943 10944 #line default 10945 #line hidden 10946 , 149912), false) 10947 ); 10948 10949 WriteLiteralTo(__razor_helper_writer, ">"); 10950 10951 10952 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10953 WriteTo(__razor_helper_writer, Translate("here")); 10954 10955 10956 #line default 10957 #line hidden 10958 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </td>\r\n </tr>\r\n"); 10959 10960 10961 #line 3535 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10962 } 10963 10964 #line default 10965 #line hidden 10966 WriteLiteralTo(__razor_helper_writer, "\r\n <tr>\r\n <td"); 10967 10968 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 150051), Tuple.Create("\"", 150077) 10969 10970 #line 3537 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10971 , Tuple.Create(Tuple.Create("", 150061), Tuple.Create<System.Object, System.Int32>(backgroundColor 10972 10973 #line default 10974 #line hidden 10975 , 150061), false) 10976 ); 10977 10978 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 10979 10980 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10981 10982 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 0 15px 0 15px;\""); 10983 10984 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 10985 10986 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 10987 10988 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 10989 10990 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 10991 10992 WriteLiteralTo(__razor_helper_writer, " width=\"500\""); 10993 10994 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 10995 10996 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n <td"); 10997 10998 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 20px 0 20px 0;\""); 10999 11000 WriteLiteralTo(__razor_helper_writer, " class=\"logo\""); 11001 11002 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 11003 11004 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 11005 11006 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 11007 11008 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 11009 11010 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 11011 11012 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n " + 11013 " <td"); 11014 11015 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 150580), Tuple.Create("\"", 150606) 11016 11017 #line 3544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11018 , Tuple.Create(Tuple.Create("", 150590), Tuple.Create<System.Object, System.Int32>(backgroundColor 11019 11020 #line default 11021 #line hidden 11022 , 150590), false) 11023 ); 11024 11025 WriteLiteralTo(__razor_helper_writer, " width=\"300\""); 11026 11027 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 11028 11029 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 11030 11031 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 150685), Tuple.Create("\"", 150703) 11032 11033 #line 3545 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11034 , Tuple.Create(Tuple.Create("", 150692), Tuple.Create<System.Object, System.Int32>(websiteUrl 11035 11036 #line default 11037 #line hidden 11038 , 150692), false) 11039 ); 11040 11041 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 11042 11043 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11044 11045 11046 #line 3546 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11047 11048 11049 #line default 11050 #line hidden 11051 11052 #line 3546 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11053 var imageSrc = string.Concat(Helpers.GetCurrentUrl(true),"/Files/Templates/Designs/", designName, "/images/newsletter/newsletterLogo.png"); 11054 11055 #line default 11056 #line hidden 11057 WriteLiteralTo(__razor_helper_writer, "\r\n <img"); 11058 11059 WriteLiteralTo(__razor_helper_writer, " style=\"max-width: 100%\""); 11060 11061 WriteLiteralTo(__razor_helper_writer, " class=\"img-max\""); 11062 11063 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 151016), Tuple.Create("\"", 151031) 11064 11065 #line 3547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11066 , Tuple.Create(Tuple.Create("", 151022), Tuple.Create<System.Object, System.Int32>(imageSrc 11067 11068 #line default 11069 #line hidden 11070 , 151022), false) 11071 ); 11072 11073 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 151032), Tuple.Create("\"", 151050) 11074 11075 #line 3547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11076 , Tuple.Create(Tuple.Create("", 151038), Tuple.Create<System.Object, System.Int32>(companyName 11077 11078 #line default 11079 #line hidden 11080 , 151038), false) 11081 ); 11082 11083 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 151051), Tuple.Create("\"", 151071) 11084 11085 #line 3547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11086 , Tuple.Create(Tuple.Create("", 151059), Tuple.Create<System.Object, System.Int32>(companyName 11087 11088 #line default 11089 #line hidden 11090 , 151059), false) 11091 ); 11092 11093 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n " + 11094 " </td>\r\n <td"); 11095 11096 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 151228), Tuple.Create("\"", 151254) 11097 11098 #line 3550 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11099 , Tuple.Create(Tuple.Create("", 151238), Tuple.Create<System.Object, System.Int32>(backgroundColor 11100 11101 #line default 11102 #line hidden 11103 , 151238), false) 11104 ); 11105 11106 WriteLiteralTo(__razor_helper_writer, " width=\"200\""); 11107 11108 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 11109 11110 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-hide\""); 11111 11112 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 11113 11114 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 11115 11116 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 11117 11118 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 11119 11120 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n " + 11121 " <td"); 11122 11123 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 11124 11125 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 151535), Tuple.Create("\"", 151624) 11126 , Tuple.Create(Tuple.Create("", 151543), Tuple.Create("padding:", 151543), true) 11127 , Tuple.Create(Tuple.Create(" ", 151551), Tuple.Create("0", 151552), true) 11128 , Tuple.Create(Tuple.Create(" ", 151553), Tuple.Create("0", 151554), true) 11129 , Tuple.Create(Tuple.Create(" ", 151555), Tuple.Create("5px", 151556), true) 11130 , Tuple.Create(Tuple.Create(" ", 151559), Tuple.Create("0;", 151560), true) 11131 11132 #line 3553 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11133 , Tuple.Create(Tuple.Create(" ", 151562), Tuple.Create<System.Object, System.Int32>(fontSize 11134 11135 #line default 11136 #line hidden 11137 , 151563), false) 11138 11139 #line 3553 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11140 , Tuple.Create(Tuple.Create(" ", 151572), Tuple.Create<System.Object, System.Int32>(fontFamily 11141 11142 #line default 11143 #line hidden 11144 , 151573), false) 11145 , Tuple.Create(Tuple.Create(" ", 151584), Tuple.Create("color:", 151585), true) 11146 11147 #line 3553 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11148 , Tuple.Create(Tuple.Create(" ", 151591), Tuple.Create<System.Object, System.Int32>(fontColor 11149 11150 #line default 11151 #line hidden 11152 , 151592), false) 11153 , Tuple.Create(Tuple.Create(" ", 151602), Tuple.Create("text-decoration:none;", 151603), true) 11154 ); 11155 11156 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 11157 11158 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 151693), Tuple.Create("\"", 151740) 11159 , Tuple.Create(Tuple.Create("", 151701), Tuple.Create("color:", 151701), true) 11160 11161 #line 3554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11162 , Tuple.Create(Tuple.Create(" ", 151707), Tuple.Create<System.Object, System.Int32>(fontColor 11163 11164 #line default 11165 #line hidden 11166 , 151708), false) 11167 , Tuple.Create(Tuple.Create(" ", 151718), Tuple.Create("text-decoration:none;", 151719), true) 11168 ); 11169 11170 WriteLiteralTo(__razor_helper_writer, @"></span> 11171 </td> 11172 </tr> 11173 </table> 11174 </td> 11175 </tr> 11176 </table> 11177 </td> 11178 </tr> 11179 </table> 11180 </div> 11181 </td> 11182 </tr> 11183 </table> 11184 "); 11185 11186 11187 #line 3568 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11188 11189 11190 #line default 11191 #line hidden 11192 }); 11193 11194 #line 3568 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11195 } 11196 #line default 11197 #line hidden 11198 11199 11200 #line 3570 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11201 public RazorEngine.Templating.TemplateWriter RenderEmailWrapperStart(int spacingHeight = 0) 11202 { 11203 #line default 11204 #line hidden 11205 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11206 11207 #line 3571 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11208 11209 11210 11211 #line default 11212 #line hidden 11213 WriteLiteralTo(__razor_helper_writer, " "); 11214 11215 WriteLiteralTo(__razor_helper_writer, "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"backgroundT" + 11216 "able\">\r\n"); 11217 11218 11219 #line 3573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11220 11221 11222 #line default 11223 #line hidden 11224 11225 #line 3573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11226 WriteTo(__razor_helper_writer, RenderTableRowSpacer(spacingHeight)); 11227 11228 11229 #line default 11230 #line hidden 11231 11232 #line 3573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11233 11234 11235 11236 #line default 11237 #line hidden 11238 WriteLiteralTo(__razor_helper_writer, " "); 11239 11240 WriteLiteralTo(__razor_helper_writer, "<tr>\r\n"); 11241 11242 WriteLiteralTo(__razor_helper_writer, " "); 11243 11244 WriteLiteralTo(__razor_helper_writer, "<td align=\"center\" style=\"padding: 0 15px 30px 15px;\" class=\"section-padding\">\r\n"); 11245 11246 11247 #line 3576 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11248 11249 11250 #line default 11251 #line hidden 11252 }); 11253 11254 #line 3576 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11255 } 11256 #line default 11257 #line hidden 11258 11259 11260 #line 3578 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11261 public RazorEngine.Templating.TemplateWriter RenderEmailWrapperEnd() 11262 { 11263 #line default 11264 #line hidden 11265 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11266 11267 #line 3579 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11268 11269 11270 11271 #line default 11272 #line hidden 11273 WriteLiteralTo(__razor_helper_writer, " "); 11274 11275 WriteLiteralTo(__razor_helper_writer, "</td>\r\n"); 11276 11277 WriteLiteralTo(__razor_helper_writer, " "); 11278 11279 WriteLiteralTo(__razor_helper_writer, "</tr>\r\n"); 11280 11281 WriteLiteralTo(__razor_helper_writer, " "); 11282 11283 WriteLiteralTo(__razor_helper_writer, "</table>\r\n"); 11284 11285 11286 #line 3583 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11287 11288 11289 #line default 11290 #line hidden 11291 }); 11292 11293 #line 3583 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11294 } 11295 #line default 11296 #line hidden 11297 11298 11299 #line 3585 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11300 public RazorEngine.Templating.TemplateWriter RenderEmailButton(string href, string text, Dictionary<string, string> options = null) 11301 { 11302 #line default 11303 #line hidden 11304 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11305 11306 #line 3586 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11307 11308 if (href.IsNotNullOrEmpty() && text.IsNotNullOrEmpty()) 11309 { 11310 var width = options != null && options.ContainsKey("width") ? options["width"] : "120px"; 11311 var height = options != null && options.ContainsKey("height") ? options["height"] : "40px"; 11312 var background = options != null && options.ContainsKey("background") ? options["background"] : "#256F9C"; 11313 var border = options != null && options.ContainsKey("border") ? options["border"] : "1px solid ffffff"; 11314 var color = options != null && options.ContainsKey("color") ? options["color"] : "#ffffff"; 11315 var fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"] : "Helvetica, Arial, sans-serif"; 11316 var fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"] : "14px"; 11317 var fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"] : "normal"; 11318 var textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"] : "center"; 11319 var textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"] : "none"; 11320 11321 var rect = "style=\"width:" + width + ";height:" + height + ";border:" + border + ";color:" + color + ";v-text-anchor:middle; \" fillcolor=\"" + background + "\""; 11322 var anchor = "width:" + width + ";height:" + height + ";line-height:" + height + ";background:" + background + ";border:" + border + ";color:" + color + ";font-family:" + fontFamily + ";font-size:" + fontSize + ";font-style:" + fontStyle + ";text-align:" + textAlign + ";text-decoration:" + textDecoration + ";"; 11323 11324 11325 11326 #line default 11327 #line hidden 11328 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <!--[if mso]>\r\n <v:rect xml" + 11329 "ns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:w" + 11330 "ord\" href=\""); 11331 11332 11333 #line 3605 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11334 WriteTo(__razor_helper_writer, href); 11335 11336 11337 #line default 11338 #line hidden 11339 WriteLiteralTo(__razor_helper_writer, "\" "); 11340 11341 11342 #line 3605 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11343 WriteTo(__razor_helper_writer, rect); 11344 11345 11346 #line default 11347 #line hidden 11348 WriteLiteralTo(__razor_helper_writer, ">\r\n <w:anchorlock/>\r\n <center>\r\n " + 11349 " <![endif]-->\r\n <a"); 11350 11351 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 11352 11353 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 11354 11355 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 154953), Tuple.Create("\"", 154965) 11356 11357 #line 3609 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11358 , Tuple.Create(Tuple.Create("", 154960), Tuple.Create<System.Object, System.Int32>(href 11359 11360 #line default 11361 #line hidden 11362 , 154960), false) 11363 ); 11364 11365 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 154966), Tuple.Create("\"", 155036) 11366 , Tuple.Create(Tuple.Create("", 154974), Tuple.Create("-webkit-text-size-adjust:", 154974), true) 11367 , Tuple.Create(Tuple.Create(" ", 154999), Tuple.Create("none;", 155000), true) 11368 , Tuple.Create(Tuple.Create(" ", 155005), Tuple.Create("display:", 155006), true) 11369 , Tuple.Create(Tuple.Create(" ", 155014), Tuple.Create("inline-block;", 155015), true) 11370 11371 #line 3609 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11372 , Tuple.Create(Tuple.Create(" ", 155028), Tuple.Create<System.Object, System.Int32>(anchor 11373 11374 #line default 11375 #line hidden 11376 , 155029), false) 11377 ); 11378 11379 WriteLiteralTo(__razor_helper_writer, ">"); 11380 11381 11382 #line 3609 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11383 WriteTo(__razor_helper_writer, text); 11384 11385 11386 #line default 11387 #line hidden 11388 WriteLiteralTo(__razor_helper_writer, "</a>\r\n <!--[if mso]>\r\n </center>\r\n " + 11389 " </v:rect>\r\n <![endif]-->\r\n </div>\r\n"); 11390 11391 11392 #line 3615 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11393 } 11394 11395 11396 #line default 11397 #line hidden 11398 }); 11399 11400 #line 3616 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11401 } 11402 #line default 11403 #line hidden 11404 11405 11406 #line 3618 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11407 public RazorEngine.Templating.TemplateWriter RenderEmailParagraphImage(string imageUrl, string imageTitle, string imageHref, string imageAlignment = "image-top", int imageWidth = 600) 11408 { 11409 #line default 11410 #line hidden 11411 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11412 11413 #line 3619 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11414 11415 if (imageUrl.IsNotNullOrEmpty()) 11416 { 11417 switch (imageAlignment) 11418 { 11419 case "image-left-column": 11420 11421 11422 #line default 11423 #line hidden 11424 WriteLiteralTo(__razor_helper_writer, " <td"); 11425 11426 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 11427 11428 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 11429 11430 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11431 11432 WriteLiteralTo(__razor_helper_writer, " "); 11433 11434 11435 #line 3626 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11436 WriteTo(__razor_helper_writer, RenderEmailParagraphImageTag(imageUrl, imageTitle, imageHref, 300)); 11437 11438 11439 #line default 11440 #line hidden 11441 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 11442 11443 11444 #line 3628 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11445 11446 11447 #line default 11448 #line hidden 11449 11450 #line 3628 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11451 WriteTo(__razor_helper_writer, RenderTableCellSpacer()); 11452 11453 11454 #line default 11455 #line hidden 11456 11457 #line 3628 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11458 11459 break; 11460 case "image-right-column": 11461 11462 11463 #line default 11464 #line hidden 11465 11466 #line 3631 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11467 WriteTo(__razor_helper_writer, RenderTableCellSpacer()); 11468 11469 11470 #line default 11471 #line hidden 11472 11473 #line 3631 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11474 11475 11476 11477 #line default 11478 #line hidden 11479 WriteLiteralTo(__razor_helper_writer, " <td"); 11480 11481 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 11482 11483 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 11484 11485 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11486 11487 WriteLiteralTo(__razor_helper_writer, " "); 11488 11489 11490 #line 3633 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11491 WriteTo(__razor_helper_writer, RenderEmailParagraphImageTag(imageUrl, imageTitle, imageHref, 300)); 11492 11493 11494 #line default 11495 #line hidden 11496 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 11497 11498 11499 #line 3635 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11500 break; 11501 case "image-top": 11502 11503 11504 #line default 11505 #line hidden 11506 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 11507 11508 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 11509 11510 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 11511 11512 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11513 11514 WriteLiteralTo(__razor_helper_writer, " "); 11515 11516 11517 #line 3639 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11518 WriteTo(__razor_helper_writer, RenderEmailParagraphImageTag(imageUrl, imageTitle, imageHref)); 11519 11520 11521 #line default 11522 #line hidden 11523 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr>\r\n"); 11524 11525 11526 #line 3642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11527 11528 11529 #line default 11530 #line hidden 11531 11532 #line 3642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11533 WriteTo(__razor_helper_writer, RenderTableRowSpacer(10)); 11534 11535 11536 #line default 11537 #line hidden 11538 11539 #line 3642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11540 11541 break; 11542 default: 11543 throw new NotSupportedException(string.Format("Unsupported item alignment: {0}.", imageAlignment)); 11544 } 11545 } 11546 11547 11548 #line default 11549 #line hidden 11550 }); 11551 11552 #line 3648 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11553 } 11554 #line default 11555 #line hidden 11556 11557 11558 #line 3650 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11559 public RazorEngine.Templating.TemplateWriter RenderEmailParagraphImageTag(string imageUrl, string imageTitle, string imageHref, int imageWidth = 600) 11560 { 11561 #line default 11562 #line hidden 11563 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11564 11565 #line 3651 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11566 11567 if (imageHref.IsNotNullOrEmpty()) 11568 { 11569 11570 11571 #line default 11572 #line hidden 11573 WriteLiteralTo(__razor_helper_writer, " "); 11574 11575 WriteLiteralTo(__razor_helper_writer, "<a target=\"_blank\" href=\""); 11576 11577 11578 #line 3654 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11579 WriteTo(__razor_helper_writer, imageHref); 11580 11581 11582 #line default 11583 #line hidden 11584 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 11585 11586 11587 #line 3655 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11588 } 11589 11590 11591 #line default 11592 #line hidden 11593 WriteLiteralTo(__razor_helper_writer, " <img"); 11594 11595 WriteLiteralTo(__razor_helper_writer, " class=\"img-max\""); 11596 11597 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 156861), Tuple.Create("\"", 156906) 11598 11599 #line 3656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11600 , Tuple.Create(Tuple.Create("", 156867), Tuple.Create<System.Object, System.Int32>(Images.GetImage(imageUrl,imageWidth,0) 11601 11602 #line default 11603 #line hidden 11604 , 156867), false) 11605 ); 11606 11607 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 156907), Tuple.Create("\"", 156924) 11608 11609 #line 3656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11610 , Tuple.Create(Tuple.Create("", 156913), Tuple.Create<System.Object, System.Int32>(imageTitle 11611 11612 #line default 11613 #line hidden 11614 , 156913), false) 11615 ); 11616 11617 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 156925), Tuple.Create("\"", 156944) 11618 11619 #line 3656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11620 , Tuple.Create(Tuple.Create("", 156933), Tuple.Create<System.Object, System.Int32>(imageTitle 11621 11622 #line default 11623 #line hidden 11624 , 156933), false) 11625 ); 11626 11627 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 11628 11629 11630 #line 3657 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11631 if (imageHref.IsNotNullOrEmpty()) 11632 { 11633 11634 11635 #line default 11636 #line hidden 11637 WriteLiteralTo(__razor_helper_writer, " "); 11638 11639 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 11640 11641 11642 #line 3660 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11643 } 11644 11645 11646 #line default 11647 #line hidden 11648 }); 11649 11650 #line 3661 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11651 } 11652 #line default 11653 #line hidden 11654 11655 11656 #line 3663 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11657 public RazorEngine.Templating.TemplateWriter RenderEmailParagraphHeading(string alignment, string title) 11658 { 11659 #line default 11660 #line hidden 11661 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11662 11663 #line 3664 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11664 11665 11666 11667 #line default 11668 #line hidden 11669 WriteLiteralTo(__razor_helper_writer, " <h2"); 11670 11671 WriteAttributeTo(__razor_helper_writer, "align", Tuple.Create(" align=\"", 157138), Tuple.Create("\"", 157156) 11672 11673 #line 3665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11674 , Tuple.Create(Tuple.Create("", 157146), Tuple.Create<System.Object, System.Int32>(alignment 11675 11676 #line default 11677 #line hidden 11678 , 157146), false) 11679 ); 11680 11681 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 157157), Tuple.Create("\"", 157256) 11682 11683 #line 3665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11684 , Tuple.Create(Tuple.Create("", 157165), Tuple.Create<System.Object, System.Int32>(GetFontSize(24) 11685 11686 #line default 11687 #line hidden 11688 , 157165), false) 11689 , Tuple.Create(Tuple.Create(" ", 157181), Tuple.Create("margin:0;", 157182), true) 11690 , Tuple.Create(Tuple.Create(" ", 157191), Tuple.Create("padding:0;", 157192), true) 11691 11692 #line 3665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11693 , Tuple.Create(Tuple.Create(" ", 157202), Tuple.Create<System.Object, System.Int32>(GetFontFamilyNumber() 11694 11695 #line default 11696 #line hidden 11697 , 157203), false) 11698 , Tuple.Create(Tuple.Create(" ", 157225), Tuple.Create("color:", 157226), true) 11699 11700 #line 3665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11701 , Tuple.Create(Tuple.Create("", 157232), Tuple.Create<System.Object, System.Int32>(GetPalletColorNumber(2) 11702 11703 #line default 11704 #line hidden 11705 , 157232), false) 11706 ); 11707 11708 WriteLiteralTo(__razor_helper_writer, ">"); 11709 11710 11711 #line 3665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11712 WriteTo(__razor_helper_writer, title); 11713 11714 11715 #line default 11716 #line hidden 11717 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 11718 11719 11720 #line 3666 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11721 11722 11723 #line default 11724 #line hidden 11725 }); 11726 11727 #line 3666 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11728 } 11729 #line default 11730 #line hidden 11731 11732 11733 #line 3685 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11734 public RazorEngine.Templating.TemplateWriter RenderCopyrightCustom() 11735 { 11736 #line default 11737 #line hidden 11738 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11739 11740 #line 3686 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11741 11742 11743 11744 #line default 11745 #line hidden 11746 WriteLiteralTo(__razor_helper_writer, " <div"); 11747 11748 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 text-center copyright\""); 11749 11750 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11751 11752 WriteLiteralTo(__razor_helper_writer, " class=\"copyrightContents\""); 11753 11754 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11755 11756 WriteLiteralTo(__razor_helper_writer, " class=\"copyrightText\""); 11757 11758 WriteLiteralTo(__razor_helper_writer, ">\r\n &copy; "); 11759 11760 11761 #line 3690 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11762 WriteTo(__razor_helper_writer, DateTime.Now.Year); 11763 11764 11765 #line default 11766 #line hidden 11767 WriteLiteralTo(__razor_helper_writer, " "); 11768 11769 11770 #line 3690 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11771 WriteTo(__razor_helper_writer, GetString("Item.Area.CompanyName")); 11772 11773 11774 #line default 11775 #line hidden 11776 WriteLiteralTo(__razor_helper_writer, " "); 11777 11778 11779 #line 3690 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11780 WriteTo(__razor_helper_writer, GetString("Item.Area.Copyright")); 11781 11782 11783 #line default 11784 #line hidden 11785 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <ul"); 11786 11787 WriteLiteralTo(__razor_helper_writer, " id=\"copyrightMenu\""); 11788 11789 WriteLiteralTo(__razor_helper_writer, " class=\"dwnavigation\""); 11790 11791 WriteLiteralTo(__razor_helper_writer, " settings=\"startlevel:2;endlevel:3;parenttag:copyrightMenu;template:liClean.xslt;" + 11792 "expandmode:All;id:copyrightMenu;\""); 11793 11794 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n </div>\r\n </div>\r\n"); 11795 11796 11797 #line 3695 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11798 11799 11800 #line default 11801 #line hidden 11802 }); 11803 11804 #line 3695 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11805 } 11806 #line default 11807 #line hidden 11808 11809 11810 #line 3696 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11811 public RazorEngine.Templating.TemplateWriter RenderCopyrightEmailOrder() 11812 { 11813 #line default 11814 #line hidden 11815 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11816 11817 #line 3697 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11818 11819 var copyrightMessage = Pageview != null ? string.Concat(Pageview.Area.Item["CompanyName"], " ", Pageview.Area.Item["Copyright"]) : string.Concat(Translate("Company Name"), " ", Translate("Inc. All rights reserved")); 11820 11821 11822 11823 #line default 11824 #line hidden 11825 WriteLiteralTo(__razor_helper_writer, " <div"); 11826 11827 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 text-center copyright\""); 11828 11829 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11830 11831 WriteLiteralTo(__razor_helper_writer, " class=\"copyrightContents\""); 11832 11833 WriteLiteralTo(__razor_helper_writer, " style=\"color: #ffffff; text-align: center; margin: 20px 0;\""); 11834 11835 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11836 11837 WriteLiteralTo(__razor_helper_writer, " class=\"copyrightText\""); 11838 11839 WriteLiteralTo(__razor_helper_writer, ">\r\n &copy; "); 11840 11841 11842 #line 3703 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11843 WriteTo(__razor_helper_writer, DateTime.Now.Year); 11844 11845 11846 #line default 11847 #line hidden 11848 WriteLiteralTo(__razor_helper_writer, " "); 11849 11850 11851 #line 3703 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11852 WriteTo(__razor_helper_writer, copyrightMessage); 11853 11854 11855 #line default 11856 #line hidden 11857 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n </div>\r\n"); 11858 11859 11860 #line 3707 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11861 11862 11863 #line default 11864 #line hidden 11865 }); 11866 11867 #line 3707 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11868 } 11869 #line default 11870 #line hidden 11871 11872 11873 #line 3708 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11874 public RazorEngine.Templating.TemplateWriter RenderStepFlowCustom(int currentStep) 11875 { 11876 #line default 11877 #line hidden 11878 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11879 11880 #line 3709 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11881 11882 var firstStep = currentStep == 0 ? "active" : string.Empty; 11883 var secondStep = currentStep == 1 ? "active" : string.Empty; 11884 var thirdStep = currentStep == 2 ? "active" : string.Empty; 11885 var hideClass = firstStep.IsNullOrEmpty() && secondStep.IsNullOrEmpty() && thirdStep.IsNullOrEmpty() ? "hidden" : string.Empty; 11886 11887 11888 11889 #line default 11890 #line hidden 11891 WriteLiteralTo(__razor_helper_writer, " <ul"); 11892 11893 WriteLiteralTo(__razor_helper_writer, " id=\"stepsListCustom\""); 11894 11895 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11896 11897 WriteLiteralTo(__razor_helper_writer, " "); 11898 11899 11900 #line 3716 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11901 WriteTo(__razor_helper_writer, InternalRenderStepNumberCustom(Translate("STEP 1"), firstStep, hideClass, Translate("Customer Details"),"fa fa-user")); 11902 11903 11904 #line default 11905 #line hidden 11906 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11907 11908 WriteLiteralTo(__razor_helper_writer, " "); 11909 11910 11911 #line 3717 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11912 WriteTo(__razor_helper_writer, InternalRenderStepNumberCustom(Translate("STEP 2"), secondStep, hideClass, Translate("Choose Shipping & Payment"), "fa fa-truck fa-flip-horizontal")); 11913 11914 11915 #line default 11916 #line hidden 11917 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11918 11919 WriteLiteralTo(__razor_helper_writer, " "); 11920 11921 11922 #line 3718 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11923 WriteTo(__razor_helper_writer, InternalRenderStepNumberCustom(Translate("STEP 3"), thirdStep, hideClass, Translate("Payment"), "fa fa-dollar")); 11924 11925 11926 #line default 11927 #line hidden 11928 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 11929 11930 11931 #line 3720 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11932 11933 11934 #line default 11935 #line hidden 11936 }); 11937 11938 #line 3720 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11939 } 11940 #line default 11941 #line hidden 11942 11943 11944 #line 3722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11945 public RazorEngine.Templating.TemplateWriter RenderCurrenciesDropdown() 11946 { 11947 #line default 11948 #line hidden 11949 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11950 11951 #line 3723 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11952 11953 var currencies = GetLoop("Currencies"); 11954 var currentCurrency = currencies.FirstOrDefault(c => c.GetBoolean("Currency.IsCurrent")); 11955 var baseUrl = Helpers.GetCurrentUrl(); 11956 11957 11958 11959 #line default 11960 #line hidden 11961 WriteLiteralTo(__razor_helper_writer, " <div"); 11962 11963 WriteLiteralTo(__razor_helper_writer, " class=\"currencyContainer\""); 11964 11965 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul"); 11966 11967 WriteLiteralTo(__razor_helper_writer, " class=\"currencies\""); 11968 11969 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11970 11971 11972 #line 3730 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11973 11974 11975 #line default 11976 #line hidden 11977 11978 #line 3730 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11979 11980 if (currentCurrency != null) 11981 { 11982 baseUrl = baseUrl.Replace(string.Format("CurrencyCode={0}", currentCurrency.GetString("CurrencyCode")), string.Empty); 11983 baseUrl = baseUrl.EndsWith("?") | baseUrl.EndsWith("&") ? baseUrl.Remove(baseUrl.Length - 1) : baseUrl; 11984 11985 11986 #line default 11987 #line hidden 11988 11989 #line 3735 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11990 WriteTo(__razor_helper_writer, RenderCurrenciesDropdownOption(currentCurrency, baseUrl)); 11991 11992 11993 #line default 11994 #line hidden 11995 11996 #line 3735 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11997 11998 } 11999 12000 12001 #line default 12002 #line hidden 12003 12004 #line 3740 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12005 12006 12007 12008 #line default 12009 #line hidden 12010 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n </div>\r\n"); 12011 12012 12013 #line 3744 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12014 12015 12016 #line default 12017 #line hidden 12018 }); 12019 12020 #line 3744 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12021 } 12022 #line default 12023 #line hidden 12024 12025 12026 #line 3746 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12027 public RazorEngine.Templating.TemplateWriter RenderCurrenciesDropdownOption(LoopItem currency, string baseUrl) 12028 { 12029 #line default 12030 #line hidden 12031 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12032 12033 #line 3747 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12034 12035 var currencyName = currency.GetString("CurrencyName").ToUpper(); 12036 var currencyUrl = string.Format("{0}{1}CurrencyCode={2}", baseUrl, baseUrl.Contains("?") ? "&amp;" : "?" , currency.GetString("CurrencyCode")); 12037 var currencyFlag = Images.GetImage(string.Format("/Files/Templates/Designs/{0}/images/icons/flag_{1}.png", Pageview.Layout.Design.Name, currency.GetString("CurrencyCode").ToLower()), 20, 0, new ImageProcessorSettings() 12038 { 12039 Format = ImageFormat.Png 12040 }); 12041 12042 12043 12044 #line default 12045 #line hidden 12046 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 12047 12048 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0);\""); 12049 12050 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 12051 12052 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 161533), Tuple.Create("\"", 161552) 12053 12054 #line 3757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12055 , Tuple.Create(Tuple.Create("", 161539), Tuple.Create<System.Object, System.Int32>(currencyFlag 12056 12057 #line default 12058 #line hidden 12059 , 161539), false) 12060 ); 12061 12062 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 161553), Tuple.Create("\"", 161572) 12063 12064 #line 3757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12065 , Tuple.Create(Tuple.Create("", 161559), Tuple.Create<System.Object, System.Int32>(currencyName 12066 12067 #line default 12068 #line hidden 12069 , 161559), false) 12070 ); 12071 12072 WriteLiteralTo(__razor_helper_writer, "/>\r\n <span>"); 12073 12074 12075 #line 3758 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12076 WriteTo(__razor_helper_writer, currencyName); 12077 12078 12079 #line default 12080 #line hidden 12081 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </a>\r\n </li>\r\n"); 12082 12083 12084 #line 3761 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12085 12086 12087 #line default 12088 #line hidden 12089 }); 12090 12091 #line 3761 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12092 } 12093 #line default 12094 #line hidden 12095 12096 12097 #line 3763 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12098 public RazorEngine.Templating.TemplateWriter InternalRenderStepNumberCustom(string number, string stepCssClass, string hideCssClass, string text, string icon) { 12099 #line default 12100 #line hidden 12101 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12102 12103 #line 3763 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12104 12105 12106 12107 #line default 12108 #line hidden 12109 WriteLiteralTo(__razor_helper_writer, " <li"); 12110 12111 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 161807), Tuple.Create("\"", 161842) 12112 12113 #line 3764 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12114 , Tuple.Create(Tuple.Create("", 161815), Tuple.Create<System.Object, System.Int32>(stepCssClass 12115 12116 #line default 12117 #line hidden 12118 , 161815), false) 12119 12120 #line 3764 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12121 , Tuple.Create(Tuple.Create(" ", 161828), Tuple.Create<System.Object, System.Int32>(hideCssClass 12122 12123 #line default 12124 #line hidden 12125 , 161829), false) 12126 ); 12127 12128 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 12129 12130 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 161862), Tuple.Create("\"", 161877) 12131 12132 #line 3765 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12133 , Tuple.Create(Tuple.Create("", 161870), Tuple.Create<System.Object, System.Int32>(icon 12134 12135 #line default 12136 #line hidden 12137 , 161870), false) 12138 ); 12139 12140 WriteLiteralTo(__razor_helper_writer, "></div>\r\n <div"); 12141 12142 WriteLiteralTo(__razor_helper_writer, " class=\"stepName\""); 12143 12144 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12145 12146 WriteLiteralTo(__razor_helper_writer, " "); 12147 12148 12149 #line 3767 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12150 WriteTo(__razor_helper_writer, number); 12151 12152 12153 #line default 12154 #line hidden 12155 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 12156 12157 12158 #line 3768 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12159 WriteTo(__razor_helper_writer, text); 12160 12161 12162 #line default 12163 #line hidden 12164 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n <div"); 12165 12166 WriteLiteralTo(__razor_helper_writer, " id=\"checkoutMenuAngle\""); 12167 12168 WriteLiteralTo(__razor_helper_writer, "></div>\r\n </li>\r\n"); 12169 12170 12171 #line 3772 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12172 12173 12174 #line default 12175 #line hidden 12176 }); 12177 12178 #line 3772 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12179 } 12180 #line default 12181 #line hidden 12182 12183 12184 #line 3775 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12185 public RazorEngine.Templating.TemplateWriter RenderEmailHeaderCustom(string receiptUrl, string preHeader, bool showLinkToPage = true) 12186 { 12187 #line default 12188 #line hidden 12189 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12190 12191 #line 3776 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12192 12193 var companyName = Pageview != null ? Pageview.Area.Item["CompanyName"] : Translate("Company Name"); 12194 var websiteUrl = Pageview != null ? string.Concat(Helpers.GetCurrentUrl(true),"/Default.aspx?AreaId=", Pageview.Area.ID) : Helpers.GetCurrentUrl(true) ; 12195 var designName = Pageview != null ? Pageview.Layout.Design.Name : "CHG"; // We need to manually update this folder name for when the helper is used outside of the context of a Design, like the Email notifications triggered by Order State or Scheduled tasks 12196 var fontSize = GetFontSize(14); 12197 var fontFamily = GetFontFamilyNumber(2); 12198 var fontColor = GetPalletColorNumber(1); 12199 var topImageUrl = string.Concat(Helpers.GetCurrentUrl(true), "/", Images.GetImage(string.Concat("/Files/Templates/Designs/", designName, "/images/newsletter/logo.png"), 300, 0)); 12200 12201 if (preHeader.IsNotNullOrEmpty()) 12202 { 12203 12204 12205 #line default 12206 #line hidden 12207 12208 #line 3787 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12209 WriteTo(__razor_helper_writer, SnippetStart("preHeader")); 12210 12211 12212 #line default 12213 #line hidden 12214 12215 #line 3787 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12216 12217 12218 12219 #line default 12220 #line hidden 12221 WriteLiteralTo(__razor_helper_writer, " <div"); 12222 12223 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 163119), Tuple.Create("\"", 163220) 12224 12225 #line 3788 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12226 , Tuple.Create(Tuple.Create("", 163127), Tuple.Create<System.Object, System.Int32>(fontSize 12227 12228 #line default 12229 #line hidden 12230 , 163127), false) 12231 12232 #line 3788 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12233 , Tuple.Create(Tuple.Create(" ", 163136), Tuple.Create<System.Object, System.Int32>(fontFamily 12234 12235 #line default 12236 #line hidden 12237 , 163137), false) 12238 , Tuple.Create(Tuple.Create(" ", 163148), Tuple.Create("text-decoration:none;", 163149), true) 12239 , Tuple.Create(Tuple.Create(" ", 163170), Tuple.Create("font-size:", 163171), true) 12240 , Tuple.Create(Tuple.Create(" ", 163181), Tuple.Create("1px;", 163182), true) 12241 , Tuple.Create(Tuple.Create(" ", 163186), Tuple.Create("color:", 163187), true) 12242 , Tuple.Create(Tuple.Create(" ", 163193), Tuple.Create("#ffffff;", 163194), true) 12243 , Tuple.Create(Tuple.Create(" ", 163202), Tuple.Create("line-height:", 163203), true) 12244 , Tuple.Create(Tuple.Create(" ", 163215), Tuple.Create("1px;", 163216), true) 12245 ); 12246 12247 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 12248 12249 WriteLiteralTo(__razor_helper_writer, " style=\"color: #ffffff; font-size: 1px;\""); 12250 12251 WriteLiteralTo(__razor_helper_writer, ">"); 12252 12253 12254 #line 3789 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12255 WriteTo(__razor_helper_writer, preHeader); 12256 12257 12258 #line default 12259 #line hidden 12260 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n"); 12261 12262 12263 #line 3791 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12264 12265 12266 #line default 12267 #line hidden 12268 12269 #line 3791 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12270 WriteTo(__razor_helper_writer, SnippetEnd("preHeader")); 12271 12272 12273 #line default 12274 #line hidden 12275 12276 #line 3791 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12277 12278 } 12279 12280 12281 12282 #line default 12283 #line hidden 12284 WriteLiteralTo(__razor_helper_writer, " <table"); 12285 12286 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12287 12288 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12289 12290 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12291 12292 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12293 12294 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12295 12296 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12297 12298 12299 #line 3795 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12300 12301 12302 #line default 12303 #line hidden 12304 12305 #line 3795 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12306 if (showLinkToPage && receiptUrl.IsNotNullOrEmpty()) 12307 { 12308 12309 12310 #line default 12311 #line hidden 12312 WriteLiteralTo(__razor_helper_writer, " <tr"); 12313 12314 WriteLiteralTo(__razor_helper_writer, " id=\"remove\""); 12315 12316 WriteLiteralTo(__razor_helper_writer, ">\r\n <td"); 12317 12318 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 163571), Tuple.Create("\"", 163640) 12319 12320 #line 3798 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12321 , Tuple.Create(Tuple.Create("", 163579), Tuple.Create<System.Object, System.Int32>(fontSize 12322 12323 #line default 12324 #line hidden 12325 , 163579), false) 12326 12327 #line 3798 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12328 , Tuple.Create(Tuple.Create(" ", 163588), Tuple.Create<System.Object, System.Int32>(fontFamily 12329 12330 #line default 12331 #line hidden 12332 , 163589), false) 12333 , Tuple.Create(Tuple.Create(" ", 163600), Tuple.Create("color:", 163601), true) 12334 12335 #line 3798 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12336 , Tuple.Create(Tuple.Create(" ", 163607), Tuple.Create<System.Object, System.Int32>(fontColor 12337 12338 #line default 12339 #line hidden 12340 , 163608), false) 12341 , Tuple.Create(Tuple.Create(" ", 163618), Tuple.Create("text-decoration:none;", 163619), true) 12342 ); 12343 12344 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12345 12346 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 12347 12348 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12349 12350 WriteLiteralTo(__razor_helper_writer, ">\r\n <br/>"); 12351 12352 12353 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12354 WriteTo(__razor_helper_writer, Translate("If this email is not being shown properly, click")); 12355 12356 12357 #line default 12358 #line hidden 12359 WriteLiteralTo(__razor_helper_writer, " <a"); 12360 12361 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 163774), Tuple.Create("\"", 163848) 12362 12363 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12364 , Tuple.Create(Tuple.Create("", 163782), Tuple.Create<System.Object, System.Int32>(fontSize 12365 12366 #line default 12367 #line hidden 12368 , 163782), false) 12369 12370 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12371 , Tuple.Create(Tuple.Create(" ", 163791), Tuple.Create<System.Object, System.Int32>(fontFamily 12372 12373 #line default 12374 #line hidden 12375 , 163792), false) 12376 , Tuple.Create(Tuple.Create(" ", 163803), Tuple.Create("color:", 163804), true) 12377 12378 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12379 , Tuple.Create(Tuple.Create(" ", 163810), Tuple.Create<System.Object, System.Int32>(fontColor 12380 12381 #line default 12382 #line hidden 12383 , 163811), false) 12384 , Tuple.Create(Tuple.Create(" ", 163821), Tuple.Create("text-decoration:underline;", 163822), true) 12385 ); 12386 12387 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 163849), Tuple.Create("\"", 163867) 12388 12389 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12390 , Tuple.Create(Tuple.Create("", 163856), Tuple.Create<System.Object, System.Int32>(receiptUrl 12391 12392 #line default 12393 #line hidden 12394 , 163856), false) 12395 ); 12396 12397 WriteLiteralTo(__razor_helper_writer, ">"); 12398 12399 12400 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12401 WriteTo(__razor_helper_writer, Translate("here")); 12402 12403 12404 #line default 12405 #line hidden 12406 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </td>\r\n </tr>\r\n"); 12407 12408 12409 #line 3802 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12410 } 12411 12412 12413 #line default 12414 #line hidden 12415 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td>\r\n <div"); 12416 12417 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12418 12419 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 0 15px 0 15px;\""); 12420 12421 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12422 12423 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12424 12425 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12426 12427 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12428 12429 WriteLiteralTo(__razor_helper_writer, " width=\"700\""); 12430 12431 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 12432 12433 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n <td"); 12434 12435 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 20px 0 20px 0;\""); 12436 12437 WriteLiteralTo(__razor_helper_writer, " class=\"logo\""); 12438 12439 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12440 12441 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12442 12443 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12444 12445 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12446 12447 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12448 12449 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n " + 12450 " <td"); 12451 12452 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12453 12454 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 12455 12456 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 12457 12458 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 164524), Tuple.Create("\"", 164542) 12459 12460 #line 3812 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12461 , Tuple.Create(Tuple.Create("", 164531), Tuple.Create<System.Object, System.Int32>(websiteUrl 12462 12463 #line default 12464 #line hidden 12465 , 164531), false) 12466 ); 12467 12468 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 12469 12470 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 12471 12472 WriteLiteralTo(__razor_helper_writer, " style=\"max-width: 100%\""); 12473 12474 WriteLiteralTo(__razor_helper_writer, " class=\"img-max\""); 12475 12476 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 164654), Tuple.Create("\"", 164672) 12477 12478 #line 3813 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12479 , Tuple.Create(Tuple.Create("", 164660), Tuple.Create<System.Object, System.Int32>(topImageUrl 12480 12481 #line default 12482 #line hidden 12483 , 164660), false) 12484 ); 12485 12486 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 164673), Tuple.Create("\"", 164691) 12487 12488 #line 3813 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12489 , Tuple.Create(Tuple.Create("", 164679), Tuple.Create<System.Object, System.Int32>(companyName 12490 12491 #line default 12492 #line hidden 12493 , 164679), false) 12494 ); 12495 12496 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 164692), Tuple.Create("\"", 164712) 12497 12498 #line 3813 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12499 , Tuple.Create(Tuple.Create("", 164700), Tuple.Create<System.Object, System.Int32>(companyName 12500 12501 #line default 12502 #line hidden 12503 , 164700), false) 12504 ); 12505 12506 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n " + 12507 " </td>\r\n <td"); 12508 12509 WriteLiteralTo(__razor_helper_writer, " width=\"200\""); 12510 12511 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 12512 12513 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-hide\""); 12514 12515 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12516 12517 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12518 12519 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12520 12521 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12522 12523 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n " + 12524 " <td"); 12525 12526 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 12527 12528 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 165125), Tuple.Create("\"", 165214) 12529 , Tuple.Create(Tuple.Create("", 165133), Tuple.Create("padding:", 165133), true) 12530 , Tuple.Create(Tuple.Create(" ", 165141), Tuple.Create("0", 165142), true) 12531 , Tuple.Create(Tuple.Create(" ", 165143), Tuple.Create("0", 165144), true) 12532 , Tuple.Create(Tuple.Create(" ", 165145), Tuple.Create("5px", 165146), true) 12533 , Tuple.Create(Tuple.Create(" ", 165149), Tuple.Create("0;", 165150), true) 12534 12535 #line 3819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12536 , Tuple.Create(Tuple.Create(" ", 165152), Tuple.Create<System.Object, System.Int32>(fontSize 12537 12538 #line default 12539 #line hidden 12540 , 165153), false) 12541 12542 #line 3819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12543 , Tuple.Create(Tuple.Create(" ", 165162), Tuple.Create<System.Object, System.Int32>(fontFamily 12544 12545 #line default 12546 #line hidden 12547 , 165163), false) 12548 , Tuple.Create(Tuple.Create(" ", 165174), Tuple.Create("color:", 165175), true) 12549 12550 #line 3819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12551 , Tuple.Create(Tuple.Create(" ", 165181), Tuple.Create<System.Object, System.Int32>(fontColor 12552 12553 #line default 12554 #line hidden 12555 , 165182), false) 12556 , Tuple.Create(Tuple.Create(" ", 165192), Tuple.Create("text-decoration:none;", 165193), true) 12557 ); 12558 12559 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 12560 12561 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 165279), Tuple.Create("\"", 165326) 12562 , Tuple.Create(Tuple.Create("", 165287), Tuple.Create("color:", 165287), true) 12563 12564 #line 3820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12565 , Tuple.Create(Tuple.Create(" ", 165293), Tuple.Create<System.Object, System.Int32>(fontColor 12566 12567 #line default 12568 #line hidden 12569 , 165294), false) 12570 , Tuple.Create(Tuple.Create(" ", 165304), Tuple.Create("text-decoration:none;", 165305), true) 12571 ); 12572 12573 WriteLiteralTo(__razor_helper_writer, @"></span> 12574 </td> 12575 </tr> 12576 </table> 12577 </td> 12578 </tr> 12579 </table> 12580 </td> 12581 </tr> 12582 </table> 12583 </div> 12584 </td> 12585 </tr> 12586 </table> 12587 "); 12588 12589 12590 #line 3834 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12591 12592 12593 #line default 12594 #line hidden 12595 }); 12596 12597 #line 3834 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12598 } 12599 #line default 12600 #line hidden 12601 12602 12603 #line 3836 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12604 public RazorEngine.Templating.TemplateWriter RenderEmailFooterCustom(bool renderEmailFooter = true, bool renderSocialMedia = true) 12605 { 12606 #line default 12607 #line hidden 12608 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12609 12610 #line 3837 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12611 12612 if (renderEmailFooter) 12613 { 12614 var copyrightMessage = Pageview != null ? string.Concat(Pageview.Area.Item["CompanyName"], " ", Pageview.Area.Item["Copyright"]) : string.Concat(Translate("Company Name"), " ", Translate("Inc. All rights reserved")); 12615 var companyName = Pageview.Area.Item["CompanyName"].ToString(); 12616 var backgroundColor = GetPalletColorNumber(); 12617 var fontSize = GetFontSize(12); 12618 var fontFamily = GetFontFamilyNumber(); 12619 var fontColor = GetPalletColorNumber(1); 12620 var footerImageUrl = string.Concat(Helpers.GetCurrentUrl(true), "/", Images.GetImage(string.Concat("/Files/Templates/Designs/", Pageview.Layout.Design.Name, "/images/logo-white.png"), 0, 30, new ImageProcessorSettings {Format = ImageFormat.Png})); 12621 12622 12623 12624 #line default 12625 #line hidden 12626 WriteLiteralTo(__razor_helper_writer, " <table"); 12627 12628 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12629 12630 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12631 12632 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12633 12634 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12635 12636 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n <td"); 12637 12638 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 166814), Tuple.Create("\"", 166840) 12639 12640 #line 3850 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12641 , Tuple.Create(Tuple.Create("", 166824), Tuple.Create<System.Object, System.Int32>(backgroundColor 12642 12643 #line default 12644 #line hidden 12645 , 166824), false) 12646 ); 12647 12648 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12649 12650 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 20px 0;\""); 12651 12652 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12653 12654 WriteLiteralTo(__razor_helper_writer, " width=\"700\""); 12655 12656 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12657 12658 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12659 12660 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12661 12662 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12663 12664 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 12665 12666 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12667 12668 12669 #line 3852 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12670 12671 12672 #line default 12673 #line hidden 12674 12675 #line 3852 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12676 if (renderSocialMedia) 12677 { 12678 12679 12680 #line default 12681 #line hidden 12682 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 12683 12684 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12685 12686 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 167168), Tuple.Create("\"", 167234) 12687 12688 #line 3855 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12689 , Tuple.Create(Tuple.Create("", 167176), Tuple.Create<System.Object, System.Int32>(fontSize 12690 12691 #line default 12692 #line hidden 12693 , 167176), false) 12694 , Tuple.Create(Tuple.Create(" ", 167185), Tuple.Create("line-height:", 167186), true) 12695 , Tuple.Create(Tuple.Create(" ", 167198), Tuple.Create("18px;", 167199), true) 12696 12697 #line 3855 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12698 , Tuple.Create(Tuple.Create(" ", 167204), Tuple.Create<System.Object, System.Int32>(fontFamily 12699 12700 #line default 12701 #line hidden 12702 , 167205), false) 12703 , Tuple.Create(Tuple.Create(" ", 167216), Tuple.Create("color:", 167217), true) 12704 12705 #line 3855 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12706 , Tuple.Create(Tuple.Create(" ", 167223), Tuple.Create<System.Object, System.Int32>(fontColor 12707 12708 #line default 12709 #line hidden 12710 , 167224), false) 12711 ); 12712 12713 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12714 12715 WriteLiteralTo(__razor_helper_writer, " "); 12716 12717 12718 #line 3856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12719 WriteTo(__razor_helper_writer, RenderSocialMedia(true)); 12720 12721 12722 #line default 12723 #line hidden 12724 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr>\r\n"); 12725 12726 WriteLiteralTo(__razor_helper_writer, " <tr><td"); 12727 12728 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 12729 12730 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</td></tr>\r\n"); 12731 12732 12733 #line 3860 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12734 } 12735 12736 12737 #line default 12738 #line hidden 12739 WriteLiteralTo(__razor_helper_writer, " <tr"); 12740 12741 WriteLiteralTo(__razor_helper_writer, " style=\"background-color: #005594\""); 12742 12743 WriteLiteralTo(__razor_helper_writer, ">\r\n <td"); 12744 12745 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 12746 12747 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 167575), Tuple.Create("\"", 167641) 12748 12749 #line 3862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12750 , Tuple.Create(Tuple.Create("", 167583), Tuple.Create<System.Object, System.Int32>(fontSize 12751 12752 #line default 12753 #line hidden 12754 , 167583), false) 12755 , Tuple.Create(Tuple.Create(" ", 167592), Tuple.Create("line-height:", 167593), true) 12756 , Tuple.Create(Tuple.Create(" ", 167605), Tuple.Create("18px;", 167606), true) 12757 12758 #line 3862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12759 , Tuple.Create(Tuple.Create(" ", 167611), Tuple.Create<System.Object, System.Int32>(fontFamily 12760 12761 #line default 12762 #line hidden 12763 , 167612), false) 12764 , Tuple.Create(Tuple.Create(" ", 167623), Tuple.Create("color:", 167624), true) 12765 12766 #line 3862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12767 , Tuple.Create(Tuple.Create(" ", 167630), Tuple.Create<System.Object, System.Int32>(fontColor 12768 12769 #line default 12770 #line hidden 12771 , 167631), false) 12772 ); 12773 12774 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12775 12776 WriteLiteralTo(__razor_helper_writer, " width=\"700\""); 12777 12778 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12779 12780 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12781 12782 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12783 12784 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12785 12786 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 12787 12788 WriteLiteralTo(__razor_helper_writer, ">\r\n <tbody>\r\n " + 12789 " <tr>\r\n <td"); 12790 12791 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 12792 12793 WriteLiteralTo(__razor_helper_writer, "></td>\r\n </tr>\r\n " + 12794 " <tr>\r\n <td"); 12795 12796 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12797 12798 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 12799 12800 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 168125), Tuple.Create("\"", 168146) 12801 12802 #line 3870 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12803 , Tuple.Create(Tuple.Create("", 168131), Tuple.Create<System.Object, System.Int32>(footerImageUrl 12804 12805 #line default 12806 #line hidden 12807 , 168131), false) 12808 ); 12809 12810 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 168147), Tuple.Create("\"", 168165) 12811 12812 #line 3870 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12813 , Tuple.Create(Tuple.Create("", 168153), Tuple.Create<System.Object, System.Int32>(companyName 12814 12815 #line default 12816 #line hidden 12817 , 168153), false) 12818 ); 12819 12820 WriteLiteralTo(__razor_helper_writer, "/>\r\n </td>\r\n " + 12821 " </tr>\r\n <tr>\r\n " + 12822 " <td>\r\n"); 12823 12824 WriteLiteralTo(__razor_helper_writer, " "); 12825 12826 12827 #line 3875 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12828 WriteTo(__razor_helper_writer, RenderCopyrightEmailOrder()); 12829 12830 12831 #line default 12832 #line hidden 12833 WriteLiteralTo(__razor_helper_writer, @" 12834 </td> 12835 </tr> 12836 </tbody> 12837 </table> 12838 </td> 12839 </tr> 12840 </table> 12841 </td> 12842 </tr> 12843 </table> 12844 "); 12845 12846 12847 #line 3886 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12848 } 12849 12850 12851 #line default 12852 #line hidden 12853 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.getElementById(\"remove\").style.display = \"none\";\r\n" + 12854 " document.getElementById(\"remove2\").style.display = \"none\";\r\n </script" + 12855 ">\r\n"); 12856 12857 12858 #line 3891 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12859 12860 12861 #line default 12862 #line hidden 12863 }); 12864 12865 #line 3891 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12866 } 12867 #line default 12868 #line hidden 12869 12870 12871 #line 3895 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12872 12873 12874 public string GetUnitIdLabel(string productUnitId, string productLanguage) 12875 { 12876 var variantService = new Dynamicweb.Ecommerce.VariantOptionService(); 12877 var defaultUnit = variantService.GetVariantOption(productUnitId,productLanguage); 12878 12879 return defaultUnit==null ? string.Empty : defaultUnit.Name; 12880 } 12881 12882 12883 #line default 12884 #line hidden 12885 12886 12887 #line 3907 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12888 public RazorEngine.Templating.TemplateWriter RenderUnitSales(string productUnitId, string productLanguage, string qtyBaseUnitMeasurePerUnits, string salesUnitOfMeasure, bool showLabelYP = false, string cssClass="product-price-holder col-sm-6 noPadding", bool addProductPriceContainer = true) 12889 { 12890 #line default 12891 #line hidden 12892 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12893 12894 #line 3908 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12895 12896 var unitIdName = GetUnitIdLabel(productUnitId, productLanguage); 12897 if (unitIdName.IsNullOrEmpty()) 12898 { 12899 return; 12900 } 12901 12902 var amountPerUnit = string.Empty; 12903 if (qtyBaseUnitMeasurePerUnits.IsNotNullOrEmpty() && salesUnitOfMeasure.IsNotNullOrEmpty() /*&& salesUnitOfMeasure != "ea"*/) 12904 { 12905 amountPerUnit = qtyBaseUnitMeasurePerUnits=="1" && salesUnitOfMeasure == "ea" ? Translate("Each") : qtyBaseUnitMeasurePerUnits=="1" && salesUnitOfMeasure != "ea" ? unitIdName : string.Format(" {0} {1} {2} ", unitIdName, Translate("of"), qtyBaseUnitMeasurePerUnits); 12906 } 12907 12908 12909 #line default 12910 #line hidden 12911 WriteLiteralTo(__razor_helper_writer, " <div"); 12912 12913 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 170321), Tuple.Create("\"", 170338) 12914 12915 #line 3920 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12916 , Tuple.Create(Tuple.Create("", 170329), Tuple.Create<System.Object, System.Int32>(cssClass 12917 12918 #line default 12919 #line hidden 12920 , 170329), false) 12921 ); 12922 12923 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12924 12925 12926 #line 3921 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12927 12928 12929 #line default 12930 #line hidden 12931 12932 #line 3921 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12933 if(showLabelYP && amountPerUnit.IsNotNullOrEmpty()) 12934 { 12935 12936 12937 #line default 12938 #line hidden 12939 WriteLiteralTo(__razor_helper_writer, " <div"); 12940 12941 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 170440), Tuple.Create("\"", 170467) 12942 12943 #line 3923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12944 , Tuple.Create(Tuple.Create("", 170448), Tuple.Create<System.Object, System.Int32>(salesUnitOfMeasure 12945 12946 #line default 12947 #line hidden 12948 , 170448), false) 12949 ); 12950 12951 WriteLiteralTo(__razor_helper_writer, "><strong>"); 12952 12953 12954 #line 3923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12955 WriteTo(__razor_helper_writer, Translate("Your Price")); 12956 12957 12958 #line default 12959 #line hidden 12960 WriteLiteralTo(__razor_helper_writer, "</strong> <span>"); 12961 12962 12963 #line 3923 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12964 WriteTo(__razor_helper_writer, amountPerUnit); 12965 12966 12967 #line default 12968 #line hidden 12969 WriteLiteralTo(__razor_helper_writer, "</span></div>\r\n"); 12970 12971 12972 #line 3924 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12973 } 12974 else 12975 { 12976 12977 12978 #line default 12979 #line hidden 12980 12981 #line 3927 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12982 WriteTo(__razor_helper_writer, amountPerUnit); 12983 12984 12985 #line default 12986 #line hidden 12987 12988 #line 3927 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12989 12990 } 12991 12992 #line default 12993 #line hidden 12994 WriteLiteralTo(__razor_helper_writer, "\r\n"); 12995 12996 12997 #line 3929 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12998 12999 13000 #line default 13001 #line hidden 13002 13003 #line 3929 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13004 if(addProductPriceContainer){ 13005 13006 13007 #line default 13008 #line hidden 13009 WriteLiteralTo(__razor_helper_writer, " <strong"); 13010 13011 WriteLiteralTo(__razor_helper_writer, " class=\"product-price\""); 13012 13013 WriteLiteralTo(__razor_helper_writer, "></strong>\r\n"); 13014 13015 13016 #line 3931 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13017 } 13018 13019 #line default 13020 #line hidden 13021 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 13022 13023 13024 #line 3933 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13025 13026 13027 #line default 13028 #line hidden 13029 }); 13030 13031 #line 3933 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13032 } 13033 #line default 13034 #line hidden 13035 13036 13037 #line 3935 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13038 public RazorEngine.Templating.TemplateWriter RenderTarrif(string insertType = "", string cssClass = "col-xs-12 row") 13039 { 13040 #line default 13041 #line hidden 13042 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 13043 13044 #line 3936 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13045 13046 13047 var outputTarrif = string.Empty; 13048 switch (insertType) 13049 { 13050 case "B" : 13051 outputTarrif = "Price does not include any tariff surcharge that your Company has agreed to. Tariff surcharge will appear on final invoice."; 13052 break; 13053 case "C" : 13054 outputTarrif = "Above prices do not include any applicable tariff surcharges that your Company has agreed to. Tariff surcharges will appear on final invoice."; 13055 break; 13056 case "D": 13057 outputTarrif = "Prices do not include any applicable tariff surcharges that your Company has agreed to."; 13058 break; 13059 case "E": 13060 outputTarrif = "Prices do not include any applicable tariff surcharges that your Company has agreed to. Tariff surcharges will appear on final invoice."; 13061 break; 13062 case "A" : 13063 default: 13064 outputTarrif = "Price does not include any tariff surcharge that your Company has agreed to."; 13065 break; 13066 } 13067 13068 13069 #line default 13070 #line hidden 13071 WriteLiteralTo(__razor_helper_writer, " <div"); 13072 13073 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 171987), Tuple.Create("\"", 172004) 13074 13075 #line 3958 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13076 , Tuple.Create(Tuple.Create("", 171995), Tuple.Create<System.Object, System.Int32>(cssClass 13077 13078 #line default 13079 #line hidden 13080 , 171995), false) 13081 ); 13082 13083 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 13084 13085 WriteLiteralTo(__razor_helper_writer, " "); 13086 13087 13088 #line 3959 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13089 WriteTo(__razor_helper_writer, Translate(outputTarrif)); 13090 13091 13092 #line default 13093 #line hidden 13094 WriteLiteralTo(__razor_helper_writer, "\r\n </div> \r\n"); 13095 13096 13097 #line 3961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13098 13099 13100 #line default 13101 #line hidden 13102 }); 13103 13104 #line 3961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13105 } 13106 #line default 13107 #line hidden 13108 13109 13110 public RazorEngine_9fe468760521476bb403b9fe9543e016() { 13111 } 13112 13113 public override void Execute() { 13114 13115 #line 205 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13116 13117 13118 13119 13120 #line default 13121 #line hidden 13122 13123 #line 343 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13124 13125 13126 13127 13128 #line default 13129 #line hidden 13130 13131 #line 410 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13132 13133 13134 13135 13136 #line default 13137 #line hidden 13138 13139 #line 437 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13140 13141 13142 13143 13144 #line default 13145 #line hidden 13146 13147 #line 449 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13148 13149 13150 13151 13152 #line default 13153 #line hidden 13154 13155 #line 477 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13156 13157 13158 13159 13160 #line default 13161 #line hidden 13162 13163 #line 495 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13164 13165 13166 13167 #line default 13168 #line hidden 13169 WriteLiteral("\r\n"); 13170 13171 13172 #line 537 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13173 13174 13175 13176 13177 #line default 13178 #line hidden 13179 13180 #line 544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13181 13182 13183 13184 13185 #line default 13186 #line hidden 13187 13188 #line 556 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13189 13190 13191 13192 13193 #line default 13194 #line hidden 13195 13196 #line 590 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13197 13198 13199 13200 13201 #line default 13202 #line hidden 13203 13204 #line 719 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13205 13206 13207 13208 13209 #line default 13210 #line hidden 13211 13212 #line 725 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13213 13214 13215 13216 13217 #line default 13218 #line hidden 13219 13220 #line 782 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13221 13222 13223 13224 13225 #line default 13226 #line hidden 13227 13228 #line 893 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13229 13230 13231 13232 13233 #line default 13234 #line hidden 13235 13236 #line 917 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13237 13238 13239 13240 13241 #line default 13242 #line hidden 13243 13244 #line 953 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13245 13246 13247 13248 13249 13250 #line default 13251 #line hidden 13252 13253 #line 975 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13254 13255 13256 13257 13258 #line default 13259 #line hidden 13260 13261 #line 1017 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13262 13263 13264 13265 13266 #line default 13267 #line hidden 13268 13269 #line 1037 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13270 13271 13272 13273 #line default 13274 #line hidden 13275 13276 #line 1434 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13277 13278 13279 13280 13281 #line default 13282 #line hidden 13283 13284 #line 1436 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13285 13286 13287 13288 #line default 13289 #line hidden 13290 13291 #line 1444 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13292 13293 13294 13295 13296 13297 #line default 13298 #line hidden 13299 13300 #line 1447 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13301 13302 13303 13304 #line default 13305 #line hidden 13306 13307 #line 1461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13308 13309 13310 13311 13312 #line default 13313 #line hidden 13314 13315 #line 1471 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13316 13317 13318 13319 13320 #line default 13321 #line hidden 13322 13323 #line 1483 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13324 13325 13326 13327 13328 #line default 13329 #line hidden 13330 13331 #line 1492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13332 13333 13334 13335 13336 #line default 13337 #line hidden 13338 13339 #line 1499 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13340 13341 13342 13343 13344 13345 #line default 13346 #line hidden 13347 13348 #line 1502 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13349 13350 13351 13352 #line default 13353 #line hidden 13354 13355 #line 1506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13356 13357 13358 13359 13360 #line default 13361 #line hidden 13362 13363 #line 1511 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13364 13365 13366 13367 13368 #line default 13369 #line hidden 13370 13371 #line 1564 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13372 13373 13374 13375 13376 #line default 13377 #line hidden 13378 13379 #line 1594 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13380 13381 13382 13383 13384 #line default 13385 #line hidden 13386