{{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 2403: 'Order.GetOrderById(string)' is obsolete: 'Use Ecommerce.Services.Orders.GetById instead.'
Line 2412: 'Order.Save()' is obsolete: 'Use Ecommerce.Services.Orders.Save instead.'
Line 2847: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 3424: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 14023: 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 3679 "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 3670 "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 3680 "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 3893 "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 3672 "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 3894 "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 1066 "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 3681 "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 1076 "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 1078 "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 1061 "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 1073 "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 3683 "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 1068 "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 1058 "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 1059 "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 1062 "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 1065 "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 1069 "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 1071 "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 3682 "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_2856db71b775493c8c7ca433dfef5294 : 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 modelNumber = orderline.GetString("Ecom:Product:Field.ModelNumber.Value"); 1046 var productImage = orderline.GetImagePath(); 1047 var imageUrl = domain + Images.GetImage(productImage, 95, 123); 1048 var variantText = orderline.GetString("Ecom:Order:OrderLine.ProductVariantText"); 1049 var productUrl = "Default.aspx?Id=" + Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.Area.ID, "Products").ID + "&amp;GroupID=" + orderline.GetString("Ecom:Product.PrimaryOrFirstGroupID") + "&amp;ProductID=" + productId; 1050 productUrl = domain + Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(productUrl); 1051 1052 1053 1054 #line default 1055 #line hidden 1056 1057 #line 358 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1058 WriteTo(__razor_helper_writer, RenderTableRowSpacer(10, 3)); 1059 1060 1061 #line default 1062 #line hidden 1063 1064 #line 358 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1065 1066 1067 1068 #line default 1069 #line hidden 1070 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td>\r\n <figure"); 1071 1072 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 1073 1074 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 1075 1076 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 1077 1078 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 17543), Tuple.Create("\"", 17561) 1079 1080 #line 362 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1081 , Tuple.Create(Tuple.Create("", 17550), Tuple.Create<System.Object, System.Int32>(productUrl 1082 1083 #line default 1084 #line hidden 1085 , 17550), false) 1086 ); 1087 1088 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 1089 1090 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 17593), Tuple.Create("\"", 17611) 1091 1092 #line 363 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1093 , Tuple.Create(Tuple.Create("", 17599), Tuple.Create<System.Object, System.Int32>(productName 1094 1095 #line default 1096 #line hidden 1097 , 17599), false) 1098 ); 1099 1100 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 17612), Tuple.Create("\"", 17632) 1101 1102 #line 363 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1103 , Tuple.Create(Tuple.Create("", 17620), Tuple.Create<System.Object, System.Int32>(productName 1104 1105 #line default 1106 #line hidden 1107 , 17620), false) 1108 ); 1109 1110 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 17633), Tuple.Create("\"", 17648) 1111 1112 #line 363 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1113 , Tuple.Create(Tuple.Create("", 17639), Tuple.Create<System.Object, System.Int32>(imageUrl 1114 1115 #line default 1116 #line hidden 1117 , 17639), false) 1118 ); 1119 1120 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n </figure>\r\n </td>\r\n " + 1121 " <td"); 1122 1123 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 1124 1125 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 1126 1127 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 1128 1129 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 17790), Tuple.Create("\"", 17808) 1130 1131 #line 368 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1132 , Tuple.Create(Tuple.Create("", 17797), Tuple.Create<System.Object, System.Int32>(productUrl 1133 1134 #line default 1135 #line hidden 1136 , 17797), false) 1137 ); 1138 1139 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 1140 1141 1142 #line 369 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1143 WriteTo(__razor_helper_writer, productName); 1144 1145 1146 #line default 1147 #line hidden 1148 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 1149 1150 1151 #line 370 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1152 1153 1154 #line default 1155 #line hidden 1156 1157 #line 370 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1158 if (variantText.IsNotNullOrEmpty() || productNumber.IsNotNullOrEmpty()) 1159 { 1160 1161 1162 #line default 1163 #line hidden 1164 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 1165 1166 1167 #line 373 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1168 } 1169 1170 #line default 1171 #line hidden 1172 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1173 1174 1175 #line 374 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1176 1177 1178 #line default 1179 #line hidden 1180 1181 #line 374 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1182 if (variantText.IsNotNullOrEmpty()) 1183 { 1184 1185 1186 #line default 1187 #line hidden 1188 1189 #line 376 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1190 WriteTo(__razor_helper_writer, variantText); 1191 1192 1193 #line default 1194 #line hidden 1195 1196 #line 376 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1197 1198 if (productNumber.IsNotNullOrEmpty()) 1199 { 1200 1201 1202 #line default 1203 #line hidden 1204 WriteLiteralTo(__razor_helper_writer, " "); 1205 1206 WriteLiteralTo(__razor_helper_writer, " - "); 1207 1208 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1209 1210 1211 #line 380 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1212 } 1213 } 1214 1215 #line default 1216 #line hidden 1217 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1218 1219 1220 #line 382 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1221 1222 1223 #line default 1224 #line hidden 1225 1226 #line 382 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1227 if (modelNumber.IsNotNullOrEmpty()) 1228 { 1229 1230 1231 #line default 1232 #line hidden 1233 WriteLiteralTo(__razor_helper_writer, " "); 1234 1235 1236 #line 384 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1237 WriteTo(__razor_helper_writer, Translate("Model #")); 1238 1239 1240 #line default 1241 #line hidden 1242 WriteLiteralTo(__razor_helper_writer, ": "); 1243 1244 1245 #line 384 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1246 WriteTo(__razor_helper_writer, modelNumber); 1247 1248 1249 #line default 1250 #line hidden 1251 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1252 1253 1254 #line 385 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1255 } 1256 1257 #line default 1258 #line hidden 1259 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n <br/>\r\n"); 1260 1261 1262 #line 388 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1263 1264 1265 #line default 1266 #line hidden 1267 1268 #line 388 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1269 1270 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 1271 if (orderLineType == OrderLineType.PointProduct) 1272 { 1273 1274 1275 #line default 1276 #line hidden 1277 WriteLiteralTo(__razor_helper_writer, " "); 1278 1279 WriteLiteralTo(__razor_helper_writer, "<strong>"); 1280 1281 1282 #line 392 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1283 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPoints")); 1284 1285 1286 #line default 1287 #line hidden 1288 WriteLiteralTo(__razor_helper_writer, "&nbsp;"); 1289 1290 1291 #line 392 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1292 WriteTo(__razor_helper_writer, Translate(orderline.GetString("Ecom:Order:OrderLine.UnitPoints") == "1" ? "point" : "points")); 1293 1294 1295 #line default 1296 #line hidden 1297 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 1298 1299 1300 #line 393 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1301 } 1302 else 1303 { 1304 1305 1306 #line default 1307 #line hidden 1308 WriteLiteralTo(__razor_helper_writer, " <strong>"); 1309 1310 1311 #line 396 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1312 WriteTo(__razor_helper_writer, Translate("Unit price")); 1313 1314 1315 #line default 1316 #line hidden 1317 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 1318 1319 1320 #line 397 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1321 1322 1323 #line default 1324 #line hidden 1325 1326 #line 397 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1327 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPrice")); 1328 1329 1330 #line default 1331 #line hidden 1332 1333 #line 397 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1334 1335 } 1336 1337 1338 #line default 1339 #line hidden 1340 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n <strong>"); 1341 1342 1343 #line 401 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1344 WriteTo(__razor_helper_writer, Translate("Quantity")); 1345 1346 1347 #line default 1348 #line hidden 1349 WriteLiteralTo(__razor_helper_writer, "</strong> "); 1350 1351 1352 #line 401 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1353 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Quantity")); 1354 1355 1356 #line default 1357 #line hidden 1358 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n </td>\r\n <td"); 1359 1360 WriteLiteralTo(__razor_helper_writer, " class=\"noPadding\""); 1361 1362 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 1363 1364 WriteLiteralTo(__razor_helper_writer, " style=\"text-align: right; padding-right: 90px\""); 1365 1366 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 1367 1368 1369 #line 405 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1370 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.PriceWithoutVATFormatted")); 1371 1372 1373 #line default 1374 #line hidden 1375 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n </td>\r\n </tr>\r\n"); 1376 1377 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 1378 1379 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 19714), Tuple.Create("\"", 19787) 1380 , Tuple.Create(Tuple.Create("", 19722), Tuple.Create("border-bottom:", 19722), true) 1381 , Tuple.Create(Tuple.Create(" ", 19736), Tuple.Create("1px", 19737), true) 1382 , Tuple.Create(Tuple.Create(" ", 19740), Tuple.Create("solid", 19741), true) 1383 1384 #line 409 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1385 , Tuple.Create(Tuple.Create(" ", 19746), Tuple.Create<System.Object, System.Int32>(GetPalletColorNumber(1) 1386 1387 #line default 1388 #line hidden 1389 , 19747), false) 1390 , Tuple.Create(Tuple.Create(" ", 19771), Tuple.Create("text-align:left", 19772), true) 1391 ); 1392 1393 WriteLiteralTo(__razor_helper_writer, " colspan=\"3\""); 1394 1395 WriteLiteralTo(__razor_helper_writer, " height=\"10\""); 1396 1397 WriteLiteralTo(__razor_helper_writer, "></td>\r\n </tr>\r\n"); 1398 1399 1400 #line 411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1401 1402 1403 #line default 1404 #line hidden 1405 }); 1406 1407 #line 411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1408 } 1409 #line default 1410 #line hidden 1411 1412 1413 #line 413 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1414 public RazorEngine.Templating.TemplateWriter InternalRenderTotalAmountLine(string label, string value, bool isBold = false, CartOutputType outputType = CartOutputType.ReadOnly) 1415 { 1416 #line default 1417 #line hidden 1418 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1419 1420 #line 414 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1421 1422 if (outputType == CartOutputType.Email) 1423 { 1424 1425 1426 #line default 1427 #line hidden 1428 WriteLiteralTo(__razor_helper_writer, " <tr"); 1429 1430 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 1431 1432 WriteLiteralTo(__razor_helper_writer, ">\r\n <td>\r\n"); 1433 1434 WriteLiteralTo(__razor_helper_writer, " "); 1435 1436 1437 #line 419 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1438 WriteTo(__razor_helper_writer, InternalRenderValue(label, isBold)); 1439 1440 1441 #line default 1442 #line hidden 1443 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n <td>\r\n &nbsp;\r\n " + 1444 " </td>\r\n <td"); 1445 1446 WriteLiteralTo(__razor_helper_writer, " class=\"noPadding\""); 1447 1448 WriteLiteralTo(__razor_helper_writer, " style=\"padding-right: 90px; text-align: right;\""); 1449 1450 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1451 1452 WriteLiteralTo(__razor_helper_writer, " "); 1453 1454 1455 #line 425 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1456 WriteTo(__razor_helper_writer, InternalRenderValue(value, isBold)); 1457 1458 1459 #line default 1460 #line hidden 1461 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr>\r\n"); 1462 1463 1464 #line 428 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1465 } 1466 else 1467 { 1468 1469 1470 #line default 1471 #line hidden 1472 WriteLiteralTo(__razor_helper_writer, " <div"); 1473 1474 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6 col-sm-7 noPadding clearLeft\""); 1475 1476 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1477 1478 WriteLiteralTo(__razor_helper_writer, " "); 1479 1480 1481 #line 432 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1482 WriteTo(__razor_helper_writer, InternalRenderValue(label, isBold)); 1483 1484 1485 #line default 1486 #line hidden 1487 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1488 1489 WriteLiteralTo(__razor_helper_writer, " <div"); 1490 1491 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6 col-sm-5 price pull-right noPadding-xs text-right\""); 1492 1493 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1494 1495 WriteLiteralTo(__razor_helper_writer, " "); 1496 1497 1498 #line 435 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1499 WriteTo(__razor_helper_writer, InternalRenderValue(value, isBold)); 1500 1501 1502 #line default 1503 #line hidden 1504 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1505 1506 1507 #line 437 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1508 } 1509 1510 1511 #line default 1512 #line hidden 1513 }); 1514 1515 #line 438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1516 } 1517 #line default 1518 #line hidden 1519 1520 1521 #line 440 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1522 public RazorEngine.Templating.TemplateWriter InternalRenderValue(string value, bool isBold = false) 1523 { 1524 #line default 1525 #line hidden 1526 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1527 1528 #line 441 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1529 1530 if (isBold) 1531 { 1532 1533 1534 #line default 1535 #line hidden 1536 WriteLiteralTo(__razor_helper_writer, " <strong>"); 1537 1538 1539 #line 444 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1540 WriteTo(__razor_helper_writer, value); 1541 1542 1543 #line default 1544 #line hidden 1545 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 1546 1547 1548 #line 445 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1549 } 1550 else 1551 { 1552 1553 1554 #line default 1555 #line hidden 1556 1557 #line 448 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1558 WriteTo(__razor_helper_writer, value); 1559 1560 1561 #line default 1562 #line hidden 1563 1564 #line 448 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1565 1566 } 1567 1568 1569 #line default 1570 #line hidden 1571 }); 1572 1573 #line 450 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1574 } 1575 #line default 1576 #line hidden 1577 1578 1579 #line 452 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1580 public RazorEngine.Templating.TemplateWriter InternalRenderCartSummaryLine(string label, string value, string labelId = "", string valueId = "", bool isBold = false, bool hasValidation = false) 1581 { 1582 #line default 1583 #line hidden 1584 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1585 1586 #line 453 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1587 1588 var classToHide = hasValidation && (label.IsNullOrEmpty() || value.IsNullOrEmpty()) ? "hidden" : ""; 1589 1590 1591 1592 #line default 1593 #line hidden 1594 WriteLiteralTo(__razor_helper_writer, " <dt"); 1595 1596 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 21334), Tuple.Create("\"", 21347) 1597 1598 #line 456 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1599 , Tuple.Create(Tuple.Create("", 21339), Tuple.Create<System.Object, System.Int32>(labelId 1600 1601 #line default 1602 #line hidden 1603 , 21339), false) 1604 ); 1605 1606 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21348), Tuple.Create("\"", 21377) 1607 , Tuple.Create(Tuple.Create("", 21356), Tuple.Create("col-xs-8", 21356), true) 1608 1609 #line 456 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1610 , Tuple.Create(Tuple.Create(" ", 21364), Tuple.Create<System.Object, System.Int32>(classToHide 1611 1612 #line default 1613 #line hidden 1614 , 21365), false) 1615 ); 1616 1617 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1618 1619 1620 #line 457 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1621 1622 1623 #line default 1624 #line hidden 1625 1626 #line 457 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1627 if (isBold) 1628 { 1629 1630 1631 #line default 1632 #line hidden 1633 WriteLiteralTo(__razor_helper_writer, " "); 1634 1635 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 1636 1637 1638 #line 460 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1639 } 1640 1641 #line default 1642 #line hidden 1643 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1644 1645 WriteLiteralTo(__razor_helper_writer, " "); 1646 1647 1648 #line 461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1649 WriteTo(__razor_helper_writer, label); 1650 1651 1652 #line default 1653 #line hidden 1654 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1655 1656 1657 #line 462 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1658 1659 1660 #line default 1661 #line hidden 1662 1663 #line 462 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1664 if (isBold) 1665 { 1666 1667 1668 #line default 1669 #line hidden 1670 WriteLiteralTo(__razor_helper_writer, " "); 1671 1672 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 1673 1674 1675 #line 465 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1676 } 1677 1678 #line default 1679 #line hidden 1680 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 1681 1682 WriteLiteralTo(__razor_helper_writer, " <dd"); 1683 1684 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 21598), Tuple.Create("\"", 21611) 1685 1686 #line 467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1687 , Tuple.Create(Tuple.Create("", 21603), Tuple.Create<System.Object, System.Int32>(valueId 1688 1689 #line default 1690 #line hidden 1691 , 21603), false) 1692 ); 1693 1694 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21612), Tuple.Create("\"", 21652) 1695 , Tuple.Create(Tuple.Create("", 21620), Tuple.Create("col-xs-4", 21620), true) 1696 , Tuple.Create(Tuple.Create(" ", 21628), Tuple.Create("text-right", 21629), true) 1697 1698 #line 467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1699 , Tuple.Create(Tuple.Create(" ", 21639), Tuple.Create<System.Object, System.Int32>(classToHide 1700 1701 #line default 1702 #line hidden 1703 , 21640), false) 1704 ); 1705 1706 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1707 1708 1709 #line 468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1710 1711 1712 #line default 1713 #line hidden 1714 1715 #line 468 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1716 if (isBold) 1717 { 1718 1719 1720 #line default 1721 #line hidden 1722 WriteLiteralTo(__razor_helper_writer, " "); 1723 1724 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 1725 1726 1727 #line 471 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1728 } 1729 1730 #line default 1731 #line hidden 1732 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1733 1734 WriteLiteralTo(__razor_helper_writer, " "); 1735 1736 1737 #line 472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1738 WriteTo(__razor_helper_writer, value); 1739 1740 1741 #line default 1742 #line hidden 1743 WriteLiteralTo(__razor_helper_writer, "\r\n"); 1744 1745 1746 #line 473 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1747 1748 1749 #line default 1750 #line hidden 1751 1752 #line 473 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1753 if (isBold) 1754 { 1755 1756 1757 #line default 1758 #line hidden 1759 WriteLiteralTo(__razor_helper_writer, " "); 1760 1761 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 1762 1763 1764 #line 476 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1765 } 1766 1767 #line default 1768 #line hidden 1769 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 1770 1771 1772 #line 478 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1773 1774 1775 #line default 1776 #line hidden 1777 }); 1778 1779 #line 478 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1780 } 1781 #line default 1782 #line hidden 1783 1784 1785 #line 480 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1786 public RazorEngine.Templating.TemplateWriter InternalRenderOrderAmountsDisclaimer() 1787 { 1788 #line default 1789 #line hidden 1790 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1791 1792 #line 481 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1793 1794 1795 1796 #line default 1797 #line hidden 1798 1799 #line 482 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1800 1801 if (GetString("Ecom:Order.Taxes.Total.Price") == "0.00" || GetBoolean("Ecom:Order.ShippingFee.IsZero")) 1802 { 1803 1804 1805 #line default 1806 #line hidden 1807 WriteLiteralTo(__razor_helper_writer, " <small"); 1808 1809 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 1810 1811 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1812 1813 1814 #line 486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1815 1816 1817 #line default 1818 #line hidden 1819 1820 #line 486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1821 if (GetBoolean("Ecom:Order.ShippingFee.IsZero") && GetString("Ecom:Order.Taxes.Total.Price") == "0.00") 1822 { 1823 1824 1825 #line default 1826 #line hidden 1827 1828 #line 488 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1829 WriteTo(__razor_helper_writer, Translate("* Taxes and Shipping calculated at Checkout")); 1830 1831 1832 #line default 1833 #line hidden 1834 1835 #line 488 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1836 1837 } 1838 else 1839 { 1840 1841 1842 #line default 1843 #line hidden 1844 1845 #line 492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1846 WriteTo(__razor_helper_writer, Translate("*Taxes Calculated at Checkout")); 1847 1848 1849 #line default 1850 #line hidden 1851 1852 #line 492 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1853 1854 } 1855 1856 #line default 1857 #line hidden 1858 WriteLiteralTo(__razor_helper_writer, "\r\n </small>\r\n"); 1859 1860 1861 #line 495 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1862 } 1863 1864 1865 #line default 1866 #line hidden 1867 }); 1868 1869 #line 496 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1870 } 1871 #line default 1872 #line hidden 1873 1874 1875 #line 499 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1876 1877 1878 public bool AreAddressesTheSame() 1879 { 1880 var customerAddressHash = GetAddressHash(AddressSource.EcomCustomer); 1881 var deliveryAddressHash = GetAddressHash(AddressSource.EcomDelivery); 1882 1883 return customerAddressHash == deliveryAddressHash; 1884 } 1885 1886 public string GetAddressHash(int addressId) 1887 { 1888 var address = UserAddress.GetUserAddressById(addressId); 1889 return GetAddressHash(address.Address, address.Address2, address.City, address.Region.TwoLetterISORegionName, address.Zip, address.Country); 1890 } 1891 1892 public string GetAddressHash(AddressSource addressSource) 1893 { 1894 switch (addressSource) 1895 { 1896 case AddressSource.EcomCustomer: 1897 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")); 1898 case AddressSource.EcomDelivery: 1899 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")); 1900 case AddressSource.UserProfile: 1901 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")); 1902 case AddressSource.UserAddress: 1903 throw new NotSupportedException("Unsupported address source. Use an AddressId instead"); 1904 default: 1905 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 1906 } 1907 } 1908 1909 public string GetAddressHash(string address, string address2, string city, string region, string zip, string country) 1910 { 1911 return string.Concat(address, address2, city, region, zip, country); 1912 } 1913 1914 1915 #line default 1916 #line hidden 1917 1918 1919 #line 540 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1920 public RazorEngine.Templating.TemplateWriter RenderViewCartActions() 1921 { 1922 #line default 1923 #line hidden 1924 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1925 1926 #line 541 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1927 1928 1929 1930 #line default 1931 #line hidden 1932 WriteLiteralTo(__razor_helper_writer, " <div"); 1933 1934 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 1935 1936 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1937 1938 WriteLiteralTo(__razor_helper_writer, " "); 1939 1940 1941 #line 543 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1942 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"))); 1943 1944 1945 #line default 1946 #line hidden 1947 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1948 1949 1950 #line 545 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1951 1952 1953 #line default 1954 #line hidden 1955 }); 1956 1957 #line 545 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1958 } 1959 #line default 1960 #line hidden 1961 1962 1963 #line 547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1964 public RazorEngine.Templating.TemplateWriter RenderCheckoutActions(bool showPrevious = false) 1965 { 1966 #line default 1967 #line hidden 1968 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1969 1970 #line 548 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1971 1972 1973 1974 #line default 1975 #line hidden 1976 WriteLiteralTo(__razor_helper_writer, " <div"); 1977 1978 WriteLiteralTo(__razor_helper_writer, " class=\"continueButton col-xs-12\""); 1979 1980 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1981 1982 1983 #line 550 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1984 1985 1986 #line default 1987 #line hidden 1988 1989 #line 550 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1990 if (showPrevious) 1991 { 1992 var previousButton = "/Default.aspx?Id=" + Pageview.Page.ID + "&amp;" + GetString("CartV2.PreviousStepButtonName") + "=true"; 1993 1994 1995 #line default 1996 #line hidden 1997 1998 #line 553 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 1999 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Previous"), previousButton, "pull-left previousButton"))); 2000 2001 2002 #line default 2003 #line hidden 2004 2005 #line 553 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2006 2007 } 2008 2009 #line default 2010 #line hidden 2011 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2012 2013 WriteLiteralTo(__razor_helper_writer, " "); 2014 2015 2016 #line 555 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2017 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateSubmitField(Translate("Continue Checkout"), "btn-default pull-right"))); 2018 2019 2020 #line default 2021 #line hidden 2022 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2023 2024 2025 #line 557 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2026 2027 2028 #line default 2029 #line hidden 2030 }); 2031 2032 #line 557 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2033 } 2034 #line default 2035 #line hidden 2036 2037 2038 #line 559 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2039 public RazorEngine.Templating.TemplateWriter RenderCheckoutCompleteActions(bool isCheckoutFlow = true) 2040 { 2041 #line default 2042 #line hidden 2043 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2044 2045 #line 560 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2046 2047 var printUrl = HttpContext.Current.Request.RawUrl + "&amp;print=true"; 2048 var pdfUrl = printUrl + "&amp;pdf=true&amp;filename=Order_" + GetString("Ecom:Order.ID") + ".pdf"; 2049 2050 2051 2052 #line default 2053 #line hidden 2054 WriteLiteralTo(__razor_helper_writer, " <div"); 2055 2056 WriteLiteralTo(__razor_helper_writer, " class=\"continueButton col-xs-12 hidden-xs\""); 2057 2058 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2059 2060 WriteLiteralTo(__razor_helper_writer, " "); 2061 2062 2063 #line 565 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2064 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 2065 { 2066 Label = Translate("Print"), 2067 Href = printUrl, 2068 CssClass = "btn-default pull-left print", 2069 Target = "_blank" 2070 })); 2071 2072 2073 #line default 2074 #line hidden 2075 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2076 2077 WriteLiteralTo(__razor_helper_writer, " "); 2078 2079 2080 #line 572 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2081 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 2082 { 2083 Label = Translate("Download as PDF"), 2084 Href = pdfUrl, 2085 CssClass = "btn-default pull-left dwnPdf", 2086 Target = "_blank" 2087 })); 2088 2089 2090 #line default 2091 #line hidden 2092 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 2093 2094 2095 #line 580 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2096 2097 2098 #line default 2099 #line hidden 2100 2101 #line 580 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2102 if (!isCheckoutFlow) 2103 { 2104 2105 2106 #line default 2107 #line hidden 2108 2109 #line 582 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2110 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 2111 { 2112 Label = Translate("Back"), 2113 Href = "javascript:history.back();", 2114 CssClass = "btn-bg2 pull-right", 2115 IconCssClass = "fa-arrow-left" 2116 })); 2117 2118 2119 #line default 2120 #line hidden 2121 2122 #line 588 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2123 2124 } 2125 2126 #line default 2127 #line hidden 2128 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2129 2130 2131 #line 591 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2132 2133 2134 #line default 2135 #line hidden 2136 }); 2137 2138 #line 591 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2139 } 2140 #line default 2141 #line hidden 2142 2143 2144 #line 593 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2145 public RazorEngine.Templating.TemplateWriter RenderCartContents(List<LoopItem> orderlines, CartOutputType outputType = CartOutputType.ReadOnly, List<LoopItem> orderLinesOutOfStock = null) 2146 { 2147 #line default 2148 #line hidden 2149 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2150 2151 #line 594 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2152 2153 var ulCssClass = outputType != CartOutputType.Email && outputType != CartOutputType.MiniCart ? "cartProductsList" : "col-xs-12"; 2154 var ulCssId = outputType == CartOutputType.MiniCart ? "miniCartContainer" : ""; 2155 2156 if (outputType == CartOutputType.Editable && orderLinesOutOfStock.Any()) 2157 { 2158 2159 2160 #line default 2161 #line hidden 2162 WriteLiteralTo(__razor_helper_writer, " <h2"); 2163 2164 WriteLiteralTo(__razor_helper_writer, " class=\"outOfStock\""); 2165 2166 WriteLiteralTo(__razor_helper_writer, ">"); 2167 2168 2169 #line 600 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2170 WriteTo(__razor_helper_writer, Translate("One or more items in your cart are not available")); 2171 2172 2173 #line default 2174 #line hidden 2175 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 2176 2177 2178 #line 601 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2179 2180 2181 2182 #line default 2183 #line hidden 2184 WriteLiteralTo(__razor_helper_writer, " <header"); 2185 2186 WriteLiteralTo(__razor_helper_writer, " class=\"showCartHeader col-sm-12 noPadding\""); 2187 2188 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2189 2190 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 col-xs-offset-4 noPadding mdAlignRight\""); 2191 2192 WriteLiteralTo(__razor_helper_writer, ">"); 2193 2194 2195 #line 603 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2196 WriteTo(__razor_helper_writer, Translate("Unit price")); 2197 2198 2199 #line default 2200 #line hidden 2201 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2202 2203 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 2204 2205 WriteLiteralTo(__razor_helper_writer, ">"); 2206 2207 2208 #line 604 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2209 WriteTo(__razor_helper_writer, Translate("Qty Available")); 2210 2211 2212 #line default 2213 #line hidden 2214 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2215 2216 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 2217 2218 WriteLiteralTo(__razor_helper_writer, ">"); 2219 2220 2221 #line 605 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2222 WriteTo(__razor_helper_writer, Translate("Qty Requested")); 2223 2224 2225 #line default 2226 #line hidden 2227 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2228 2229 WriteLiteralTo(__razor_helper_writer, " class=\"col-sm-2 totalPrice text-right\""); 2230 2231 WriteLiteralTo(__razor_helper_writer, ">"); 2232 2233 2234 #line 606 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2235 WriteTo(__razor_helper_writer, Translate("Total Price")); 2236 2237 2238 #line default 2239 #line hidden 2240 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </header>\r\n"); 2241 2242 2243 #line 608 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2244 2245 2246 2247 #line default 2248 #line hidden 2249 WriteLiteralTo(__razor_helper_writer, " "); 2250 2251 WriteLiteralTo(__razor_helper_writer, "<ul class=\""); 2252 2253 2254 #line 609 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2255 WriteTo(__razor_helper_writer, ulCssClass); 2256 2257 2258 #line default 2259 #line hidden 2260 WriteLiteralTo(__razor_helper_writer, " outOfStock\" id=\""); 2261 2262 2263 #line 609 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2264 WriteTo(__razor_helper_writer, ulCssId); 2265 2266 2267 #line default 2268 #line hidden 2269 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 2270 2271 2272 #line 610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2273 2274 foreach (var orderline in orderLinesOutOfStock) 2275 { 2276 2277 2278 #line default 2279 #line hidden 2280 2281 #line 613 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2282 WriteTo(__razor_helper_writer, InternalRenderCartContentLine(orderline, outputType, true)); 2283 2284 2285 #line default 2286 #line hidden 2287 2288 #line 613 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2289 2290 } 2291 2292 2293 2294 #line default 2295 #line hidden 2296 WriteLiteralTo(__razor_helper_writer, " "); 2297 2298 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 2299 2300 2301 #line 617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2302 } 2303 2304 if (outputType == CartOutputType.Editable && orderLinesOutOfStock.Any()) 2305 { 2306 2307 2308 #line default 2309 #line hidden 2310 WriteLiteralTo(__razor_helper_writer, " <h2"); 2311 2312 WriteLiteralTo(__razor_helper_writer, " class=\"outOfStock\""); 2313 2314 WriteLiteralTo(__razor_helper_writer, ">"); 2315 2316 2317 #line 621 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2318 WriteTo(__razor_helper_writer, Translate("The following products are in stock and can be ordered")); 2319 2320 2321 #line default 2322 #line hidden 2323 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 2324 2325 2326 #line 622 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2327 } 2328 2329 if (outputType != CartOutputType.Email && outputType != CartOutputType.MiniCart) 2330 { 2331 2332 2333 #line default 2334 #line hidden 2335 WriteLiteralTo(__razor_helper_writer, " <header"); 2336 2337 WriteLiteralTo(__razor_helper_writer, " class=\"showCartHeader col-sm-12 noPadding\""); 2338 2339 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2340 2341 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 col-xs-offset-4 noPadding mdAlignRight\""); 2342 2343 WriteLiteralTo(__razor_helper_writer, ">"); 2344 2345 2346 #line 627 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2347 WriteTo(__razor_helper_writer, Translate("Unit price")); 2348 2349 2350 #line default 2351 #line hidden 2352 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2353 2354 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 2355 2356 WriteLiteralTo(__razor_helper_writer, ">"); 2357 2358 2359 #line 628 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2360 WriteTo(__razor_helper_writer, Translate("Qty")); 2361 2362 2363 #line default 2364 #line hidden 2365 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2366 2367 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 2368 2369 WriteLiteralTo(__razor_helper_writer, ">"); 2370 2371 2372 #line 629 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2373 WriteTo(__razor_helper_writer, Translate("Discount")); 2374 2375 2376 #line default 2377 #line hidden 2378 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2379 2380 WriteLiteralTo(__razor_helper_writer, " class=\"col-sm-2 totalPrice text-right\""); 2381 2382 WriteLiteralTo(__razor_helper_writer, ">"); 2383 2384 2385 #line 630 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2386 WriteTo(__razor_helper_writer, Translate("Total Price")); 2387 2388 2389 #line default 2390 #line hidden 2391 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </header>\r\n"); 2392 2393 2394 #line 632 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2395 } 2396 else if (outputType == CartOutputType.MiniCart) 2397 { 2398 var totalQty = GetInteger("Ecom:Order.OrderLines.TotalProductQuantity"); // variable needed to avoid Ajax issues with the attribute value 2399 2400 // This will allow carts to be picked up by "Abandoned Carts" provider without users going to the cart 2401 if (User.IsExtranetUserLoggedIn() && GetString("Ecom:Order.Customer.Email").IsNullOrEmpty() || GetString("Ecom:Order.ShopID").IsNullOrEmpty()) 2402 { 2403 var order = Order.GetOrderById(GetString("Ecom:Order.ID")); 2404 var userEmail = Pageview.User != null ? Pageview.User.Email : string.Empty; 2405 if (order != null) 2406 { 2407 order.ShopId = Pageview.Area.EcomShopId; 2408 if (userEmail.IsNotNullOrEmpty()) 2409 { 2410 order.CustomerEmail = userEmail; 2411 } 2412 order.Save(); 2413 } 2414 } 2415 2416 2417 2418 #line default 2419 #line hidden 2420 WriteLiteralTo(__razor_helper_writer, " "); 2421 2422 WriteLiteralTo(__razor_helper_writer, "<div>\r\n"); 2423 2424 2425 #line 654 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2426 var orderMinicart = Dynamicweb.Ecommerce.Common.Context.Cart; 2427 var lastDateMinicart = (DateTime?) null; 2428 2429 if (orderMinicart != null) 2430 { 2431 var lineModifedMinicart = orderMinicart.OrderLines.Max(x => x.Modified); // Gets the latest changed date on the line, requires at least one line to be present 2432 lastDateMinicart = lineModifedMinicart > orderMinicart.Modified ? lineModifedMinicart : orderMinicart.Modified; 2433 } 2434 2435 2436 #line default 2437 #line hidden 2438 WriteLiteralTo(__razor_helper_writer, " "); 2439 2440 WriteLiteralTo(__razor_helper_writer, "<div id=\"miniCart\" data-quantity=\""); 2441 2442 2443 #line 662 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2444 WriteTo(__razor_helper_writer, totalQty); 2445 2446 2447 #line default 2448 #line hidden 2449 WriteLiteralTo(__razor_helper_writer, "\" data-orderId=\'"); 2450 2451 2452 #line 662 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2453 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ID")); 2454 2455 2456 #line default 2457 #line hidden 2458 WriteLiteralTo(__razor_helper_writer, "\' data-modifiedDate=\""); 2459 2460 2461 #line 662 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2462 WriteTo(__razor_helper_writer, lastDateMinicart); 2463 2464 2465 #line default 2466 #line hidden 2467 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 2468 2469 2470 #line 663 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2471 } 2472 2473 2474 2475 #line default 2476 #line hidden 2477 WriteLiteralTo(__razor_helper_writer, " "); 2478 2479 WriteLiteralTo(__razor_helper_writer, "<ul class=\""); 2480 2481 2482 #line 665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2483 WriteTo(__razor_helper_writer, ulCssClass); 2484 2485 2486 #line default 2487 #line hidden 2488 WriteLiteralTo(__razor_helper_writer, "\" id=\""); 2489 2490 2491 #line 665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2492 WriteTo(__razor_helper_writer, ulCssId); 2493 2494 2495 #line default 2496 #line hidden 2497 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 2498 2499 2500 #line 666 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2501 2502 foreach (var orderline in orderlines) 2503 { 2504 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 2505 2506 if (orderLineType == OrderLineType.Product || 2507 orderLineType == OrderLineType.GiftCard || 2508 orderLineType == OrderLineType.Fixed || 2509 orderLineType == OrderLineType.PointProduct || 2510 orderLineType == OrderLineType.Discount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero") || 2511 orderLineType == OrderLineType.ProductDiscount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero")) 2512 { 2513 if (outputType == CartOutputType.Email) 2514 { 2515 2516 2517 #line default 2518 #line hidden 2519 2520 #line 680 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2521 WriteTo(__razor_helper_writer, InternalRenderEmailCartContentLine(orderline)); 2522 2523 2524 #line default 2525 #line hidden 2526 2527 #line 680 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2528 2529 } 2530 else if (outputType != CartOutputType.Editable || orderLinesOutOfStock == null || !orderLinesOutOfStock.Any() || !orderLinesOutOfStock.Contains(orderline)) 2531 { 2532 2533 2534 #line default 2535 #line hidden 2536 2537 #line 684 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2538 WriteTo(__razor_helper_writer, InternalRenderCartContentLine(orderline, outputType)); 2539 2540 2541 #line default 2542 #line hidden 2543 2544 #line 684 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2545 2546 } 2547 } 2548 } 2549 2550 if (outputType != CartOutputType.Email) 2551 { 2552 2553 2554 #line default 2555 #line hidden 2556 WriteLiteralTo(__razor_helper_writer, " "); 2557 2558 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 2559 2560 2561 #line 692 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2562 } 2563 if (outputType == CartOutputType.MiniCart) 2564 { 2565 var checkoutUrl = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.Area.ID, "MyCart").ID + "&CartV2.GotoStep1=true"); 2566 2567 2568 2569 #line default 2570 #line hidden 2571 WriteLiteralTo(__razor_helper_writer, " <footer"); 2572 2573 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 2574 2575 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2576 2577 WriteLiteralTo(__razor_helper_writer, " class=\"subTotal col-xs-12 noPadding\""); 2578 2579 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2580 2581 WriteLiteralTo(__razor_helper_writer, " "); 2582 2583 2584 #line 699 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2585 WriteTo(__razor_helper_writer, Translate("Subtotal")); 2586 2587 2588 #line default 2589 #line hidden 2590 WriteLiteralTo(__razor_helper_writer, " <span"); 2591 2592 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 2593 2594 WriteLiteralTo(__razor_helper_writer, ">"); 2595 2596 2597 #line 699 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2598 WriteTo(__razor_helper_writer, RenderProductPrice(GetString("Ecom:Order.PriceWithoutFees.PriceFormatted"))); 2599 2600 2601 #line default 2602 #line hidden 2603 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n <div"); 2604 2605 WriteLiteralTo(__razor_helper_writer, " class=\"miniCartBtns col-xs-12 noPadding\""); 2606 2607 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2608 2609 WriteLiteralTo(__razor_helper_writer, " "); 2610 2611 2612 #line 702 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2613 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Show Cart"), Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetPageIdByNavigationTag("MyCart")), "btn-default pull-left"))); 2614 2615 2616 #line default 2617 #line hidden 2618 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 2619 2620 2621 #line 704 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2622 2623 2624 #line default 2625 #line hidden 2626 2627 #line 704 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2628 2629 var isWebServiceConnectionAvailable = Dna.Ecommerce.LiveIntegration.TemplatesHelper.IsWebServiceConnectionAvailable(); 2630 2631 if ((isWebServiceConnectionAvailable || !ShowNoErpConnectionMessage()) && !orderLinesOutOfStock.Any()) 2632 { 2633 2634 2635 #line default 2636 #line hidden 2637 2638 #line 709 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2639 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Checkout"), checkoutUrl, "btn-default pull-right"))); 2640 2641 2642 #line default 2643 #line hidden 2644 2645 #line 709 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2646 2647 } 2648 2649 2650 #line default 2651 #line hidden 2652 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n"); 2653 2654 WriteLiteralTo(__razor_helper_writer, " "); 2655 2656 2657 #line 714 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2658 WriteTo(__razor_helper_writer, InternalRenderOrderAmountsDisclaimer()); 2659 2660 2661 #line default 2662 #line hidden 2663 WriteLiteralTo(__razor_helper_writer, "\r\n </footer>\r\n"); 2664 2665 WriteLiteralTo(__razor_helper_writer, " "); 2666 2667 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2668 2669 WriteLiteralTo(__razor_helper_writer, " "); 2670 2671 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2672 2673 WriteLiteralTo(__razor_helper_writer, " "); 2674 2675 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2676 2677 2678 #line 719 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2679 } 2680 2681 2682 #line default 2683 #line hidden 2684 }); 2685 2686 #line 720 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2687 } 2688 #line default 2689 #line hidden 2690 2691 2692 #line 722 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2693 public RazorEngine.Templating.TemplateWriter RenderCartContentsSummary(List<LoopItem> orderlines, string voucherValue, CartOutputType outputType = CartOutputType.ReadOnly) 2694 { 2695 #line default 2696 #line hidden 2697 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2698 2699 #line 723 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2700 2701 var voucherResult = PromoCodeChecker.CheckOrderPromoCode(voucherValue); 2702 2703 2704 #line default 2705 #line hidden 2706 2707 #line 725 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2708 WriteTo(__razor_helper_writer, RenderCartContentsSummary(orderlines, voucherValue, voucherResult, outputType)); 2709 2710 2711 #line default 2712 #line hidden 2713 2714 #line 725 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2715 2716 2717 2718 #line default 2719 #line hidden 2720 }); 2721 2722 #line 726 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2723 } 2724 #line default 2725 #line hidden 2726 2727 2728 #line 728 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2729 public RazorEngine.Templating.TemplateWriter RenderCartContentsSummary(List<LoopItem> orderlines, string voucherValue, PromoCodeInfo voucherResult, CartOutputType outputType = CartOutputType.ReadOnly) 2730 { 2731 #line default 2732 #line hidden 2733 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2734 2735 #line 729 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2736 2737 var orderDiscount = orderlines 2738 .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()) 2739 .Sum(s => s.GetDouble("Ecom:Order:OrderLine.Price.Price")); 2740 2741 if (outputType != CartOutputType.Email) 2742 { 2743 2744 2745 #line default 2746 #line hidden 2747 WriteLiteralTo(__razor_helper_writer, " "); 2748 2749 WriteLiteralTo(__razor_helper_writer, "<div id=\"totalPriceContainer\" class=\"col-xs-12 col-sm-5 noPadding pull-right noPa" + 2750 "dding-xs\"> \r\n"); 2751 2752 2753 #line 737 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2754 } 2755 2756 if (voucherResult.Valid && !voucherResult.Expired && !voucherResult.Inactive && voucherValue.IsNotNullOrEmpty()) 2757 { 2758 2759 2760 #line default 2761 #line hidden 2762 WriteLiteralTo(__razor_helper_writer, " <div"); 2763 2764 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 2765 2766 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2767 2768 WriteLiteralTo(__razor_helper_writer, " class=\"discountContainer col-xs-12\""); 2769 2770 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2771 2772 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 2773 2774 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 2775 2776 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 col-sm-7 noPadding\""); 2777 2778 WriteLiteralTo(__razor_helper_writer, ">"); 2779 2780 2781 #line 744 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2782 WriteTo(__razor_helper_writer, Translate("Voucher")); 2783 2784 2785 #line default 2786 #line hidden 2787 WriteLiteralTo(__razor_helper_writer, ": "); 2788 2789 2790 #line 744 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2791 WriteTo(__razor_helper_writer, EcommerceHelpers.GetVoucherName(voucherValue)); 2792 2793 2794 #line default 2795 #line hidden 2796 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n </div>\r\n </div>\r\n" + 2797 ""); 2798 2799 2800 #line 748 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2801 } 2802 2803 if (GetDouble("Ecom:Order.TotalPoints") > 0) 2804 { 2805 2806 2807 #line default 2808 #line hidden 2809 2810 #line 752 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2811 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Loyalty Points Spent"), GetString("Ecom:Order.TotalPoints"), false, outputType)); 2812 2813 2814 #line default 2815 #line hidden 2816 2817 #line 752 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2818 2819 } 2820 2821 if (GetDouble("Ecom:Order.RewardTotalPoints") > 0) 2822 { 2823 2824 2825 #line default 2826 #line hidden 2827 2828 #line 757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2829 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Loyalty Points Earned"), GetString("Ecom:Order.RewardTotalPoints"), false, outputType)); 2830 2831 2832 #line default 2833 #line hidden 2834 2835 #line 757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2836 2837 } 2838 2839 if (orderDiscount < 0) 2840 { 2841 2842 2843 #line default 2844 #line hidden 2845 2846 #line 762 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2847 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Order Savings"), Dynamicweb.Ecommerce.Common.Context.Currency.Format(orderDiscount, true), false, outputType)); 2848 2849 2850 #line default 2851 #line hidden 2852 2853 #line 762 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2854 2855 } 2856 if (GetString("Ecom:Order.PriceWithoutFees.PriceFormatted") != "0.00") 2857 { 2858 2859 2860 #line default 2861 #line hidden 2862 2863 #line 766 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2864 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Subtotal"), GetString("Ecom:Order.PriceWithoutFees.PriceFormatted"), true, outputType)); 2865 2866 2867 #line default 2868 #line hidden 2869 2870 #line 766 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2871 2872 } 2873 if (GetString("Ecom:Order.ShippingMethodID").IsNotNullOrEmpty()) 2874 { 2875 2876 2877 #line default 2878 #line hidden 2879 2880 #line 770 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2881 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(GetString("Ecom:Order.ShippingMethod"), GetString("Ecom:Order.ShippingFee.PriceWithoutVATFormatted"), false, outputType)); 2882 2883 2884 #line default 2885 #line hidden 2886 2887 #line 770 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2888 2889 } 2890 if (GetString("Ecom:Order.Taxes.Total.Price") != "0.00") 2891 { 2892 2893 2894 #line default 2895 #line hidden 2896 2897 #line 774 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2898 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Taxes"), GetString("Ecom:Order.Taxes.Total"), false, outputType)); 2899 2900 2901 #line default 2902 #line hidden 2903 2904 #line 774 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2905 2906 } 2907 2908 2909 #line default 2910 #line hidden 2911 2912 #line 776 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2913 WriteTo(__razor_helper_writer, InternalRenderTotalAmountLine(Translate("Total"), GetString("Ecom:Order.Price"), true, outputType)); 2914 2915 2916 #line default 2917 #line hidden 2918 2919 #line 776 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2920 2921 2922 if (outputType != CartOutputType.Email) 2923 { 2924 2925 2926 #line default 2927 #line hidden 2928 2929 #line 780 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2930 WriteTo(__razor_helper_writer, InternalRenderOrderAmountsDisclaimer()); 2931 2932 2933 #line default 2934 #line hidden 2935 2936 #line 780 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2937 2938 2939 2940 #line default 2941 #line hidden 2942 WriteLiteralTo(__razor_helper_writer, " "); 2943 2944 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 2945 2946 2947 #line 782 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2948 } 2949 2950 2951 #line default 2952 #line hidden 2953 }); 2954 2955 #line 783 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2956 } 2957 #line default 2958 #line hidden 2959 2960 2961 #line 785 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2962 public RazorEngine.Templating.TemplateWriter RenderCartSummary(List<LoopItem> orderlines) 2963 { 2964 #line default 2965 #line hidden 2966 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2967 2968 #line 786 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2969 2970 var orderDiscount = orderlines 2971 .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()) 2972 .Sum(s => s.GetDouble("Ecom:Order:OrderLine.Price.Price")); 2973 2974 var areAddessesTheSame = AreAddressesTheSame(); 2975 2976 2977 2978 #line default 2979 #line hidden 2980 WriteLiteralTo(__razor_helper_writer, " <h2"); 2981 2982 WriteLiteralTo(__razor_helper_writer, " data-cartid=\""); 2983 2984 2985 #line 793 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2986 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ID")); 2987 2988 2989 #line default 2990 #line hidden 2991 WriteLiteralTo(__razor_helper_writer, "\""); 2992 2993 WriteLiteralTo(__razor_helper_writer, ">"); 2994 2995 2996 #line 793 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 2997 WriteTo(__razor_helper_writer, Translate("Order Summary")); 2998 2999 3000 #line default 3001 #line hidden 3002 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 3003 3004 3005 #line 794 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3006 3007 if (orderlines.Any()) 3008 { 3009 var billingAndShippingAddressesTranslate = Translate("Billing & Shipping Address"); 3010 var billingAddressTranslate = Translate("Billing Address"); 3011 var shippingAddressTranslate = Translate("Shipping Address"); 3012 3013 3014 3015 #line default 3016 #line hidden 3017 WriteLiteralTo(__razor_helper_writer, " <dl"); 3018 3019 WriteLiteralTo(__razor_helper_writer, " data-billingandshippingaddresses=\'"); 3020 3021 3022 #line 801 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3023 WriteTo(__razor_helper_writer, billingAndShippingAddressesTranslate); 3024 3025 3026 #line default 3027 #line hidden 3028 WriteLiteralTo(__razor_helper_writer, "\'"); 3029 3030 WriteLiteralTo(__razor_helper_writer, " data-billingaddress=\'"); 3031 3032 3033 #line 801 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3034 WriteTo(__razor_helper_writer, billingAddressTranslate); 3035 3036 3037 #line default 3038 #line hidden 3039 WriteLiteralTo(__razor_helper_writer, "\'"); 3040 3041 WriteLiteralTo(__razor_helper_writer, " data-shippingaddress=\'"); 3042 3043 3044 #line 801 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3045 WriteTo(__razor_helper_writer, shippingAddressTranslate); 3046 3047 3048 #line default 3049 #line hidden 3050 WriteLiteralTo(__razor_helper_writer, "\'"); 3051 3052 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3053 3054 3055 #line 802 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3056 3057 3058 #line default 3059 #line hidden 3060 3061 #line 802 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3062 if(GetString("Ecom:Order.Customer.Name").IsNotNullOrEmpty()) { 3063 3064 3065 #line default 3066 #line hidden 3067 WriteLiteralTo(__razor_helper_writer, " <dt"); 3068 3069 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 rightTitle borderBottom shippingAddressTitle\""); 3070 3071 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3072 3073 WriteLiteralTo(__razor_helper_writer, " "); 3074 3075 3076 #line 804 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3077 WriteTo(__razor_helper_writer, areAddessesTheSame ? billingAndShippingAddressesTranslate : shippingAddressTranslate); 3078 3079 3080 #line default 3081 #line hidden 3082 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 3083 3084 WriteLiteralTo(__razor_helper_writer, " <dd"); 3085 3086 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 shippingAddress\""); 3087 3088 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3089 3090 3091 #line 807 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3092 3093 3094 #line default 3095 #line hidden 3096 3097 #line 807 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3098 if(GetString("Ecom:Order.Delivery.Name").IsNotNullOrEmpty()) 3099 { 3100 3101 3102 #line default 3103 #line hidden 3104 3105 #line 809 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3106 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Delivery.Name")); 3107 3108 3109 #line default 3110 #line hidden 3111 WriteLiteralTo(__razor_helper_writer, "<br/>\r\n"); 3112 3113 3114 #line 810 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3115 } 3116 3117 #line default 3118 #line hidden 3119 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3120 3121 WriteLiteralTo(__razor_helper_writer, " "); 3122 3123 3124 #line 811 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3125 WriteTo(__razor_helper_writer, GetAddressFormatted(AddressSource.EcomDelivery, false, true, true, "<br/>")); 3126 3127 3128 #line default 3129 #line hidden 3130 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 3131 3132 3133 #line 813 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3134 if (!areAddessesTheSame && GetString("Ecom:Order.Delivery.Address").IsNotNullOrEmpty()) 3135 { 3136 3137 3138 #line default 3139 #line hidden 3140 WriteLiteralTo(__razor_helper_writer, " <dt"); 3141 3142 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 rightTitle billingAddressTitle\""); 3143 3144 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3145 3146 WriteLiteralTo(__razor_helper_writer, " "); 3147 3148 3149 #line 816 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3150 WriteTo(__razor_helper_writer, billingAddressTranslate); 3151 3152 3153 #line default 3154 #line hidden 3155 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 3156 3157 WriteLiteralTo(__razor_helper_writer, " <dd"); 3158 3159 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 billingAddress\""); 3160 3161 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3162 3163 WriteLiteralTo(__razor_helper_writer, " "); 3164 3165 3166 #line 819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3167 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Customer.Name")); 3168 3169 3170 #line default 3171 #line hidden 3172 WriteLiteralTo(__razor_helper_writer, "<br/>\r\n"); 3173 3174 WriteLiteralTo(__razor_helper_writer, " "); 3175 3176 3177 #line 820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3178 WriteTo(__razor_helper_writer, GetAddressFormatted(AddressSource.EcomCustomer, false, true, true, "<br/>")); 3179 3180 3181 #line default 3182 #line hidden 3183 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 3184 3185 3186 #line 822 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3187 } 3188 } 3189 3190 #line default 3191 #line hidden 3192 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3193 3194 WriteLiteralTo(__razor_helper_writer, " "); 3195 3196 3197 #line 825 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3198 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Payment Method"), GetString("Ecom:Order.PaymentMethod"), string.Empty, "paymentMethodName", false, true)); 3199 3200 3201 #line default 3202 #line hidden 3203 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n <dt"); 3204 3205 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 borderBottom orderSummaryDeta\""); 3206 3207 WriteLiteralTo(__razor_helper_writer, ">"); 3208 3209 3210 #line 827 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3211 WriteTo(__razor_helper_writer, Translate("Order Details")); 3212 3213 3214 #line default 3215 #line hidden 3216 WriteLiteralTo(__razor_helper_writer, "</dt>\r\n <dd"); 3217 3218 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 osProducts\""); 3219 3220 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul>\r\n"); 3221 3222 3223 #line 830 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3224 3225 3226 #line default 3227 #line hidden 3228 3229 #line 830 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3230 foreach (var orderline in orderlines) 3231 { 3232 var variantText = orderline.GetString("Ecom:Order:OrderLine.ProductVariantText"); 3233 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 3234 3235 if (orderLineType == OrderLineType.Product || 3236 orderLineType == OrderLineType.GiftCard || 3237 orderLineType == OrderLineType.Fixed || 3238 orderLineType == OrderLineType.PointProduct || 3239 orderLineType == OrderLineType.Discount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero") || 3240 orderLineType == OrderLineType.ProductDiscount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero")) 3241 { 3242 3243 3244 #line default 3245 #line hidden 3246 WriteLiteralTo(__razor_helper_writer, " <li"); 3247 3248 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 3249 3250 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 3251 3252 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPaddingLeft\""); 3253 3254 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3255 3256 WriteLiteralTo(__razor_helper_writer, " "); 3257 3258 3259 #line 844 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3260 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductName")); 3261 3262 3263 #line default 3264 #line hidden 3265 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3266 3267 3268 #line 845 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3269 3270 3271 #line default 3272 #line hidden 3273 3274 #line 845 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3275 if (variantText.IsNotNullOrEmpty()) 3276 { 3277 3278 3279 #line default 3280 #line hidden 3281 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 3282 3283 WriteLiteralTo(__razor_helper_writer, " <small>"); 3284 3285 3286 #line 848 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3287 WriteTo(__razor_helper_writer, variantText); 3288 3289 3290 #line default 3291 #line hidden 3292 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3293 3294 3295 #line 849 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3296 } 3297 3298 #line default 3299 #line hidden 3300 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n " + 3301 " <div>\r\n <small"); 3302 3303 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 noPaddingLeft\""); 3304 3305 WriteLiteralTo(__razor_helper_writer, ">"); 3306 3307 3308 #line 852 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3309 WriteTo(__razor_helper_writer, Translate("Qty")); 3310 3311 3312 #line default 3313 #line hidden 3314 WriteLiteralTo(__razor_helper_writer, ": "); 3315 3316 3317 #line 852 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3318 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Quantity")); 3319 3320 3321 #line default 3322 #line hidden 3323 WriteLiteralTo(__razor_helper_writer, "</small>\r\n <span"); 3324 3325 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 text-right noPadding\""); 3326 3327 WriteLiteralTo(__razor_helper_writer, ">"); 3328 3329 3330 #line 853 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3331 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts")); 3332 3333 3334 #line default 3335 #line hidden 3336 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n " + 3337 " </li>\r\n"); 3338 3339 3340 #line 856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3341 } 3342 } 3343 3344 #line default 3345 #line hidden 3346 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n </dd>\r\n \r\n"); 3347 3348 3349 #line 861 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3350 3351 3352 #line default 3353 #line hidden 3354 3355 #line 861 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3356 if (GetDouble("Ecom:Order.TotalPoints") > 0) 3357 { 3358 3359 3360 #line default 3361 #line hidden 3362 3363 #line 863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3364 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Loyalty Points Spent"), GetString("Ecom:Order.TotalPoints"), "orderSummaryPointsSpent")); 3365 3366 3367 #line default 3368 #line hidden 3369 3370 #line 863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3371 3372 } 3373 3374 #line default 3375 #line hidden 3376 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3377 3378 3379 #line 866 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3380 3381 3382 #line default 3383 #line hidden 3384 3385 #line 866 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3386 if (GetDouble("Ecom:Order.RewardTotalPoints") > 0) 3387 { 3388 3389 3390 #line default 3391 #line hidden 3392 3393 #line 868 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3394 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Loyalty Points Earned"), GetString("Ecom:Order.RewardTotalPoints"), "orderSummaryPointsEarned")); 3395 3396 3397 #line default 3398 #line hidden 3399 3400 #line 868 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3401 3402 } 3403 3404 #line default 3405 #line hidden 3406 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3407 3408 3409 #line 871 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3410 3411 3412 #line default 3413 #line hidden 3414 3415 #line 871 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3416 if (orderDiscount < 0) 3417 { 3418 3419 3420 #line default 3421 #line hidden 3422 3423 #line 873 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3424 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Order Savings"), Dynamicweb.Ecommerce.Common.Context.Currency.Format(orderDiscount, true), "orderSummaryOrderSavings")); 3425 3426 3427 #line default 3428 #line hidden 3429 3430 #line 873 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3431 3432 } 3433 3434 #line default 3435 #line hidden 3436 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3437 3438 WriteLiteralTo(__razor_helper_writer, " "); 3439 3440 3441 #line 876 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3442 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Subtotal"), GetString("Ecom:Order.PriceWithoutFees.PriceFormatted"), "orderSummarySubtotal", string.Empty, true)); 3443 3444 3445 #line default 3446 #line hidden 3447 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3448 3449 WriteLiteralTo(__razor_helper_writer, " "); 3450 3451 3452 #line 878 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3453 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(GetString("Ecom:Order.ShippingMethod"), GetString("Ecom:Order.ShippingFee.PriceWithoutVATFormatted"), "orderSummaryShippingName", "orderSummaryShippingPrice", false, true)); 3454 3455 3456 #line default 3457 #line hidden 3458 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3459 3460 3461 #line 880 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3462 3463 3464 #line default 3465 #line hidden 3466 3467 #line 880 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3468 if (GetString("Ecom:Order.Taxes.Total.Price") != "0.00") 3469 { 3470 3471 3472 #line default 3473 #line hidden 3474 3475 #line 882 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3476 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Taxes"), GetString("Ecom:Order.Taxes.Total"), "orderSummaryTaxes")); 3477 3478 3479 #line default 3480 #line hidden 3481 3482 #line 882 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3483 3484 } 3485 3486 #line default 3487 #line hidden 3488 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 3489 3490 WriteLiteralTo(__razor_helper_writer, " "); 3491 3492 3493 #line 885 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3494 WriteTo(__razor_helper_writer, InternalRenderCartSummaryLine(Translate("Total"), GetString("Ecom:Order.OrderLines.Total.PriceWithoutVAT"), "", "orderSummaryTotal", true)); 3495 3496 3497 #line default 3498 #line hidden 3499 WriteLiteralTo(__razor_helper_writer, "\r\n </dl>\r\n"); 3500 3501 3502 #line 887 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3503 3504 3505 3506 #line default 3507 #line hidden 3508 3509 #line 888 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3510 WriteTo(__razor_helper_writer, InternalRenderOrderAmountsDisclaimer()); 3511 3512 3513 #line default 3514 #line hidden 3515 3516 #line 888 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3517 3518 3519 3520 3521 #line default 3522 #line hidden 3523 WriteLiteralTo(__razor_helper_writer, " <div"); 3524 3525 WriteLiteralTo(__razor_helper_writer, " id=\"editOrderButton\""); 3526 3527 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 text-center\""); 3528 3529 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3530 3531 WriteLiteralTo(__razor_helper_writer, " "); 3532 3533 3534 #line 891 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3535 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"))); 3536 3537 3538 #line default 3539 #line hidden 3540 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3541 3542 3543 #line 893 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3544 } 3545 3546 3547 #line default 3548 #line hidden 3549 }); 3550 3551 #line 894 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3552 } 3553 #line default 3554 #line hidden 3555 3556 3557 #line 896 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3558 public RazorEngine.Templating.TemplateWriter RenderVoucherField() 3559 { 3560 #line default 3561 #line hidden 3562 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3563 3564 #line 897 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3565 3566 var voucherCode = GetString("Ecom:Order.Customer.VoucherCode"); 3567 var voucherCodeErrorMessage = GetString("Ecom:Cart.ValidationError.EcomOrderVoucherCode.ErrorMessage"); 3568 3569 3570 3571 #line default 3572 #line hidden 3573 WriteLiteralTo(__razor_helper_writer, " <h2>"); 3574 3575 3576 #line 901 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3577 WriteTo(__razor_helper_writer, Translate("Voucher Code")); 3578 3579 3580 #line default 3581 #line hidden 3582 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 3583 3584 WriteLiteralTo(__razor_helper_writer, " <div"); 3585 3586 WriteLiteralTo(__razor_helper_writer, " id=\"promoCodeContainer\""); 3587 3588 WriteLiteralTo(__razor_helper_writer, " class=\"DMForms col-xs-12 noPadding\""); 3589 3590 WriteLiteralTo(__razor_helper_writer, " data-error=\""); 3591 3592 3593 #line 902 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3594 WriteTo(__razor_helper_writer, voucherCodeErrorMessage); 3595 3596 3597 #line default 3598 #line hidden 3599 WriteLiteralTo(__razor_helper_writer, "\""); 3600 3601 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3602 3603 3604 #line 903 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3605 3606 3607 #line default 3608 #line hidden 3609 3610 #line 903 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3611 if (voucherCode.IsNullOrEmpty() || voucherCodeErrorMessage.IsNotNullOrEmpty()) 3612 { 3613 3614 3615 #line default 3616 #line hidden 3617 3618 #line 905 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3619 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})); 3620 3621 3622 #line default 3623 #line hidden 3624 3625 #line 905 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3626 3627 3628 3629 #line default 3630 #line hidden 3631 3632 #line 906 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3633 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Apply"), string.Empty, "btn-default submitVoucher"))); 3634 3635 3636 #line default 3637 #line hidden 3638 3639 #line 906 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3640 3641 } 3642 else 3643 { 3644 3645 3646 #line default 3647 #line hidden 3648 WriteLiteralTo(__razor_helper_writer, " <div"); 3649 3650 WriteLiteralTo(__razor_helper_writer, " class=\"promoCodeApplied col-xs-12\""); 3651 3652 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3653 3654 WriteLiteralTo(__razor_helper_writer, " "); 3655 3656 3657 #line 911 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3658 WriteTo(__razor_helper_writer, Translate("Promo Code")); 3659 3660 3661 #line default 3662 #line hidden 3663 WriteLiteralTo(__razor_helper_writer, ": <span>"); 3664 3665 3666 #line 911 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3667 WriteTo(__razor_helper_writer, voucherCode); 3668 3669 3670 #line default 3671 #line hidden 3672 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <a"); 3673 3674 WriteLiteralTo(__razor_helper_writer, " class=\"removeVoucher\""); 3675 3676 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0)\""); 3677 3678 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3679 3680 WriteLiteralTo(__razor_helper_writer, " "); 3681 3682 3683 #line 913 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3684 WriteTo(__razor_helper_writer, RenderIcon("fa-times", Translate("Remove"))); 3685 3686 3687 #line default 3688 #line hidden 3689 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </div>\r\n"); 3690 3691 3692 #line 916 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3693 } 3694 3695 #line default 3696 #line hidden 3697 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3698 3699 3700 #line 918 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3701 3702 3703 #line default 3704 #line hidden 3705 }); 3706 3707 #line 918 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3708 } 3709 #line default 3710 #line hidden 3711 3712 3713 #line 920 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3714 public RazorEngine.Templating.TemplateWriter RenderRegions(List<LoopItem> countries) 3715 { 3716 #line default 3717 #line hidden 3718 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3719 3720 #line 921 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3721 3722 var locations = new Dictionary<string, dynamic> 3723 { 3724 {"locations", new Dictionary<string, dynamic>()} 3725 }; 3726 3727 locations["locations"].Add("Countries", new List<dynamic>()); 3728 3729 foreach (var ct in countries) 3730 { 3731 var regionsList = ct.GetLoop("Regions"); 3732 var countryDict = new Dictionary<string, dynamic>(); 3733 var countryKey = new Dictionary<string, dynamic> 3734 { 3735 {"id", ct.GetString("Ecom:Country.Code2")}, {"regions", new List<dynamic>()} 3736 }; 3737 3738 3739 foreach (var region in regionsList.OrderBy(s => s.GetString("Ecom:Region.Name"))) 3740 { 3741 var regionsDict = new Dictionary<string, string> 3742 { 3743 {"name", region.GetString("Ecom:Region.Name")}, 3744 {"code", region.GetString("Ecom:Region.RegionCode")} 3745 }; 3746 3747 countryKey["regions"].Add(regionsDict); 3748 } 3749 countryDict.Add("country", countryKey); 3750 locations["locations"]["Countries"].Add(countryDict); 3751 } 3752 var productJson = new JavaScriptSerializer().Serialize(locations); 3753 3754 3755 #line default 3756 #line hidden 3757 3758 #line 953 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3759 WriteTo(__razor_helper_writer, productJson); 3760 3761 3762 #line default 3763 #line hidden 3764 3765 #line 953 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3766 3767 3768 3769 #line default 3770 #line hidden 3771 }); 3772 3773 #line 954 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3774 } 3775 #line default 3776 #line hidden 3777 3778 3779 #line 957 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3780 public RazorEngine.Templating.TemplateWriter RenderCheckoutGoogleTagProducts(List<LoopItem> orderlines) 3781 { 3782 #line default 3783 #line hidden 3784 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3785 3786 #line 958 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3787 3788 var objectChar = "{"; 3789 3790 3791 #line default 3792 #line hidden 3793 WriteLiteralTo(__razor_helper_writer, " "); 3794 3795 WriteLiteralTo(__razor_helper_writer, "\r\n \'products\': [\r\n"); 3796 3797 3798 #line 962 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3799 3800 3801 #line default 3802 #line hidden 3803 3804 #line 962 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3805 foreach (var orderline in orderlines.Where(ol => ol.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Product)) 3806 { 3807 3808 3809 #line default 3810 #line hidden 3811 WriteLiteralTo(__razor_helper_writer, " "); 3812 3813 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3814 3815 WriteLiteralTo(__razor_helper_writer, " "); 3816 3817 3818 #line 965 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3819 WriteTo(__razor_helper_writer, objectChar); 3820 3821 3822 #line default 3823 #line hidden 3824 WriteLiteralTo(__razor_helper_writer, "\r\n \"id\": \""); 3825 3826 3827 #line 966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3828 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductID")); 3829 3830 3831 #line default 3832 #line hidden 3833 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"name\": \""); 3834 3835 3836 #line 967 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3837 WriteTo(__razor_helper_writer, HttpUtility.JavaScriptStringEncode(orderline.GetString("Ecom:Order:OrderLine.ProductName"))); 3838 3839 3840 #line default 3841 #line hidden 3842 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"variant\": \""); 3843 3844 3845 #line 968 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3846 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductVariantText")); 3847 3848 3849 #line default 3850 #line hidden 3851 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"quantity\": "); 3852 3853 3854 #line 969 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3855 WriteTo(__razor_helper_writer, orderline.GetInteger("Ecom:Order:OrderLine.Quantity")); 3856 3857 3858 #line default 3859 #line hidden 3860 WriteLiteralTo(__razor_helper_writer, ",\r\n \"price\": \'"); 3861 3862 3863 #line 970 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3864 WriteTo(__razor_helper_writer, orderline.GetDouble("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.Price")); 3865 3866 3867 #line default 3868 #line hidden 3869 WriteLiteralTo(__razor_helper_writer, "\'\r\n }\r\n "); 3870 3871 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3872 3873 3874 #line 973 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3875 objectChar = ",{"; 3876 } 3877 3878 #line default 3879 #line hidden 3880 WriteLiteralTo(__razor_helper_writer, "]\r\n "); 3881 3882 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3883 3884 3885 #line 976 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3886 3887 3888 #line default 3889 #line hidden 3890 }); 3891 3892 #line 976 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3893 } 3894 #line default 3895 #line hidden 3896 3897 3898 #line 978 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3899 public RazorEngine.Templating.TemplateWriter RenderCheckoutGoogleTag(List<LoopItem> orderlines,string eventName, int stepNumber) 3900 { 3901 #line default 3902 #line hidden 3903 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3904 3905 #line 979 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3906 3907 if ((Pageview.Area.Item["GoogleAnalytics"] ?? "").ToString().IsNotNullOrEmpty() && orderlines.Any()) 3908 { 3909 if (eventName == "purchase") 3910 { 3911 3912 3913 #line default 3914 #line hidden 3915 WriteLiteralTo(__razor_helper_writer, " "); 3916 3917 WriteLiteralTo(__razor_helper_writer, "\r\n dataLayer.push({\r\n \'ecommerce\': {\r\n " + 3918 " \'currency\': \""); 3919 3920 3921 #line 987 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3922 WriteTo(__razor_helper_writer, Dynamicweb.Ecommerce.Common.Context.Currency.Code); 3923 3924 3925 #line default 3926 #line hidden 3927 WriteLiteralTo(__razor_helper_writer, "\",\r\n \'purchase\': {\r\n \'actionFie" + 3928 "ld\': {\r\n \'id\': \'"); 3929 3930 3931 #line 990 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3932 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ID")); 3933 3934 3935 #line default 3936 #line hidden 3937 WriteLiteralTo(__razor_helper_writer, "\',\r\n \'revenue\': \'"); 3938 3939 3940 #line 991 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3941 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Price.Price")); 3942 3943 3944 #line default 3945 #line hidden 3946 WriteLiteralTo(__razor_helper_writer, "\',\r\n \'tax\':\'"); 3947 3948 3949 #line 992 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3950 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Taxes.Total.Price")); 3951 3952 3953 #line default 3954 #line hidden 3955 WriteLiteralTo(__razor_helper_writer, "\',\r\n \'shipping\': \'"); 3956 3957 3958 #line 993 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3959 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ShippingFee.Price")); 3960 3961 3962 #line default 3963 #line hidden 3964 WriteLiteralTo(__razor_helper_writer, "\',\r\n \'coupon\': \'"); 3965 3966 3967 #line 994 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3968 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Customer.VoucherCode")); 3969 3970 3971 #line default 3972 #line hidden 3973 WriteLiteralTo(__razor_helper_writer, "\'\r\n },\r\n"); 3974 3975 WriteLiteralTo(__razor_helper_writer, " "); 3976 3977 3978 #line 996 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3979 WriteTo(__razor_helper_writer, RenderCheckoutGoogleTagProducts(orderlines)); 3980 3981 3982 #line default 3983 #line hidden 3984 WriteLiteralTo(__razor_helper_writer, "\r\n }\r\n }\r\n });\r\n " + 3985 " "); 3986 3987 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3988 3989 3990 #line 1001 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 3991 } 3992 else 3993 { 3994 3995 3996 #line default 3997 #line hidden 3998 WriteLiteralTo(__razor_helper_writer, " "); 3999 4000 WriteLiteralTo(__razor_helper_writer, "\r\n dataLayer.push({\r\n \'event\': \'checkout\',\r" + 4001 "\n \'ecommerce\': {\r\n \'currency\': \""); 4002 4003 4004 #line 1008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4005 WriteTo(__razor_helper_writer, Dynamicweb.Ecommerce.Common.Context.Currency.Code); 4006 4007 4008 #line default 4009 #line hidden 4010 WriteLiteralTo(__razor_helper_writer, "\",\r\n \'checkout\': {\r\n \'actionFie" + 4011 "ld\': {\'step\': "); 4012 4013 4014 #line 1010 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4015 WriteTo(__razor_helper_writer, stepNumber); 4016 4017 4018 #line default 4019 #line hidden 4020 WriteLiteralTo(__razor_helper_writer, "},\r\n"); 4021 4022 WriteLiteralTo(__razor_helper_writer, " "); 4023 4024 4025 #line 1011 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4026 WriteTo(__razor_helper_writer, RenderCheckoutGoogleTagProducts(orderlines)); 4027 4028 4029 #line default 4030 #line hidden 4031 WriteLiteralTo(__razor_helper_writer, "\r\n }\r\n }\r\n });\r\n " + 4032 " "); 4033 4034 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4035 4036 4037 #line 1016 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4038 } 4039 } 4040 4041 4042 #line default 4043 #line hidden 4044 }); 4045 4046 #line 1018 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4047 } 4048 #line default 4049 #line hidden 4050 4051 4052 #line 1020 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4053 public RazorEngine.Templating.TemplateWriter RenderAddressTextContainer(AddressSource addressSource, string wrapperId, string addressId, bool isShippingEditable, bool isBillingReadOnly) 4054 { 4055 #line default 4056 #line hidden 4057 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4058 4059 #line 1021 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4060 4061 var isEcomDelivery = addressSource == AddressSource.EcomDelivery; 4062 var addressHash = GetAddressHash(addressSource); 4063 var editTranslate = isBillingReadOnly && !isShippingEditable ? Translate("Edit Address for Current Order Only") : Translate("Edit"); 4064 4065 if (isEcomDelivery && GetString("Ecom:Order.Delivery.Name").IsNotNullOrEmpty()) 4066 { 4067 4068 4069 #line default 4070 #line hidden 4071 4072 #line 1028 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4073 WriteTo(__razor_helper_writer, string.Concat(Translate("Attn.")," ",GetString("Ecom:Order.Delivery.Name"))); 4074 4075 4076 #line default 4077 #line hidden 4078 4079 #line 1028 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4080 4081 } 4082 4083 4084 #line default 4085 #line hidden 4086 WriteLiteralTo(__razor_helper_writer, " <div"); 4087 4088 WriteLiteralTo(__razor_helper_writer, " data-hash=\""); 4089 4090 4091 #line 1030 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4092 WriteTo(__razor_helper_writer, addressHash); 4093 4094 4095 #line default 4096 #line hidden 4097 WriteLiteralTo(__razor_helper_writer, "\""); 4098 4099 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 50145), Tuple.Create("\"", 50160) 4100 4101 #line 1030 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4102 , Tuple.Create(Tuple.Create("", 50150), Tuple.Create<System.Object, System.Int32>(wrapperId 4103 4104 #line default 4105 #line hidden 4106 , 50150), false) 4107 ); 4108 4109 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4110 4111 WriteLiteralTo(__razor_helper_writer, " "); 4112 4113 4114 #line 1031 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4115 WriteTo(__razor_helper_writer, GetAddressFormatted(addressSource, false, true, true, "<br/>")); 4116 4117 4118 #line default 4119 #line hidden 4120 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4121 4122 4123 #line 1033 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4124 if (isEcomDelivery) 4125 { 4126 4127 4128 #line default 4129 #line hidden 4130 4131 #line 1035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4132 WriteTo(__razor_helper_writer, RenderHtmlElementBetweenEachString(new List<string>{GetString("Ecom:Order.Customer.Email"),GetString("Ecom:Order.Customer.Phone")})); 4133 4134 4135 #line default 4136 #line hidden 4137 4138 #line 1035 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4139 4140 } 4141 4142 4143 #line default 4144 #line hidden 4145 WriteLiteralTo(__razor_helper_writer, " <a"); 4146 4147 WriteLiteralTo(__razor_helper_writer, " class=\"editCurrentAddress\""); 4148 4149 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0);\""); 4150 4151 WriteLiteralTo(__razor_helper_writer, ">"); 4152 4153 4154 #line 1037 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4155 WriteTo(__razor_helper_writer, RenderIcon("fa-edit", editTranslate)); 4156 4157 4158 #line default 4159 #line hidden 4160 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 4161 4162 4163 #line 1038 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4164 4165 4166 #line default 4167 #line hidden 4168 }); 4169 4170 #line 1038 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4171 } 4172 #line default 4173 #line hidden 4174 4175 4176 #line 1080 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4177 4178 4179 #region Url functions 4180 4181 public string GetCustomerCenterSortUrl(string field, string listType = "Order") 4182 { 4183 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 4184 var sortDirectionParameter = "CCSort" + listType + paragraphId; 4185 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 4186 var sortDirection = Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 4187 4188 if (field.IsNotNullOrEmpty()) 4189 { 4190 return "/Default.aspx?Id=" + Pageview.Page.ID + "&" + sortFieldParameter + "=" + field + "&" + sortDirectionParameter + "=" + sortDirection; 4191 } 4192 4193 return string.Empty; 4194 } 4195 4196 public string GetSortFieldParameter(string key, string field = "", string listType = "Order") 4197 { 4198 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 4199 if (key.IsNullOrEmpty()) throw new NotSupportedException("'key' is a required field"); 4200 4201 switch (key) 4202 { 4203 case "name": 4204 var parameter = "CC" + listType + "ByField" + paragraphId; 4205 return Sanitize.Parameter(parameter); 4206 case "value": 4207 if (field.IsNullOrEmpty()) return "asc"; 4208 var sortDirectionParameter = "CCSort" + listType + paragraphId; 4209 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 4210 return Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 4211 default: 4212 throw new NotSupportedException(string.Format("The key '{0}' in not supported", key)); 4213 } 4214 } 4215 4216 #endregion Url functions 4217 4218 #region Generic functions 4219 4220 public static string GetAttributes(Dictionary<string, string> attributes) 4221 { 4222 if (attributes == null || !attributes.Any()) 4223 { 4224 return string.Empty; 4225 } 4226 4227 var attributesConcat = attributes.Aggregate(string.Empty, (current, attribute) => current + GetAttribute(attribute.Key, attribute.Value)); 4228 4229 return attributesConcat; 4230 } 4231 4232 public static string GetAttribute(string attributeName, string attributeValue) 4233 { 4234 if (attributeValue.IsNullOrEmpty() && !attributeName.Equals("value", StringComparison.InvariantCultureIgnoreCase)) return string.Empty; 4235 return " " + attributeName + "=\"" + attributeValue + "\""; 4236 } 4237 4238 #endregion Generic functions 4239 4240 #region Files functions 4241 4242 const string ImagesListTitleKey = "title"; 4243 const string ImagesListImageKey = "image"; 4244 4245 /// <summary> 4246 /// Gets the list of files from a folder. 4247 /// </summary> 4248 /// <return>Item1 is filename (with extension), Item2 is the title and Item3 is the FileType.</return> 4249 public static List<Tuple<string,string,FileType>> GetFilesInFolder(string defaultFile, string searchPattern, string fileTitle = "", bool addDefaultFile = true) 4250 { 4251 var files = new List<Tuple<string,string,FileType>>(); 4252 var mapPath = HttpContext.Current.Server.MapPath(defaultFile); 4253 var folderServerPath = Path.GetDirectoryName(mapPath); 4254 4255 if (!Directory.Exists(folderServerPath)) return files; 4256 4257 // Get Images from folder 4258 const string temp = @"\"; 4259 const string metafield = "title"; 4260 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(defaultFile); 4261 var title = metadata != null && metadata.GetValue(metafield).IsNotNullOrEmpty() ? metadata.GetValue(metafield) : fileTitle; 4262 var folderWebPath = defaultFile.Contains("/") ? defaultFile.Substring(0, defaultFile.LastIndexOf("/")) : defaultFile; 4263 4264 var dctImage = new Dictionary<string, string>(); 4265 4266 if (addDefaultFile && File.Exists(mapPath)) 4267 { 4268 files.Add(new Tuple<string, string, FileType>(defaultFile, title, defaultFile.GetFileType())); 4269 } 4270 4271 foreach (var file in Directory.GetFiles(folderServerPath, searchPattern)) 4272 { 4273 var filePath = folderWebPath + "/" + file.Substring(file.LastIndexOf(temp, StringComparison.Ordinal) + 1, file.Length - file.LastIndexOf(temp, StringComparison.Ordinal) - 1); 4274 metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(filePath); 4275 title = metadata != null && metadata.GetValue(metafield).IsNullOrEmpty() ? metadata.GetValue(metafield) : fileTitle; 4276 4277 files.Add(new Tuple<string, string, FileType>(filePath, title, file.GetFileType())); 4278 } 4279 4280 return files; 4281 } 4282 /// <summary> 4283 /// Gets the list of image or HTML5 video files from a folder. 4284 /// </summary> 4285 /// <return>Item1 is filename (with extension), Item2 is the title and Item3 is the FileType (Image, Video).</return> 4286 public static List<Tuple<string,string,FileType>> GetMediaFilesInFolder(string defaulMedia, string searchPattern, string defaultName = "", bool addDefaultMedia = true) 4287 { 4288 return GetFilesInFolder(defaulMedia, searchPattern, defaultName, addDefaultMedia).Where(f => f.Item3 == FileType.Image || f.Item3 == FileType.Video).ToList(); 4289 } 4290 4291 #endregion Files functions 4292 4293 #region Image functions 4294 4295 public static Dictionary<string, string> GetWidthAndHeightFromQueryString(string imageSource, bool addSource = false) 4296 { 4297 var widthAndHeight = new Dictionary<string, string>(); 4298 4299 if(imageSource.Contains("?")){ 4300 var querySubstring = imageSource.Substring(imageSource.LastIndexOf('?') + 1); 4301 var queryParams = HttpUtility.HtmlDecode(querySubstring).Split('&'); 4302 4303 if (!queryParams.Any()) 4304 return widthAndHeight; 4305 4306 foreach (var param in queryParams.Where(k => k.StartsWith("width") || k.StartsWith("height"))) 4307 { 4308 var keyValuePair = param.Split('='); 4309 4310 if (keyValuePair[1].IsNotNullOrEmpty()) 4311 { 4312 widthAndHeight.Add(keyValuePair[0].ToLower(), keyValuePair[1]); 4313 } 4314 } 4315 } 4316 else if(imageSource.Contains("width") || imageSource.Contains("height")) 4317 { 4318 var queryParams = imageSource.Split('/'); 4319 var imgParam = string.Empty; 4320 4321 foreach (var param in queryParams) 4322 { 4323 switch (imgParam) 4324 { 4325 case "width": 4326 widthAndHeight.Add("width", param); 4327 break; 4328 case "height": 4329 widthAndHeight.Add("height", param); 4330 break; 4331 } 4332 4333 switch (param) 4334 { 4335 case "width": 4336 imgParam = "width"; 4337 break; 4338 case "height": 4339 imgParam = "height"; 4340 break; 4341 default: 4342 imgParam = string.Empty; 4343 break; 4344 } 4345 } 4346 } 4347 4348 if (addSource && imageSource.IsNotNullOrEmpty()) 4349 { 4350 widthAndHeight.Add("srcset", imageSource); 4351 } 4352 4353 return widthAndHeight; 4354 } 4355 4356 #endregion Image functions 4357 4358 #region Form Field functions 4359 4360 public string GetWrapperStart(bool includeWrapper, FieldType fieldType, string htmlElement, bool isRequired = false, string fieldClass = "") 4361 { 4362 if (!includeWrapper || htmlElement.IsNullOrEmpty()) return string.Empty; 4363 var cssClass = new List<string> {fieldType.ToString().ToLower(), fieldClass}; 4364 if (isRequired) 4365 { 4366 cssClass.Add("mandatory"); 4367 } 4368 var attributes = new Dictionary<string, string>() 4369 { 4370 {"class", string.Join(" ", cssClass.ToArray())} 4371 }; 4372 return GetHtmlElement(htmlElement, attributes); 4373 } 4374 4375 public string GetWrapperEnd(bool includeWrapper, string htmlElement) 4376 { 4377 return !includeWrapper ? string.Empty : GetHtmlElement(htmlElement, true); 4378 } 4379 4380 public string GetControlWithRequiredClass(bool isRequired, string control, string cssClass = "") 4381 { 4382 if (!isRequired) return control; 4383 var regex = new Regex(Regex.Escape(" ")); 4384 return regex.Replace(control, " required class=\"mandatory "+cssClass+"\"", 1); 4385 } 4386 4387 public static string GetAttributes(FieldSettings settings, bool returnFieldType = true) 4388 { 4389 var attributes = new StringBuilder(); 4390 if (returnFieldType) 4391 { 4392 var fieldType = string.Empty; 4393 switch (settings.Type) 4394 { 4395 case FieldType.Select: 4396 break; 4397 case FieldType.Checkboxlist: 4398 fieldType = FieldType.Checkbox.ToString().ToLower(); 4399 break; 4400 case FieldType.DatetimeLocal: 4401 fieldType = "datetime-local"; 4402 break; 4403 case FieldType.Textarea: 4404 case FieldType.File: 4405 case FieldType.Text: 4406 case FieldType.Hidden: 4407 case FieldType.Submit: 4408 case FieldType.Reset: 4409 case FieldType.Radio: 4410 case FieldType.Checkbox: 4411 case FieldType.Divider: 4412 case FieldType.Image: 4413 case FieldType.Password: 4414 case FieldType.Textstring: 4415 case FieldType.Button: 4416 case FieldType.Search: 4417 case FieldType.Email: 4418 case FieldType.Url: 4419 case FieldType.Tel: 4420 case FieldType.Number: 4421 case FieldType.Range: 4422 case FieldType.Date: 4423 case FieldType.Month: 4424 case FieldType.Week: 4425 case FieldType.Time: 4426 case FieldType.Datetime: 4427 case FieldType.Color: 4428 case FieldType.Unknown: 4429 default: 4430 fieldType = settings.Type.ToString().ToLower(); 4431 break; 4432 } 4433 if (!settings.Attributes.ContainsKey("type")) 4434 { 4435 attributes.Append(GetAttribute("type", fieldType)); 4436 } 4437 } 4438 attributes.Append(GetAttribute("class", settings.CssClass)); 4439 attributes.Append(GetAttribute("id", settings.Id)); 4440 attributes.Append(GetAttribute("name", settings.SystemName)); 4441 attributes.Append(GetAttribute("value", settings.Value)); 4442 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 || settings.Type == FieldType.Textarea) 4443 { 4444 // Only works wit these types 4445 attributes.Append(GetAttribute("placeholder", settings.Placeholder)); 4446 } 4447 if (settings.Type == FieldType.Datetime) 4448 { 4449 attributes.Append(GetAttribute("placeholder", "&#x1f4c5;")); 4450 } 4451 if (settings.Type != FieldType.Checkboxlist) 4452 { 4453 attributes.Append(GetAttribute("required", settings.IsRequired)); 4454 } 4455 attributes.Append(GetAttributes(settings.Attributes)); 4456 return attributes.ToString(); 4457 } 4458 4459 public static string GetAttributes(FieldOption optionSettings, FieldType fieldType = FieldType.Select) 4460 { 4461 var attributes = new StringBuilder(); 4462 if (fieldType != FieldType.Select) 4463 { 4464 attributes.Append(GetAttribute("name", optionSettings.SystemName)); 4465 } 4466 attributes.Append(GetAttribute("value", optionSettings.Value)); 4467 attributes.Append(GetAttributes(optionSettings.Attributes)); 4468 return attributes.ToString(); 4469 } 4470 4471 public static string GetAttribute(string attributeName, bool attributeValue) 4472 { 4473 if (!attributeValue) return string.Empty; 4474 return " " + attributeName + "=\"" + attributeName + "\""; 4475 } 4476 4477 #endregion 4478 4479 #region Dynamicweb Template Engine Workaround 4480 4481 public static string GetHtmlElement(string element, bool isClosingElement = false) 4482 { 4483 return GetHtmlElementForDw(element, null, string.Empty, isClosingElement); 4484 } 4485 4486 public static string GetHtmlElement(string element, Dictionary<string, string> attributes, bool isClosingElement = false) 4487 { 4488 return GetHtmlElementForDw(element, attributes, string.Empty, isClosingElement); 4489 } 4490 4491 public static string GetHtmlElement(string element, string processedAttributes, bool isClosingElement = false) 4492 { 4493 return GetHtmlElementForDw(element, null, processedAttributes, isClosingElement); 4494 } 4495 4496 private static string GetHtmlElementForDw(string element, Dictionary<string, string> attributes = null, string processedAttributes = "", bool isClosingElement = false) 4497 { 4498 var result = new StringBuilder("<"); 4499 4500 if (attributes != null || processedAttributes.IsNotNullOrEmpty()) 4501 { 4502 result.Append(element); 4503 if (attributes != null) 4504 { 4505 result.Append(GetAttributes(attributes)); 4506 } 4507 else if (processedAttributes.IsNotNullOrEmpty()) 4508 { 4509 result.Append(processedAttributes); 4510 } 4511 if (isClosingElement) 4512 { 4513 result.Append("/"); 4514 } 4515 } 4516 else 4517 { 4518 if (isClosingElement) 4519 { 4520 result.Append("/"); 4521 } 4522 result.Append(element); 4523 } 4524 4525 result.Append(">"); 4526 4527 return result.ToString(); 4528 } 4529 4530 #endregion Dynamicweb Template Engine Workaround 4531 4532 #line default 4533 #line hidden 4534 4535 4536 #line 1438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4537 public RazorEngine.Templating.TemplateWriter InternalRenderTabHeader(string key, string label, string cssClass = "") 4538 { 4539 #line default 4540 #line hidden 4541 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4542 4543 #line 1439 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4544 4545 4546 4547 #line default 4548 #line hidden 4549 4550 #line 1440 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4551 WriteTo(__razor_helper_writer, SnippetStart("tabHeaders")); 4552 4553 4554 #line default 4555 #line hidden 4556 4557 #line 1440 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4558 4559 4560 4561 #line default 4562 #line hidden 4563 WriteLiteralTo(__razor_helper_writer, " <li"); 4564 4565 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 66169), Tuple.Create("\"", 66186) 4566 4567 #line 1441 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4568 , Tuple.Create(Tuple.Create("", 66177), Tuple.Create<System.Object, System.Int32>(cssClass 4569 4570 #line default 4571 #line hidden 4572 , 66177), false) 4573 ); 4574 4575 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 4576 4577 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 66204), Tuple.Create("\"", 66215) 4578 4579 #line 1442 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4580 , Tuple.Create(Tuple.Create("", 66211), Tuple.Create<System.Object, System.Int32>(key 4581 4582 #line default 4583 #line hidden 4584 , 66211), false) 4585 ); 4586 4587 WriteLiteralTo(__razor_helper_writer, ">"); 4588 4589 4590 #line 1442 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4591 WriteTo(__razor_helper_writer, label); 4592 4593 4594 #line default 4595 #line hidden 4596 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 4597 4598 4599 #line 1444 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4600 4601 4602 #line default 4603 #line hidden 4604 4605 #line 1444 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4606 WriteTo(__razor_helper_writer, SnippetEnd("tabHeaders")); 4607 4608 4609 #line default 4610 #line hidden 4611 4612 #line 1444 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4613 4614 4615 4616 #line default 4617 #line hidden 4618 }); 4619 4620 #line 1445 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4621 } 4622 #line default 4623 #line hidden 4624 4625 4626 #line 1449 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4627 public RazorEngine.Templating.TemplateWriter InternalRenderGoToFirstPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int currentPageNum = 0) 4628 { 4629 #line default 4630 #line hidden 4631 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4632 4633 #line 1450 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4634 4635 if (currentPageNum == 0) 4636 { 4637 currentPageNum = currentPage; 4638 } 4639 4640 if (currentPage > 2 && numOfPages > loopPageSize && currentPageNum != 1) 4641 { 4642 queryParameters.Remove(pageNumQueryParameter); 4643 4644 4645 #line default 4646 #line hidden 4647 4648 #line 1459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4649 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, "1")); 4650 4651 4652 #line default 4653 #line hidden 4654 4655 #line 1459 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4656 4657 4658 4659 #line default 4660 #line hidden 4661 4662 #line 1460 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4663 WriteTo(__razor_helper_writer, InternalRenderEllipsis()); 4664 4665 4666 #line default 4667 #line hidden 4668 4669 #line 1460 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4670 4671 } 4672 4673 4674 #line default 4675 #line hidden 4676 }); 4677 4678 #line 1462 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4679 } 4680 #line default 4681 #line hidden 4682 4683 4684 #line 1464 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4685 public RazorEngine.Templating.TemplateWriter InternalRenderGoToLastPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int endPage) 4686 { 4687 #line default 4688 #line hidden 4689 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4690 4691 #line 1465 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4692 4693 if (currentPage < numOfPages - 1 && numOfPages > loopPageSize && endPage != numOfPages) 4694 { 4695 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, numOfPages.ToString()); 4696 4697 4698 #line default 4699 #line hidden 4700 4701 #line 1469 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4702 WriteTo(__razor_helper_writer, InternalRenderEllipsis()); 4703 4704 4705 #line default 4706 #line hidden 4707 4708 #line 1469 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4709 4710 4711 4712 #line default 4713 #line hidden 4714 4715 #line 1470 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4716 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, numOfPages.ToString())); 4717 4718 4719 #line default 4720 #line hidden 4721 4722 #line 1470 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4723 4724 } 4725 4726 4727 #line default 4728 #line hidden 4729 }); 4730 4731 #line 1472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4732 } 4733 #line default 4734 #line hidden 4735 4736 4737 #line 1474 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4738 public RazorEngine.Templating.TemplateWriter InternalRenderPageItem(NameValueCollection queryParameters, string pageNum, string cssClass = "") 4739 { 4740 #line default 4741 #line hidden 4742 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4743 4744 #line 1475 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4745 4746 var url = Dna.UrlServices.Helpers.GetCurrentUrl(true, true); 4747 var href = Dna.UrlServices.Helpers.BuildUri(url, queryParameters); 4748 4749 4750 4751 #line default 4752 #line hidden 4753 WriteLiteralTo(__razor_helper_writer, " <li"); 4754 4755 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 67751), Tuple.Create("\"", 67768) 4756 4757 #line 1479 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4758 , Tuple.Create(Tuple.Create("", 67759), Tuple.Create<System.Object, System.Int32>(cssClass 4759 4760 #line default 4761 #line hidden 4762 , 67759), false) 4763 ); 4764 4765 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 4766 4767 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 67786), Tuple.Create("\"", 67811) 4768 4769 #line 1480 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4770 , Tuple.Create(Tuple.Create("", 67793), Tuple.Create<System.Object, System.Int32>(href.PathAndQuery 4771 4772 #line default 4773 #line hidden 4774 , 67793), false) 4775 ); 4776 4777 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4778 4779 WriteLiteralTo(__razor_helper_writer, " "); 4780 4781 4782 #line 1481 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4783 WriteTo(__razor_helper_writer, pageNum); 4784 4785 4786 #line default 4787 #line hidden 4788 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 4789 4790 4791 #line 1484 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4792 4793 4794 #line default 4795 #line hidden 4796 }); 4797 4798 #line 1484 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4799 } 4800 #line default 4801 #line hidden 4802 4803 4804 #line 1486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4805 public RazorEngine.Templating.TemplateWriter InternalRenderPageItem(string href, string label, string cssPartialClass, IconPosition position) 4806 { 4807 #line default 4808 #line hidden 4809 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4810 4811 #line 1487 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4812 4813 4814 4815 #line default 4816 #line hidden 4817 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 4818 4819 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 68032), Tuple.Create("\"", 68044) 4820 4821 #line 1489 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4822 , Tuple.Create(Tuple.Create("", 68039), Tuple.Create<System.Object, System.Int32>(href 4823 4824 #line default 4825 #line hidden 4826 , 68039), false) 4827 ); 4828 4829 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4830 4831 WriteLiteralTo(__razor_helper_writer, " "); 4832 4833 4834 #line 1490 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4835 WriteTo(__razor_helper_writer, RenderIcon(cssPartialClass, label, position)); 4836 4837 4838 #line default 4839 #line hidden 4840 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 4841 4842 4843 #line 1493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4844 4845 4846 #line default 4847 #line hidden 4848 }); 4849 4850 #line 1493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4851 } 4852 #line default 4853 #line hidden 4854 4855 4856 #line 1495 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4857 public RazorEngine.Templating.TemplateWriter InternalRenderEllipsis() 4858 { 4859 #line default 4860 #line hidden 4861 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4862 4863 #line 1496 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4864 4865 4866 4867 #line default 4868 #line hidden 4869 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <span>...</span>\r\n </li>\r\n"); 4870 4871 4872 #line 1500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4873 4874 4875 #line default 4876 #line hidden 4877 }); 4878 4879 #line 1500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4880 } 4881 #line default 4882 #line hidden 4883 4884 4885 #line 1504 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4886 public RazorEngine.Templating.TemplateWriter InternalRenderLabel(FieldSettings settings) 4887 { 4888 #line default 4889 #line hidden 4890 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4891 4892 #line 1505 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4893 4894 4895 4896 #line default 4897 #line hidden 4898 4899 #line 1506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4900 WriteTo(__razor_helper_writer, InternalRenderLabel(settings.Label, settings.TranslateKeyForLabel)); 4901 4902 4903 #line default 4904 #line hidden 4905 4906 #line 1506 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4907 4908 4909 4910 #line default 4911 #line hidden 4912 }); 4913 4914 #line 1507 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4915 } 4916 #line default 4917 #line hidden 4918 4919 4920 #line 1509 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4921 public RazorEngine.Templating.TemplateWriter InternalRenderLabel(string label, string translateKey = "") 4922 { 4923 #line default 4924 #line hidden 4925 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4926 4927 #line 1510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4928 4929 4930 4931 #line default 4932 #line hidden 4933 4934 #line 1511 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4935 WriteTo(__razor_helper_writer, translateKey.IsNotNullOrEmpty() ? Translate(translateKey) : label); 4936 4937 4938 #line default 4939 #line hidden 4940 4941 #line 1511 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4942 4943 4944 4945 #line default 4946 #line hidden 4947 }); 4948 4949 #line 1512 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4950 } 4951 #line default 4952 #line hidden 4953 4954 4955 #line 1514 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4956 public RazorEngine.Templating.TemplateWriter InternalRenderCheckboxField(FieldSettings settings) 4957 { 4958 #line default 4959 #line hidden 4960 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4961 4962 #line 1515 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4963 4964 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 4965 { 4966 settings.Assert(FieldType.Checkbox); 4967 if (settings.IsChecked && !settings.Attributes.ContainsKey("checked")) 4968 { 4969 settings.Attributes.Add("checked", "checked"); 4970 } 4971 4972 4973 4974 #line default 4975 #line hidden 4976 4977 #line 1524 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4978 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings, false)); 4979 4980 4981 #line default 4982 #line hidden 4983 4984 #line 1524 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 4985 4986 4987 if (settings.Label.IsNotNullOrEmpty() || settings.TranslateKeyForLabel.IsNotNullOrEmpty()) 4988 { 4989 var possibleClasses = new List<string> {settings.Type.ToString().ToLower(), settings.LabelCssClass}; 4990 var cssClass = string.Join(" ", possibleClasses.Where(s => s.IsNotNullOrEmpty())); 4991 4992 if (!settings.LabelAttributes.ContainsKey("class")) 4993 { 4994 settings.LabelAttributes.Add("class", cssClass); 4995 } 4996 else 4997 { 4998 settings.LabelAttributes["class"] = string.Concat(cssClass, " ", settings.LabelAttributes["class"]); 4999 } 5000 if (!settings.LabelAttributes.ContainsKey("for")) 5001 { 5002 settings.LabelAttributes.Add("for", settings.Id); 5003 } 5004 5005 5006 5007 #line default 5008 #line hidden 5009 5010 #line 1544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5011 WriteTo(__razor_helper_writer, GetHtmlElement("label", settings.LabelAttributes)); 5012 5013 5014 #line default 5015 #line hidden 5016 5017 #line 1544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5018 5019 5020 5021 #line default 5022 #line hidden 5023 5024 #line 1545 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5025 WriteTo(__razor_helper_writer, settings.Control.IsNotNullOrEmpty() ? settings.Control : GetHtmlElement("input", GetAttributes(settings))); 5026 5027 5028 #line default 5029 #line hidden 5030 5031 #line 1545 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5032 5033 5034 5035 #line default 5036 #line hidden 5037 WriteLiteralTo(__razor_helper_writer, " <span>\r\n"); 5038 5039 WriteLiteralTo(__razor_helper_writer, " "); 5040 5041 5042 #line 1547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5043 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 5044 5045 5046 #line default 5047 #line hidden 5048 WriteLiteralTo(__razor_helper_writer, " \r\n </span>\r\n"); 5049 5050 5051 #line 1549 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5052 5053 5054 #line default 5055 #line hidden 5056 5057 #line 1549 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5058 WriteTo(__razor_helper_writer, GetHtmlElement("label", true)); 5059 5060 5061 #line default 5062 #line hidden 5063 5064 #line 1549 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5065 5066 } 5067 else 5068 { 5069 if (settings.Control.IsNotNullOrEmpty()) 5070 { 5071 5072 5073 #line default 5074 #line hidden 5075 5076 #line 1555 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5077 WriteTo(__razor_helper_writer, settings.Control); 5078 5079 5080 #line default 5081 #line hidden 5082 5083 #line 1555 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5084 5085 } 5086 else 5087 { 5088 5089 5090 #line default 5091 #line hidden 5092 5093 #line 1559 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5094 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5095 5096 5097 #line default 5098 #line hidden 5099 5100 #line 1559 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5101 5102 } 5103 } 5104 5105 5106 5107 #line default 5108 #line hidden 5109 5110 #line 1563 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5111 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5112 5113 5114 #line default 5115 #line hidden 5116 5117 #line 1563 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5118 5119 } 5120 5121 5122 #line default 5123 #line hidden 5124 }); 5125 5126 #line 1565 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5127 } 5128 #line default 5129 #line hidden 5130 5131 5132 #line 1567 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5133 public RazorEngine.Templating.TemplateWriter InternalRenderTextareaField(FieldSettings settings) 5134 { 5135 #line default 5136 #line hidden 5137 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5138 5139 #line 1568 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5140 5141 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 5142 { 5143 settings.Assert(FieldType.Textarea); 5144 5145 5146 5147 #line default 5148 #line hidden 5149 5150 #line 1573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5151 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5152 5153 5154 #line default 5155 #line hidden 5156 5157 #line 1573 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5158 5159 5160 if (settings.Control.IsNotNullOrEmpty()) 5161 { 5162 5163 5164 #line default 5165 #line hidden 5166 5167 #line 1577 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5168 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 5169 5170 5171 #line default 5172 #line hidden 5173 5174 #line 1577 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5175 5176 } 5177 else 5178 { 5179 if (!settings.Attributes.ContainsKey("rows")) 5180 { 5181 settings.Attributes.Add("rows", "6"); 5182 } 5183 if (!settings.Attributes.ContainsKey("cols")) 5184 { 5185 settings.Attributes.Add("cols", "50"); 5186 } 5187 5188 5189 #line default 5190 #line hidden 5191 5192 #line 1589 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5193 WriteTo(__razor_helper_writer, GetHtmlElement("textarea", GetAttributes(settings, false))); 5194 5195 5196 #line default 5197 #line hidden 5198 5199 #line 1589 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5200 5201 5202 5203 #line default 5204 #line hidden 5205 5206 #line 1590 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5207 WriteTo(__razor_helper_writer, GetHtmlElement("textarea", true)); 5208 5209 5210 #line default 5211 #line hidden 5212 5213 #line 1590 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5214 5215 } 5216 5217 5218 5219 #line default 5220 #line hidden 5221 5222 #line 1593 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5223 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5224 5225 5226 #line default 5227 #line hidden 5228 5229 #line 1593 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5230 5231 } 5232 5233 5234 #line default 5235 #line hidden 5236 }); 5237 5238 #line 1595 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5239 } 5240 #line default 5241 #line hidden 5242 5243 5244 #line 1597 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5245 public RazorEngine.Templating.TemplateWriter InternalRenderRadioOrCheckboxListField(FieldSettings settings) 5246 { 5247 #line default 5248 #line hidden 5249 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5250 5251 #line 1598 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5252 5253 if (settings.LoopOptions.Any() || settings.FieldOptionsList.Any() || settings.Control.IsNotNullOrEmpty()) 5254 { 5255 var optionCount = 0; 5256 5257 settings.Assert(FieldType.Radio); 5258 5259 5260 5261 #line default 5262 #line hidden 5263 5264 #line 1605 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5265 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5266 5267 5268 #line default 5269 #line hidden 5270 5271 #line 1605 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5272 5273 5274 if (settings.LoopOptions.Any()) 5275 { 5276 settings.CssClass = settings.Type.ToString().ToLower(); 5277 foreach (var option in settings.LoopOptions) 5278 { 5279 optionCount++; 5280 if (settings.Id.IsNullOrEmpty() || settings.Id == settings.SystemName) 5281 { 5282 settings.Id = settings.SystemName + optionCount; 5283 } 5284 5285 5286 #line default 5287 #line hidden 5288 WriteLiteralTo(__razor_helper_writer, " <label"); 5289 5290 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 72634), Tuple.Create("\"", 72660) 5291 5292 #line 1617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5293 , Tuple.Create(Tuple.Create("", 72642), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5294 5295 #line default 5296 #line hidden 5297 , 72642), false) 5298 ); 5299 5300 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 72661), Tuple.Create("\"", 72679) 5301 5302 #line 1617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5303 , Tuple.Create(Tuple.Create("", 72667), Tuple.Create<System.Object, System.Int32>(settings.Id 5304 5305 #line default 5306 #line hidden 5307 , 72667), false) 5308 ); 5309 5310 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5311 5312 WriteLiteralTo(__razor_helper_writer, " "); 5313 5314 5315 #line 1618 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5316 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5317 5318 5319 #line default 5320 #line hidden 5321 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 5322 5323 5324 #line 1619 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5325 WriteTo(__razor_helper_writer, option.GetString(settings.LabelLoopTag)); 5326 5327 5328 #line default 5329 #line hidden 5330 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n"); 5331 5332 5333 #line 1621 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5334 } 5335 } 5336 else if (settings.FieldOptionsList.Any()) 5337 { 5338 foreach (var option in settings.FieldOptionsList) 5339 { 5340 optionCount++; 5341 if (option.Id.IsNullOrEmpty() || option.Id == option.SystemName) 5342 { 5343 option.Id = settings.SystemName + optionCount; 5344 } 5345 option.CssClass = settings.Type.ToString().ToLower(); 5346 5347 5348 5349 #line default 5350 #line hidden 5351 WriteLiteralTo(__razor_helper_writer, " <label"); 5352 5353 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 73426), Tuple.Create("\"", 73450) 5354 5355 #line 1634 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5356 , Tuple.Create(Tuple.Create("", 73434), Tuple.Create<System.Object, System.Int32>(option.CssClass 5357 5358 #line default 5359 #line hidden 5360 , 73434), false) 5361 ); 5362 5363 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 73451), Tuple.Create("\"", 73467) 5364 5365 #line 1634 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5366 , Tuple.Create(Tuple.Create("", 73457), Tuple.Create<System.Object, System.Int32>(option.Id 5367 5368 #line default 5369 #line hidden 5370 , 73457), false) 5371 ); 5372 5373 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5374 5375 WriteLiteralTo(__razor_helper_writer, " "); 5376 5377 5378 #line 1635 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5379 WriteTo(__razor_helper_writer, InternalRenderInputOptionField("input", option, settings.Type)); 5380 5381 5382 #line default 5383 #line hidden 5384 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 5385 5386 5387 #line 1636 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5388 WriteTo(__razor_helper_writer, option.Label); 5389 5390 5391 #line default 5392 #line hidden 5393 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n"); 5394 5395 5396 #line 1638 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5397 } 5398 } 5399 else if (settings.Control.IsNotNullOrEmpty()) 5400 { 5401 5402 5403 #line default 5404 #line hidden 5405 5406 #line 1642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5407 WriteTo(__razor_helper_writer, settings.Control); 5408 5409 5410 #line default 5411 #line hidden 5412 5413 #line 1642 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5414 5415 } 5416 5417 5418 5419 #line default 5420 #line hidden 5421 5422 #line 1645 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5423 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5424 5425 5426 #line default 5427 #line hidden 5428 5429 #line 1645 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5430 5431 } 5432 5433 5434 #line default 5435 #line hidden 5436 }); 5437 5438 #line 1647 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5439 } 5440 #line default 5441 #line hidden 5442 5443 5444 #line 1649 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5445 public RazorEngine.Templating.TemplateWriter InternalRenderInputField(FieldSettings settings) 5446 { 5447 #line default 5448 #line hidden 5449 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5450 5451 #line 1650 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5452 5453 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 5454 { 5455 settings.Assert(FieldType.Text); 5456 5457 5458 5459 #line default 5460 #line hidden 5461 5462 #line 1655 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5463 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5464 5465 5466 #line default 5467 #line hidden 5468 5469 #line 1655 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5470 5471 5472 if (settings.Control.IsNotNullOrEmpty()) 5473 { 5474 var type = settings.Type.ToString().ToLower(); 5475 if (settings.Type == FieldType.DatetimeLocal) 5476 { 5477 type = "datetime-local"; 5478 } 5479 5480 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 5481 if (settings.Type == FieldType.Password) 5482 { 5483 settings.Control = settings.Control.Replace("input ", "input autocomplete=\"off\" "); 5484 } 5485 5486 5487 #line default 5488 #line hidden 5489 5490 #line 1670 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5491 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 5492 5493 5494 #line default 5495 #line hidden 5496 5497 #line 1670 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5498 5499 } 5500 else 5501 { 5502 if (settings.Type == FieldType.Password && !settings.Attributes.ContainsKey("autocomplete")) 5503 { 5504 settings.Attributes.Add("autocomplete", "off"); 5505 } 5506 5507 5508 #line default 5509 #line hidden 5510 5511 #line 1678 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5512 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5513 5514 5515 #line default 5516 #line hidden 5517 5518 #line 1678 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5519 5520 } 5521 5522 5523 5524 #line default 5525 #line hidden 5526 5527 #line 1681 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5528 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5529 5530 5531 #line default 5532 #line hidden 5533 5534 #line 1681 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5535 5536 } 5537 5538 5539 #line default 5540 #line hidden 5541 }); 5542 5543 #line 1683 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5544 } 5545 #line default 5546 #line hidden 5547 5548 5549 #line 1685 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5550 public RazorEngine.Templating.TemplateWriter InternalRenderDateTimeField(FieldSettings settings) 5551 { 5552 #line default 5553 #line hidden 5554 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5555 5556 #line 1686 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5557 5558 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 5559 { 5560 settings.Assert(FieldType.Datetime); 5561 settings.Attributes = new Dictionary<string, string> 5562 { 5563 {"placeholder", "&#xf073;"} 5564 }; 5565 5566 5567 5568 #line default 5569 #line hidden 5570 5571 #line 1695 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5572 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5573 5574 5575 #line default 5576 #line hidden 5577 5578 #line 1695 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5579 5580 5581 if (settings.Control.IsNotNullOrEmpty()) 5582 { 5583 var type = settings.Type.ToString().ToLower(); 5584 5585 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 5586 5587 5588 #line default 5589 #line hidden 5590 5591 #line 1702 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5592 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 5593 5594 5595 #line default 5596 #line hidden 5597 5598 #line 1702 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5599 5600 } 5601 else 5602 { 5603 5604 5605 #line default 5606 #line hidden 5607 5608 #line 1706 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5609 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5610 5611 5612 #line default 5613 #line hidden 5614 5615 #line 1706 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5616 5617 } 5618 5619 5620 5621 #line default 5622 #line hidden 5623 5624 #line 1709 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5625 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5626 5627 5628 #line default 5629 #line hidden 5630 5631 #line 1709 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5632 5633 } 5634 5635 5636 #line default 5637 #line hidden 5638 }); 5639 5640 #line 1711 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5641 } 5642 #line default 5643 #line hidden 5644 5645 5646 #line 1713 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5647 public RazorEngine.Templating.TemplateWriter InternalRenderSelectField(FieldSettings settings) 5648 { 5649 #line default 5650 #line hidden 5651 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5652 5653 #line 1714 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5654 5655 const int limit = 10; 5656 5657 settings.Assert(FieldType.Select); 5658 5659 if (settings.CssClass.ToLower().Contains("country")) 5660 { 5661 5662 5663 #line default 5664 #line hidden 5665 5666 #line 1721 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5667 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(settings, true, settings.CssClass.ToLower().Contains("highlights"))); 5668 5669 5670 #line default 5671 #line hidden 5672 5673 #line 1721 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5674 5675 } 5676 else 5677 { 5678 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty() || settings.FieldOptionsList.Any() || settings.ValuesList.Any()) 5679 { 5680 5681 5682 #line default 5683 #line hidden 5684 5685 #line 1727 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5686 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 5687 5688 5689 #line default 5690 #line hidden 5691 5692 #line 1727 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5693 5694 5695 var optionsCount = 0; 5696 if (settings.Control.IsNotNullOrEmpty()) 5697 { 5698 optionsCount = Regex.Matches(settings.Control, "option ").Count; 5699 5700 if (optionsCount > limit || optionsCount == 0) 5701 { 5702 settings.Control = settings.Control.Replace("select ", "select data-live-search=\"true\" "); 5703 } 5704 5705 5706 #line default 5707 #line hidden 5708 5709 #line 1738 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5710 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control, settings.CssClass)); 5711 5712 5713 #line default 5714 #line hidden 5715 5716 #line 1738 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5717 5718 } 5719 else 5720 { 5721 optionsCount = settings.FieldOptionsList.Count + settings.ValuesList.Count; 5722 5723 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && (optionsCount > limit || optionsCount == 0)) 5724 { 5725 settings.Attributes.Add("data-live-search", "true"); 5726 } 5727 5728 5729 #line default 5730 #line hidden 5731 5732 #line 1748 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5733 WriteTo(__razor_helper_writer, GetHtmlElement("select", GetAttributes(settings, false))); 5734 5735 5736 #line default 5737 #line hidden 5738 5739 #line 1748 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5740 5741 5742 if (settings.FirstHardcodedOptionLabel.IsNotNullOrEmpty()) 5743 { 5744 5745 5746 #line default 5747 #line hidden 5748 5749 #line 1752 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5750 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected))); 5751 5752 5753 #line default 5754 #line hidden 5755 5756 #line 1752 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5757 5758 } 5759 5760 foreach (var option in settings.FieldOptionsList) 5761 { 5762 5763 5764 #line default 5765 #line hidden 5766 5767 #line 1757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5768 WriteTo(__razor_helper_writer, InternalRenderOption(option)); 5769 5770 5771 #line default 5772 #line hidden 5773 5774 #line 1757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5775 5776 } 5777 foreach (var option in settings.ValuesList) 5778 { 5779 5780 5781 #line default 5782 #line hidden 5783 5784 #line 1761 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5785 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(option, option))); 5786 5787 5788 #line default 5789 #line hidden 5790 5791 #line 1761 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5792 5793 } 5794 5795 5796 5797 #line default 5798 #line hidden 5799 5800 #line 1764 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5801 WriteTo(__razor_helper_writer, GetHtmlElement("select", false)); 5802 5803 5804 #line default 5805 #line hidden 5806 5807 #line 1764 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5808 5809 } 5810 5811 5812 5813 #line default 5814 #line hidden 5815 5816 #line 1767 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5817 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 5818 5819 5820 #line default 5821 #line hidden 5822 5823 #line 1767 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5824 5825 } 5826 } 5827 5828 5829 #line default 5830 #line hidden 5831 }); 5832 5833 #line 1770 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5834 } 5835 #line default 5836 #line hidden 5837 5838 5839 #line 1772 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5840 public RazorEngine.Templating.TemplateWriter InternalRenderButtonField(FieldSettings settings) 5841 { 5842 #line default 5843 #line hidden 5844 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5845 5846 #line 1773 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5847 5848 settings.Assert(FieldType.Button); 5849 5850 5851 5852 #line default 5853 #line hidden 5854 5855 #line 1776 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5856 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings, false)); 5857 5858 5859 #line default 5860 #line hidden 5861 5862 #line 1776 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5863 5864 5865 if (settings.Control.IsNotNullOrEmpty()) 5866 { 5867 var controlOutput = settings.Control; 5868 switch (settings.Type) 5869 { 5870 case FieldType.Submit: 5871 controlOutput = controlOutput.Replace("input ", "input class='btn btn-default'"); 5872 break; 5873 case FieldType.Reset: 5874 controlOutput = controlOutput.Replace("input ", "input class='btn btn-bg2'"); 5875 break; 5876 case FieldType.Button: 5877 case FieldType.Textarea: 5878 case FieldType.File: 5879 case FieldType.Text: 5880 case FieldType.Hidden: 5881 case FieldType.Radio: 5882 case FieldType.Checkbox: 5883 case FieldType.Select: 5884 case FieldType.Checkboxlist: 5885 case FieldType.Divider: 5886 case FieldType.Image: 5887 case FieldType.Password: 5888 case FieldType.Textstring: 5889 case FieldType.Search: 5890 case FieldType.Email: 5891 case FieldType.Url: 5892 case FieldType.Tel: 5893 case FieldType.Number: 5894 case FieldType.Range: 5895 case FieldType.Date: 5896 case FieldType.Month: 5897 case FieldType.Week: 5898 case FieldType.Time: 5899 case FieldType.Datetime: 5900 case FieldType.DatetimeLocal: 5901 case FieldType.Color: 5902 case FieldType.Unknown: 5903 default: 5904 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 5905 } 5906 5907 5908 #line default 5909 #line hidden 5910 5911 #line 1819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5912 WriteTo(__razor_helper_writer, controlOutput); 5913 5914 5915 #line default 5916 #line hidden 5917 5918 #line 1819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5919 5920 } 5921 else 5922 { 5923 settings.CssClass = settings.CssClass.IsNullOrEmpty() ? "btn btn-default" : "btn " + settings.CssClass; 5924 settings.Value = settings.Value.IsNotNullOrEmpty() ? settings.Value : settings.Label; 5925 if (settings.Type == FieldType.Button) 5926 { 5927 if (settings.Label.IsNullOrEmpty()) 5928 { 5929 settings.Label = Translate("Button"); 5930 } 5931 5932 5933 #line default 5934 #line hidden 5935 5936 #line 1831 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5937 WriteTo(__razor_helper_writer, GetHtmlElement("button", GetAttributes(settings))); 5938 5939 5940 #line default 5941 #line hidden 5942 5943 #line 1831 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5944 5945 5946 5947 #line default 5948 #line hidden 5949 5950 #line 1832 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5951 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 5952 5953 5954 #line default 5955 #line hidden 5956 5957 #line 1832 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5958 5959 5960 5961 #line default 5962 #line hidden 5963 5964 #line 1833 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5965 WriteTo(__razor_helper_writer, GetHtmlElement("button", true)); 5966 5967 5968 #line default 5969 #line hidden 5970 5971 #line 1833 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5972 5973 } 5974 else 5975 { 5976 5977 5978 #line default 5979 #line hidden 5980 5981 #line 1837 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5982 WriteTo(__razor_helper_writer, GetHtmlElement("input", GetAttributes(settings), true)); 5983 5984 5985 #line default 5986 #line hidden 5987 5988 #line 1837 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5989 5990 } 5991 } 5992 5993 5994 5995 #line default 5996 #line hidden 5997 5998 #line 1841 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 5999 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 6000 6001 6002 #line default 6003 #line hidden 6004 6005 #line 1841 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6006 6007 6008 6009 #line default 6010 #line hidden 6011 }); 6012 6013 #line 1842 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6014 } 6015 #line default 6016 #line hidden 6017 6018 6019 #line 1846 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6020 public RazorEngine.Templating.TemplateWriter InternalRenderTextStringField(FieldSettings settings) 6021 { 6022 #line default 6023 #line hidden 6024 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6025 6026 #line 1847 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6027 6028 settings.Assert(FieldType.Textstring); 6029 6030 if (settings.Description.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 6031 { 6032 if (settings.Control.IsNotNullOrEmpty()) 6033 { 6034 6035 6036 #line default 6037 #line hidden 6038 6039 #line 1854 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6040 WriteTo(__razor_helper_writer, settings.Control); 6041 6042 6043 #line default 6044 #line hidden 6045 6046 #line 1854 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6047 6048 } 6049 else 6050 { 6051 6052 6053 #line default 6054 #line hidden 6055 WriteLiteralTo(__razor_helper_writer, " <p"); 6056 6057 WriteLiteralTo(__razor_helper_writer, " class=\"help-block\""); 6058 6059 WriteLiteralTo(__razor_helper_writer, ">"); 6060 6061 6062 #line 1858 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6063 WriteTo(__razor_helper_writer, settings.Description); 6064 6065 6066 #line default 6067 #line hidden 6068 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 6069 6070 6071 #line 1859 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6072 } 6073 } 6074 6075 6076 #line default 6077 #line hidden 6078 }); 6079 6080 #line 1861 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6081 } 6082 #line default 6083 #line hidden 6084 6085 6086 #line 1863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6087 public RazorEngine.Templating.TemplateWriter InternalRenderImageField(FieldSettings settings) 6088 { 6089 #line default 6090 #line hidden 6091 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6092 6093 #line 1864 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6094 6095 settings.Assert(FieldType.Image); 6096 6097 if (settings.Control.IsNotNullOrEmpty()) 6098 { 6099 6100 6101 #line default 6102 #line hidden 6103 6104 #line 1869 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6105 WriteTo(__razor_helper_writer, settings.Control); 6106 6107 6108 #line default 6109 #line hidden 6110 6111 #line 1869 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6112 6113 } 6114 6115 6116 #line default 6117 #line hidden 6118 }); 6119 6120 #line 1871 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6121 } 6122 #line default 6123 #line hidden 6124 6125 6126 #line 1873 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6127 public RazorEngine.Templating.TemplateWriter InternalRenderDividerField(FieldSettings settings) 6128 { 6129 #line default 6130 #line hidden 6131 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6132 6133 #line 1874 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6134 6135 settings.Assert(FieldType.Divider); 6136 6137 6138 6139 #line default 6140 #line hidden 6141 WriteLiteralTo(__razor_helper_writer, " <hr"); 6142 6143 WriteLiteralTo(__razor_helper_writer, " class=\"divider\""); 6144 6145 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 6146 6147 6148 #line 1878 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6149 6150 6151 #line default 6152 #line hidden 6153 }); 6154 6155 #line 1878 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6156 } 6157 #line default 6158 #line hidden 6159 6160 6161 #line 1880 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6162 public RazorEngine.Templating.TemplateWriter InternalRenderInputOptionField(string htmlElement, FieldOption optionSettings, FieldType type = FieldType.Radio) 6163 { 6164 #line default 6165 #line hidden 6166 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6167 6168 #line 1881 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6169 6170 var fieldType = type == FieldType.Checkboxlist ? FieldType.Checkbox.ToString().ToLower() : type.ToString().ToLower(); 6171 var attributes = new StringBuilder(GetAttribute("type", fieldType)); 6172 attributes.Append(GetAttribute("value", optionSettings.Value)); 6173 attributes.Append(GetAttribute("name", optionSettings.SystemName)); 6174 attributes.Append(optionSettings.Id.IsNotNullOrEmpty() ? GetAttribute("id", optionSettings.Id) : optionSettings.SystemName); 6175 attributes.Append(GetAttributes(optionSettings.Attributes)); 6176 6177 if (optionSettings.IsSelected) 6178 { 6179 attributes.Append(GetAttribute("checked", "checked")); 6180 } 6181 if (optionSettings.IsDisabled) 6182 { 6183 attributes.Append(GetAttribute("disabled", "disabled")); 6184 } 6185 6186 6187 6188 #line default 6189 #line hidden 6190 6191 #line 1898 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6192 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, attributes.ToString())); 6193 6194 6195 #line default 6196 #line hidden 6197 6198 #line 1898 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6199 6200 6201 6202 #line default 6203 #line hidden 6204 }); 6205 6206 #line 1899 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6207 } 6208 #line default 6209 #line hidden 6210 6211 6212 #line 1901 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6213 public RazorEngine.Templating.TemplateWriter InternalRenderOption(FieldOption optionSettings) 6214 { 6215 #line default 6216 #line hidden 6217 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6218 6219 #line 1902 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6220 6221 var selected = optionSettings.IsSelected ? " selected" : string.Empty; 6222 var disabled = optionSettings.IsDisabled ? " disabled" : string.Empty; 6223 var readOnly = optionSettings.IsReadOnly ? " readonly" : string.Empty; 6224 var attributes = GetAttributes(optionSettings); 6225 6226 6227 6228 #line default 6229 #line hidden 6230 6231 #line 1908 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6232 WriteTo(__razor_helper_writer, GetHtmlElement("option", attributes + selected + disabled + readOnly)); 6233 6234 6235 #line default 6236 #line hidden 6237 6238 #line 1908 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6239 6240 6241 6242 #line default 6243 #line hidden 6244 6245 #line 1909 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6246 WriteTo(__razor_helper_writer, InternalRenderLabel(optionSettings.Label, optionSettings.TranslateKeyForLabel)); 6247 6248 6249 #line default 6250 #line hidden 6251 6252 #line 1909 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6253 6254 6255 6256 #line default 6257 #line hidden 6258 6259 #line 1910 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6260 WriteTo(__razor_helper_writer, GetHtmlElement("option", true)); 6261 6262 6263 #line default 6264 #line hidden 6265 6266 #line 1910 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6267 6268 6269 6270 #line default 6271 #line hidden 6272 }); 6273 6274 #line 1911 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6275 } 6276 #line default 6277 #line hidden 6278 6279 6280 #line 1913 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6281 public RazorEngine.Templating.TemplateWriter InternalRenderFieldHeader(FieldSettings settings, bool renderLabel = true) 6282 { 6283 #line default 6284 #line hidden 6285 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6286 6287 #line 1914 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6288 6289 6290 6291 #line default 6292 #line hidden 6293 6294 #line 1915 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6295 WriteTo(__razor_helper_writer, GetWrapperStart(settings.IncludeWrapper, settings.Type, settings.WrapperElement, settings.IsRequired, settings.WrapperCssClass)); 6296 6297 6298 #line default 6299 #line hidden 6300 6301 #line 1915 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6302 6303 if ((settings.Label.IsNotNullOrEmpty() || settings.TranslateKeyForLabel.IsNotNullOrEmpty()) && renderLabel) 6304 { 6305 if (settings.Type == FieldType.Checkboxlist || settings.Type == FieldType.Radio) 6306 { 6307 6308 6309 #line default 6310 #line hidden 6311 WriteLiteralTo(__razor_helper_writer, " <label"); 6312 6313 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 84717), Tuple.Create("\"", 84759) 6314 , Tuple.Create(Tuple.Create("", 84725), Tuple.Create("form-label", 84725), true) 6315 6316 #line 1920 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6317 , Tuple.Create(Tuple.Create(" ", 84735), Tuple.Create<System.Object, System.Int32>(settings.LabelCssClass 6318 6319 #line default 6320 #line hidden 6321 , 84736), false) 6322 ); 6323 6324 WriteLiteralTo(__razor_helper_writer, ">"); 6325 6326 6327 #line 1920 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6328 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 6329 6330 6331 #line default 6332 #line hidden 6333 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 6334 6335 6336 #line 1921 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6337 } 6338 else 6339 { 6340 6341 6342 #line default 6343 #line hidden 6344 WriteLiteralTo(__razor_helper_writer, " <label"); 6345 6346 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 84871), Tuple.Create("\"", 84897) 6347 6348 #line 1924 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6349 , Tuple.Create(Tuple.Create("", 84877), Tuple.Create<System.Object, System.Int32>(settings.SystemName 6350 6351 #line default 6352 #line hidden 6353 , 84877), false) 6354 ); 6355 6356 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 84898), Tuple.Create("\"", 84940) 6357 , Tuple.Create(Tuple.Create("", 84906), Tuple.Create("form-label", 84906), true) 6358 6359 #line 1924 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6360 , Tuple.Create(Tuple.Create(" ", 84916), Tuple.Create<System.Object, System.Int32>(settings.LabelCssClass 6361 6362 #line default 6363 #line hidden 6364 , 84917), false) 6365 ); 6366 6367 WriteLiteralTo(__razor_helper_writer, ">"); 6368 6369 6370 #line 1924 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6371 WriteTo(__razor_helper_writer, InternalRenderLabel(settings)); 6372 6373 6374 #line default 6375 #line hidden 6376 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 6377 6378 6379 #line 1925 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6380 } 6381 6382 } 6383 if (settings.Prepend.IsNotNullOrEmpty()) 6384 { 6385 6386 6387 #line default 6388 #line hidden 6389 WriteLiteralTo(__razor_helper_writer, " <div"); 6390 6391 WriteLiteralTo(__razor_helper_writer, " class=\"fieldPrepend input-group-addon\""); 6392 6393 WriteLiteralTo(__razor_helper_writer, ">"); 6394 6395 6396 #line 1930 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6397 WriteTo(__razor_helper_writer, settings.Prepend); 6398 6399 6400 #line default 6401 #line hidden 6402 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 6403 6404 6405 #line 1931 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6406 } 6407 if (settings.IncludeFieldWrapper) 6408 { 6409 6410 6411 #line default 6412 #line hidden 6413 WriteLiteralTo(__razor_helper_writer, " "); 6414 6415 WriteLiteralTo(__razor_helper_writer, "<div class=\"fieldContainer hidden "); 6416 6417 6418 #line 1934 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6419 WriteTo(__razor_helper_writer, settings.FieldWrapperCssClass); 6420 6421 6422 #line default 6423 #line hidden 6424 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 6425 6426 6427 #line 1935 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6428 } 6429 6430 6431 #line default 6432 #line hidden 6433 }); 6434 6435 #line 1936 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6436 } 6437 #line default 6438 #line hidden 6439 6440 6441 #line 1938 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6442 public RazorEngine.Templating.TemplateWriter InternalRenderFieldFooter(FieldSettings settings) 6443 { 6444 #line default 6445 #line hidden 6446 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6447 6448 #line 1939 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6449 6450 if (settings.Icon.IsNotNullOrEmpty()) 6451 { 6452 6453 6454 #line default 6455 #line hidden 6456 6457 #line 1942 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6458 WriteTo(__razor_helper_writer, RenderIcon(settings.Icon, settings.Tooltip, IconPosition.Left, true)); 6459 6460 6461 #line default 6462 #line hidden 6463 6464 #line 1942 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6465 6466 } 6467 if (settings.Append.IsNotNullOrEmpty()) 6468 { 6469 6470 6471 #line default 6472 #line hidden 6473 WriteLiteralTo(__razor_helper_writer, " <div"); 6474 6475 WriteLiteralTo(__razor_helper_writer, " class=\"fieldAppend input-group-addon\""); 6476 6477 WriteLiteralTo(__razor_helper_writer, ">"); 6478 6479 6480 #line 1946 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6481 WriteTo(__razor_helper_writer, settings.Append); 6482 6483 6484 #line default 6485 #line hidden 6486 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 6487 6488 6489 #line 1947 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6490 } 6491 if (settings.Description.IsNotNullOrEmpty()) 6492 { 6493 6494 6495 #line default 6496 #line hidden 6497 WriteLiteralTo(__razor_helper_writer, " <p"); 6498 6499 WriteLiteralTo(__razor_helper_writer, " class=\"help-block\""); 6500 6501 WriteLiteralTo(__razor_helper_writer, ">"); 6502 6503 6504 #line 1950 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6505 WriteTo(__razor_helper_writer, settings.Description); 6506 6507 6508 #line default 6509 #line hidden 6510 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 6511 6512 6513 #line 1951 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6514 } 6515 if (settings.IncludeFieldWrapper) 6516 { 6517 6518 6519 #line default 6520 #line hidden 6521 WriteLiteralTo(__razor_helper_writer, " "); 6522 6523 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 6524 6525 6526 #line 1955 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6527 } 6528 6529 6530 #line default 6531 #line hidden 6532 6533 #line 1956 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6534 WriteTo(__razor_helper_writer, GetWrapperEnd(settings.IncludeWrapper, settings.WrapperElement)); 6535 6536 6537 #line default 6538 #line hidden 6539 6540 #line 1956 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6541 6542 6543 6544 #line default 6545 #line hidden 6546 }); 6547 6548 #line 1957 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6549 } 6550 #line default 6551 #line hidden 6552 6553 6554 #line 1959 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6555 public RazorEngine.Templating.TemplateWriter InternalRenderQuantityField(int productStock, int productAvailableAmount, int selectedQuantity = 1, int productType = 0) 6556 { 6557 #line default 6558 #line hidden 6559 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6560 6561 #line 1960 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6562 6563 6564 6565 #line default 6566 #line hidden 6567 6568 #line 1961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6569 WriteTo(__razor_helper_writer, InternalRenderQuantityField(productStock, productAvailableAmount, selectedQuantity, string.Empty, 10, false, false, productType)); 6570 6571 6572 #line default 6573 #line hidden 6574 6575 #line 1961 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6576 6577 6578 6579 #line default 6580 #line hidden 6581 }); 6582 6583 #line 1962 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6584 } 6585 #line default 6586 #line hidden 6587 6588 6589 #line 1964 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6590 public RazorEngine.Templating.TemplateWriter InternalRenderQuantityField(int productStock, int productAvailableAmount, int selectedQuantity = 1, bool variantGroupsExistList = false) 6591 { 6592 #line default 6593 #line hidden 6594 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6595 6596 #line 1965 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6597 6598 6599 6600 #line default 6601 #line hidden 6602 6603 #line 1966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6604 WriteTo(__razor_helper_writer, InternalRenderQuantityField(productStock, productAvailableAmount, selectedQuantity, string.Empty, 10, false, variantGroupsExistList)); 6605 6606 6607 #line default 6608 #line hidden 6609 6610 #line 1966 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6611 6612 6613 6614 #line default 6615 #line hidden 6616 }); 6617 6618 #line 1967 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6619 } 6620 #line default 6621 #line hidden 6622 6623 6624 #line 1969 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6625 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 = "") 6626 { 6627 #line default 6628 #line hidden 6629 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6630 6631 #line 1970 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6632 6633 // var isQuantityTextHidden = selectedQuantity < 10 && productStock > 0 || !isCheckout ? " hidden" : string.Empty; 6634 var isQuantityTextHidden = string.Empty; 6635 var isSelectDisabled = productStock <= 0 && !isCheckout; 6636 var quantityTextFieldSettings = new FieldSettings 6637 { 6638 Value = selectedQuantity.ToString(), 6639 SystemName = fieldSystemName.IsNullOrEmpty() ? "quantity" : fieldSystemName, 6640 Id = (fieldSystemName.IsNullOrEmpty() ? "quantity_" : fieldSystemName) + productId, 6641 Attributes = new Dictionary<string, string> 6642 { 6643 {"min", "1"}, 6644 {"max", "999999"}, 6645 {"autocomplete", "off"}, 6646 {"data-productStock", productStock.ToString()}, 6647 {"data-productAvailable", productAvailableAmount.ToString()}, 6648 {"data-outofstock", Translate("Out of stock")}, 6649 {"data-stocktranslate", Translate("The current stock is")}, 6650 {"data-currentValue", selectedQuantity.ToString()} 6651 } 6652 }; 6653 6654 if (productType != 1 && productType != 3) 6655 { 6656 quantityTextFieldSettings.Type = FieldType.Number; 6657 quantityTextFieldSettings.Label = Translate("Qty"); 6658 quantityTextFieldSettings.CssClass = "col-xs-4 col-sm-7 quantityInput" + isQuantityTextHidden; 6659 //quantityTextFieldSettings.LabelCssClass = productStock > 0 ? "" : "hidden"; 6660 6661 6662 6663 #line default 6664 #line hidden 6665 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 6666 6667 WriteLiteralTo(__razor_helper_writer, " class=\"quantity-container pull-left\""); 6668 6669 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6670 6671 6672 #line 2000 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6673 6674 6675 #line default 6676 #line hidden 6677 6678 #line 2000 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6679 if (isCheckout) 6680 { 6681 6682 6683 #line default 6684 #line hidden 6685 WriteLiteralTo(__razor_helper_writer, " <div"); 6686 6687 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 88555), Tuple.Create("\"", 88607) 6688 6689 #line 2002 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6690 , Tuple.Create(Tuple.Create("", 88563), Tuple.Create<System.Object, System.Int32>(isQuantityTextHidden 6691 6692 #line default 6693 #line hidden 6694 , 88563), false) 6695 , Tuple.Create(Tuple.Create(" ", 88584), Tuple.Create("quantityPriceContainer", 88585), true) 6696 ); 6697 6698 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6699 6700 WriteLiteralTo(__razor_helper_writer, " "); 6701 6702 6703 #line 2003 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6704 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 6705 6706 6707 #line default 6708 #line hidden 6709 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6710 6711 WriteLiteralTo(__razor_helper_writer, " "); 6712 6713 6714 #line 2004 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6715 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings {IconCssClass = "fa-refresh", CssClass = "submitQuantity btnCart-blue", ButtonType = BootstrapButtonSettings.BootstrapButtonType.Button})); 6716 6717 6718 #line default 6719 #line hidden 6720 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6721 6722 6723 #line 2006 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6724 } 6725 else 6726 { 6727 6728 6729 #line default 6730 #line hidden 6731 6732 #line 2009 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6733 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 6734 6735 6736 #line default 6737 #line hidden 6738 6739 #line 2009 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6740 6741 } 6742 6743 #line default 6744 #line hidden 6745 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n "); 6746 6747 WriteLiteralTo(__razor_helper_writer, "\r\n </fieldset>\r\n"); 6748 6749 6750 #line 2041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6751 } 6752 else 6753 { 6754 quantityTextFieldSettings.Type = FieldType.Hidden; 6755 6756 6757 #line default 6758 #line hidden 6759 6760 #line 2045 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6761 WriteTo(__razor_helper_writer, RenderField(quantityTextFieldSettings)); 6762 6763 6764 #line default 6765 #line hidden 6766 6767 #line 2045 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6768 6769 } 6770 6771 6772 #line default 6773 #line hidden 6774 }); 6775 6776 #line 2047 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6777 } 6778 #line default 6779 #line hidden 6780 6781 6782 #line 2050 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6783 public RazorEngine.Templating.TemplateWriter InternalRenderCountryAndRegionsJsVariables(Dynamicweb.Ecommerce.International.CountryCollection countries = null) 6784 { 6785 #line default 6786 #line hidden 6787 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6788 6789 #line 2051 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6790 6791 if (countries == null) 6792 { 6793 countries = Dynamicweb.Ecommerce.Services.Countries.GetCountries(); 6794 } 6795 6796 if (countries.Any()) 6797 { 6798 6799 6800 #line default 6801 #line hidden 6802 WriteLiteralTo(__razor_helper_writer, " "); 6803 6804 WriteLiteralTo(__razor_helper_writer, " "); 6805 6806 6807 #line 2059 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6808 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 6809 6810 6811 #line default 6812 #line hidden 6813 WriteLiteralTo(__razor_helper_writer, " var countryRegions = {}; "); 6814 6815 6816 #line 2059 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6817 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 6818 6819 6820 #line default 6821 #line hidden 6822 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6823 6824 6825 #line 2060 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6826 6827 foreach (var country in countries.OrderBy(s => s.Name)) 6828 { 6829 var regions = Dynamicweb.Ecommerce.Services.Countries.GetRegions(country.Code2); 6830 6831 if (regions.Any()) 6832 { 6833 6834 6835 #line default 6836 #line hidden 6837 WriteLiteralTo(__razor_helper_writer, " "); 6838 6839 WriteLiteralTo(__razor_helper_writer, " "); 6840 6841 6842 #line 2067 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6843 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 6844 6845 6846 #line default 6847 #line hidden 6848 WriteLiteralTo(__razor_helper_writer, " countryRegions."); 6849 6850 6851 #line 2067 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6852 WriteTo(__razor_helper_writer, country.Code2); 6853 6854 6855 #line default 6856 #line hidden 6857 WriteLiteralTo(__razor_helper_writer, " = {}; "); 6858 6859 6860 #line 2067 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6861 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 6862 6863 6864 #line default 6865 #line hidden 6866 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6867 6868 WriteLiteralTo(__razor_helper_writer, " "); 6869 6870 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6871 6872 WriteLiteralTo(__razor_helper_writer, " "); 6873 6874 6875 #line 2069 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6876 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 6877 6878 6879 #line default 6880 #line hidden 6881 WriteLiteralTo(__razor_helper_writer, "\r\n countryRegions."); 6882 6883 6884 #line 2070 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6885 WriteTo(__razor_helper_writer, country.Code2); 6886 6887 6888 #line default 6889 #line hidden 6890 WriteLiteralTo(__razor_helper_writer, ".code = [];\r\n countryRegions."); 6891 6892 6893 #line 2071 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6894 WriteTo(__razor_helper_writer, country.Code2); 6895 6896 6897 #line default 6898 #line hidden 6899 WriteLiteralTo(__razor_helper_writer, ".name = [];\r\n"); 6900 6901 WriteLiteralTo(__razor_helper_writer, " "); 6902 6903 6904 #line 2072 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6905 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 6906 6907 6908 #line default 6909 #line hidden 6910 WriteLiteralTo(__razor_helper_writer, "\r\n "); 6911 6912 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6913 6914 6915 #line 2074 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6916 foreach (var region in regions.OrderBy(s => s.Name)) 6917 { 6918 6919 6920 #line default 6921 #line hidden 6922 WriteLiteralTo(__razor_helper_writer, " "); 6923 6924 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6925 6926 WriteLiteralTo(__razor_helper_writer, " "); 6927 6928 6929 #line 2077 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6930 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 6931 6932 6933 #line default 6934 #line hidden 6935 WriteLiteralTo(__razor_helper_writer, "\r\n countryRegions[\""); 6936 6937 6938 #line 2078 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6939 WriteTo(__razor_helper_writer, country.Code2); 6940 6941 6942 #line default 6943 #line hidden 6944 WriteLiteralTo(__razor_helper_writer, "\"].code.push(\""); 6945 6946 6947 #line 2078 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6948 WriteTo(__razor_helper_writer, region.RegionCode); 6949 6950 6951 #line default 6952 #line hidden 6953 WriteLiteralTo(__razor_helper_writer, "\");\r\n countryRegions[\""); 6954 6955 6956 #line 2079 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6957 WriteTo(__razor_helper_writer, country.Code2); 6958 6959 6960 #line default 6961 #line hidden 6962 WriteLiteralTo(__razor_helper_writer, "\"].name.push(\""); 6963 6964 6965 #line 2079 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6966 WriteTo(__razor_helper_writer, region.Name); 6967 6968 6969 #line default 6970 #line hidden 6971 WriteLiteralTo(__razor_helper_writer, "\");\r\n"); 6972 6973 WriteLiteralTo(__razor_helper_writer, " "); 6974 6975 6976 #line 2080 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6977 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 6978 6979 6980 #line default 6981 #line hidden 6982 WriteLiteralTo(__razor_helper_writer, "\r\n "); 6983 6984 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6985 6986 6987 #line 2082 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6988 } 6989 } 6990 } 6991 } 6992 6993 6994 #line default 6995 #line hidden 6996 }); 6997 6998 #line 2086 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 6999 } 7000 #line default 7001 #line hidden 7002 7003 7004 #line 2091 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7005 7006 public static bool IsBillingAddressReadOnly() 7007 { 7008 return Dna.Modules.Features.FeatureManager.IsEnabled("IsBillingAddressReadOnly", "Set to 'true' if the Billing Address should be read-only."); 7009 } 7010 7011 public static bool IsBillingAddressEditable() 7012 { 7013 return Dna.Modules.Features.FeatureManager.IsEnabled("IsBillingAddressEditable", "Set to 'true' if the Billing Address should be editable."); 7014 } 7015 7016 public static bool IsShippingAddressEditable() 7017 { 7018 return Dna.Modules.Features.FeatureManager.IsEnabled("IsShippingAddressEditable", "Set to 'true' if the Shipping Address should be editable."); 7019 } 7020 7021 public static bool ShowNoErpConnectionMessage() 7022 { 7023 return Dna.Modules.Features.FeatureManager.IsEnabled("showNoErpConnectionMessage", "Set to 'true' if want to show the 'No ERP Connection Message'."); 7024 } 7025 7026 public static bool ShowStateFieldAsDropdown() 7027 { 7028 return Dna.Modules.Features.FeatureManager.IsEnabled("showStateFieldAsDropdown", "Set to 'true' if the State field should be a drop-down."); 7029 } 7030 public static bool ShowVariantsAsDropdown() 7031 { 7032 return Dna.Modules.Features.FeatureManager.IsEnabled("showVariantsAsDropdown", "Set to 'true' if the Variant field should be a drop-down."); 7033 } 7034 public static bool ShowB2BLogin() 7035 { 7036 return Dna.Modules.Features.FeatureManager.IsEnabled("showB2BLogin", "Set to 'true' if it should display a login page."); 7037 } 7038 7039 7040 #line default 7041 #line hidden 7042 7043 7044 #line 2126 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7045 7046 7047 #region Redirect Workaround 7048 7049 public static void Redirect(string url) 7050 { 7051 HttpContext.Current.Response.Redirect(url, false); 7052 HttpContext.Current.ApplicationInstance.CompleteRequest(); 7053 } 7054 7055 #endregion Redirect Workaround 7056 7057 #region Css functions 7058 7059 public static string GetPalletColorNumber(int number = 0) 7060 { 7061 switch (number) 7062 { 7063 case 1: 7064 return "#666666"; 7065 case 2: 7066 return "#333333"; 7067 default: 7068 return "#ffffff"; 7069 } 7070 } 7071 7072 public static string GetFontFamilyNumber(int number = 0) 7073 { 7074 switch (number) 7075 { 7076 case 1: 7077 return "font-family: Arial, sans-serif;"; 7078 default: 7079 return "font-family: Helvetica, Arial, sans-serif;"; 7080 } 7081 } 7082 7083 public static string GetFontSize(int fontSize = 0) 7084 { 7085 return fontSize >= 0 ? string.Concat("font-size: ", fontSize, "px;") : "font-size: 14px"; 7086 } 7087 7088 #endregion Css functions 7089 7090 #region Icon functions 7091 7092 public static string GetIcon(string cssPartialClass, string label = "", string position = "") 7093 { 7094 var icon = "<i class='fa " + cssPartialClass + "'></i>"; 7095 var spacing = string.Empty; 7096 7097 if (!label.IsNullOrEmpty()) 7098 { 7099 spacing = "&nbsp;"; 7100 } 7101 7102 if (cssPartialClass.IsNullOrEmpty()) return label; 7103 if (position == IconPosition.Left.ToString() || position.IsNullOrEmpty()) 7104 { 7105 return icon + spacing + label; 7106 } 7107 return label + spacing + icon; 7108 } 7109 7110 #endregion Icon functions 7111 7112 #region Address functions 7113 7114 public string GetAddressFormatted(User user, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 7115 { 7116 return GetAddressFormatted(user.Address, user.Address2, user.City, user.State, user.Zip, user.Country, getRegionName, getCountryName, addLineBreakBetweenAddressAndCity, splitBetweenRegionAndCountry); 7117 } 7118 7119 public string GetAddressFormatted(UserAddress userAddress, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 7120 { 7121 return GetAddressFormatted(userAddress.Address, userAddress.Address2, userAddress.City, userAddress.State, userAddress.Zip, userAddress.Country, getRegionName, getCountryName, addLineBreakBetweenAddressAndCity, splitBetweenRegionAndCountry); 7122 } 7123 7124 public string GetAddressFormatted(int addressId) 7125 { 7126 var address = UserAddress.GetUserAddressById(addressId); 7127 return GetAddressFormatted(address.Address, address.Address2, address.City, address.State, address.Zip, address.Country); 7128 } 7129 7130 public string GetAddressFormatted(AddressSource addressSource, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 7131 { 7132 switch (addressSource) 7133 { 7134 case AddressSource.UserProfile: 7135 return GetAddressFormatted( 7136 GetString("UserManagement:User.Address"), 7137 GetString("UserManagement:User.Address2"), 7138 GetString("UserManagement:User.City"), 7139 GetString("UserManagement:User.State"), 7140 GetString("UserManagement:User.Zip"), 7141 GetString("UserManagement:User.Country"), 7142 getRegionName, 7143 getCountryName, 7144 addLineBreakBetweenAddressAndCity, 7145 splitBetweenRegionAndCountry 7146 ); 7147 case AddressSource.EcomCustomer: 7148 return GetAddressFormatted( 7149 GetString("Ecom:Order.Customer.Address"), 7150 GetString("Ecom:Order.Customer.Address2"), 7151 GetString("Ecom:Order.Customer.City"), 7152 GetString("Ecom:Order.Customer.Region"), 7153 GetString("Ecom:Order.Customer.Zip"), 7154 GetString("Ecom:Order.Customer.Country"), 7155 getRegionName, 7156 getCountryName, 7157 addLineBreakBetweenAddressAndCity, 7158 splitBetweenRegionAndCountry 7159 ); 7160 case AddressSource.EcomDelivery: 7161 return GetAddressFormatted( 7162 GetString("Ecom:Order.Delivery.Address"), 7163 GetString("Ecom:Order.Delivery.Address2"), 7164 GetString("Ecom:Order.Delivery.City"), 7165 GetString("Ecom:Order.Delivery.Region"), 7166 GetString("Ecom:Order.Delivery.Zip"), 7167 GetString("Ecom:Order.Delivery.Country"), 7168 getRegionName, 7169 getCountryName, 7170 addLineBreakBetweenAddressAndCity, 7171 splitBetweenRegionAndCountry 7172 ); 7173 case AddressSource.UserAddress: 7174 throw new NotSupportedException("Unsupported address source. Use an AddressId instead"); 7175 default: 7176 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 7177 } 7178 } 7179 7180 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 = " ") 7181 { 7182 7183 var formattedAddress = new StringBuilder(address); 7184 var hasCountry = country.IsNotNullOrEmpty(); 7185 var zipBeforeRegionCountries = new List<string>{"US","United States of America"}; 7186 7187 if (address2.IsNotNullOrEmpty()) 7188 { 7189 formattedAddress.Append(string.Concat(" ",address2)); 7190 } 7191 if (addLineBreakBetweenAddressAndCity && (city + region + country).IsNotNullOrEmpty()) 7192 { 7193 formattedAddress.Append("<br/>"); 7194 } 7195 if (city.IsNotNullOrEmpty()) 7196 { 7197 formattedAddress.Append(string.Concat(" ",city)); 7198 } 7199 if (hasCountry && zipBeforeRegionCountries.Contains(country) && zip.IsNotNullOrEmpty()) 7200 { 7201 formattedAddress.Append(string.Concat(" ",zip)); 7202 } 7203 7204 if (region.IsNotNullOrEmpty()) 7205 { 7206 formattedAddress.Append(zip.IsNotNullOrEmpty() ? string.Empty : ","); 7207 if (getRegionName && country.IsNotNullOrEmpty()) 7208 { 7209 var getRegions = Services.Countries.GetRegions(country); 7210 if(getRegions != null) { 7211 var regionName = getRegions.First(c => c.RegionCode == region).Name; 7212 region = regionName.IsNotNullOrEmpty() ? regionName : region; 7213 } 7214 } 7215 formattedAddress.Append(string.Concat(" ",region)); 7216 } 7217 if (hasCountry && !zipBeforeRegionCountries.Contains(country) && zip.IsNotNullOrEmpty()) 7218 { 7219 formattedAddress.Append(string.Concat(" ",zip)); 7220 } 7221 if (hasCountry) 7222 { 7223 return formattedAddress.ToString(); 7224 } 7225 7226 formattedAddress.Append(splitBetweenRegionAndCountry.IsNotNullOrEmpty() ? splitBetweenRegionAndCountry : " "); 7227 if (getCountryName) 7228 { 7229 var getCountry = Services.Countries.GetCountry(country); 7230 if(getCountry != null) 7231 { 7232 var countryName = getCountry.Name; 7233 country = countryName.IsNotNullOrEmpty() ? countryName : country; 7234 } 7235 } 7236 formattedAddress.Append(country); 7237 return formattedAddress.ToString(); 7238 } 7239 7240 #endregion Address functions 7241 7242 #region Field helper functions 7243 7244 const string HighlightedCountriesSplit = "----------------"; 7245 7246 internal readonly List<string> HighlightedCountries = new List<string> 7247 { 7248 "CA", 7249 "US", 7250 HighlightedCountriesSplit 7251 }; 7252 7253 #endregion Field helper functions 7254 7255 #region Generic functions 7256 7257 private static int FormatInteger(object value) 7258 { 7259 int num; 7260 if (value == null) 7261 { 7262 value = string.Empty; 7263 } 7264 return int.TryParse(value.ToString(), out num) ? num : 0; 7265 } 7266 7267 #endregion Generic functions 7268 7269 private string GetProductPrice(string productPrice = "") 7270 { 7271 var showNoErpConnectionMessage = ShowNoErpConnectionMessage(); 7272 var isWebServiceConnectionAvailable = Dna.Ecommerce.LiveIntegration.TemplatesHelper.IsWebServiceConnectionAvailable(); 7273 7274 if (!isWebServiceConnectionAvailable && showNoErpConnectionMessage) 7275 { 7276 if (productPrice.IsNullOrEmpty()) 7277 { 7278 return GetNoErpConnectionMessage(); 7279 } 7280 else 7281 { 7282 return string.Concat("<span class='noErpConnection'>", Translate("Unavailable"), "</span>"); 7283 } 7284 } 7285 return productPrice; 7286 } 7287 7288 public string GetNoErpConnectionMessage() 7289 { 7290 return string.Concat("<div class='col-xs-12 warningBox'><p>", Translate("Pricing and inventory are currently not available. Please check back soon"), "</p></div>"); 7291 } 7292 7293 #line default 7294 #line hidden 7295 7296 7297 #line 2376 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7298 public RazorEngine.Templating.TemplateWriter RenderTableHeading(string label, string sortByField = "", string listType = "Order") 7299 { 7300 #line default 7301 #line hidden 7302 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7303 7304 #line 2377 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7305 7306 if (sortByField.IsNotNullOrEmpty()) 7307 { 7308 var href = string.Empty; 7309 var icon = "fa-sort-amount-asc"; 7310 if (listType == "Order" || listType == "Rma") 7311 { 7312 href = GetCustomerCenterSortUrl(sortByField, listType); 7313 if (GetSortFieldParameter("name") == sortByField) 7314 { 7315 icon = "fa-sort-amount-" + GetSortFieldParameter("value", sortByField).ToLower(); 7316 } 7317 } 7318 7319 7320 #line default 7321 #line hidden 7322 WriteLiteralTo(__razor_helper_writer, " <a"); 7323 7324 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 104495), Tuple.Create("\"", 104507) 7325 7326 #line 2390 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7327 , Tuple.Create(Tuple.Create("", 104502), Tuple.Create<System.Object, System.Int32>(href 7328 7329 #line default 7330 #line hidden 7331 , 104502), false) 7332 ); 7333 7334 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7335 7336 WriteLiteralTo(__razor_helper_writer, " "); 7337 7338 7339 #line 2391 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7340 WriteTo(__razor_helper_writer, RenderIcon(icon, label, IconPosition.Right)); 7341 7342 7343 #line default 7344 #line hidden 7345 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 7346 7347 7348 #line 2393 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7349 } 7350 else 7351 { 7352 7353 7354 #line default 7355 #line hidden 7356 7357 #line 2396 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7358 WriteTo(__razor_helper_writer, label); 7359 7360 7361 #line default 7362 #line hidden 7363 7364 #line 2396 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7365 7366 } 7367 7368 7369 #line default 7370 #line hidden 7371 }); 7372 7373 #line 2398 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7374 } 7375 #line default 7376 #line hidden 7377 7378 7379 #line 2400 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7380 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) 7381 { 7382 #line default 7383 #line hidden 7384 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7385 7386 #line 2401 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7387 7388 if (value.IsNotNullOrEmpty() || alternativeValue.IsNotNullOrEmpty()) 7389 { 7390 var displayValue = alternativeValue.IsNullOrEmpty() ? value : alternativeValue; 7391 7392 7393 #line default 7394 #line hidden 7395 WriteLiteralTo(__razor_helper_writer, " <dt"); 7396 7397 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 105061), Tuple.Create("\"", 105078) 7398 7399 #line 2405 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7400 , Tuple.Create(Tuple.Create("", 105069), Tuple.Create<System.Object, System.Int32>(labelCss 7401 7402 #line default 7403 #line hidden 7404 , 105069), false) 7405 ); 7406 7407 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7408 7409 7410 #line 2406 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7411 7412 7413 #line default 7414 #line hidden 7415 7416 #line 2406 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7417 if (isLabelBold) 7418 { 7419 7420 7421 #line default 7422 #line hidden 7423 WriteLiteralTo(__razor_helper_writer, " "); 7424 7425 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 7426 7427 7428 #line 2409 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7429 } 7430 7431 #line default 7432 #line hidden 7433 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7434 7435 WriteLiteralTo(__razor_helper_writer, " "); 7436 7437 7438 #line 2410 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7439 WriteTo(__razor_helper_writer, label); 7440 7441 7442 #line default 7443 #line hidden 7444 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7445 7446 7447 #line 2411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7448 7449 7450 #line default 7451 #line hidden 7452 7453 #line 2411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7454 if (isLabelBold) 7455 { 7456 7457 7458 #line default 7459 #line hidden 7460 WriteLiteralTo(__razor_helper_writer, " "); 7461 7462 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 7463 7464 7465 #line 2414 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7466 } 7467 7468 #line default 7469 #line hidden 7470 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 7471 7472 WriteLiteralTo(__razor_helper_writer, " <dd"); 7473 7474 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 105353), Tuple.Create("\"", 105370) 7475 7476 #line 2416 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7477 , Tuple.Create(Tuple.Create("", 105361), Tuple.Create<System.Object, System.Int32>(valueCss 7478 7479 #line default 7480 #line hidden 7481 , 105361), false) 7482 ); 7483 7484 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7485 7486 WriteLiteralTo(__razor_helper_writer, " "); 7487 7488 7489 #line 2417 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7490 WriteTo(__razor_helper_writer, displayValue); 7491 7492 7493 #line default 7494 #line hidden 7495 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 7496 7497 7498 #line 2419 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7499 } 7500 7501 7502 #line default 7503 #line hidden 7504 }); 7505 7506 #line 2420 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7507 } 7508 #line default 7509 #line hidden 7510 7511 7512 #line 2422 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7513 public RazorEngine.Templating.TemplateWriter RenderTableRowSpacer(int height = 30, int colspan = 1) 7514 { 7515 #line default 7516 #line hidden 7517 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7518 7519 #line 2423 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7520 7521 if (height == 0) 7522 { 7523 height = 30; 7524 } 7525 7526 7527 7528 #line default 7529 #line hidden 7530 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n"); 7531 7532 7533 #line 2430 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7534 7535 7536 #line default 7537 #line hidden 7538 7539 #line 2430 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7540 if (colspan > 1) 7541 { 7542 7543 7544 #line default 7545 #line hidden 7546 WriteLiteralTo(__razor_helper_writer, " "); 7547 7548 WriteLiteralTo(__razor_helper_writer, " <td colspan=\""); 7549 7550 7551 #line 2432 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7552 WriteTo(__razor_helper_writer, colspan); 7553 7554 7555 #line default 7556 #line hidden 7557 WriteLiteralTo(__razor_helper_writer, "\" height=\""); 7558 7559 7560 #line 2432 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7561 WriteTo(__razor_helper_writer, height); 7562 7563 7564 #line default 7565 #line hidden 7566 WriteLiteralTo(__razor_helper_writer, "\"></td>\r\n"); 7567 7568 7569 #line 2433 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7570 } 7571 else 7572 { 7573 7574 7575 #line default 7576 #line hidden 7577 WriteLiteralTo(__razor_helper_writer, " <td"); 7578 7579 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 105796), Tuple.Create("\"", 105812) 7580 7581 #line 2436 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7582 , Tuple.Create(Tuple.Create("", 105805), Tuple.Create<System.Object, System.Int32>(height 7583 7584 #line default 7585 #line hidden 7586 , 105805), false) 7587 ); 7588 7589 WriteLiteralTo(__razor_helper_writer, "></td>\r\n"); 7590 7591 7592 #line 2437 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7593 } 7594 7595 #line default 7596 #line hidden 7597 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n"); 7598 7599 7600 #line 2439 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7601 7602 7603 #line default 7604 #line hidden 7605 }); 7606 7607 #line 2439 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7608 } 7609 #line default 7610 #line hidden 7611 7612 7613 #line 2441 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7614 public RazorEngine.Templating.TemplateWriter RenderTableCellSpacer(int width = 10, int height = 10) 7615 { 7616 #line default 7617 #line hidden 7618 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7619 7620 #line 2442 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7621 7622 if (width == 0) 7623 { 7624 width = 10; 7625 } 7626 if (height == 0) 7627 { 7628 height = 10; 7629 } 7630 7631 7632 #line default 7633 #line hidden 7634 WriteLiteralTo(__razor_helper_writer, " <td"); 7635 7636 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 106096), Tuple.Create("\"", 106110) 7637 7638 #line 2451 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7639 , Tuple.Create(Tuple.Create("", 106104), Tuple.Create<System.Object, System.Int32>(width 7640 7641 #line default 7642 #line hidden 7643 , 106104), false) 7644 ); 7645 7646 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 106111), Tuple.Create("\"", 106127) 7647 7648 #line 2451 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7649 , Tuple.Create(Tuple.Create("", 106120), Tuple.Create<System.Object, System.Int32>(height 7650 7651 #line default 7652 #line hidden 7653 , 106120), false) 7654 ); 7655 7656 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</td>\r\n"); 7657 7658 7659 #line 2452 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7660 7661 7662 #line default 7663 #line hidden 7664 }); 7665 7666 #line 2452 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7667 } 7668 #line default 7669 #line hidden 7670 7671 7672 #line 2456 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7673 public RazorEngine.Templating.TemplateWriter RenderTabContent(string tabKey, string tabLabel, string tabContent, string cssClass = "") 7674 { 7675 #line default 7676 #line hidden 7677 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7678 7679 #line 2457 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7680 7681 if (tabContent.IsNotNullOrEmpty()) 7682 { 7683 7684 7685 #line default 7686 #line hidden 7687 7688 #line 2460 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7689 WriteTo(__razor_helper_writer, InternalRenderTabHeader("#" + tabKey, tabLabel, cssClass)); 7690 7691 7692 #line default 7693 #line hidden 7694 7695 #line 2460 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7696 7697 7698 7699 #line default 7700 #line hidden 7701 WriteLiteralTo(__razor_helper_writer, " <div"); 7702 7703 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 106437), Tuple.Create("\"", 106464) 7704 , Tuple.Create(Tuple.Create("", 106445), Tuple.Create("col-xs-12", 106445), true) 7705 7706 #line 2461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7707 , Tuple.Create(Tuple.Create(" ", 106454), Tuple.Create<System.Object, System.Int32>(cssClass 7708 7709 #line default 7710 #line hidden 7711 , 106455), false) 7712 ); 7713 7714 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 106465), Tuple.Create("\"", 106477) 7715 7716 #line 2461 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7717 , Tuple.Create(Tuple.Create("", 106470), Tuple.Create<System.Object, System.Int32>(tabKey 7718 7719 #line default 7720 #line hidden 7721 , 106470), false) 7722 ); 7723 7724 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7725 7726 WriteLiteralTo(__razor_helper_writer, " "); 7727 7728 7729 #line 2462 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7730 WriteTo(__razor_helper_writer, tabContent); 7731 7732 7733 #line default 7734 #line hidden 7735 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7736 7737 7738 #line 2464 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7739 } 7740 7741 7742 #line default 7743 #line hidden 7744 }); 7745 7746 #line 2465 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7747 } 7748 #line default 7749 #line hidden 7750 7751 7752 #line 2469 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7753 public RazorEngine.Templating.TemplateWriter RenderField(FieldSettings settings) 7754 { 7755 #line default 7756 #line hidden 7757 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7758 7759 #line 2470 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7760 7761 switch (settings.Type) 7762 { 7763 case FieldType.Button: 7764 case FieldType.Reset: 7765 case FieldType.Submit: 7766 7767 7768 #line default 7769 #line hidden 7770 7771 #line 2476 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7772 WriteTo(__razor_helper_writer, InternalRenderButtonField(settings)); 7773 7774 7775 #line default 7776 #line hidden 7777 7778 #line 2476 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7779 7780 break; 7781 case FieldType.Checkbox: 7782 7783 7784 #line default 7785 #line hidden 7786 7787 #line 2479 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7788 WriteTo(__razor_helper_writer, InternalRenderCheckboxField(settings)); 7789 7790 7791 #line default 7792 #line hidden 7793 7794 #line 2479 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7795 7796 break; 7797 case FieldType.Image: 7798 7799 7800 #line default 7801 #line hidden 7802 7803 #line 2482 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7804 WriteTo(__razor_helper_writer, InternalRenderImageField(settings)); 7805 7806 7807 #line default 7808 #line hidden 7809 7810 #line 2482 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7811 7812 break; 7813 case FieldType.Checkboxlist: 7814 case FieldType.Radio: 7815 7816 7817 #line default 7818 #line hidden 7819 7820 #line 2486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7821 WriteTo(__razor_helper_writer, InternalRenderRadioOrCheckboxListField(settings)); 7822 7823 7824 #line default 7825 #line hidden 7826 7827 #line 2486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7828 7829 break; 7830 case FieldType.Select: 7831 7832 7833 #line default 7834 #line hidden 7835 7836 #line 2489 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7837 WriteTo(__razor_helper_writer, InternalRenderSelectField(settings)); 7838 7839 7840 #line default 7841 #line hidden 7842 7843 #line 2489 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7844 7845 break; 7846 case FieldType.Color: 7847 case FieldType.Date: 7848 case FieldType.DatetimeLocal: 7849 case FieldType.Email: 7850 case FieldType.File: 7851 case FieldType.Hidden: 7852 case FieldType.Password: 7853 case FieldType.Month: 7854 case FieldType.Number: 7855 case FieldType.Search: 7856 case FieldType.Tel: 7857 case FieldType.Text: 7858 case FieldType.Time: 7859 case FieldType.Url: 7860 case FieldType.Week: 7861 case FieldType.Range: 7862 7863 7864 #line default 7865 #line hidden 7866 7867 #line 2507 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7868 WriteTo(__razor_helper_writer, InternalRenderInputField(settings)); 7869 7870 7871 #line default 7872 #line hidden 7873 7874 #line 2507 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7875 7876 break; 7877 7878 case FieldType.Textarea: 7879 7880 7881 #line default 7882 #line hidden 7883 7884 #line 2511 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7885 WriteTo(__razor_helper_writer, InternalRenderTextareaField(settings)); 7886 7887 7888 #line default 7889 #line hidden 7890 7891 #line 2511 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7892 7893 break; 7894 case FieldType.Textstring: 7895 7896 7897 #line default 7898 #line hidden 7899 7900 #line 2514 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7901 WriteTo(__razor_helper_writer, InternalRenderTextStringField(settings)); 7902 7903 7904 #line default 7905 #line hidden 7906 7907 #line 2514 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7908 7909 break; 7910 case FieldType.Divider: 7911 7912 7913 #line default 7914 #line hidden 7915 7916 #line 2517 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7917 WriteTo(__razor_helper_writer, InternalRenderDividerField(settings)); 7918 7919 7920 #line default 7921 #line hidden 7922 7923 #line 2517 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7924 7925 break; 7926 case FieldType.Datetime: 7927 7928 7929 #line default 7930 #line hidden 7931 7932 #line 2520 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7933 WriteTo(__razor_helper_writer, InternalRenderDateTimeField(settings)); 7934 7935 7936 #line default 7937 #line hidden 7938 7939 #line 2520 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7940 7941 break; 7942 case FieldType.Unknown: 7943 7944 7945 #line default 7946 #line hidden 7947 WriteLiteralTo(__razor_helper_writer, " "); 7948 7949 WriteLiteralTo(__razor_helper_writer, "<div style=\"color: #f00\">Undefined FieldType: <strong>"); 7950 7951 7952 #line 2523 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7953 WriteTo(__razor_helper_writer, settings.Type); 7954 7955 7956 #line default 7957 #line hidden 7958 WriteLiteralTo(__razor_helper_writer, "</strong></div>\r\n"); 7959 7960 7961 #line 2524 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7962 break; 7963 default: 7964 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 7965 } 7966 7967 7968 #line default 7969 #line hidden 7970 }); 7971 7972 #line 2528 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7973 } 7974 #line default 7975 #line hidden 7976 7977 7978 #line 2530 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7979 public RazorEngine.Templating.TemplateWriter RenderCountriesDropdownField(List<string> countries, bool renderJsVariables = true, bool renderHighlightOptions = true, bool isFirstHardcodedOptionDisabled = true) 7980 { 7981 #line default 7982 #line hidden 7983 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7984 7985 #line 2531 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 7986 7987 var settings = new FieldSettings 7988 { 7989 SystemName = "Country", 7990 Id = "Country", 7991 Label = Translate("Select your country:"), 7992 FirstHardcodedOptionLabel = Translate("All"), 7993 ValuesList = countries 7994 }; 7995 7996 7997 #line default 7998 #line hidden 7999 8000 #line 2540 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8001 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(settings, renderJsVariables, renderHighlightOptions, isFirstHardcodedOptionDisabled)); 8002 8003 8004 #line default 8005 #line hidden 8006 8007 #line 2540 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8008 8009 8010 8011 #line default 8012 #line hidden 8013 }); 8014 8015 #line 2541 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8016 } 8017 #line default 8018 #line hidden 8019 8020 8021 #line 2543 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8022 public RazorEngine.Templating.TemplateWriter RenderCountriesDropdownField(FieldSettings settings, bool renderJsVariables = true, bool renderHighlightOptions = true, bool isFirstHardcodedOptionDisabled = true) 8023 { 8024 #line default 8025 #line hidden 8026 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8027 8028 #line 2544 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8029 8030 8031 if (settings.SystemName.IsNotNullOrEmpty()) 8032 { 8033 const int limit = 10; 8034 const int numOfCountriesForHighlight = 10; 8035 var countries = EcommerceHelpers.GetEcomCountries(); 8036 var numOfCountries = settings.LoopOptions.Any() ? settings.LoopOptions.Count : settings.ValuesList.Any() ? settings.ValuesList.Count : countries.Count; 8037 8038 settings.Assert(FieldType.Select); 8039 if (settings.FirstHardcodedOptionLabel.IsNullOrEmpty()) 8040 { 8041 settings.FirstHardcodedOptionLabel = Translate("Select an option"); 8042 } 8043 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && numOfCountries > limit) 8044 { 8045 settings.Attributes.Add("data-live-search", "true"); 8046 } 8047 8048 if (renderJsVariables) 8049 { 8050 8051 8052 #line default 8053 #line hidden 8054 8055 #line 2565 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8056 WriteTo(__razor_helper_writer, InternalRenderCountryAndRegionsJsVariables(countries)); 8057 8058 8059 #line default 8060 #line hidden 8061 8062 #line 2565 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8063 8064 } 8065 8066 8067 8068 #line default 8069 #line hidden 8070 8071 #line 2568 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8072 WriteTo(__razor_helper_writer, InternalRenderFieldHeader(settings)); 8073 8074 8075 #line default 8076 #line hidden 8077 8078 #line 2568 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8079 8080 8081 8082 #line default 8083 #line hidden 8084 8085 #line 2569 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8086 WriteTo(__razor_helper_writer, GetHtmlElement("select", GetAttributes(settings))); 8087 8088 8089 #line default 8090 #line hidden 8091 8092 #line 2569 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8093 8094 8095 8096 #line default 8097 #line hidden 8098 8099 #line 2570 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8100 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected, isFirstHardcodedOptionDisabled))); 8101 8102 8103 #line default 8104 #line hidden 8105 8106 #line 2570 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8107 8108 8109 if (numOfCountries > numOfCountriesForHighlight) 8110 { 8111 8112 8113 #line default 8114 #line hidden 8115 8116 #line 2574 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8117 WriteTo(__razor_helper_writer, RenderSnippet("highlightedContries")); 8118 8119 8120 #line default 8121 #line hidden 8122 8123 #line 2574 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8124 8125 } 8126 8127 if (settings.LoopOptions.Any()) 8128 { 8129 8130 foreach (var country in settings.LoopOptions) 8131 { 8132 var countryName = country.GetString("Ecom:Country.Name"); 8133 var countryCode = country.GetString("Ecom:Country.Code2"); 8134 8135 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 8136 { 8137 8138 8139 #line default 8140 #line hidden 8141 8142 #line 2587 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8143 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(countryName, countryCode)); 8144 8145 8146 #line default 8147 #line hidden 8148 8149 #line 2587 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8150 8151 } 8152 8153 8154 #line default 8155 #line hidden 8156 8157 #line 2589 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8158 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(countryName, countryCode))); 8159 8160 8161 #line default 8162 #line hidden 8163 8164 #line 2589 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8165 8166 } 8167 } 8168 else if (settings.ValuesList.Any()) 8169 { 8170 foreach (var countryCode in settings.ValuesList.OrderBy(s => s)) 8171 { 8172 var countryName = countries.Any(c => c.Code2 == countryCode) ? countries.First(c => c.Code2 == countryCode).Name : countryCode; 8173 8174 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 8175 { 8176 8177 8178 #line default 8179 #line hidden 8180 8181 #line 2600 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8182 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(countryName, countryCode)); 8183 8184 8185 #line default 8186 #line hidden 8187 8188 #line 2600 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8189 8190 } 8191 8192 8193 #line default 8194 #line hidden 8195 8196 #line 2602 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8197 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(countryName, countryCode))); 8198 8199 8200 #line default 8201 #line hidden 8202 8203 #line 2602 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8204 8205 } 8206 } 8207 else 8208 { 8209 foreach (var country in countries.OrderBy(s => s.Name)) 8210 { 8211 var countryCode = country.Code2; 8212 8213 if (renderHighlightOptions && HighlightedCountries.Any(c => c.Equals(countryCode, StringComparison.CurrentCultureIgnoreCase))) 8214 { 8215 8216 8217 #line default 8218 #line hidden 8219 8220 #line 2613 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8221 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(country.Name, countryCode)); 8222 8223 8224 #line default 8225 #line hidden 8226 8227 #line 2613 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8228 8229 } 8230 8231 8232 #line default 8233 #line hidden 8234 8235 #line 2615 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8236 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(country.Name, countryCode))); 8237 8238 8239 #line default 8240 #line hidden 8241 8242 #line 2615 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8243 8244 } 8245 } 8246 8247 if (renderHighlightOptions && numOfCountries > numOfCountriesForHighlight && HighlightedCountries.Any(c => HighlightedCountriesSplit.Equals(c, StringComparison.CurrentCultureIgnoreCase))) 8248 { 8249 8250 8251 #line default 8252 #line hidden 8253 8254 #line 2621 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8255 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(HighlightedCountriesSplit, string.Empty, false, true)); 8256 8257 8258 #line default 8259 #line hidden 8260 8261 #line 2621 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8262 8263 } 8264 8265 8266 8267 #line default 8268 #line hidden 8269 8270 #line 2624 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8271 WriteTo(__razor_helper_writer, GetHtmlElement("select", true)); 8272 8273 8274 #line default 8275 #line hidden 8276 8277 #line 2624 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8278 8279 8280 8281 8282 #line default 8283 #line hidden 8284 8285 #line 2626 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8286 WriteTo(__razor_helper_writer, InternalRenderFieldFooter(settings)); 8287 8288 8289 #line default 8290 #line hidden 8291 8292 #line 2626 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8293 8294 } 8295 8296 8297 #line default 8298 #line hidden 8299 }); 8300 8301 #line 2628 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8302 } 8303 #line default 8304 #line hidden 8305 8306 8307 #line 2630 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8308 public RazorEngine.Templating.TemplateWriter PopulateHighlightedCountries(string label, string value, bool isSelected = false, bool isDisabled = false) 8309 { 8310 #line default 8311 #line hidden 8312 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8313 8314 #line 2631 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8315 8316 HighlightedCountries.Remove(value); 8317 if (value.IsNullOrEmpty()) 8318 { 8319 HighlightedCountries.Remove(label); 8320 } 8321 8322 8323 #line default 8324 #line hidden 8325 8326 #line 2637 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8327 WriteTo(__razor_helper_writer, SnippetStart("highlightedContries")); 8328 8329 8330 #line default 8331 #line hidden 8332 8333 #line 2637 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8334 8335 8336 8337 #line default 8338 #line hidden 8339 8340 #line 2638 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8341 WriteTo(__razor_helper_writer, InternalRenderOption(FieldOption.CreateOption(label, value, isSelected, isDisabled))); 8342 8343 8344 #line default 8345 #line hidden 8346 8347 #line 2638 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8348 8349 8350 8351 #line default 8352 #line hidden 8353 8354 #line 2639 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8355 WriteTo(__razor_helper_writer, SnippetEnd("highlightedContries")); 8356 8357 8358 #line default 8359 #line hidden 8360 8361 #line 2639 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8362 8363 8364 8365 #line default 8366 #line hidden 8367 }); 8368 8369 #line 2640 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8370 } 8371 #line default 8372 #line hidden 8373 8374 8375 #line 2644 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8376 public RazorEngine.Templating.TemplateWriter RenderPaging() 8377 { 8378 #line default 8379 #line hidden 8380 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8381 8382 #line 2645 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8383 8384 8385 8386 #line default 8387 #line hidden 8388 8389 #line 2646 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8390 WriteTo(__razor_helper_writer, RenderPaging( 8391 GetInteger("Ecom:CustomerCenter.Paging.NumPages"), 8392 "CCPage", 8393 GetString("Ecom:CustomerCenter.Paging.Back.URL"), 8394 GetString("Ecom:CustomerCenter.Paging.Forward.URL"), 8395 GetInteger("Ecom:CustomerCenter.Paging.CurrentPage"), 8396 GetLoop("Ecom:CustomerCenter.Paging.Pages"), 8397 "Ecom:CustomerCenter.Paging.PageIndex", 8398 string.Empty, 8399 true, 8400 false 8401 )); 8402 8403 8404 #line default 8405 #line hidden 8406 8407 #line 2657 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8408 8409 8410 8411 #line default 8412 #line hidden 8413 }); 8414 8415 #line 2658 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8416 } 8417 #line default 8418 #line hidden 8419 8420 8421 #line 2660 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8422 public RazorEngine.Templating.TemplateWriter RenderPaging(int numOfPages, string pageQueryParameter, int currentPage) 8423 { 8424 #line default 8425 #line hidden 8426 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8427 8428 #line 2661 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8429 8430 var queryParameters = HttpUtility.ParseQueryString(Dynamicweb.Context.Current.Request.Url.Query); 8431 var url = Dna.UrlServices.Helpers.GetCurrentUrl(true, true); 8432 var previousPageUrl = string.Empty; 8433 var nextPageUrl = string.Empty; 8434 8435 if (currentPage > 1) 8436 { 8437 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageQueryParameter, (currentPage - 1).ToString()); 8438 previousPageUrl = (string) Dna.UrlServices.Helpers.BuildUri(url, queryParameters).ToString(); 8439 } 8440 if (currentPage < numOfPages) 8441 { 8442 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageQueryParameter, (currentPage + 1).ToString()); 8443 nextPageUrl = (string) Dna.UrlServices.Helpers.BuildUri(url, queryParameters).ToString(); 8444 } 8445 8446 8447 8448 #line default 8449 #line hidden 8450 8451 #line 2678 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8452 WriteTo(__razor_helper_writer, RenderPaging(numOfPages, pageQueryParameter, previousPageUrl, nextPageUrl, currentPage)); 8453 8454 8455 #line default 8456 #line hidden 8457 8458 #line 2678 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8459 8460 8461 8462 #line default 8463 #line hidden 8464 }); 8465 8466 #line 2679 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8467 } 8468 #line default 8469 #line hidden 8470 8471 8472 #line 2681 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8473 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) 8474 { 8475 #line default 8476 #line hidden 8477 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8478 8479 #line 2682 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8480 8481 if (numOfPages > 1) 8482 { 8483 8484 8485 #line default 8486 #line hidden 8487 8488 #line 2685 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8489 8490 8491 8492 #line default 8493 #line hidden 8494 8495 #line 2691 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8496 8497 8498 var loopPageSize = 3; 8499 var startPage = 1; 8500 var endPage = numOfPages; 8501 8502 var pageQueryParameter2 = pageQueryParameter == "PageNum" || pageQueryParameter == "page" || pageQueryParameter == "DWPagingPageNum" ? string.Empty : Pageview.CurrentParagraph.ID.ToString(); 8503 var pageNumQueryParameter = pageQueryParameter + pageQueryParameter2; 8504 8505 var queryParameters = HttpUtility.ParseQueryString(Dynamicweb.Context.Current.Request.Url.Query); 8506 queryParameters.Remove(pageNumQueryParameter); 8507 queryParameters.Remove("pid"); 8508 8509 if (pageQueryParameter == "page") 8510 { 8511 queryParameters.Add("pid", Pageview.CurrentParagraph.ID.ToString()); 8512 } 8513 8514 if (pagesLoop != null) 8515 { 8516 loopPageSize = pagesLoop.Count; 8517 endPage = 1; 8518 } 8519 else 8520 { 8521 var pageOffset = Math.Floor(Convert.ToDecimal(loopPageSize / 2)); 8522 var middlePage = pageOffset + 1; 8523 8524 if (numOfPages > loopPageSize) 8525 { 8526 startPage = Convert.ToInt32(currentPage - pageOffset) < 1 ? 1 : Convert.ToInt32(currentPage - pageOffset); 8527 endPage = Convert.ToInt32(currentPage + pageOffset) > numOfPages ? numOfPages : Convert.ToInt32(currentPage + pageOffset); 8528 8529 if (currentPage < middlePage) 8530 { 8531 endPage = loopPageSize; 8532 } 8533 else if (currentPage >= middlePage) 8534 { 8535 if (numOfPages < currentPage + pageOffset) 8536 { 8537 startPage = numOfPages - loopPageSize; 8538 if (loopPageSize % 2 != 0) 8539 { 8540 startPage += 1; 8541 } 8542 } 8543 8544 if (loopPageSize % 2 == 0) 8545 { 8546 startPage += 1; 8547 } 8548 } 8549 } 8550 } 8551 8552 if (includeWrapper) 8553 { 8554 8555 8556 #line default 8557 #line hidden 8558 WriteLiteralTo(__razor_helper_writer, " "); 8559 8560 WriteLiteralTo(__razor_helper_writer, "<div class=\"col-xs-12 text-center paginationContainer\">\r\n"); 8561 8562 8563 #line 2750 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8564 } 8565 8566 8567 #line default 8568 #line hidden 8569 WriteLiteralTo(__razor_helper_writer, " <ul"); 8570 8571 WriteLiteralTo(__razor_helper_writer, " class=\"pagination\""); 8572 8573 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8574 8575 8576 #line 2752 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8577 8578 8579 #line default 8580 #line hidden 8581 8582 #line 2752 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8583 if (previousPageUrl.IsNotNullOrEmpty() && previousPageUrl != "#") 8584 { 8585 var label = includeFirstAndLastLabel ? Translate("Previous") : string.Empty; 8586 8587 8588 #line default 8589 #line hidden 8590 8591 #line 2755 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8592 WriteTo(__razor_helper_writer, InternalRenderPageItem(previousPageUrl, label, "fa-caret-left", IconPosition.Left)); 8593 8594 8595 #line default 8596 #line hidden 8597 8598 #line 2755 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8599 8600 } 8601 8602 #line default 8603 #line hidden 8604 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8605 8606 8607 #line 2757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8608 8609 8610 #line default 8611 #line hidden 8612 8613 #line 2757 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8614 if (pagesLoop != null) 8615 { 8616 8617 8618 #line default 8619 #line hidden 8620 8621 #line 2759 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8622 WriteTo(__razor_helper_writer, InternalRenderGoToFirstPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, pagesLoop[0].GetInteger(pageNumTag))); 8623 8624 8625 #line default 8626 #line hidden 8627 8628 #line 2759 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8629 8630 foreach (var page in pagesLoop) 8631 { 8632 var pageItemHref = pageQueryParameter == "PageNum" || pageQueryParameter == "page" ? page.GetString(pageHrefTag) : pageQueryParameter.StartsWith("CCPage") ? string.Concat("CCPage=", page.GetString(pageHrefTag)) : string.Empty; 8633 endPage = page.GetInteger(pageNumTag); 8634 8635 queryParameters.Remove(pageNumQueryParameter); 8636 if (pageItemHref.IsNotNullOrEmpty()) 8637 { 8638 queryParameters.Add(pageNumQueryParameter, page.GetString(pageNumTag)); 8639 } 8640 8641 8642 #line default 8643 #line hidden 8644 8645 #line 2770 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8646 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, page.GetString(pageNumTag), page.GetInteger(pageNumTag) == currentPage ? "active" : string.Empty)); 8647 8648 8649 #line default 8650 #line hidden 8651 8652 #line 2770 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8653 8654 8655 } 8656 8657 8658 #line default 8659 #line hidden 8660 8661 #line 2773 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8662 WriteTo(__razor_helper_writer, InternalRenderGoToLastPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, endPage)); 8663 8664 8665 #line default 8666 #line hidden 8667 8668 #line 2773 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8669 8670 } 8671 else 8672 { 8673 8674 8675 #line default 8676 #line hidden 8677 8678 #line 2777 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8679 WriteTo(__razor_helper_writer, InternalRenderGoToFirstPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize)); 8680 8681 8682 #line default 8683 #line hidden 8684 8685 #line 2777 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8686 8687 for (var page = startPage; page <= endPage; page++) 8688 { 8689 queryParameters = Dna.UrlServices.Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, page.ToString()); 8690 8691 8692 #line default 8693 #line hidden 8694 8695 #line 2781 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8696 WriteTo(__razor_helper_writer, InternalRenderPageItem(queryParameters, page.ToString(), page == currentPage ? "active" : string.Empty)); 8697 8698 8699 #line default 8700 #line hidden 8701 8702 #line 2781 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8703 8704 } 8705 8706 8707 #line default 8708 #line hidden 8709 8710 #line 2783 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8711 WriteTo(__razor_helper_writer, InternalRenderGoToLastPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, endPage)); 8712 8713 8714 #line default 8715 #line hidden 8716 8717 #line 2783 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8718 8719 } 8720 8721 #line default 8722 #line hidden 8723 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 8724 8725 8726 #line 2786 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8727 8728 8729 #line default 8730 #line hidden 8731 8732 #line 2786 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8733 if (nextPageUrl.IsNotNullOrEmpty() && nextPageUrl != "#") 8734 { 8735 var label = includeFirstAndLastLabel ? Translate("Next") : string.Empty; 8736 8737 8738 #line default 8739 #line hidden 8740 8741 #line 2789 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8742 WriteTo(__razor_helper_writer, InternalRenderPageItem(nextPageUrl, label, "fa-caret-right", IconPosition.Right)); 8743 8744 8745 #line default 8746 #line hidden 8747 8748 #line 2789 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8749 8750 } 8751 8752 #line default 8753 #line hidden 8754 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 8755 8756 8757 #line 2792 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8758 if (includeWrapper) 8759 { 8760 8761 8762 #line default 8763 #line hidden 8764 WriteLiteralTo(__razor_helper_writer, " "); 8765 8766 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 8767 8768 8769 #line 2795 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8770 } 8771 } 8772 8773 8774 #line default 8775 #line hidden 8776 }); 8777 8778 #line 2797 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8779 } 8780 #line default 8781 #line hidden 8782 8783 8784 #line 2801 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8785 public RazorEngine.Templating.TemplateWriter RenderIcon(string cssPartialClass, string label = "", IconPosition position = IconPosition.Left, bool isLabelATooltip = false) 8786 { 8787 #line default 8788 #line hidden 8789 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8790 8791 #line 2802 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8792 8793 var icon = !isLabelATooltip ? "<i class='fa " + cssPartialClass + "'></i>" : "<i class='fa " + cssPartialClass + "' data-toggle='" + label + "'></i>"; 8794 var spacing = string.Empty; 8795 8796 if (label.IsNotNullOrEmpty()) 8797 { 8798 spacing = "&nbsp;"; 8799 } 8800 if (cssPartialClass.IsNotNullOrEmpty()) 8801 { 8802 if (isLabelATooltip) 8803 { 8804 8805 8806 #line default 8807 #line hidden 8808 8809 #line 2814 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8810 WriteTo(__razor_helper_writer, icon); 8811 8812 8813 #line default 8814 #line hidden 8815 8816 #line 2814 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8817 8818 } 8819 else if (position == IconPosition.Left) 8820 { 8821 8822 8823 #line default 8824 #line hidden 8825 8826 #line 2818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8827 WriteTo(__razor_helper_writer, icon); 8828 8829 8830 #line default 8831 #line hidden 8832 8833 #line 2818 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8834 8835 8836 8837 #line default 8838 #line hidden 8839 8840 #line 2819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8841 WriteTo(__razor_helper_writer, spacing); 8842 8843 8844 #line default 8845 #line hidden 8846 8847 #line 2819 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8848 8849 8850 8851 #line default 8852 #line hidden 8853 8854 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8855 WriteTo(__razor_helper_writer, label); 8856 8857 8858 #line default 8859 #line hidden 8860 8861 #line 2820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8862 8863 } 8864 else 8865 { 8866 8867 8868 #line default 8869 #line hidden 8870 8871 #line 2824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8872 WriteTo(__razor_helper_writer, label); 8873 8874 8875 #line default 8876 #line hidden 8877 8878 #line 2824 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8879 8880 8881 8882 #line default 8883 #line hidden 8884 8885 #line 2825 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8886 WriteTo(__razor_helper_writer, spacing); 8887 8888 8889 #line default 8890 #line hidden 8891 8892 #line 2825 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8893 8894 8895 8896 #line default 8897 #line hidden 8898 8899 #line 2826 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8900 WriteTo(__razor_helper_writer, icon); 8901 8902 8903 #line default 8904 #line hidden 8905 8906 #line 2826 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8907 8908 } 8909 } 8910 else 8911 { 8912 8913 8914 #line default 8915 #line hidden 8916 8917 #line 2831 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8918 WriteTo(__razor_helper_writer, label); 8919 8920 8921 #line default 8922 #line hidden 8923 8924 #line 2831 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8925 8926 } 8927 8928 8929 #line default 8930 #line hidden 8931 }); 8932 8933 #line 2833 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8934 } 8935 #line default 8936 #line hidden 8937 8938 8939 #line 2835 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8940 public RazorEngine.Templating.TemplateWriter RenderStackedIcons(string cssPrincipalPartialClass, string cssSecondaryPartialClass, string label = "", IconPosition position = IconPosition.Left, bool isLabelATooltip = false) 8941 { 8942 #line default 8943 #line hidden 8944 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8945 8946 #line 2836 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8947 8948 var spacing = string.Empty; 8949 var icon = new StringBuilder("<span class='fa-stack'>"); 8950 8951 icon.Append(!isLabelATooltip ? "<i class='fa " + cssPrincipalPartialClass + " fa-stack-2x'></i>" : "<i class='fa " + cssPrincipalPartialClass + " fa-stack-2x' data-toggle='" + label + "'></i>"); 8952 icon.Append("<i class='fa " + cssSecondaryPartialClass + " fa-stack-1x'></i>"); 8953 icon.Append("</span>"); 8954 8955 if (label.IsNotNullOrEmpty()) 8956 { 8957 spacing = "<text>&nbsp;</text>"; 8958 } 8959 if (cssPrincipalPartialClass.IsNotNullOrEmpty() && cssSecondaryPartialClass.IsNotNullOrEmpty()) 8960 { 8961 if (isLabelATooltip) 8962 { 8963 8964 8965 #line default 8966 #line hidden 8967 8968 #line 2852 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8969 WriteTo(__razor_helper_writer, icon.ToString()); 8970 8971 8972 #line default 8973 #line hidden 8974 8975 #line 2852 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8976 8977 } 8978 else if (position == IconPosition.Left) 8979 { 8980 8981 8982 #line default 8983 #line hidden 8984 8985 #line 2856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8986 WriteTo(__razor_helper_writer, icon.ToString()); 8987 8988 8989 #line default 8990 #line hidden 8991 8992 #line 2856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 8993 8994 8995 8996 #line default 8997 #line hidden 8998 8999 #line 2857 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9000 WriteTo(__razor_helper_writer, spacing); 9001 9002 9003 #line default 9004 #line hidden 9005 9006 #line 2857 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9007 9008 9009 9010 #line default 9011 #line hidden 9012 9013 #line 2858 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9014 WriteTo(__razor_helper_writer, label); 9015 9016 9017 #line default 9018 #line hidden 9019 9020 #line 2858 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9021 9022 } 9023 else 9024 { 9025 9026 9027 #line default 9028 #line hidden 9029 9030 #line 2862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9031 WriteTo(__razor_helper_writer, label); 9032 9033 9034 #line default 9035 #line hidden 9036 9037 #line 2862 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9038 9039 9040 9041 #line default 9042 #line hidden 9043 9044 #line 2863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9045 WriteTo(__razor_helper_writer, spacing); 9046 9047 9048 #line default 9049 #line hidden 9050 9051 #line 2863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9052 9053 9054 9055 #line default 9056 #line hidden 9057 9058 #line 2864 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9059 WriteTo(__razor_helper_writer, icon.ToString()); 9060 9061 9062 #line default 9063 #line hidden 9064 9065 #line 2864 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9066 9067 } 9068 } 9069 else 9070 { 9071 9072 9073 #line default 9074 #line hidden 9075 9076 #line 2869 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9077 WriteTo(__razor_helper_writer, label); 9078 9079 9080 #line default 9081 #line hidden 9082 9083 #line 2869 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9084 9085 } 9086 9087 9088 #line default 9089 #line hidden 9090 }); 9091 9092 #line 2871 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9093 } 9094 #line default 9095 #line hidden 9096 9097 9098 #line 2873 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9099 public RazorEngine.Templating.TemplateWriter RenderAction(IconAction action, string href = "", string title = "", string onClickConfirm = "") 9100 { 9101 #line default 9102 #line hidden 9103 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9104 9105 #line 2874 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9106 9107 var attributes = new Dictionary<string, string>(); 9108 9109 if (title.IsNotNullOrEmpty()) 9110 { 9111 attributes.Add("title", title); 9112 } 9113 if (onClickConfirm.IsNotNullOrEmpty()) 9114 { 9115 attributes.Add("onclick", "return confirm('" + onClickConfirm + "');"); 9116 } 9117 if (href.IsNotNullOrEmpty()) 9118 { 9119 attributes.Add("href", href); 9120 } 9121 9122 9123 #line default 9124 #line hidden 9125 9126 #line 2889 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9127 WriteTo(__razor_helper_writer, RenderAction(action, href, attributes)); 9128 9129 9130 #line default 9131 #line hidden 9132 9133 #line 2889 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9134 9135 9136 9137 #line default 9138 #line hidden 9139 }); 9140 9141 #line 2890 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9142 } 9143 #line default 9144 #line hidden 9145 9146 9147 #line 2892 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9148 public RazorEngine.Templating.TemplateWriter RenderAction(IconAction action, string href, Dictionary<string, string> attributes) 9149 { 9150 #line default 9151 #line hidden 9152 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9153 9154 #line 2893 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9155 9156 var icon = string.Empty; 9157 var linkAttributes = string.Empty; 9158 var label = Translate(action.ToString()); 9159 9160 switch (action) 9161 { 9162 case IconAction.Add: 9163 break; 9164 case IconAction.View: 9165 icon = "fa-eye"; 9166 break; 9167 case IconAction.Edit: 9168 icon = "fa-edit"; 9169 break; 9170 case IconAction.Cancel: 9171 case IconAction.Remove: 9172 icon = "fa-times"; 9173 break; 9174 case IconAction.Delete: 9175 icon = "fa-trash"; 9176 break; 9177 case IconAction.Print: 9178 icon = "fa-print"; 9179 attributes.Add("target", "_blank"); 9180 break; 9181 case IconAction.Save: 9182 break; 9183 case IconAction.Reset: 9184 break; 9185 case IconAction.Undo: 9186 break; 9187 case IconAction.Reorder: 9188 icon = "fa-repeat"; 9189 break; 9190 case IconAction.SetDefault: 9191 icon = "fa-times"; 9192 label = string.Empty; 9193 break; 9194 case IconAction.IsDefault: 9195 icon = "fa-check"; 9196 label = string.Empty; 9197 break; 9198 default: 9199 throw new NotSupportedException("An action is needed to render this helper!"); 9200 } 9201 if (icon.IsNotNullOrEmpty()) 9202 { 9203 if (href.IsNotNullOrEmpty()) 9204 { 9205 9206 9207 #line default 9208 #line hidden 9209 9210 #line 2943 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9211 WriteTo(__razor_helper_writer, GetHtmlElement("a", GetAttributes(attributes))); 9212 9213 9214 #line default 9215 #line hidden 9216 9217 #line 2943 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9218 9219 9220 9221 #line default 9222 #line hidden 9223 9224 #line 2944 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9225 WriteTo(__razor_helper_writer, RenderIcon(icon, label)); 9226 9227 9228 #line default 9229 #line hidden 9230 9231 #line 2944 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9232 9233 9234 9235 #line default 9236 #line hidden 9237 9238 #line 2945 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9239 WriteTo(__razor_helper_writer, GetHtmlElement("a", true)); 9240 9241 9242 #line default 9243 #line hidden 9244 9245 #line 2945 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9246 9247 } 9248 else if (label.IsNullOrEmpty()) 9249 { 9250 9251 9252 #line default 9253 #line hidden 9254 9255 #line 2949 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9256 WriteTo(__razor_helper_writer, RenderIcon(icon)); 9257 9258 9259 #line default 9260 #line hidden 9261 9262 #line 2949 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9263 9264 } 9265 } 9266 9267 9268 9269 #line default 9270 #line hidden 9271 }); 9272 9273 #line 2953 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9274 } 9275 #line default 9276 #line hidden 9277 9278 9279 #line 2955 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9280 public RazorEngine.Templating.TemplateWriter RenderBootstrapButton(BootstrapButtonSettings settings) 9281 { 9282 #line default 9283 #line hidden 9284 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9285 9286 #line 2956 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9287 9288 var attributes = new StringBuilder(GetAttribute("class", "btn " + (settings.CssClass.IsNotNullOrEmpty() ? settings.CssClass : "btn-default"))); 9289 attributes.Append(GetAttribute("target", settings.Target)); 9290 attributes.Append(GetAttribute("href", settings.Href)); 9291 attributes.Append(GetAttribute("name", settings.SystemName)); 9292 attributes.Append(GetAttribute("id", settings.Id)); 9293 attributes.Append(GetAttribute("value", settings.Value)); 9294 if (settings.ButtonType == BootstrapButtonSettings.BootstrapButtonType.Button && !settings.Attributes.ContainsKey("type")) 9295 { 9296 settings.Attributes.Add("type","submit"); 9297 } 9298 9299 attributes.Append(GetAttributes(settings.Attributes)); 9300 string htmlElement; 9301 9302 switch (settings.ButtonType) 9303 { 9304 case BootstrapButtonSettings.BootstrapButtonType.Button: 9305 htmlElement = "button"; 9306 break; 9307 case BootstrapButtonSettings.BootstrapButtonType.Anchor: 9308 htmlElement = "a"; 9309 break; 9310 default: 9311 throw new NotSupportedException(string.Format("Unsupported Bootstrap Button type: {0}.", settings.ButtonType.ToString())); 9312 } 9313 9314 9315 #line default 9316 #line hidden 9317 9318 #line 2982 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9319 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, attributes.ToString())); 9320 9321 9322 #line default 9323 #line hidden 9324 9325 #line 2982 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9326 9327 9328 9329 #line default 9330 #line hidden 9331 9332 #line 2983 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9333 WriteTo(__razor_helper_writer, RenderIcon(settings.IconCssClass, settings.Label, settings.IconPosition)); 9334 9335 9336 #line default 9337 #line hidden 9338 9339 #line 2983 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9340 9341 9342 9343 #line default 9344 #line hidden 9345 9346 #line 2984 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9347 WriteTo(__razor_helper_writer, GetHtmlElement(htmlElement, true)); 9348 9349 9350 #line default 9351 #line hidden 9352 9353 #line 2984 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9354 9355 9356 9357 #line default 9358 #line hidden 9359 }); 9360 9361 #line 2985 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9362 } 9363 #line default 9364 #line hidden 9365 9366 9367 #line 2987 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9368 public RazorEngine.Templating.TemplateWriter RenderAddToCart(string productId, string productUnitId, string productVariantId, int availableAmount = 0, bool doNotRenderHiddenFields = false, string textButton = "") 9369 { 9370 #line default 9371 #line hidden 9372 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9373 9374 #line 2988 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9375 9376 var addToCartButtonSettings = new BootstrapButtonSettings 9377 { 9378 Label = textButton.IsNotNullOrEmpty() ? textButton : Translate("Add to Cart"), 9379 CssClass = availableAmount <= 0 ? "btn-default addToCartSubmit disabled" : "btn-default addToCartSubmit", 9380 Href = string.Concat(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "MiniCart").ID),"?productid=", productId, "&amp;variantID=", productVariantId, "&amp;cartcmd=add"), 9381 IconCssClass = "fa-shopping-cart", 9382 Attributes = new Dictionary<string, string> 9383 { 9384 {"data-add", Translate("Add to Cart")}, 9385 {"data-added", Translate("Added")}, 9386 {"data-outofstock", Translate("Out of stock")}, 9387 {"data-stock", availableAmount.ToString()} 9388 } 9389 }; 9390 9391 9392 #line default 9393 #line hidden 9394 9395 #line 3003 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9396 WriteTo(__razor_helper_writer, RenderBootstrapButton(addToCartButtonSettings)); 9397 9398 9399 #line default 9400 #line hidden 9401 9402 #line 3003 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9403 9404 if (!doNotRenderHiddenFields) 9405 { 9406 9407 9408 #line default 9409 #line hidden 9410 9411 #line 3006 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9412 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("redirect", "false", "redirect" + productId))); 9413 9414 9415 #line default 9416 #line hidden 9417 9418 #line 3006 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9419 9420 9421 9422 #line default 9423 #line hidden 9424 9425 #line 3007 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9426 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("cartcmd", "add", "cartcmd" + productId))); 9427 9428 9429 #line default 9430 #line hidden 9431 9432 #line 3007 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9433 9434 9435 9436 #line default 9437 #line hidden 9438 9439 #line 3008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9440 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("productid", productId, "productId" + productId))); 9441 9442 9443 #line default 9444 #line hidden 9445 9446 #line 3008 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9447 9448 9449 9450 #line default 9451 #line hidden 9452 9453 #line 3009 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9454 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("unitID", productUnitId, "unitID" + productId))); 9455 9456 9457 #line default 9458 #line hidden 9459 9460 #line 3009 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9461 9462 if (Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()) 9463 { 9464 9465 9466 #line default 9467 #line hidden 9468 9469 #line 3012 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9470 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateHiddenField("getproductinfo", "true", "getproductinfo" + productId))); 9471 9472 9473 #line default 9474 #line hidden 9475 9476 #line 3012 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9477 9478 } 9479 } 9480 9481 9482 #line default 9483 #line hidden 9484 9485 #line 3015 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9486 WriteTo(__razor_helper_writer, RenderField(FieldSettings.CreateSubmitField(Translate("Add to Cart"), "hidden"))); 9487 9488 9489 #line default 9490 #line hidden 9491 9492 #line 3015 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9493 9494 9495 9496 #line default 9497 #line hidden 9498 }); 9499 9500 #line 3016 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9501 } 9502 #line default 9503 #line hidden 9504 9505 9506 #line 3018 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9507 public RazorEngine.Templating.TemplateWriter RenderSocialMediaShare() 9508 { 9509 #line default 9510 #line hidden 9511 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9512 9513 #line 3019 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9514 9515 9516 9517 #line default 9518 #line hidden 9519 WriteLiteralTo(__razor_helper_writer, " <div"); 9520 9521 WriteLiteralTo(__razor_helper_writer, " class=\"shareIcons\""); 9522 9523 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>"); 9524 9525 9526 #line 3021 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9527 WriteTo(__razor_helper_writer, Translate("Share")); 9528 9529 9530 #line default 9531 #line hidden 9532 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 9533 9534 WriteLiteralTo(__razor_helper_writer, " "); 9535 9536 9537 #line 3022 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9538 WriteTo(__razor_helper_writer, RenderSocialMedia(false, true)); 9539 9540 9541 #line default 9542 #line hidden 9543 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9544 9545 9546 #line 3024 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9547 9548 9549 #line default 9550 #line hidden 9551 }); 9552 9553 #line 3024 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9554 } 9555 #line default 9556 #line hidden 9557 9558 9559 #line 3026 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9560 public RazorEngine.Templating.TemplateWriter RenderOpenGraphMeta(string type, string image, string title, string teaser = "", string imageAlt = "") 9561 { 9562 #line default 9563 #line hidden 9564 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9565 9566 #line 3027 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9567 9568 var culture = Pageview.Area.Culture.Replace("-", "_"); 9569 teaser = System.Text.RegularExpressions.Regex.Replace(teaser, "<.*?>", string.Empty); 9570 if (type.IsNullOrEmpty()) 9571 { 9572 type = "article"; 9573 } 9574 if (imageAlt.IsNullOrEmpty()) 9575 { 9576 imageAlt = title; 9577 } 9578 9579 9580 #line default 9581 #line hidden 9582 9583 #line 3038 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9584 WriteTo(__razor_helper_writer, SnippetStart("OGMeta")); 9585 9586 9587 #line default 9588 #line hidden 9589 9590 #line 3038 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9591 9592 9593 9594 #line default 9595 #line hidden 9596 WriteLiteralTo(__razor_helper_writer, " <meta"); 9597 9598 WriteLiteralTo(__razor_helper_writer, " property=\"og:title\""); 9599 9600 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131091), Tuple.Create("\"", 131131) 9601 9602 #line 3039 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9603 , Tuple.Create(Tuple.Create("", 131101), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlEncode(title) 9604 9605 #line default 9606 #line hidden 9607 , 131101), false) 9608 ); 9609 9610 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9611 9612 WriteLiteralTo(__razor_helper_writer, " <meta"); 9613 9614 WriteLiteralTo(__razor_helper_writer, " property=\"og:image\""); 9615 9616 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131169), Tuple.Create("\"", 131229) 9617 9618 #line 3040 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9619 , Tuple.Create(Tuple.Create("", 131179), Tuple.Create<System.Object, System.Int32>(string.Concat(Helpers.GetCurrentUrl(true), image) 9620 9621 #line default 9622 #line hidden 9623 , 131179), false) 9624 ); 9625 9626 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9627 9628 WriteLiteralTo(__razor_helper_writer, " <meta"); 9629 9630 WriteLiteralTo(__razor_helper_writer, " property=\"og:image:alt\""); 9631 9632 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131271), Tuple.Create("\"", 131290) 9633 9634 #line 3041 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9635 , Tuple.Create(Tuple.Create("", 131281), Tuple.Create<System.Object, System.Int32>(imageAlt 9636 9637 #line default 9638 #line hidden 9639 , 131281), false) 9640 ); 9641 9642 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9643 9644 WriteLiteralTo(__razor_helper_writer, " <meta"); 9645 9646 WriteLiteralTo(__razor_helper_writer, " property=\"og:site_name\""); 9647 9648 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131332), Tuple.Create("\"", 131376) 9649 9650 #line 3042 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9651 , Tuple.Create(Tuple.Create("", 131342), Tuple.Create<System.Object, System.Int32>(Pageview.Area.Item["CompanyName"] 9652 9653 #line default 9654 #line hidden 9655 , 131342), false) 9656 ); 9657 9658 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9659 9660 WriteLiteralTo(__razor_helper_writer, " <meta"); 9661 9662 WriteLiteralTo(__razor_helper_writer, " property=\"og:url\""); 9663 9664 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131412), Tuple.Create("\"", 131446) 9665 9666 #line 3043 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9667 , Tuple.Create(Tuple.Create("", 131422), Tuple.Create<System.Object, System.Int32>(Helpers.GetCurrentUrl() 9668 9669 #line default 9670 #line hidden 9671 , 131422), false) 9672 ); 9673 9674 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9675 9676 WriteLiteralTo(__razor_helper_writer, " <meta"); 9677 9678 WriteLiteralTo(__razor_helper_writer, " property=\"og:description\""); 9679 9680 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131490), Tuple.Create("\"", 131531) 9681 9682 #line 3044 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9683 , Tuple.Create(Tuple.Create("", 131500), Tuple.Create<System.Object, System.Int32>(HttpUtility.HtmlEncode(teaser) 9684 9685 #line default 9686 #line hidden 9687 , 131500), false) 9688 ); 9689 9690 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9691 9692 WriteLiteralTo(__razor_helper_writer, " <meta"); 9693 9694 WriteLiteralTo(__razor_helper_writer, " property=\"og:type\""); 9695 9696 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131568), Tuple.Create("\"", 131583) 9697 9698 #line 3045 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9699 , Tuple.Create(Tuple.Create("", 131578), Tuple.Create<System.Object, System.Int32>(type 9700 9701 #line default 9702 #line hidden 9703 , 131578), false) 9704 ); 9705 9706 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9707 9708 WriteLiteralTo(__razor_helper_writer, " <meta"); 9709 9710 WriteLiteralTo(__razor_helper_writer, " property=\"og:locale\""); 9711 9712 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 131622), Tuple.Create("\"", 131640) 9713 9714 #line 3046 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9715 , Tuple.Create(Tuple.Create("", 131632), Tuple.Create<System.Object, System.Int32>(culture 9716 9717 #line default 9718 #line hidden 9719 , 131632), false) 9720 ); 9721 9722 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 9723 9724 9725 #line 3047 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9726 9727 9728 #line default 9729 #line hidden 9730 9731 #line 3047 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9732 WriteTo(__razor_helper_writer, SnippetEnd("OGMeta")); 9733 9734 9735 #line default 9736 #line hidden 9737 9738 #line 3047 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9739 9740 9741 9742 #line default 9743 #line hidden 9744 }); 9745 9746 #line 3048 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9747 } 9748 #line default 9749 #line hidden 9750 9751 9752 #line 3050 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9753 public RazorEngine.Templating.TemplateWriter RenderSocialMedia(bool isEmailTemplate = false, bool isToShare = false) 9754 { 9755 #line default 9756 #line hidden 9757 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9758 9759 #line 3051 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9760 9761 var page = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(Dynamicweb.Services.Pages.GetPageByNavigationTag(Pageview.AreaID, "GeneralSettings").ID); 9762 var generalSettings = Dynamicweb.Content.Items.Item.GetItemById(page.ItemType, page.ItemId); 9763 9764 if(generalSettings["SocialMedia"] != null) { 9765 var socialMedia = Dynamicweb.Content.Items.ItemList.GetItemListById(int.Parse(generalSettings["SocialMedia"].ToString())); 9766 9767 if(socialMedia.Relations.Any()) 9768 { 9769 if(!isEmailTemplate) 9770 { 9771 9772 9773 #line default 9774 #line hidden 9775 WriteLiteralTo(__razor_helper_writer, " "); 9776 9777 WriteLiteralTo(__razor_helper_writer, "<ul class=\"socialMedia\">\r\n"); 9778 9779 9780 #line 3063 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9781 } 9782 foreach (var r in socialMedia.Relations) 9783 { 9784 var socialNetwork = Dynamicweb.Content.Items.Item.GetItemById("SocialLinks", r.Id); 9785 var className = (socialNetwork["Icon"] ?? "").ToString(); 9786 var socialName = (socialNetwork["Name"] ?? "").ToString(); 9787 var socialLink = (socialNetwork["Link"] ?? "").ToString(); 9788 var shareLink = (socialNetwork["ShareURL"] ?? "").ToString(); 9789 9790 if (isEmailTemplate) 9791 { 9792 9793 9794 #line default 9795 #line hidden 9796 WriteLiteralTo(__razor_helper_writer, " "); 9797 9798 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 9799 9800 WriteLiteralTo(__razor_helper_writer, " <a"); 9801 9802 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 133115), Tuple.Create("\"", 133134) 9803 9804 #line 3075 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9805 , Tuple.Create(Tuple.Create("", 133123), Tuple.Create<System.Object, System.Int32>(socialName 9806 9807 #line default 9808 #line hidden 9809 , 133123), false) 9810 ); 9811 9812 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 9813 9814 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 133151), Tuple.Create("\"", 133169) 9815 9816 #line 3075 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9817 , Tuple.Create(Tuple.Create("", 133158), Tuple.Create<System.Object, System.Int32>(socialLink 9818 9819 #line default 9820 #line hidden 9821 , 133158), false) 9822 ); 9823 9824 WriteLiteralTo(__razor_helper_writer, ">"); 9825 9826 9827 #line 3075 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9828 WriteTo(__razor_helper_writer, socialName); 9829 9830 9831 #line default 9832 #line hidden 9833 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 9834 9835 WriteLiteralTo(__razor_helper_writer, " "); 9836 9837 WriteLiteralTo(__razor_helper_writer, "&nbsp;\r\n"); 9838 9839 9840 #line 3077 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9841 } 9842 else if(!isToShare || shareLink.IsNotNullOrEmpty()) 9843 { 9844 9845 9846 #line default 9847 #line hidden 9848 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 9849 9850 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 133401), Tuple.Create("\"", 133420) 9851 9852 #line 3081 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9853 , Tuple.Create(Tuple.Create("", 133409), Tuple.Create<System.Object, System.Int32>(socialName 9854 9855 #line default 9856 #line hidden 9857 , 133409), false) 9858 ); 9859 9860 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 133421), Tuple.Create("\"", 133442) 9861 9862 #line 3081 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9863 , Tuple.Create(Tuple.Create("", 133429), Tuple.Create<System.Object, System.Int32>(className 9864 9865 #line default 9866 #line hidden 9867 , 133429), false) 9868 , Tuple.Create(Tuple.Create(" ", 133439), Tuple.Create("fa", 133440), true) 9869 ); 9870 9871 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 9872 9873 WriteLiteralTo(__razor_helper_writer, " data-sharehref=\""); 9874 9875 9876 #line 3081 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9877 WriteTo(__razor_helper_writer, shareLink); 9878 9879 9880 #line default 9881 #line hidden 9882 9883 #line 3081 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9884 WriteTo(__razor_helper_writer, Helpers.GetCurrentUrl()); 9885 9886 9887 #line default 9888 #line hidden 9889 WriteLiteralTo(__razor_helper_writer, "\""); 9890 9891 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 133511), Tuple.Create("\"", 133529) 9892 9893 #line 3081 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9894 , Tuple.Create(Tuple.Create("", 133518), Tuple.Create<System.Object, System.Int32>(socialLink 9895 9896 #line default 9897 #line hidden 9898 , 133518), false) 9899 ); 9900 9901 WriteLiteralTo(__razor_helper_writer, "><span"); 9902 9903 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\""); 9904 9905 WriteLiteralTo(__razor_helper_writer, ">"); 9906 9907 9908 #line 3081 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9909 WriteTo(__razor_helper_writer, socialName); 9910 9911 9912 #line default 9913 #line hidden 9914 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n </li>\r\n"); 9915 9916 9917 #line 3083 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9918 } 9919 } 9920 if(!isEmailTemplate) 9921 { 9922 9923 9924 #line default 9925 #line hidden 9926 WriteLiteralTo(__razor_helper_writer, " "); 9927 9928 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 9929 9930 9931 #line 3088 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9932 } 9933 } 9934 } 9935 9936 9937 #line default 9938 #line hidden 9939 }); 9940 9941 #line 3091 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9942 } 9943 #line default 9944 #line hidden 9945 9946 9947 #line 3093 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9948 public RazorEngine.Templating.TemplateWriter RenderNoResults(string wording, string title = "", bool hasWrapper = false, string wrapperClass = "col-xs-12 noPadding" ) 9949 { 9950 #line default 9951 #line hidden 9952 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9953 9954 #line 3094 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9955 9956 if (hasWrapper) 9957 { 9958 9959 9960 #line default 9961 #line hidden 9962 WriteLiteralTo(__razor_helper_writer, " "); 9963 9964 WriteLiteralTo(__razor_helper_writer, "<div class=\"noResultsWrapper "); 9965 9966 9967 #line 3097 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9968 WriteTo(__razor_helper_writer, wrapperClass); 9969 9970 9971 #line default 9972 #line hidden 9973 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 9974 9975 9976 #line 3098 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9977 } 9978 if (title.IsNotNullOrEmpty()) 9979 { 9980 9981 9982 #line default 9983 #line hidden 9984 WriteLiteralTo(__razor_helper_writer, " <h2>"); 9985 9986 9987 #line 3101 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9988 WriteTo(__razor_helper_writer, title); 9989 9990 9991 #line default 9992 #line hidden 9993 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 9994 9995 9996 #line 3102 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 9997 } 9998 9999 10000 #line default 10001 #line hidden 10002 WriteLiteralTo(__razor_helper_writer, " <p>"); 10003 10004 10005 #line 3103 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10006 WriteTo(__razor_helper_writer, wording); 10007 10008 10009 #line default 10010 #line hidden 10011 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 10012 10013 10014 #line 3104 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10015 if (hasWrapper) 10016 { 10017 10018 10019 #line default 10020 #line hidden 10021 WriteLiteralTo(__razor_helper_writer, " "); 10022 10023 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 10024 10025 10026 #line 3107 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10027 } 10028 10029 10030 #line default 10031 #line hidden 10032 }); 10033 10034 #line 3108 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10035 } 10036 #line default 10037 #line hidden 10038 10039 10040 #line 3110 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10041 public RazorEngine.Templating.TemplateWriter RenderImage(ImageSettings imageSettings) 10042 { 10043 #line default 10044 #line hidden 10045 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10046 10047 #line 3111 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10048 10049 var imageMarkup = new StringBuilder(); 10050 var widthAndHeight = GetWidthAndHeightFromQueryString(imageSettings.Source); 10051 var widthAndHeightForMobile = GetWidthAndHeightFromQueryString(imageSettings.SourceForMobile, true); 10052 var widthAndHeightForTablet = GetWidthAndHeightFromQueryString(imageSettings.SourceForTablet, true); 10053 10054 if (!imageSettings.Attributes.ContainsKey("width") && widthAndHeight.ContainsKey("width") && widthAndHeight["width"].IsNotNullOrEmpty()) 10055 { 10056 imageSettings.Attributes.Add("width", widthAndHeight["width"]); 10057 } 10058 if (!imageSettings.Attributes.ContainsKey("height") && widthAndHeight.ContainsKey("height") && widthAndHeight["height"].IsNotNullOrEmpty()) 10059 { 10060 imageSettings.Attributes.Add("height", widthAndHeight["height"]); 10061 } 10062 if (!imageSettings.Attributes.ContainsKey("class")) 10063 { 10064 imageSettings.Attributes.Add("class", "img-responsive " + imageSettings.CssClass); 10065 } 10066 if (!imageSettings.Attributes.ContainsKey("src")) 10067 { 10068 imageSettings.Attributes.Add("src", imageSettings.Source); 10069 } 10070 if (!imageSettings.Attributes.ContainsKey("alt")) 10071 { 10072 imageSettings.Attributes.Add("alt", imageSettings.AltText); 10073 } 10074 if (!imageSettings.Attributes.ContainsKey("title")) 10075 { 10076 imageSettings.Attributes.Add("title", imageSettings.Title); 10077 } 10078 10079 if (imageSettings.IncludeWrapper) 10080 { 10081 var wrapperAttributes = new Dictionary<string, string>(); 10082 if (imageSettings.WrapperCssClass.IsNotNullOrEmpty()) 10083 { 10084 wrapperAttributes.Add("class", imageSettings.WrapperCssClass); 10085 } 10086 10087 imageMarkup.Append(GetHtmlElement(imageSettings.WrapperElement, wrapperAttributes)); 10088 } 10089 10090 if (imageSettings.Href.IsNotNullOrEmpty()) 10091 { 10092 var linkAttributes = new Dictionary<string, string> {{"href", imageSettings.Href}}; 10093 if (imageSettings.HrefCssClass.IsNotNullOrEmpty()) 10094 { 10095 linkAttributes.Add("class", imageSettings.HrefCssClass); 10096 } 10097 if (imageSettings.HrefTarget.IsNotNullOrEmpty()) 10098 { 10099 linkAttributes.Add("target", imageSettings.HrefTarget); 10100 } 10101 10102 imageMarkup.Append(GetHtmlElement("a", linkAttributes)); 10103 } 10104 10105 if (widthAndHeightForMobile.Any() || widthAndHeightForTablet.Any()) 10106 { 10107 imageMarkup.Append(GetHtmlElement("picture")); 10108 10109 imageMarkup.Append(GetHtmlElement("source")); 10110 10111 if (widthAndHeightForMobile.Any()) 10112 { 10113 imageMarkup.Append(GetHtmlElement("srcset", widthAndHeightForMobile)); 10114 } 10115 10116 if (widthAndHeightForTablet.Any()) 10117 { 10118 imageMarkup.Append(GetHtmlElement("srcset", widthAndHeightForTablet)); 10119 } 10120 10121 imageMarkup.Append(GetHtmlElement("source", true)); 10122 } 10123 10124 imageMarkup.Append(GetHtmlElement("img", imageSettings.Attributes, true)); 10125 10126 if (imageSettings.SourceForMobile.IsNotNullOrEmpty() || imageSettings.SourceForTablet.IsNotNullOrEmpty()) 10127 { 10128 imageMarkup.Append(GetHtmlElement("picture", true)); 10129 } 10130 10131 if (imageSettings.Href.IsNotNullOrEmpty()) 10132 { 10133 imageMarkup.Append(GetHtmlElement("a", true)); 10134 } 10135 10136 if (imageSettings.IncludeWrapper) 10137 { 10138 imageMarkup.Append(GetHtmlElement(imageSettings.WrapperElement, true)); 10139 } 10140 10141 10142 10143 #line default 10144 #line hidden 10145 10146 #line 3204 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10147 WriteTo(__razor_helper_writer, imageMarkup.ToString()); 10148 10149 10150 #line default 10151 #line hidden 10152 10153 #line 3204 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10154 10155 10156 10157 #line default 10158 #line hidden 10159 }); 10160 10161 #line 3205 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10162 } 10163 #line default 10164 #line hidden 10165 10166 10167 #line 3207 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10168 public RazorEngine.Templating.TemplateWriter RenderHtmlElementBetweenEachString(List<string> listOfStrings, string htmlElement = "br" ) 10169 { 10170 #line default 10171 #line hidden 10172 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10173 10174 #line 3208 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10175 10176 foreach (var str in listOfStrings) 10177 { 10178 if (str.IsNullOrEmpty()){continue;} 10179 10180 10181 #line default 10182 #line hidden 10183 10184 #line 3212 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10185 WriteTo(__razor_helper_writer, string.Concat(str, GetHtmlElement(htmlElement, true))); 10186 10187 10188 #line default 10189 #line hidden 10190 10191 #line 3212 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10192 10193 } 10194 10195 10196 #line default 10197 #line hidden 10198 }); 10199 10200 #line 3214 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10201 } 10202 #line default 10203 #line hidden 10204 10205 10206 #line 3216 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10207 public RazorEngine.Templating.TemplateWriter RenderProductPrice(string productPrice = "") 10208 { 10209 #line default 10210 #line hidden 10211 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10212 10213 #line 3217 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10214 10215 10216 10217 #line default 10218 #line hidden 10219 10220 #line 3218 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10221 WriteTo(__razor_helper_writer, GetProductPrice(productPrice)); 10222 10223 10224 #line default 10225 #line hidden 10226 10227 #line 3218 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10228 10229 10230 10231 #line default 10232 #line hidden 10233 }); 10234 10235 #line 3219 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10236 } 10237 #line default 10238 #line hidden 10239 10240 10241 #line 3221 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10242 public RazorEngine.Templating.TemplateWriter RenderNoErpConnectionMessage() 10243 { 10244 #line default 10245 #line hidden 10246 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10247 10248 #line 3222 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10249 10250 10251 10252 #line default 10253 #line hidden 10254 10255 #line 3223 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10256 WriteTo(__razor_helper_writer, GetNoErpConnectionMessage()); 10257 10258 10259 #line default 10260 #line hidden 10261 10262 #line 3223 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10263 10264 10265 10266 #line default 10267 #line hidden 10268 }); 10269 10270 #line 3224 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10271 } 10272 #line default 10273 #line hidden 10274 10275 10276 #line 3229 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10277 public RazorEngine.Templating.TemplateWriter RenderEmailHtmlHead() 10278 { 10279 #line default 10280 #line hidden 10281 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10282 10283 #line 3230 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10284 10285 var backgroundColor = GetPalletColorNumber(); 10286 var fontFamily = GetFontFamilyNumber(); 10287 var textColor = GetPalletColorNumber(1); 10288 10289 10290 10291 #line default 10292 #line hidden 10293 WriteLiteralTo(__razor_helper_writer, " <head>\r\n <title>Email</title>\r\n <meta"); 10294 10295 WriteLiteralTo(__razor_helper_writer, " http-equiv=\"content-type\""); 10296 10297 WriteLiteralTo(__razor_helper_writer, " content=\"text/html; charset=utf-8\""); 10298 10299 WriteLiteralTo(__razor_helper_writer, "/>\r\n <style"); 10300 10301 WriteLiteralTo(__razor_helper_writer, " type=\"text/css\""); 10302 10303 WriteLiteralTo(__razor_helper_writer, @"> 10304 #outlook a { 10305 padding: 0; 10306 margin: 0; 10307 } 10308 10309 body { 10310 width: 100% !important; 10311 -webkit-text-size-adjust: 100%; 10312 -ms-text-size-adjust: 100%; 10313 margin: 0; 10314 padding: 0; 10315 background-color: "); 10316 10317 10318 #line 3250 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10319 WriteTo(__razor_helper_writer, backgroundColor); 10320 10321 10322 #line default 10323 #line hidden 10324 WriteLiteralTo(__razor_helper_writer, @"; 10325 } 10326 10327 .ExternalClass { width: 100%; } 10328 10329 .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { 10330 mso-line-height-rule: exactly; 10331 line-height: 100%; 10332 } 10333 10334 .backgroundTable { 10335 margin: 0; 10336 padding: 0; 10337 width: 100% !important; 10338 mso-line-height-rule: exactly; 10339 line-height: 100% !important; 10340 } 10341 10342 img { 10343 outline: none; 10344 text-decoration: none; 10345 -ms-interpolation-mode: bicubic; 10346 display: block; 10347 border: 0 none; 10348 } 10349 10350 a img { border: 0 none; } 10351 10352 .image_fix { display: block; } 10353 10354 p { 10355 margin: 0 0; 10356 font-size: 14px; 10357 line-height: 20px; 10358 } 10359 10360 div { 10361 padding: 0; 10362 margin: 0; 10363 } 10364 10365 table td { 10366 border-collapse: collapse; 10367 font-size: 14px; 10368 "); 10369 10370 WriteLiteralTo(__razor_helper_writer, " "); 10371 10372 10373 #line 3294 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10374 WriteTo(__razor_helper_writer, fontFamily); 10375 10376 10377 #line default 10378 #line hidden 10379 WriteLiteralTo(__razor_helper_writer, @" 10380 } 10381 10382 table { 10383 border-collapse: collapse; 10384 mso-table-lspace: 0; 10385 mso-table-rspace: 0; 10386 } 10387 10388 a { 10389 text-decoration: underline; 10390 padding: 0; 10391 margin: 0; 10392 } 10393 10394 a:hover { text-decoration: none; } 10395 10396 p { 10397 font-size: 14px; 10398 line-height: 16px; 10399 line-height: 20px; 10400 margin: 0; 10401 "); 10402 10403 WriteLiteralTo(__razor_helper_writer, " "); 10404 10405 10406 #line 3316 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10407 WriteTo(__razor_helper_writer, fontFamily); 10408 10409 10410 #line default 10411 #line hidden 10412 WriteLiteralTo(__razor_helper_writer, "\r\n }\r\n \r\n /* CLIENT-SPECIFIC STYLES */\r\n \r\n " + 10413 " #outlook a { padding: 0; }\r\n \r\n /* Force Outlook to provide a \"v" + 10414 "iew in browser\" message */\r\n \r\n .ReadMsgBody { width: 100%; }\r\n " + 10415 " \r\n .ExternalClass { width: 100%; }\r\n \r\n /* Force Hotma" + 10416 "il to display emails at full width */\r\n \r\n .ExternalClass, .Extern" + 10417 "alClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .Externa" + 10418 "lClass div { line-height: 100%; }\r\n \r\n /* Force Hotmail to display" + 10419 " normal line spacing */\r\n \r\n body, table, td, a {\r\n " + 10420 " -webkit-text-size-adjust: 100%;\r\n -ms-text-size-adjust: 100%;\r\n " + 10421 " }\r\n \r\n /* Prevent WebKit and Windows mobile changing de" + 10422 "fault text sizes */\r\n \r\n table, td {\r\n mso-table-ls" + 10423 "pace: 0;\r\n mso-table-rspace: 0;\r\n }\r\n \r\n " + 10424 " /* Remove spacing between tables in Outlook 2007 and up */\r\n \r\n i" + 10425 "mg { -ms-interpolation-mode: bicubic; }\r\n \r\n /* Allow smoother ren" + 10426 "dering of resized image in Internet Explorer */\r\n \r\n /* RESET STYL" + 10427 "ES */\r\n \r\n body, body p {\r\n margin: 0;\r\n " + 10428 " padding: 0;\r\n }\r\n \r\n img {\r\n border" + 10429 ": 0;\r\n height: auto;\r\n line-height: 100%;\r\n " + 10430 " outline: none;\r\n text-decoration: none;\r\n }\r\n" + 10431 " \r\n table { border-collapse: collapse !important; }\r\n \r\n " + 10432 " body {\r\n height: 100% !important;\r\n margin: 0" + 10433 ";\r\n padding: 0;\r\n width: 100% !important;\r\n " + 10434 " }\r\n \r\n /* iOS BLUE LINKS */\r\n \r\n .appleBody a {" + 10435 " color: "); 10436 10437 10438 #line 3379 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10439 WriteTo(__razor_helper_writer, textColor); 10440 10441 10442 #line default 10443 #line hidden 10444 WriteLiteralTo(__razor_helper_writer, " text-decoration:none; }\r\n \r\n .appleFooter a { color: "); 10445 10446 10447 #line 3381 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10448 WriteTo(__razor_helper_writer, textColor); 10449 10450 10451 #line default 10452 #line hidden 10453 WriteLiteralTo(__razor_helper_writer, " text-decoration:none; }\r\n \r\n /* MOBILE STYLES */\r\n \r\n " + 10454 " "); 10455 10456 WriteLiteralTo(__razor_helper_writer, "@media screen and (max-width: 525px) {\r\n /* ALLOWS FOR FLUID TABLE" + 10457 "S */\r\n table[class=\"wrapper\"] { width: 100% !important; }\r\n \r\n" + 10458 " /* ADJUSTS LAYOUT OF LOGO IMAGE */\r\n td[class=\"lo" + 10459 "go\"] {\r\n text-align: left;\r\n padding: 20px" + 10460 " 0 20px 0 !important;\r\n }\r\n \r\n td[class=\"logo\"]" + 10461 " img { margin: 0 auto !important; }\r\n \r\n /* USE THESE CLASSES " + 10462 "TO HIDE CONTENT ON MOBILE */\r\n td[class=\"mobile-hide\"] { display:" + 10463 " none; }\r\n \r\n img[class=\"mobile-hide\"] { display: none !import" + 10464 "ant; }\r\n \r\n img[class=\"img-max\"] {\r\n max-wi" + 10465 "dth: 100% !important;\r\n width: 100% !important;\r\n " + 10466 " height: auto !important;\r\n }\r\n \r\n /* FU" + 10467 "LL-WIDTH TABLES */\r\n table[class=\"responsive-table\"],\r\n " + 10468 " .responsive-table {\r\n width: 100% !important;\r\n " + 10469 " display: table;\r\n }\r\n \r\n /* UTILITY" + 10470 " CLASSES FOR ADJUSTING PADDING ON MOBILE */\r\n td[class=\"padding\"]" + 10471 " { padding: 10px 5% 15px 5% !important; }\r\n \r\n td[class=\"paddi" + 10472 "ng-copy\"] {\r\n padding: 10px 5% 10px 5% !important;\r\n " + 10473 " text-align: center;\r\n }\r\n \r\n td[clas" + 10474 "s=\"padding-meta\"] {\r\n padding: 30px 5% 0 5% !important;\r\n " + 10475 " text-align: center;\r\n }\r\n \r\n td" + 10476 "[class=\"no-pad\"] { padding: 0 0 20px 0 !important; }\r\n \r\n td[c" + 10477 "lass=\"no-padding\"] { padding: 0 !important; }\r\n \r\n td[class=\"s" + 10478 "ection-padding\"] { padding: 50px 15px 50px 15px !important; }\r\n \r\n " + 10479 " td[class=\"section-padding-bottom-image\"] { padding: 10px 15px 0 15px !impor" + 10480 "tant; }\r\n \r\n /* ADJUST BUTTONS ON MOBILE */\r\n t" + 10481 "d[class=\"mobile-wrapper\"] { padding: 10px 5% 15px 5% !important; }\r\n \r\n " + 10482 " table[class=\"mobile-button-container\"] {\r\n margin: " + 10483 "0 auto;\r\n width: 100% !important;\r\n }\r\n \r\n " + 10484 " a[class=\"mobile-button\"] {\r\n width: 80% !impor" + 10485 "tant;\r\n padding: 4px !important;\r\n border:" + 10486 " 0 !important;\r\n font-size: 16px !important;\r\n " + 10487 " border-radius: 3px;\r\n -webkit-border-radius: 3px;\r\n " + 10488 " -moz-border-radius: 3px;\r\n }\r\n \r\n " + 10489 " .clearLeft { clear: left; }\r\n \r\n .preheader {\r\n " + 10490 " display: none !important;\r\n visibility: hidden;\r\n " + 10491 " opacity: 0;\r\n color: transparent;\r\n " + 10492 " height: 0;\r\n width: 0;\r\n }\r\n " + 10493 " }\r\n </style>\r\n </head>\r\n"); 10494 10495 10496 #line 3467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10497 10498 10499 #line default 10500 #line hidden 10501 }); 10502 10503 #line 3467 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10504 } 10505 #line default 10506 #line hidden 10507 10508 10509 #line 3469 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10510 public RazorEngine.Templating.TemplateWriter RenderEmailFooter(bool renderEmailFooter = true, bool renderSocialMedia = true) 10511 { 10512 #line default 10513 #line hidden 10514 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10515 10516 #line 3470 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10517 10518 if (renderEmailFooter) 10519 { 10520 var copyrightMessage = Pageview != null ? string.Concat(Pageview.Area.Item["CompanyName"], " ", Pageview.Area.Item["Copyright"]) : string.Concat(Translate("Company Name"), " ", Translate("Inc. All rights reserved")); 10521 var backgroundColor = GetPalletColorNumber(); 10522 var fontSize = GetFontSize(12); 10523 var fontFamily = GetFontFamilyNumber(); 10524 var fontColor = GetPalletColorNumber(1); 10525 10526 10527 10528 #line default 10529 #line hidden 10530 WriteLiteralTo(__razor_helper_writer, " <table"); 10531 10532 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 10533 10534 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 10535 10536 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 10537 10538 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 10539 10540 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n <td"); 10541 10542 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 146915), Tuple.Create("\"", 146941) 10543 10544 #line 3481 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10545 , Tuple.Create(Tuple.Create("", 146925), Tuple.Create<System.Object, System.Int32>(backgroundColor 10546 10547 #line default 10548 #line hidden 10549 , 146925), false) 10550 ); 10551 10552 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10553 10554 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 20px 0;\""); 10555 10556 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 10557 10558 WriteLiteralTo(__razor_helper_writer, " width=\"500\""); 10559 10560 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 10561 10562 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 10563 10564 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 10565 10566 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10567 10568 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 10569 10570 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10571 10572 10573 #line 3483 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10574 10575 10576 #line default 10577 #line hidden 10578 10579 #line 3483 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10580 if (renderSocialMedia) 10581 { 10582 10583 10584 #line default 10585 #line hidden 10586 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 10587 10588 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10589 10590 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 147289), Tuple.Create("\"", 147355) 10591 10592 #line 3486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10593 , Tuple.Create(Tuple.Create("", 147297), Tuple.Create<System.Object, System.Int32>(fontSize 10594 10595 #line default 10596 #line hidden 10597 , 147297), false) 10598 , Tuple.Create(Tuple.Create(" ", 147306), Tuple.Create("line-height:", 147307), true) 10599 , Tuple.Create(Tuple.Create(" ", 147319), Tuple.Create("18px;", 147320), true) 10600 10601 #line 3486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10602 , Tuple.Create(Tuple.Create(" ", 147325), Tuple.Create<System.Object, System.Int32>(fontFamily 10603 10604 #line default 10605 #line hidden 10606 , 147326), false) 10607 , Tuple.Create(Tuple.Create(" ", 147337), Tuple.Create("color:", 147338), true) 10608 10609 #line 3486 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10610 , Tuple.Create(Tuple.Create(" ", 147344), Tuple.Create<System.Object, System.Int32>(fontColor 10611 10612 #line default 10613 #line hidden 10614 , 147345), false) 10615 ); 10616 10617 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10618 10619 WriteLiteralTo(__razor_helper_writer, " "); 10620 10621 10622 #line 3487 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10623 WriteTo(__razor_helper_writer, RenderSocialMedia(true)); 10624 10625 10626 #line default 10627 #line hidden 10628 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr" + 10629 ">\r\n"); 10630 10631 WriteLiteralTo(__razor_helper_writer, " <tr><td"); 10632 10633 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 10634 10635 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</td></tr>\r\n"); 10636 10637 10638 #line 3491 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10639 } 10640 10641 #line default 10642 #line hidden 10643 WriteLiteralTo(__razor_helper_writer, "\r\n <tr>\r\n <td"); 10644 10645 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 10646 10647 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 147690), Tuple.Create("\"", 147756) 10648 10649 #line 3493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10650 , Tuple.Create(Tuple.Create("", 147698), Tuple.Create<System.Object, System.Int32>(fontSize 10651 10652 #line default 10653 #line hidden 10654 , 147698), false) 10655 , Tuple.Create(Tuple.Create(" ", 147707), Tuple.Create("line-height:", 147708), true) 10656 , Tuple.Create(Tuple.Create(" ", 147720), Tuple.Create("18px;", 147721), true) 10657 10658 #line 3493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10659 , Tuple.Create(Tuple.Create(" ", 147726), Tuple.Create<System.Object, System.Int32>(fontFamily 10660 10661 #line default 10662 #line hidden 10663 , 147727), false) 10664 , Tuple.Create(Tuple.Create(" ", 147738), Tuple.Create("color:", 147739), true) 10665 10666 #line 3493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10667 , Tuple.Create(Tuple.Create(" ", 147745), Tuple.Create<System.Object, System.Int32>(fontColor 10668 10669 #line default 10670 #line hidden 10671 , 147746), false) 10672 ); 10673 10674 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 10675 10676 WriteLiteralTo(__razor_helper_writer, " class=\"appleFooter\""); 10677 10678 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 147821), Tuple.Create("\"", 147846) 10679 , Tuple.Create(Tuple.Create("", 147829), Tuple.Create("color:", 147829), true) 10680 10681 #line 3494 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10682 , Tuple.Create(Tuple.Create(" ", 147835), Tuple.Create<System.Object, System.Int32>(fontColor 10683 10684 #line default 10685 #line hidden 10686 , 147836), false) 10687 ); 10688 10689 WriteLiteralTo(__razor_helper_writer, ">&copy; "); 10690 10691 10692 #line 3494 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10693 WriteTo(__razor_helper_writer, DateTime.Now.Year); 10694 10695 10696 #line default 10697 #line hidden 10698 WriteLiteralTo(__razor_helper_writer, " "); 10699 10700 10701 #line 3494 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10702 WriteTo(__razor_helper_writer, copyrightMessage); 10703 10704 10705 #line default 10706 #line hidden 10707 WriteLiteralTo(__razor_helper_writer, "</span><br/>\r\n </td>\r\n " + 10708 "</tr>\r\n </table>\r\n </td>\r\n " + 10709 " </tr>\r\n </table>\r\n"); 10710 10711 10712 #line 3501 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10713 } 10714 10715 10716 10717 #line default 10718 #line hidden 10719 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.getElementById(\"remove\").style.display = \"" + 10720 "none\";\r\n document.getElementById(\"remove2\").style.display = \"none\";\r\n" + 10721 " </script>\r\n"); 10722 10723 10724 #line 3507 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10725 10726 10727 #line default 10728 #line hidden 10729 }); 10730 10731 #line 3507 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10732 } 10733 #line default 10734 #line hidden 10735 10736 10737 #line 3509 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10738 public RazorEngine.Templating.TemplateWriter RenderEmailHeader(string receiptUrl, string preHeader, bool showLinkToPage = true) 10739 { 10740 #line default 10741 #line hidden 10742 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10743 10744 #line 3510 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10745 10746 var companyName = Pageview != null ? Pageview.Area.Item["CompanyName"] : Translate("Company Name"); 10747 var websiteUrl = Pageview != null ? string.Concat(Helpers.GetCurrentUrl(true),"/Default.aspx?AreaId=", Pageview.Area.ID) : Helpers.GetCurrentUrl(true) ; 10748 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 10749 var fontSize = GetFontSize(14); 10750 var fontFamily = GetFontFamilyNumber(2); 10751 var fontColor = GetPalletColorNumber(1); 10752 var backgroundColor = GetPalletColorNumber(2); 10753 10754 if (preHeader.IsNotNullOrEmpty()) 10755 { 10756 10757 10758 #line default 10759 #line hidden 10760 10761 #line 3521 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10762 WriteTo(__razor_helper_writer, SnippetStart("preHeader")); 10763 10764 10765 #line default 10766 #line hidden 10767 10768 #line 3521 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10769 10770 10771 10772 #line default 10773 #line hidden 10774 WriteLiteralTo(__razor_helper_writer, " <div"); 10775 10776 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 149249), Tuple.Create("\"", 149350) 10777 10778 #line 3522 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10779 , Tuple.Create(Tuple.Create("", 149257), Tuple.Create<System.Object, System.Int32>(fontSize 10780 10781 #line default 10782 #line hidden 10783 , 149257), false) 10784 10785 #line 3522 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10786 , Tuple.Create(Tuple.Create(" ", 149266), Tuple.Create<System.Object, System.Int32>(fontFamily 10787 10788 #line default 10789 #line hidden 10790 , 149267), false) 10791 , Tuple.Create(Tuple.Create(" ", 149278), Tuple.Create("text-decoration:none;", 149279), true) 10792 , Tuple.Create(Tuple.Create(" ", 149300), Tuple.Create("font-size:", 149301), true) 10793 , Tuple.Create(Tuple.Create(" ", 149311), Tuple.Create("1px;", 149312), true) 10794 , Tuple.Create(Tuple.Create(" ", 149316), Tuple.Create("color:", 149317), true) 10795 , Tuple.Create(Tuple.Create(" ", 149323), Tuple.Create("#ffffff;", 149324), true) 10796 , Tuple.Create(Tuple.Create(" ", 149332), Tuple.Create("line-height:", 149333), true) 10797 , Tuple.Create(Tuple.Create(" ", 149345), Tuple.Create("1px;", 149346), true) 10798 ); 10799 10800 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 10801 10802 WriteLiteralTo(__razor_helper_writer, " style=\"color: #ffffff; font-size: 1px;\""); 10803 10804 WriteLiteralTo(__razor_helper_writer, ">"); 10805 10806 10807 #line 3523 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10808 WriteTo(__razor_helper_writer, preHeader); 10809 10810 10811 #line default 10812 #line hidden 10813 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n"); 10814 10815 10816 #line 3525 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10817 10818 10819 #line default 10820 #line hidden 10821 10822 #line 3525 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10823 WriteTo(__razor_helper_writer, SnippetEnd("preHeader")); 10824 10825 10826 #line default 10827 #line hidden 10828 10829 #line 3525 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10830 10831 } 10832 10833 10834 10835 #line default 10836 #line hidden 10837 WriteLiteralTo(__razor_helper_writer, " <table"); 10838 10839 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 10840 10841 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 10842 10843 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 10844 10845 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 10846 10847 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10848 10849 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10850 10851 10852 #line 3529 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10853 10854 10855 #line default 10856 #line hidden 10857 10858 #line 3529 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10859 if (showLinkToPage && receiptUrl.IsNotNullOrEmpty()) 10860 { 10861 10862 10863 #line default 10864 #line hidden 10865 WriteLiteralTo(__razor_helper_writer, " <tr"); 10866 10867 WriteLiteralTo(__razor_helper_writer, " id=\"remove2\""); 10868 10869 WriteLiteralTo(__razor_helper_writer, ">\r\n <td"); 10870 10871 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 149742), Tuple.Create("\"", 149811) 10872 10873 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10874 , Tuple.Create(Tuple.Create("", 149750), Tuple.Create<System.Object, System.Int32>(fontSize 10875 10876 #line default 10877 #line hidden 10878 , 149750), false) 10879 10880 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10881 , Tuple.Create(Tuple.Create(" ", 149759), Tuple.Create<System.Object, System.Int32>(fontFamily 10882 10883 #line default 10884 #line hidden 10885 , 149760), false) 10886 , Tuple.Create(Tuple.Create(" ", 149771), Tuple.Create("color:", 149772), true) 10887 10888 #line 3532 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10889 , Tuple.Create(Tuple.Create(" ", 149778), Tuple.Create<System.Object, System.Int32>(fontColor 10890 10891 #line default 10892 #line hidden 10893 , 149779), false) 10894 , Tuple.Create(Tuple.Create(" ", 149789), Tuple.Create("text-decoration:none;", 149790), true) 10895 ); 10896 10897 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 10898 10899 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 10900 10901 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10902 10903 WriteLiteralTo(__razor_helper_writer, ">\r\n <br/>"); 10904 10905 10906 #line 3533 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10907 WriteTo(__razor_helper_writer, Translate("If this email is not being shown properly, click")); 10908 10909 10910 #line default 10911 #line hidden 10912 WriteLiteralTo(__razor_helper_writer, " <a"); 10913 10914 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 149949), Tuple.Create("\"", 150023) 10915 10916 #line 3533 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10917 , Tuple.Create(Tuple.Create("", 149957), Tuple.Create<System.Object, System.Int32>(fontSize 10918 10919 #line default 10920 #line hidden 10921 , 149957), false) 10922 10923 #line 3533 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10924 , Tuple.Create(Tuple.Create(" ", 149966), Tuple.Create<System.Object, System.Int32>(fontFamily 10925 10926 #line default 10927 #line hidden 10928 , 149967), false) 10929 , Tuple.Create(Tuple.Create(" ", 149978), Tuple.Create("color:", 149979), true) 10930 10931 #line 3533 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10932 , Tuple.Create(Tuple.Create(" ", 149985), Tuple.Create<System.Object, System.Int32>(fontColor 10933 10934 #line default 10935 #line hidden 10936 , 149986), false) 10937 , Tuple.Create(Tuple.Create(" ", 149996), Tuple.Create("text-decoration:underline;", 149997), true) 10938 ); 10939 10940 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 150024), Tuple.Create("\"", 150042) 10941 10942 #line 3533 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10943 , Tuple.Create(Tuple.Create("", 150031), Tuple.Create<System.Object, System.Int32>(receiptUrl 10944 10945 #line default 10946 #line hidden 10947 , 150031), false) 10948 ); 10949 10950 WriteLiteralTo(__razor_helper_writer, ">"); 10951 10952 10953 #line 3533 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10954 WriteTo(__razor_helper_writer, Translate("here")); 10955 10956 10957 #line default 10958 #line hidden 10959 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </td>\r\n </tr>\r\n"); 10960 10961 10962 #line 3536 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10963 } 10964 10965 #line default 10966 #line hidden 10967 WriteLiteralTo(__razor_helper_writer, "\r\n <tr>\r\n <td"); 10968 10969 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 150170), Tuple.Create("\"", 150196) 10970 10971 #line 3538 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 10972 , Tuple.Create(Tuple.Create("", 150180), Tuple.Create<System.Object, System.Int32>(backgroundColor 10973 10974 #line default 10975 #line hidden 10976 , 150180), false) 10977 ); 10978 10979 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 10980 10981 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 10982 10983 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 0 15px 0 15px;\""); 10984 10985 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 10986 10987 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 10988 10989 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 10990 10991 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 10992 10993 WriteLiteralTo(__razor_helper_writer, " width=\"500\""); 10994 10995 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 10996 10997 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n <td"); 10998 10999 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 20px 0 20px 0;\""); 11000 11001 WriteLiteralTo(__razor_helper_writer, " class=\"logo\""); 11002 11003 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 11004 11005 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 11006 11007 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 11008 11009 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 11010 11011 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 11012 11013 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n " + 11014 " <td"); 11015 11016 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 150699), Tuple.Create("\"", 150725) 11017 11018 #line 3545 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11019 , Tuple.Create(Tuple.Create("", 150709), Tuple.Create<System.Object, System.Int32>(backgroundColor 11020 11021 #line default 11022 #line hidden 11023 , 150709), false) 11024 ); 11025 11026 WriteLiteralTo(__razor_helper_writer, " width=\"300\""); 11027 11028 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 11029 11030 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 11031 11032 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 150804), Tuple.Create("\"", 150822) 11033 11034 #line 3546 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11035 , Tuple.Create(Tuple.Create("", 150811), Tuple.Create<System.Object, System.Int32>(websiteUrl 11036 11037 #line default 11038 #line hidden 11039 , 150811), false) 11040 ); 11041 11042 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 11043 11044 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11045 11046 11047 #line 3547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11048 11049 11050 #line default 11051 #line hidden 11052 11053 #line 3547 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11054 var imageSrc = string.Concat(Helpers.GetCurrentUrl(true),"/Files/Templates/Designs/", designName, "/images/newsletter/newsletterLogo.png"); 11055 11056 #line default 11057 #line hidden 11058 WriteLiteralTo(__razor_helper_writer, "\r\n <img"); 11059 11060 WriteLiteralTo(__razor_helper_writer, " style=\"max-width: 100%\""); 11061 11062 WriteLiteralTo(__razor_helper_writer, " class=\"img-max\""); 11063 11064 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 151135), Tuple.Create("\"", 151150) 11065 11066 #line 3548 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11067 , Tuple.Create(Tuple.Create("", 151141), Tuple.Create<System.Object, System.Int32>(imageSrc 11068 11069 #line default 11070 #line hidden 11071 , 151141), false) 11072 ); 11073 11074 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 151151), Tuple.Create("\"", 151169) 11075 11076 #line 3548 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11077 , Tuple.Create(Tuple.Create("", 151157), Tuple.Create<System.Object, System.Int32>(companyName 11078 11079 #line default 11080 #line hidden 11081 , 151157), false) 11082 ); 11083 11084 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 151170), Tuple.Create("\"", 151190) 11085 11086 #line 3548 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11087 , Tuple.Create(Tuple.Create("", 151178), Tuple.Create<System.Object, System.Int32>(companyName 11088 11089 #line default 11090 #line hidden 11091 , 151178), false) 11092 ); 11093 11094 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n " + 11095 " </td>\r\n <td"); 11096 11097 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 151347), Tuple.Create("\"", 151373) 11098 11099 #line 3551 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11100 , Tuple.Create(Tuple.Create("", 151357), Tuple.Create<System.Object, System.Int32>(backgroundColor 11101 11102 #line default 11103 #line hidden 11104 , 151357), false) 11105 ); 11106 11107 WriteLiteralTo(__razor_helper_writer, " width=\"200\""); 11108 11109 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 11110 11111 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-hide\""); 11112 11113 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 11114 11115 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 11116 11117 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 11118 11119 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 11120 11121 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n " + 11122 " <td"); 11123 11124 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 11125 11126 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 151654), Tuple.Create("\"", 151743) 11127 , Tuple.Create(Tuple.Create("", 151662), Tuple.Create("padding:", 151662), true) 11128 , Tuple.Create(Tuple.Create(" ", 151670), Tuple.Create("0", 151671), true) 11129 , Tuple.Create(Tuple.Create(" ", 151672), Tuple.Create("0", 151673), true) 11130 , Tuple.Create(Tuple.Create(" ", 151674), Tuple.Create("5px", 151675), true) 11131 , Tuple.Create(Tuple.Create(" ", 151678), Tuple.Create("0;", 151679), true) 11132 11133 #line 3554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11134 , Tuple.Create(Tuple.Create(" ", 151681), Tuple.Create<System.Object, System.Int32>(fontSize 11135 11136 #line default 11137 #line hidden 11138 , 151682), false) 11139 11140 #line 3554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11141 , Tuple.Create(Tuple.Create(" ", 151691), Tuple.Create<System.Object, System.Int32>(fontFamily 11142 11143 #line default 11144 #line hidden 11145 , 151692), false) 11146 , Tuple.Create(Tuple.Create(" ", 151703), Tuple.Create("color:", 151704), true) 11147 11148 #line 3554 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11149 , Tuple.Create(Tuple.Create(" ", 151710), Tuple.Create<System.Object, System.Int32>(fontColor 11150 11151 #line default 11152 #line hidden 11153 , 151711), false) 11154 , Tuple.Create(Tuple.Create(" ", 151721), Tuple.Create("text-decoration:none;", 151722), true) 11155 ); 11156 11157 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 11158 11159 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 151812), Tuple.Create("\"", 151859) 11160 , Tuple.Create(Tuple.Create("", 151820), Tuple.Create("color:", 151820), true) 11161 11162 #line 3555 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11163 , Tuple.Create(Tuple.Create(" ", 151826), Tuple.Create<System.Object, System.Int32>(fontColor 11164 11165 #line default 11166 #line hidden 11167 , 151827), false) 11168 , Tuple.Create(Tuple.Create(" ", 151837), Tuple.Create("text-decoration:none;", 151838), true) 11169 ); 11170 11171 WriteLiteralTo(__razor_helper_writer, @"></span> 11172 </td> 11173 </tr> 11174 </table> 11175 </td> 11176 </tr> 11177 </table> 11178 </td> 11179 </tr> 11180 </table> 11181 </div> 11182 </td> 11183 </tr> 11184 </table> 11185 "); 11186 11187 11188 #line 3569 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11189 11190 11191 #line default 11192 #line hidden 11193 }); 11194 11195 #line 3569 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11196 } 11197 #line default 11198 #line hidden 11199 11200 11201 #line 3571 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11202 public RazorEngine.Templating.TemplateWriter RenderEmailWrapperStart(int spacingHeight = 0) 11203 { 11204 #line default 11205 #line hidden 11206 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11207 11208 #line 3572 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11209 11210 11211 11212 #line default 11213 #line hidden 11214 WriteLiteralTo(__razor_helper_writer, " "); 11215 11216 WriteLiteralTo(__razor_helper_writer, "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"backgroundT" + 11217 "able\">\r\n"); 11218 11219 11220 #line 3574 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11221 11222 11223 #line default 11224 #line hidden 11225 11226 #line 3574 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11227 WriteTo(__razor_helper_writer, RenderTableRowSpacer(spacingHeight)); 11228 11229 11230 #line default 11231 #line hidden 11232 11233 #line 3574 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11234 11235 11236 11237 #line default 11238 #line hidden 11239 WriteLiteralTo(__razor_helper_writer, " "); 11240 11241 WriteLiteralTo(__razor_helper_writer, "<tr>\r\n"); 11242 11243 WriteLiteralTo(__razor_helper_writer, " "); 11244 11245 WriteLiteralTo(__razor_helper_writer, "<td align=\"center\" style=\"padding: 0 15px 30px 15px;\" class=\"section-padding\">\r\n"); 11246 11247 11248 #line 3577 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11249 11250 11251 #line default 11252 #line hidden 11253 }); 11254 11255 #line 3577 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11256 } 11257 #line default 11258 #line hidden 11259 11260 11261 #line 3579 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11262 public RazorEngine.Templating.TemplateWriter RenderEmailWrapperEnd() 11263 { 11264 #line default 11265 #line hidden 11266 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11267 11268 #line 3580 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11269 11270 11271 11272 #line default 11273 #line hidden 11274 WriteLiteralTo(__razor_helper_writer, " "); 11275 11276 WriteLiteralTo(__razor_helper_writer, "</td>\r\n"); 11277 11278 WriteLiteralTo(__razor_helper_writer, " "); 11279 11280 WriteLiteralTo(__razor_helper_writer, "</tr>\r\n"); 11281 11282 WriteLiteralTo(__razor_helper_writer, " "); 11283 11284 WriteLiteralTo(__razor_helper_writer, "</table>\r\n"); 11285 11286 11287 #line 3584 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11288 11289 11290 #line default 11291 #line hidden 11292 }); 11293 11294 #line 3584 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11295 } 11296 #line default 11297 #line hidden 11298 11299 11300 #line 3586 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11301 public RazorEngine.Templating.TemplateWriter RenderEmailButton(string href, string text, Dictionary<string, string> options = null) 11302 { 11303 #line default 11304 #line hidden 11305 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11306 11307 #line 3587 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11308 11309 if (href.IsNotNullOrEmpty() && text.IsNotNullOrEmpty()) 11310 { 11311 var width = options != null && options.ContainsKey("width") ? options["width"] : "120px"; 11312 var height = options != null && options.ContainsKey("height") ? options["height"] : "40px"; 11313 var background = options != null && options.ContainsKey("background") ? options["background"] : "#256F9C"; 11314 var border = options != null && options.ContainsKey("border") ? options["border"] : "1px solid ffffff"; 11315 var color = options != null && options.ContainsKey("color") ? options["color"] : "#ffffff"; 11316 var fontFamily = options != null && options.ContainsKey("font-family") ? options["font-family"] : "Helvetica, Arial, sans-serif"; 11317 var fontSize = options != null && options.ContainsKey("font-size") ? options["font-size"] : "14px"; 11318 var fontStyle = options != null && options.ContainsKey("font-style") ? options["font-style"] : "normal"; 11319 var textAlign = options != null && options.ContainsKey("text-align") ? options["text-align"] : "center"; 11320 var textDecoration = options != null && options.ContainsKey("text-decoration") ? options["text-decoration"] : "none"; 11321 11322 var rect = "style=\"width:" + width + ";height:" + height + ";border:" + border + ";color:" + color + ";v-text-anchor:middle; \" fillcolor=\"" + background + "\""; 11323 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 + ";"; 11324 11325 11326 11327 #line default 11328 #line hidden 11329 WriteLiteralTo(__razor_helper_writer, " <div>\r\n <!--[if mso]>\r\n <v:rect xml" + 11330 "ns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:w" + 11331 "ord\" href=\""); 11332 11333 11334 #line 3606 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11335 WriteTo(__razor_helper_writer, href); 11336 11337 11338 #line default 11339 #line hidden 11340 WriteLiteralTo(__razor_helper_writer, "\" "); 11341 11342 11343 #line 3606 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11344 WriteTo(__razor_helper_writer, rect); 11345 11346 11347 #line default 11348 #line hidden 11349 WriteLiteralTo(__razor_helper_writer, ">\r\n <w:anchorlock/>\r\n <center>\r\n " + 11350 " <![endif]-->\r\n <a"); 11351 11352 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-button\""); 11353 11354 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 11355 11356 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 155072), Tuple.Create("\"", 155084) 11357 11358 #line 3610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11359 , Tuple.Create(Tuple.Create("", 155079), Tuple.Create<System.Object, System.Int32>(href 11360 11361 #line default 11362 #line hidden 11363 , 155079), false) 11364 ); 11365 11366 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 155085), Tuple.Create("\"", 155155) 11367 , Tuple.Create(Tuple.Create("", 155093), Tuple.Create("-webkit-text-size-adjust:", 155093), true) 11368 , Tuple.Create(Tuple.Create(" ", 155118), Tuple.Create("none;", 155119), true) 11369 , Tuple.Create(Tuple.Create(" ", 155124), Tuple.Create("display:", 155125), true) 11370 , Tuple.Create(Tuple.Create(" ", 155133), Tuple.Create("inline-block;", 155134), true) 11371 11372 #line 3610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11373 , Tuple.Create(Tuple.Create(" ", 155147), Tuple.Create<System.Object, System.Int32>(anchor 11374 11375 #line default 11376 #line hidden 11377 , 155148), false) 11378 ); 11379 11380 WriteLiteralTo(__razor_helper_writer, ">"); 11381 11382 11383 #line 3610 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11384 WriteTo(__razor_helper_writer, text); 11385 11386 11387 #line default 11388 #line hidden 11389 WriteLiteralTo(__razor_helper_writer, "</a>\r\n <!--[if mso]>\r\n </center>\r\n " + 11390 " </v:rect>\r\n <![endif]-->\r\n </div>\r\n"); 11391 11392 11393 #line 3616 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11394 } 11395 11396 11397 #line default 11398 #line hidden 11399 }); 11400 11401 #line 3617 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11402 } 11403 #line default 11404 #line hidden 11405 11406 11407 #line 3619 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11408 public RazorEngine.Templating.TemplateWriter RenderEmailParagraphImage(string imageUrl, string imageTitle, string imageHref, string imageAlignment = "image-top", int imageWidth = 600) 11409 { 11410 #line default 11411 #line hidden 11412 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11413 11414 #line 3620 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11415 11416 if (imageUrl.IsNotNullOrEmpty()) 11417 { 11418 switch (imageAlignment) 11419 { 11420 case "image-left-column": 11421 11422 11423 #line default 11424 #line hidden 11425 WriteLiteralTo(__razor_helper_writer, " <td"); 11426 11427 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 11428 11429 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 11430 11431 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11432 11433 WriteLiteralTo(__razor_helper_writer, " "); 11434 11435 11436 #line 3627 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11437 WriteTo(__razor_helper_writer, RenderEmailParagraphImageTag(imageUrl, imageTitle, imageHref, 300)); 11438 11439 11440 #line default 11441 #line hidden 11442 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 11443 11444 11445 #line 3629 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11446 11447 11448 #line default 11449 #line hidden 11450 11451 #line 3629 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11452 WriteTo(__razor_helper_writer, RenderTableCellSpacer()); 11453 11454 11455 #line default 11456 #line hidden 11457 11458 #line 3629 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11459 11460 break; 11461 case "image-right-column": 11462 11463 11464 #line default 11465 #line hidden 11466 11467 #line 3632 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11468 WriteTo(__razor_helper_writer, RenderTableCellSpacer()); 11469 11470 11471 #line default 11472 #line hidden 11473 11474 #line 3632 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11475 11476 11477 11478 #line default 11479 #line hidden 11480 WriteLiteralTo(__razor_helper_writer, " <td"); 11481 11482 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 11483 11484 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 11485 11486 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11487 11488 WriteLiteralTo(__razor_helper_writer, " "); 11489 11490 11491 #line 3634 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11492 WriteTo(__razor_helper_writer, RenderEmailParagraphImageTag(imageUrl, imageTitle, imageHref, 300)); 11493 11494 11495 #line default 11496 #line hidden 11497 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 11498 11499 11500 #line 3636 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11501 break; 11502 case "image-top": 11503 11504 11505 #line default 11506 #line hidden 11507 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 11508 11509 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 11510 11511 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 11512 11513 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11514 11515 WriteLiteralTo(__razor_helper_writer, " "); 11516 11517 11518 #line 3640 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11519 WriteTo(__razor_helper_writer, RenderEmailParagraphImageTag(imageUrl, imageTitle, imageHref)); 11520 11521 11522 #line default 11523 #line hidden 11524 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr>\r\n"); 11525 11526 11527 #line 3643 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11528 11529 11530 #line default 11531 #line hidden 11532 11533 #line 3643 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11534 WriteTo(__razor_helper_writer, RenderTableRowSpacer(10)); 11535 11536 11537 #line default 11538 #line hidden 11539 11540 #line 3643 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11541 11542 break; 11543 default: 11544 throw new NotSupportedException(string.Format("Unsupported item alignment: {0}.", imageAlignment)); 11545 } 11546 } 11547 11548 11549 #line default 11550 #line hidden 11551 }); 11552 11553 #line 3649 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11554 } 11555 #line default 11556 #line hidden 11557 11558 11559 #line 3651 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11560 public RazorEngine.Templating.TemplateWriter RenderEmailParagraphImageTag(string imageUrl, string imageTitle, string imageHref, int imageWidth = 600) 11561 { 11562 #line default 11563 #line hidden 11564 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11565 11566 #line 3652 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11567 11568 if (imageHref.IsNotNullOrEmpty()) 11569 { 11570 11571 11572 #line default 11573 #line hidden 11574 WriteLiteralTo(__razor_helper_writer, " "); 11575 11576 WriteLiteralTo(__razor_helper_writer, "<a target=\"_blank\" href=\""); 11577 11578 11579 #line 3655 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11580 WriteTo(__razor_helper_writer, imageHref); 11581 11582 11583 #line default 11584 #line hidden 11585 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 11586 11587 11588 #line 3656 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11589 } 11590 11591 11592 #line default 11593 #line hidden 11594 WriteLiteralTo(__razor_helper_writer, " <img"); 11595 11596 WriteLiteralTo(__razor_helper_writer, " class=\"img-max\""); 11597 11598 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 156980), Tuple.Create("\"", 157025) 11599 11600 #line 3657 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11601 , Tuple.Create(Tuple.Create("", 156986), Tuple.Create<System.Object, System.Int32>(Images.GetImage(imageUrl,imageWidth,0) 11602 11603 #line default 11604 #line hidden 11605 , 156986), false) 11606 ); 11607 11608 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 157026), Tuple.Create("\"", 157043) 11609 11610 #line 3657 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11611 , Tuple.Create(Tuple.Create("", 157032), Tuple.Create<System.Object, System.Int32>(imageTitle 11612 11613 #line default 11614 #line hidden 11615 , 157032), false) 11616 ); 11617 11618 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 157044), Tuple.Create("\"", 157063) 11619 11620 #line 3657 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11621 , Tuple.Create(Tuple.Create("", 157052), Tuple.Create<System.Object, System.Int32>(imageTitle 11622 11623 #line default 11624 #line hidden 11625 , 157052), false) 11626 ); 11627 11628 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 11629 11630 11631 #line 3658 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11632 if (imageHref.IsNotNullOrEmpty()) 11633 { 11634 11635 11636 #line default 11637 #line hidden 11638 WriteLiteralTo(__razor_helper_writer, " "); 11639 11640 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 11641 11642 11643 #line 3661 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11644 } 11645 11646 11647 #line default 11648 #line hidden 11649 }); 11650 11651 #line 3662 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11652 } 11653 #line default 11654 #line hidden 11655 11656 11657 #line 3664 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11658 public RazorEngine.Templating.TemplateWriter RenderEmailParagraphHeading(string alignment, string title) 11659 { 11660 #line default 11661 #line hidden 11662 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11663 11664 #line 3665 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11665 11666 11667 11668 #line default 11669 #line hidden 11670 WriteLiteralTo(__razor_helper_writer, " <h2"); 11671 11672 WriteAttributeTo(__razor_helper_writer, "align", Tuple.Create(" align=\"", 157257), Tuple.Create("\"", 157275) 11673 11674 #line 3666 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11675 , Tuple.Create(Tuple.Create("", 157265), Tuple.Create<System.Object, System.Int32>(alignment 11676 11677 #line default 11678 #line hidden 11679 , 157265), false) 11680 ); 11681 11682 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 157276), Tuple.Create("\"", 157375) 11683 11684 #line 3666 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11685 , Tuple.Create(Tuple.Create("", 157284), Tuple.Create<System.Object, System.Int32>(GetFontSize(24) 11686 11687 #line default 11688 #line hidden 11689 , 157284), false) 11690 , Tuple.Create(Tuple.Create(" ", 157300), Tuple.Create("margin:0;", 157301), true) 11691 , Tuple.Create(Tuple.Create(" ", 157310), Tuple.Create("padding:0;", 157311), true) 11692 11693 #line 3666 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11694 , Tuple.Create(Tuple.Create(" ", 157321), Tuple.Create<System.Object, System.Int32>(GetFontFamilyNumber() 11695 11696 #line default 11697 #line hidden 11698 , 157322), false) 11699 , Tuple.Create(Tuple.Create(" ", 157344), Tuple.Create("color:", 157345), true) 11700 11701 #line 3666 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11702 , Tuple.Create(Tuple.Create("", 157351), Tuple.Create<System.Object, System.Int32>(GetPalletColorNumber(2) 11703 11704 #line default 11705 #line hidden 11706 , 157351), false) 11707 ); 11708 11709 WriteLiteralTo(__razor_helper_writer, ">"); 11710 11711 11712 #line 3666 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11713 WriteTo(__razor_helper_writer, title); 11714 11715 11716 #line default 11717 #line hidden 11718 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 11719 11720 11721 #line 3667 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11722 11723 11724 #line default 11725 #line hidden 11726 }); 11727 11728 #line 3667 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11729 } 11730 #line default 11731 #line hidden 11732 11733 11734 #line 3686 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11735 public RazorEngine.Templating.TemplateWriter RenderCopyrightCustom() 11736 { 11737 #line default 11738 #line hidden 11739 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11740 11741 #line 3687 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11742 11743 11744 11745 #line default 11746 #line hidden 11747 WriteLiteralTo(__razor_helper_writer, " <div"); 11748 11749 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 text-center copyright\""); 11750 11751 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11752 11753 WriteLiteralTo(__razor_helper_writer, " class=\"copyrightContents\""); 11754 11755 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11756 11757 WriteLiteralTo(__razor_helper_writer, " class=\"copyrightText\""); 11758 11759 WriteLiteralTo(__razor_helper_writer, ">\r\n &copy; "); 11760 11761 11762 #line 3691 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11763 WriteTo(__razor_helper_writer, DateTime.Now.Year); 11764 11765 11766 #line default 11767 #line hidden 11768 WriteLiteralTo(__razor_helper_writer, " "); 11769 11770 11771 #line 3691 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11772 WriteTo(__razor_helper_writer, GetString("Item.Area.CompanyName")); 11773 11774 11775 #line default 11776 #line hidden 11777 WriteLiteralTo(__razor_helper_writer, " "); 11778 11779 11780 #line 3691 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11781 WriteTo(__razor_helper_writer, GetString("Item.Area.Copyright")); 11782 11783 11784 #line default 11785 #line hidden 11786 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <ul"); 11787 11788 WriteLiteralTo(__razor_helper_writer, " id=\"copyrightMenu\""); 11789 11790 WriteLiteralTo(__razor_helper_writer, " class=\"dwnavigation\""); 11791 11792 WriteLiteralTo(__razor_helper_writer, " settings=\"startlevel:2;endlevel:3;parenttag:copyrightMenu;template:liClean.xslt;" + 11793 "expandmode:All;id:copyrightMenu;\""); 11794 11795 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n </div>\r\n </div>\r\n"); 11796 11797 11798 #line 3696 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11799 11800 11801 #line default 11802 #line hidden 11803 }); 11804 11805 #line 3696 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11806 } 11807 #line default 11808 #line hidden 11809 11810 11811 #line 3697 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11812 public RazorEngine.Templating.TemplateWriter RenderCopyrightEmailOrder() 11813 { 11814 #line default 11815 #line hidden 11816 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11817 11818 #line 3698 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11819 11820 var copyrightMessage = Pageview != null ? string.Concat(Pageview.Area.Item["CompanyName"], " ", Pageview.Area.Item["Copyright"]) : string.Concat(Translate("Company Name"), " ", Translate("Inc. All rights reserved")); 11821 11822 11823 11824 #line default 11825 #line hidden 11826 WriteLiteralTo(__razor_helper_writer, " <div"); 11827 11828 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 text-center copyright\""); 11829 11830 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11831 11832 WriteLiteralTo(__razor_helper_writer, " class=\"copyrightContents\""); 11833 11834 WriteLiteralTo(__razor_helper_writer, " style=\"color: #ffffff; text-align: center; margin: 20px 0;\""); 11835 11836 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11837 11838 WriteLiteralTo(__razor_helper_writer, " class=\"copyrightText\""); 11839 11840 WriteLiteralTo(__razor_helper_writer, ">\r\n &copy; "); 11841 11842 11843 #line 3704 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11844 WriteTo(__razor_helper_writer, DateTime.Now.Year); 11845 11846 11847 #line default 11848 #line hidden 11849 WriteLiteralTo(__razor_helper_writer, " "); 11850 11851 11852 #line 3704 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11853 WriteTo(__razor_helper_writer, copyrightMessage); 11854 11855 11856 #line default 11857 #line hidden 11858 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n </div>\r\n"); 11859 11860 11861 #line 3708 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11862 11863 11864 #line default 11865 #line hidden 11866 }); 11867 11868 #line 3708 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11869 } 11870 #line default 11871 #line hidden 11872 11873 11874 #line 3709 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11875 public RazorEngine.Templating.TemplateWriter RenderStepFlowCustom(int currentStep) 11876 { 11877 #line default 11878 #line hidden 11879 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11880 11881 #line 3710 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11882 11883 var firstStep = currentStep == 0 ? "active" : string.Empty; 11884 var secondStep = currentStep == 1 ? "active" : string.Empty; 11885 var thirdStep = currentStep == 2 ? "active" : string.Empty; 11886 var hideClass = firstStep.IsNullOrEmpty() && secondStep.IsNullOrEmpty() && thirdStep.IsNullOrEmpty() ? "hidden" : string.Empty; 11887 11888 11889 11890 #line default 11891 #line hidden 11892 WriteLiteralTo(__razor_helper_writer, " <ul"); 11893 11894 WriteLiteralTo(__razor_helper_writer, " id=\"stepsListCustom\""); 11895 11896 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11897 11898 WriteLiteralTo(__razor_helper_writer, " "); 11899 11900 11901 #line 3717 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11902 WriteTo(__razor_helper_writer, InternalRenderStepNumberCustom(Translate("STEP 1"), firstStep, hideClass, Translate("Customer Details"),"fa fa-user")); 11903 11904 11905 #line default 11906 #line hidden 11907 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11908 11909 WriteLiteralTo(__razor_helper_writer, " "); 11910 11911 11912 #line 3718 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11913 WriteTo(__razor_helper_writer, InternalRenderStepNumberCustom(Translate("STEP 2"), secondStep, hideClass, Translate("Choose Shipping & Payment"), "fa fa-truck fa-flip-horizontal")); 11914 11915 11916 #line default 11917 #line hidden 11918 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11919 11920 WriteLiteralTo(__razor_helper_writer, " "); 11921 11922 11923 #line 3719 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11924 WriteTo(__razor_helper_writer, InternalRenderStepNumberCustom(Translate("STEP 3"), thirdStep, hideClass, Translate("Payment"), "fa fa-dollar")); 11925 11926 11927 #line default 11928 #line hidden 11929 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n"); 11930 11931 11932 #line 3721 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11933 11934 11935 #line default 11936 #line hidden 11937 }); 11938 11939 #line 3721 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11940 } 11941 #line default 11942 #line hidden 11943 11944 11945 #line 3723 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11946 public RazorEngine.Templating.TemplateWriter RenderCurrenciesDropdown() 11947 { 11948 #line default 11949 #line hidden 11950 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11951 11952 #line 3724 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11953 11954 var currencies = GetLoop("Currencies"); 11955 var currentCurrency = currencies.FirstOrDefault(c => c.GetBoolean("Currency.IsCurrent")); 11956 var baseUrl = Helpers.GetCurrentUrl(); 11957 11958 11959 11960 #line default 11961 #line hidden 11962 WriteLiteralTo(__razor_helper_writer, " <div"); 11963 11964 WriteLiteralTo(__razor_helper_writer, " class=\"currencyContainer\""); 11965 11966 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul"); 11967 11968 WriteLiteralTo(__razor_helper_writer, " class=\"currencies\""); 11969 11970 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11971 11972 11973 #line 3731 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11974 11975 11976 #line default 11977 #line hidden 11978 11979 #line 3731 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11980 11981 if (currentCurrency != null) 11982 { 11983 baseUrl = baseUrl.Replace(string.Format("CurrencyCode={0}", currentCurrency.GetString("CurrencyCode")), string.Empty); 11984 baseUrl = baseUrl.EndsWith("?") | baseUrl.EndsWith("&") ? baseUrl.Remove(baseUrl.Length - 1) : baseUrl; 11985 11986 11987 #line default 11988 #line hidden 11989 11990 #line 3736 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11991 WriteTo(__razor_helper_writer, RenderCurrenciesDropdownOption(currentCurrency, baseUrl)); 11992 11993 11994 #line default 11995 #line hidden 11996 11997 #line 3736 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 11998 11999 } 12000 12001 12002 #line default 12003 #line hidden 12004 12005 #line 3741 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12006 12007 12008 12009 #line default 12010 #line hidden 12011 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n </div>\r\n"); 12012 12013 12014 #line 3745 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12015 12016 12017 #line default 12018 #line hidden 12019 }); 12020 12021 #line 3745 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12022 } 12023 #line default 12024 #line hidden 12025 12026 12027 #line 3747 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12028 public RazorEngine.Templating.TemplateWriter RenderCurrenciesDropdownOption(LoopItem currency, string baseUrl) 12029 { 12030 #line default 12031 #line hidden 12032 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12033 12034 #line 3748 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12035 12036 var currencyName = currency.GetString("CurrencyName").ToUpper(); 12037 var currencyUrl = string.Format("{0}{1}CurrencyCode={2}", baseUrl, baseUrl.Contains("?") ? "&amp;" : "?" , currency.GetString("CurrencyCode")); 12038 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() 12039 { 12040 Format = ImageFormat.Png 12041 }); 12042 12043 12044 12045 #line default 12046 #line hidden 12047 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 12048 12049 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0);\""); 12050 12051 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 12052 12053 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 161652), Tuple.Create("\"", 161671) 12054 12055 #line 3758 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12056 , Tuple.Create(Tuple.Create("", 161658), Tuple.Create<System.Object, System.Int32>(currencyFlag 12057 12058 #line default 12059 #line hidden 12060 , 161658), false) 12061 ); 12062 12063 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 161672), Tuple.Create("\"", 161691) 12064 12065 #line 3758 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12066 , Tuple.Create(Tuple.Create("", 161678), Tuple.Create<System.Object, System.Int32>(currencyName 12067 12068 #line default 12069 #line hidden 12070 , 161678), false) 12071 ); 12072 12073 WriteLiteralTo(__razor_helper_writer, "/>\r\n <span>"); 12074 12075 12076 #line 3759 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12077 WriteTo(__razor_helper_writer, currencyName); 12078 12079 12080 #line default 12081 #line hidden 12082 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </a>\r\n </li>\r\n"); 12083 12084 12085 #line 3762 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12086 12087 12088 #line default 12089 #line hidden 12090 }); 12091 12092 #line 3762 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12093 } 12094 #line default 12095 #line hidden 12096 12097 12098 #line 3764 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12099 public RazorEngine.Templating.TemplateWriter InternalRenderStepNumberCustom(string number, string stepCssClass, string hideCssClass, string text, string icon) { 12100 #line default 12101 #line hidden 12102 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12103 12104 #line 3764 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12105 12106 12107 12108 #line default 12109 #line hidden 12110 WriteLiteralTo(__razor_helper_writer, " <li"); 12111 12112 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 161926), Tuple.Create("\"", 161961) 12113 12114 #line 3765 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12115 , Tuple.Create(Tuple.Create("", 161934), Tuple.Create<System.Object, System.Int32>(stepCssClass 12116 12117 #line default 12118 #line hidden 12119 , 161934), false) 12120 12121 #line 3765 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12122 , Tuple.Create(Tuple.Create(" ", 161947), Tuple.Create<System.Object, System.Int32>(hideCssClass 12123 12124 #line default 12125 #line hidden 12126 , 161948), false) 12127 ); 12128 12129 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 12130 12131 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 161981), Tuple.Create("\"", 161996) 12132 12133 #line 3766 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12134 , Tuple.Create(Tuple.Create("", 161989), Tuple.Create<System.Object, System.Int32>(icon 12135 12136 #line default 12137 #line hidden 12138 , 161989), false) 12139 ); 12140 12141 WriteLiteralTo(__razor_helper_writer, "></div>\r\n <div"); 12142 12143 WriteLiteralTo(__razor_helper_writer, " class=\"stepName\""); 12144 12145 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12146 12147 WriteLiteralTo(__razor_helper_writer, " "); 12148 12149 12150 #line 3768 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12151 WriteTo(__razor_helper_writer, number); 12152 12153 12154 #line default 12155 #line hidden 12156 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 12157 12158 12159 #line 3769 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12160 WriteTo(__razor_helper_writer, text); 12161 12162 12163 #line default 12164 #line hidden 12165 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n <div"); 12166 12167 WriteLiteralTo(__razor_helper_writer, " id=\"checkoutMenuAngle\""); 12168 12169 WriteLiteralTo(__razor_helper_writer, "></div>\r\n </li>\r\n"); 12170 12171 12172 #line 3773 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12173 12174 12175 #line default 12176 #line hidden 12177 }); 12178 12179 #line 3773 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12180 } 12181 #line default 12182 #line hidden 12183 12184 12185 #line 3776 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12186 public RazorEngine.Templating.TemplateWriter RenderEmailHeaderCustom(string receiptUrl, string preHeader, bool showLinkToPage = true) 12187 { 12188 #line default 12189 #line hidden 12190 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12191 12192 #line 3777 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12193 12194 var companyName = Pageview != null ? Pageview.Area.Item["CompanyName"] : Translate("Company Name"); 12195 var websiteUrl = Pageview != null ? string.Concat(Helpers.GetCurrentUrl(true),"/Default.aspx?AreaId=", Pageview.Area.ID) : Helpers.GetCurrentUrl(true) ; 12196 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 12197 var fontSize = GetFontSize(14); 12198 var fontFamily = GetFontFamilyNumber(2); 12199 var fontColor = GetPalletColorNumber(1); 12200 var topImageUrl = string.Concat(Helpers.GetCurrentUrl(true), "/", Images.GetImage(string.Concat("/Files/Templates/Designs/", designName, "/images/newsletter/logo.png"), 300, 0)); 12201 12202 if (preHeader.IsNotNullOrEmpty()) 12203 { 12204 12205 12206 #line default 12207 #line hidden 12208 12209 #line 3788 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12210 WriteTo(__razor_helper_writer, SnippetStart("preHeader")); 12211 12212 12213 #line default 12214 #line hidden 12215 12216 #line 3788 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12217 12218 12219 12220 #line default 12221 #line hidden 12222 WriteLiteralTo(__razor_helper_writer, " <div"); 12223 12224 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 163238), Tuple.Create("\"", 163339) 12225 12226 #line 3789 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12227 , Tuple.Create(Tuple.Create("", 163246), Tuple.Create<System.Object, System.Int32>(fontSize 12228 12229 #line default 12230 #line hidden 12231 , 163246), false) 12232 12233 #line 3789 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12234 , Tuple.Create(Tuple.Create(" ", 163255), Tuple.Create<System.Object, System.Int32>(fontFamily 12235 12236 #line default 12237 #line hidden 12238 , 163256), false) 12239 , Tuple.Create(Tuple.Create(" ", 163267), Tuple.Create("text-decoration:none;", 163268), true) 12240 , Tuple.Create(Tuple.Create(" ", 163289), Tuple.Create("font-size:", 163290), true) 12241 , Tuple.Create(Tuple.Create(" ", 163300), Tuple.Create("1px;", 163301), true) 12242 , Tuple.Create(Tuple.Create(" ", 163305), Tuple.Create("color:", 163306), true) 12243 , Tuple.Create(Tuple.Create(" ", 163312), Tuple.Create("#ffffff;", 163313), true) 12244 , Tuple.Create(Tuple.Create(" ", 163321), Tuple.Create("line-height:", 163322), true) 12245 , Tuple.Create(Tuple.Create(" ", 163334), Tuple.Create("1px;", 163335), true) 12246 ); 12247 12248 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 12249 12250 WriteLiteralTo(__razor_helper_writer, " style=\"color: #ffffff; font-size: 1px;\""); 12251 12252 WriteLiteralTo(__razor_helper_writer, ">"); 12253 12254 12255 #line 3790 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12256 WriteTo(__razor_helper_writer, preHeader); 12257 12258 12259 #line default 12260 #line hidden 12261 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n"); 12262 12263 12264 #line 3792 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12265 12266 12267 #line default 12268 #line hidden 12269 12270 #line 3792 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12271 WriteTo(__razor_helper_writer, SnippetEnd("preHeader")); 12272 12273 12274 #line default 12275 #line hidden 12276 12277 #line 3792 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12278 12279 } 12280 12281 12282 12283 #line default 12284 #line hidden 12285 WriteLiteralTo(__razor_helper_writer, " <table"); 12286 12287 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12288 12289 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12290 12291 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12292 12293 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12294 12295 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12296 12297 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12298 12299 12300 #line 3796 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12301 12302 12303 #line default 12304 #line hidden 12305 12306 #line 3796 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12307 if (showLinkToPage && receiptUrl.IsNotNullOrEmpty()) 12308 { 12309 12310 12311 #line default 12312 #line hidden 12313 WriteLiteralTo(__razor_helper_writer, " <tr"); 12314 12315 WriteLiteralTo(__razor_helper_writer, " id=\"remove\""); 12316 12317 WriteLiteralTo(__razor_helper_writer, ">\r\n <td"); 12318 12319 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 163690), Tuple.Create("\"", 163759) 12320 12321 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12322 , Tuple.Create(Tuple.Create("", 163698), Tuple.Create<System.Object, System.Int32>(fontSize 12323 12324 #line default 12325 #line hidden 12326 , 163698), false) 12327 12328 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12329 , Tuple.Create(Tuple.Create(" ", 163707), Tuple.Create<System.Object, System.Int32>(fontFamily 12330 12331 #line default 12332 #line hidden 12333 , 163708), false) 12334 , Tuple.Create(Tuple.Create(" ", 163719), Tuple.Create("color:", 163720), true) 12335 12336 #line 3799 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12337 , Tuple.Create(Tuple.Create(" ", 163726), Tuple.Create<System.Object, System.Int32>(fontColor 12338 12339 #line default 12340 #line hidden 12341 , 163727), false) 12342 , Tuple.Create(Tuple.Create(" ", 163737), Tuple.Create("text-decoration:none;", 163738), true) 12343 ); 12344 12345 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12346 12347 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 12348 12349 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12350 12351 WriteLiteralTo(__razor_helper_writer, ">\r\n <br/>"); 12352 12353 12354 #line 3800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12355 WriteTo(__razor_helper_writer, Translate("If this email is not being shown properly, click")); 12356 12357 12358 #line default 12359 #line hidden 12360 WriteLiteralTo(__razor_helper_writer, " <a"); 12361 12362 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 163893), Tuple.Create("\"", 163967) 12363 12364 #line 3800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12365 , Tuple.Create(Tuple.Create("", 163901), Tuple.Create<System.Object, System.Int32>(fontSize 12366 12367 #line default 12368 #line hidden 12369 , 163901), false) 12370 12371 #line 3800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12372 , Tuple.Create(Tuple.Create(" ", 163910), Tuple.Create<System.Object, System.Int32>(fontFamily 12373 12374 #line default 12375 #line hidden 12376 , 163911), false) 12377 , Tuple.Create(Tuple.Create(" ", 163922), Tuple.Create("color:", 163923), true) 12378 12379 #line 3800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12380 , Tuple.Create(Tuple.Create(" ", 163929), Tuple.Create<System.Object, System.Int32>(fontColor 12381 12382 #line default 12383 #line hidden 12384 , 163930), false) 12385 , Tuple.Create(Tuple.Create(" ", 163940), Tuple.Create("text-decoration:underline;", 163941), true) 12386 ); 12387 12388 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 163968), Tuple.Create("\"", 163986) 12389 12390 #line 3800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12391 , Tuple.Create(Tuple.Create("", 163975), Tuple.Create<System.Object, System.Int32>(receiptUrl 12392 12393 #line default 12394 #line hidden 12395 , 163975), false) 12396 ); 12397 12398 WriteLiteralTo(__razor_helper_writer, ">"); 12399 12400 12401 #line 3800 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12402 WriteTo(__razor_helper_writer, Translate("here")); 12403 12404 12405 #line default 12406 #line hidden 12407 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </td>\r\n </tr>\r\n"); 12408 12409 12410 #line 3803 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12411 } 12412 12413 12414 #line default 12415 #line hidden 12416 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td>\r\n <div"); 12417 12418 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12419 12420 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 0 15px 0 15px;\""); 12421 12422 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12423 12424 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12425 12426 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12427 12428 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12429 12430 WriteLiteralTo(__razor_helper_writer, " width=\"700\""); 12431 12432 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 12433 12434 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n <td"); 12435 12436 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 20px 0 20px 0;\""); 12437 12438 WriteLiteralTo(__razor_helper_writer, " class=\"logo\""); 12439 12440 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12441 12442 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12443 12444 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12445 12446 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12447 12448 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12449 12450 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n " + 12451 " <td"); 12452 12453 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12454 12455 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 12456 12457 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 12458 12459 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 164643), Tuple.Create("\"", 164661) 12460 12461 #line 3813 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12462 , Tuple.Create(Tuple.Create("", 164650), Tuple.Create<System.Object, System.Int32>(websiteUrl 12463 12464 #line default 12465 #line hidden 12466 , 164650), false) 12467 ); 12468 12469 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 12470 12471 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 12472 12473 WriteLiteralTo(__razor_helper_writer, " style=\"max-width: 100%\""); 12474 12475 WriteLiteralTo(__razor_helper_writer, " class=\"img-max\""); 12476 12477 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 164773), Tuple.Create("\"", 164791) 12478 12479 #line 3814 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12480 , Tuple.Create(Tuple.Create("", 164779), Tuple.Create<System.Object, System.Int32>(topImageUrl 12481 12482 #line default 12483 #line hidden 12484 , 164779), false) 12485 ); 12486 12487 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 164792), Tuple.Create("\"", 164810) 12488 12489 #line 3814 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12490 , Tuple.Create(Tuple.Create("", 164798), Tuple.Create<System.Object, System.Int32>(companyName 12491 12492 #line default 12493 #line hidden 12494 , 164798), false) 12495 ); 12496 12497 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 164811), Tuple.Create("\"", 164831) 12498 12499 #line 3814 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12500 , Tuple.Create(Tuple.Create("", 164819), Tuple.Create<System.Object, System.Int32>(companyName 12501 12502 #line default 12503 #line hidden 12504 , 164819), false) 12505 ); 12506 12507 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n " + 12508 " </td>\r\n <td"); 12509 12510 WriteLiteralTo(__razor_helper_writer, " width=\"200\""); 12511 12512 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 12513 12514 WriteLiteralTo(__razor_helper_writer, " class=\"mobile-hide\""); 12515 12516 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12517 12518 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12519 12520 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12521 12522 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12523 12524 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n " + 12525 " <td"); 12526 12527 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 12528 12529 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 165244), Tuple.Create("\"", 165333) 12530 , Tuple.Create(Tuple.Create("", 165252), Tuple.Create("padding:", 165252), true) 12531 , Tuple.Create(Tuple.Create(" ", 165260), Tuple.Create("0", 165261), true) 12532 , Tuple.Create(Tuple.Create(" ", 165262), Tuple.Create("0", 165263), true) 12533 , Tuple.Create(Tuple.Create(" ", 165264), Tuple.Create("5px", 165265), true) 12534 , Tuple.Create(Tuple.Create(" ", 165268), Tuple.Create("0;", 165269), true) 12535 12536 #line 3820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12537 , Tuple.Create(Tuple.Create(" ", 165271), Tuple.Create<System.Object, System.Int32>(fontSize 12538 12539 #line default 12540 #line hidden 12541 , 165272), false) 12542 12543 #line 3820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12544 , Tuple.Create(Tuple.Create(" ", 165281), Tuple.Create<System.Object, System.Int32>(fontFamily 12545 12546 #line default 12547 #line hidden 12548 , 165282), false) 12549 , Tuple.Create(Tuple.Create(" ", 165293), Tuple.Create("color:", 165294), true) 12550 12551 #line 3820 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12552 , Tuple.Create(Tuple.Create(" ", 165300), Tuple.Create<System.Object, System.Int32>(fontColor 12553 12554 #line default 12555 #line hidden 12556 , 165301), false) 12557 , Tuple.Create(Tuple.Create(" ", 165311), Tuple.Create("text-decoration:none;", 165312), true) 12558 ); 12559 12560 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 12561 12562 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 165398), Tuple.Create("\"", 165445) 12563 , Tuple.Create(Tuple.Create("", 165406), Tuple.Create("color:", 165406), true) 12564 12565 #line 3821 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12566 , Tuple.Create(Tuple.Create(" ", 165412), Tuple.Create<System.Object, System.Int32>(fontColor 12567 12568 #line default 12569 #line hidden 12570 , 165413), false) 12571 , Tuple.Create(Tuple.Create(" ", 165423), Tuple.Create("text-decoration:none;", 165424), true) 12572 ); 12573 12574 WriteLiteralTo(__razor_helper_writer, @"></span> 12575 </td> 12576 </tr> 12577 </table> 12578 </td> 12579 </tr> 12580 </table> 12581 </td> 12582 </tr> 12583 </table> 12584 </div> 12585 </td> 12586 </tr> 12587 </table> 12588 "); 12589 12590 12591 #line 3835 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12592 12593 12594 #line default 12595 #line hidden 12596 }); 12597 12598 #line 3835 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12599 } 12600 #line default 12601 #line hidden 12602 12603 12604 #line 3837 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12605 public RazorEngine.Templating.TemplateWriter RenderEmailFooterCustom(bool renderEmailFooter = true, bool renderSocialMedia = true) 12606 { 12607 #line default 12608 #line hidden 12609 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12610 12611 #line 3838 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12612 12613 if (renderEmailFooter) 12614 { 12615 var copyrightMessage = Pageview != null ? string.Concat(Pageview.Area.Item["CompanyName"], " ", Pageview.Area.Item["Copyright"]) : string.Concat(Translate("Company Name"), " ", Translate("Inc. All rights reserved")); 12616 var companyName = Pageview.Area.Item["CompanyName"].ToString(); 12617 var backgroundColor = GetPalletColorNumber(); 12618 var fontSize = GetFontSize(12); 12619 var fontFamily = GetFontFamilyNumber(); 12620 var fontColor = GetPalletColorNumber(1); 12621 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})); 12622 12623 12624 12625 #line default 12626 #line hidden 12627 WriteLiteralTo(__razor_helper_writer, " <table"); 12628 12629 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12630 12631 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12632 12633 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12634 12635 WriteLiteralTo(__razor_helper_writer, " width=\"100%\""); 12636 12637 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n <td"); 12638 12639 WriteAttributeTo(__razor_helper_writer, "bgcolor", Tuple.Create(" bgcolor=\"", 166933), Tuple.Create("\"", 166959) 12640 12641 #line 3851 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12642 , Tuple.Create(Tuple.Create("", 166943), Tuple.Create<System.Object, System.Int32>(backgroundColor 12643 12644 #line default 12645 #line hidden 12646 , 166943), false) 12647 ); 12648 12649 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12650 12651 WriteLiteralTo(__razor_helper_writer, " style=\"padding: 20px 0;\""); 12652 12653 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12654 12655 WriteLiteralTo(__razor_helper_writer, " width=\"700\""); 12656 12657 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12658 12659 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12660 12661 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12662 12663 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12664 12665 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 12666 12667 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12668 12669 12670 #line 3853 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12671 12672 12673 #line default 12674 #line hidden 12675 12676 #line 3853 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12677 if (renderSocialMedia) 12678 { 12679 12680 12681 #line default 12682 #line hidden 12683 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 12684 12685 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12686 12687 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 167287), Tuple.Create("\"", 167353) 12688 12689 #line 3856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12690 , Tuple.Create(Tuple.Create("", 167295), Tuple.Create<System.Object, System.Int32>(fontSize 12691 12692 #line default 12693 #line hidden 12694 , 167295), false) 12695 , Tuple.Create(Tuple.Create(" ", 167304), Tuple.Create("line-height:", 167305), true) 12696 , Tuple.Create(Tuple.Create(" ", 167317), Tuple.Create("18px;", 167318), true) 12697 12698 #line 3856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12699 , Tuple.Create(Tuple.Create(" ", 167323), Tuple.Create<System.Object, System.Int32>(fontFamily 12700 12701 #line default 12702 #line hidden 12703 , 167324), false) 12704 , Tuple.Create(Tuple.Create(" ", 167335), Tuple.Create("color:", 167336), true) 12705 12706 #line 3856 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12707 , Tuple.Create(Tuple.Create(" ", 167342), Tuple.Create<System.Object, System.Int32>(fontColor 12708 12709 #line default 12710 #line hidden 12711 , 167343), false) 12712 ); 12713 12714 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12715 12716 WriteLiteralTo(__razor_helper_writer, " "); 12717 12718 12719 #line 3857 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12720 WriteTo(__razor_helper_writer, RenderSocialMedia(true)); 12721 12722 12723 #line default 12724 #line hidden 12725 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr>\r\n"); 12726 12727 WriteLiteralTo(__razor_helper_writer, " <tr><td"); 12728 12729 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 12730 12731 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</td></tr>\r\n"); 12732 12733 12734 #line 3861 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12735 } 12736 12737 12738 #line default 12739 #line hidden 12740 WriteLiteralTo(__razor_helper_writer, " <tr"); 12741 12742 WriteLiteralTo(__razor_helper_writer, " style=\"background-color: #005594\""); 12743 12744 WriteLiteralTo(__razor_helper_writer, ">\r\n <td"); 12745 12746 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 12747 12748 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 167694), Tuple.Create("\"", 167760) 12749 12750 #line 3863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12751 , Tuple.Create(Tuple.Create("", 167702), Tuple.Create<System.Object, System.Int32>(fontSize 12752 12753 #line default 12754 #line hidden 12755 , 167702), false) 12756 , Tuple.Create(Tuple.Create(" ", 167711), Tuple.Create("line-height:", 167712), true) 12757 , Tuple.Create(Tuple.Create(" ", 167724), Tuple.Create("18px;", 167725), true) 12758 12759 #line 3863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12760 , Tuple.Create(Tuple.Create(" ", 167730), Tuple.Create<System.Object, System.Int32>(fontFamily 12761 12762 #line default 12763 #line hidden 12764 , 167731), false) 12765 , Tuple.Create(Tuple.Create(" ", 167742), Tuple.Create("color:", 167743), true) 12766 12767 #line 3863 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12768 , Tuple.Create(Tuple.Create(" ", 167749), Tuple.Create<System.Object, System.Int32>(fontColor 12769 12770 #line default 12771 #line hidden 12772 , 167750), false) 12773 ); 12774 12775 WriteLiteralTo(__razor_helper_writer, ">\r\n <table"); 12776 12777 WriteLiteralTo(__razor_helper_writer, " width=\"700\""); 12778 12779 WriteLiteralTo(__razor_helper_writer, " border=\"0\""); 12780 12781 WriteLiteralTo(__razor_helper_writer, " cellspacing=\"0\""); 12782 12783 WriteLiteralTo(__razor_helper_writer, " cellpadding=\"0\""); 12784 12785 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12786 12787 WriteLiteralTo(__razor_helper_writer, " class=\"responsive-table\""); 12788 12789 WriteLiteralTo(__razor_helper_writer, ">\r\n <tbody>\r\n " + 12790 " <tr>\r\n <td"); 12791 12792 WriteLiteralTo(__razor_helper_writer, " height=\"20\""); 12793 12794 WriteLiteralTo(__razor_helper_writer, "></td>\r\n </tr>\r\n " + 12795 " <tr>\r\n <td"); 12796 12797 WriteLiteralTo(__razor_helper_writer, " align=\"center\""); 12798 12799 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 12800 12801 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 168244), Tuple.Create("\"", 168265) 12802 12803 #line 3871 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12804 , Tuple.Create(Tuple.Create("", 168250), Tuple.Create<System.Object, System.Int32>(footerImageUrl 12805 12806 #line default 12807 #line hidden 12808 , 168250), false) 12809 ); 12810 12811 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 168266), Tuple.Create("\"", 168284) 12812 12813 #line 3871 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12814 , Tuple.Create(Tuple.Create("", 168272), Tuple.Create<System.Object, System.Int32>(companyName 12815 12816 #line default 12817 #line hidden 12818 , 168272), false) 12819 ); 12820 12821 WriteLiteralTo(__razor_helper_writer, "/>\r\n </td>\r\n " + 12822 " </tr>\r\n <tr>\r\n " + 12823 " <td>\r\n"); 12824 12825 WriteLiteralTo(__razor_helper_writer, " "); 12826 12827 12828 #line 3876 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12829 WriteTo(__razor_helper_writer, RenderCopyrightEmailOrder()); 12830 12831 12832 #line default 12833 #line hidden 12834 WriteLiteralTo(__razor_helper_writer, @" 12835 </td> 12836 </tr> 12837 </tbody> 12838 </table> 12839 </td> 12840 </tr> 12841 </table> 12842 </td> 12843 </tr> 12844 </table> 12845 "); 12846 12847 12848 #line 3887 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12849 } 12850 12851 12852 #line default 12853 #line hidden 12854 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.getElementById(\"remove\").style.display = \"none\";\r\n" + 12855 " document.getElementById(\"remove2\").style.display = \"none\";\r\n </script" + 12856 ">\r\n"); 12857 12858 12859 #line 3892 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12860 12861 12862 #line default 12863 #line hidden 12864 }); 12865 12866 #line 3892 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12867 } 12868 #line default 12869 #line hidden 12870 12871 12872 #line 3896 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12873 12874 12875 public string GetUnitIdLabel(string productUnitId, string productLanguage) 12876 { 12877 var variantService = new Dynamicweb.Ecommerce.VariantOptionService(); 12878 var defaultUnit = variantService.GetVariantOption(productUnitId,productLanguage); 12879 12880 return defaultUnit==null ? string.Empty : defaultUnit.Name; 12881 } 12882 12883 12884 #line default 12885 #line hidden 12886 12887 12888 #line 3908 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12889 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) 12890 { 12891 #line default 12892 #line hidden 12893 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 12894 12895 #line 3909 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12896 12897 var unitIdName = GetUnitIdLabel(productUnitId, productLanguage); 12898 if (unitIdName.IsNullOrEmpty()) 12899 { 12900 return; 12901 } 12902 12903 var amountPerUnit = string.Empty; 12904 if (qtyBaseUnitMeasurePerUnits.IsNotNullOrEmpty() && salesUnitOfMeasure.IsNotNullOrEmpty() /*&& salesUnitOfMeasure != "ea"*/) 12905 { 12906 amountPerUnit = qtyBaseUnitMeasurePerUnits=="1" && salesUnitOfMeasure == "ea" ? Translate("Each") : qtyBaseUnitMeasurePerUnits=="1" && salesUnitOfMeasure != "ea" ? unitIdName : string.Format(" {0} {1} {2} ", unitIdName, Translate("of"), qtyBaseUnitMeasurePerUnits); 12907 } 12908 12909 12910 #line default 12911 #line hidden 12912 WriteLiteralTo(__razor_helper_writer, " <div"); 12913 12914 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 170440), Tuple.Create("\"", 170457) 12915 12916 #line 3921 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12917 , Tuple.Create(Tuple.Create("", 170448), Tuple.Create<System.Object, System.Int32>(cssClass 12918 12919 #line default 12920 #line hidden 12921 , 170448), false) 12922 ); 12923 12924 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 12925 12926 12927 #line 3922 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12928 12929 12930 #line default 12931 #line hidden 12932 12933 #line 3922 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12934 if(showLabelYP && amountPerUnit.IsNotNullOrEmpty()) 12935 { 12936 12937 12938 #line default 12939 #line hidden 12940 WriteLiteralTo(__razor_helper_writer, " <div"); 12941 12942 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 170559), Tuple.Create("\"", 170586) 12943 12944 #line 3924 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12945 , Tuple.Create(Tuple.Create("", 170567), Tuple.Create<System.Object, System.Int32>(salesUnitOfMeasure 12946 12947 #line default 12948 #line hidden 12949 , 170567), false) 12950 ); 12951 12952 WriteLiteralTo(__razor_helper_writer, "><strong>"); 12953 12954 12955 #line 3924 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12956 WriteTo(__razor_helper_writer, Translate("Your Price")); 12957 12958 12959 #line default 12960 #line hidden 12961 WriteLiteralTo(__razor_helper_writer, "</strong> <span>"); 12962 12963 12964 #line 3924 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12965 WriteTo(__razor_helper_writer, amountPerUnit); 12966 12967 12968 #line default 12969 #line hidden 12970 WriteLiteralTo(__razor_helper_writer, "</span></div>\r\n"); 12971 12972 12973 #line 3925 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12974 } 12975 else 12976 { 12977 12978 12979 #line default 12980 #line hidden 12981 12982 #line 3928 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12983 WriteTo(__razor_helper_writer, amountPerUnit); 12984 12985 12986 #line default 12987 #line hidden 12988 12989 #line 3928 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12990 12991 } 12992 12993 #line default 12994 #line hidden 12995 WriteLiteralTo(__razor_helper_writer, "\r\n"); 12996 12997 12998 #line 3930 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 12999 13000 13001 #line default 13002 #line hidden 13003 13004 #line 3930 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13005 if(addProductPriceContainer){ 13006 13007 13008 #line default 13009 #line hidden 13010 WriteLiteralTo(__razor_helper_writer, " <strong"); 13011 13012 WriteLiteralTo(__razor_helper_writer, " class=\"product-price\""); 13013 13014 WriteLiteralTo(__razor_helper_writer, "></strong>\r\n"); 13015 13016 13017 #line 3932 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13018 } 13019 13020 #line default 13021 #line hidden 13022 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 13023 13024 13025 #line 3934 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13026 13027 13028 #line default 13029 #line hidden 13030 }); 13031 13032 #line 3934 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13033 } 13034 #line default 13035 #line hidden 13036 13037 13038 #line 3936 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13039 public RazorEngine.Templating.TemplateWriter RenderTarrif(string insertType = "", string cssClass = "col-xs-12 row") 13040 { 13041 #line default 13042 #line hidden 13043 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 13044 13045 #line 3937 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13046 13047 13048 var outputTarrif = string.Empty; 13049 switch (insertType) 13050 { 13051 case "B" : 13052 outputTarrif = "Price does not include any tariff surcharge that your Company has agreed to. Tariff surcharge will appear on final invoice."; 13053 break; 13054 case "C" : 13055 outputTarrif = "Above prices do not include any applicable tariff surcharges that your Company has agreed to. Tariff surcharges will appear on final invoice."; 13056 break; 13057 case "D": 13058 outputTarrif = "Prices do not include any applicable tariff surcharges that your Company has agreed to."; 13059 break; 13060 case "E": 13061 outputTarrif = "Prices do not include any applicable tariff surcharges that your Company has agreed to. Tariff surcharges will appear on final invoice."; 13062 break; 13063 case "A" : 13064 default: 13065 outputTarrif = "Price does not include any tariff surcharge that your Company has agreed to."; 13066 break; 13067 } 13068 13069 13070 #line default 13071 #line hidden 13072 WriteLiteralTo(__razor_helper_writer, " <div"); 13073 13074 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 172106), Tuple.Create("\"", 172123) 13075 13076 #line 3959 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13077 , Tuple.Create(Tuple.Create("", 172114), Tuple.Create<System.Object, System.Int32>(cssClass 13078 13079 #line default 13080 #line hidden 13081 , 172114), false) 13082 ); 13083 13084 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 13085 13086 WriteLiteralTo(__razor_helper_writer, " "); 13087 13088 13089 #line 3960 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13090 WriteTo(__razor_helper_writer, Translate(outputTarrif)); 13091 13092 13093 #line default 13094 #line hidden 13095 WriteLiteralTo(__razor_helper_writer, "\r\n </div> \r\n"); 13096 13097 13098 #line 3962 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13099 13100 13101 #line default 13102 #line hidden 13103 }); 13104 13105 #line 3962 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13106 } 13107 #line default 13108 #line hidden 13109 13110 13111 public RazorEngine_2856db71b775493c8c7ca433dfef5294() { 13112 } 13113 13114 public override void Execute() { 13115 13116 #line 205 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13117 13118 13119 13120 13121 #line default 13122 #line hidden 13123 13124 #line 343 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13125 13126 13127 13128 13129 #line default 13130 #line hidden 13131 13132 #line 411 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13133 13134 13135 13136 13137 #line default 13138 #line hidden 13139 13140 #line 438 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13141 13142 13143 13144 13145 #line default 13146 #line hidden 13147 13148 #line 450 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13149 13150 13151 13152 13153 #line default 13154 #line hidden 13155 13156 #line 478 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13157 13158 13159 13160 13161 #line default 13162 #line hidden 13163 13164 #line 496 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13165 13166 13167 13168 #line default 13169 #line hidden 13170 WriteLiteral("\r\n"); 13171 13172 13173 #line 538 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13174 13175 13176 13177 13178 #line default 13179 #line hidden 13180 13181 #line 545 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13182 13183 13184 13185 13186 #line default 13187 #line hidden 13188 13189 #line 557 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13190 13191 13192 13193 13194 #line default 13195 #line hidden 13196 13197 #line 591 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13198 13199 13200 13201 13202 #line default 13203 #line hidden 13204 13205 #line 720 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13206 13207 13208 13209 13210 #line default 13211 #line hidden 13212 13213 #line 726 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13214 13215 13216 13217 13218 #line default 13219 #line hidden 13220 13221 #line 783 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13222 13223 13224 13225 13226 #line default 13227 #line hidden 13228 13229 #line 894 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13230 13231 13232 13233 13234 #line default 13235 #line hidden 13236 13237 #line 918 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13238 13239 13240 13241 13242 #line default 13243 #line hidden 13244 13245 #line 954 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13246 13247 13248 13249 13250 13251 #line default 13252 #line hidden 13253 13254 #line 976 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13255 13256 13257 13258 13259 #line default 13260 #line hidden 13261 13262 #line 1018 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13263 13264 13265 13266 13267 #line default 13268 #line hidden 13269 13270 #line 1038 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13271 13272 13273 13274 #line default 13275 #line hidden 13276 13277 #line 1435 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13278 13279 13280 13281 13282 #line default 13283 #line hidden 13284 13285 #line 1437 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13286 13287 13288 13289 #line default 13290 #line hidden 13291 13292 #line 1445 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13293 13294 13295 13296 13297 13298 #line default 13299 #line hidden 13300 13301 #line 1448 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13302 13303 13304 13305 #line default 13306 #line hidden 13307 13308 #line 1462 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13309 13310 13311 13312 13313 #line default 13314 #line hidden 13315 13316 #line 1472 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13317 13318 13319 13320 13321 #line default 13322 #line hidden 13323 13324 #line 1484 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13325 13326 13327 13328 13329 #line default 13330 #line hidden 13331 13332 #line 1493 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13333 13334 13335 13336 13337 #line default 13338 #line hidden 13339 13340 #line 1500 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13341 13342 13343 13344 13345 13346 #line default 13347 #line hidden 13348 13349 #line 1503 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13350 13351 13352 13353 #line default 13354 #line hidden 13355 13356 #line 1507 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13357 13358 13359 13360 13361 #line default 13362 #line hidden 13363 13364 #line 1512 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13365 13366 13367 13368 13369 #line default 13370 #line hidden 13371 13372 #line 1565 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13373 13374 13375 13376 13377 #line default 13378 #line hidden 13379 13380 #line 1595 "c:\Domains\Sites\componenthardware.com\Files\Templates\Designs\CHG\eCom\Order\OrderDetailsEmail.cshtml" 13381 13382 13383 13384