Welcome to Fashion!
Error compiling template "/Designs/Bhg/ContentPage/Paragraph/Add_on_details.cshtml" Line 72: 'RazorTemplateModel' does not contain a definition for 'ID' and no accessible extension method 'ID' accepting a first argument of type 'RazorTemplateModel' could be found (are you missing a using directive or an assembly reference?)
1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 using System; 13 using System.Collections.Generic; 14 using System.Linq; 15 16 #line 1 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 17 using BHGSource.Models; 18 19 #line default 20 #line hidden 21 22 #line 2 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 23 using Dynamicweb.Frontend; 24 25 #line default 26 #line hidden 27 28 29 public class RazorEngine_534543c1b90a4aa4b3737aa1fb873c3f : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 30 31 #line hidden 32 33 public RazorEngine_534543c1b90a4aa4b3737aa1fb873c3f() { 34 } 35 36 public override void Execute() { 37 38 #line 3 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 39 string gtmid = ""; string fbpixelid = ""; BHGSource.Service.Helpers helpers = new BHGSource.Service.Helpers(); gtmid = helpers.GetGTMKey(); fbpixelid = helpers.GetFBPixelKey(); string discountId = ""; string page = ""; discountId = System.Web.HttpContext.Current.Request.QueryString["discountid"].ToString(); page = System.Web.HttpContext.Current.Request.QueryString["page"].ToString(); BHGSource.Service.DiscountService discountService = new BHGSource.Service.DiscountService(); AddOnDealInfoList addOnDealInfoList = new AddOnDealInfoList(); addOnDealInfoList = discountService.ReturnAllAddOnDealProducts(discountId, page); string pagingurl = "/add-on-deals?discountid=" + addOnDealInfoList.addOnDealInfo[0].discountId + "&page=pagid"; PageView pageView = PageView.GetPageviewByPageID(0); string addOnDealText = pageView.AreaSettings.GetString("Add_On_Deal_Text") != null ? pageView.AreaSettings.GetString("Add_On_Deal_Text") : ""; 40 41 #line default 42 #line hidden 43 WriteLiteral("\n<link"); 44 45 WriteLiteral(" href=\"/Files/Templates/Designs/Bhg/css/CustomerCenter/myaccount.css\""); 46 47 WriteLiteral(" rel=\"stylesheet\""); 48 49 WriteLiteral(" />\n<div"); 50 51 WriteAttribute("id", Tuple.Create(" id=\"", 1150), Tuple.Create("\"", 1166) 52 53 #line 23 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 54 , Tuple.Create(Tuple.Create("", 1155), Tuple.Create<System.Object, System.Int32>(Model.ID 55 56 #line default 57 #line hidden 58 , 1155), false) 59 ); 60 61 WriteLiteral(" style=\"scroll-margin-top: 150px\""); 62 63 WriteLiteral("></div>\n<div"); 64 65 WriteLiteral(" id=\"individual-product-add-on-details\""); 66 67 WriteLiteral(" class=\"main-container type-b\""); 68 69 WriteLiteral(">\n <div"); 70 71 WriteLiteral(" class=\"wrapper-1364\""); 72 73 WriteLiteral(">\n\n <div"); 74 75 WriteLiteral(" id=\"\""); 76 77 WriteLiteral(" class=\"individual-product-add-on-details-section box box-416\""); 78 79 WriteLiteral(">\n <h2"); 80 81 WriteLiteral(" class=\"section-title\""); 82 83 WriteLiteral(">Add-On Details</h2>\n <div"); 84 85 WriteLiteral(" class=\"addon-deal-heading\""); 86 87 WriteLiteral(">\n <p>"); 88 89 90 #line 30 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 91 Write(addOnDealText); 92 93 94 #line default 95 #line hidden 96 WriteLiteral("</p>\n <p"); 97 98 WriteLiteral(" class=\"addon-deal-discount\""); 99 100 WriteLiteral(">"); 101 102 103 #line 31 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 104 Write(addOnDealInfoList.addOnDealInfo[0].discountName); 105 106 107 #line default 108 #line hidden 109 WriteLiteral("</p>\n </div>\n"); 110 111 112 #line 33 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 113 114 115 #line default 116 #line hidden 117 118 #line 33 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 119 120 121 #line default 122 #line hidden 123 WriteLiteral(" <div"); 124 125 WriteLiteral(" class=\"add-on__mobile-container\""); 126 127 WriteLiteral(">\n"); 128 129 130 #line 35 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 131 132 133 #line default 134 #line hidden 135 136 #line 35 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 137 foreach (var addOnDealProduct in addOnDealInfoList.addOnDealInfo) { 138 139 #line default 140 #line hidden 141 WriteLiteral(" <div"); 142 143 WriteLiteral(" class=\"add-on__mobile\""); 144 145 WriteLiteral(">\n <div>\n <div"); 146 147 WriteLiteral(" class=\"add-on__imgdiv\""); 148 149 WriteLiteral(">\n <img"); 150 151 WriteLiteral(" class=\"add-on__productimage\""); 152 153 WriteAttribute("src", Tuple.Create(" src=\"", 2053), Tuple.Create("\"", 2082) 154 155 #line 40 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 156 , Tuple.Create(Tuple.Create("", 2059), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.image 157 158 #line default 159 #line hidden 160 , 2059), false) 161 ); 162 163 WriteLiteral(" />\n </div>\n </div>\n " + 164 " <div"); 165 166 WriteLiteral(" class=\"add-on-detaildiv\""); 167 168 WriteLiteral(">\n <div>\n <div"); 169 170 WriteLiteral(" class=\"add-on-probrand\""); 171 172 WriteLiteral(">"); 173 174 175 #line 45 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 176 Write(addOnDealProduct.brand); 177 178 179 #line default 180 #line hidden 181 WriteLiteral("</div>\n <div"); 182 183 WriteLiteral(" class=\"add-on-prodesc\""); 184 185 WriteLiteral(">"); 186 187 188 #line 46 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 189 Write(addOnDealProduct.name); 190 191 192 #line default 193 #line hidden 194 WriteLiteral("</div>\n <div"); 195 196 WriteLiteral(" class=\"add-on__price-mobile\""); 197 198 WriteLiteral(">\n"); 199 200 201 #line 48 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 202 203 204 #line default 205 #line hidden 206 207 #line 48 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 208 if (addOnDealProduct.price == addOnDealProduct.priceDiscount) { 209 210 #line default 211 #line hidden 212 WriteLiteral(" <div"); 213 214 WriteLiteral(" class=\"add-on__discountprice\""); 215 216 WriteLiteral(">"); 217 218 219 #line 50 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 220 Write(addOnDealProduct.price); 221 222 223 #line default 224 #line hidden 225 WriteLiteral("</div>\n"); 226 227 228 #line 51 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 229 } else { 230 231 #line default 232 #line hidden 233 WriteLiteral(" <div"); 234 235 WriteLiteral(" class=\"add-on__discountprice\""); 236 237 WriteLiteral(">"); 238 239 240 #line 54 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 241 Write(addOnDealProduct.priceDiscount); 242 243 244 #line default 245 #line hidden 246 WriteLiteral("</div>\n"); 247 248 WriteLiteral(" <div"); 249 250 WriteLiteral(" class=\"add-on__price\""); 251 252 WriteLiteral(">"); 253 254 255 #line 55 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 256 Write(addOnDealProduct.price); 257 258 259 #line default 260 #line hidden 261 WriteLiteral("</div>\n"); 262 263 264 #line 56 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 265 } 266 267 #line default 268 #line hidden 269 WriteLiteral(" </div>\n"); 270 271 272 #line 58 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 273 274 275 #line default 276 #line hidden 277 278 #line 58 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 279 if (addOnDealProduct.size != "" && addOnDealProduct.size != null) { 280 281 #line default 282 #line hidden 283 WriteLiteral(" <div"); 284 285 WriteLiteral(" class=\"addon-variant-div\""); 286 287 WriteLiteral(">\n <div"); 288 289 WriteLiteral(" class=\"addon-variant-name\""); 290 291 WriteLiteral(">\n Size:\n " + 292 " </div>\n <div"); 293 294 WriteLiteral(" class=\"addon-variant-value\""); 295 296 WriteLiteral(">\n"); 297 298 WriteLiteral(" "); 299 300 301 #line 65 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 302 Write(addOnDealProduct.size); 303 304 305 #line default 306 #line hidden 307 WriteLiteral("\n </div>\n " + 308 " </div>\n"); 309 310 311 #line 68 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 312 } 313 314 #line default 315 #line hidden 316 WriteLiteral(" "); 317 318 319 #line 69 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 320 if (addOnDealProduct.color != "" && addOnDealProduct.color != null) { 321 322 #line default 323 #line hidden 324 WriteLiteral(" <div"); 325 326 WriteLiteral(" class=\"addon-variant-div\""); 327 328 WriteLiteral(">\n <div"); 329 330 WriteLiteral(" class=\"addon-variant-name\""); 331 332 WriteLiteral(">\n Color:\n " + 333 " </div>\n <div"); 334 335 WriteLiteral(" class=\"addon-variant-value\""); 336 337 WriteLiteral(">\n <span"); 338 339 WriteLiteral(" class=\"color-box\""); 340 341 WriteAttribute("style", Tuple.Create(" style=\"", 4430), Tuple.Create("\"", 4484) 342 , Tuple.Create(Tuple.Create("", 4438), Tuple.Create("background-color:", 4438), true) 343 344 #line 76 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 345 , Tuple.Create(Tuple.Create(" ", 4455), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.colorCode 346 347 #line default 348 #line hidden 349 , 4456), false) 350 , Tuple.Create(Tuple.Create("", 4483), Tuple.Create(";", 4483), true) 351 ); 352 353 WriteLiteral("></span> <span>"); 354 355 356 #line 76 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 357 Write(addOnDealProduct.color); 358 359 360 #line default 361 #line hidden 362 WriteLiteral("</span>\n </div>\n " + 363 " </div>\n"); 364 365 366 #line 79 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 367 } 368 369 #line default 370 #line hidden 371 WriteLiteral(" <div"); 372 373 WriteLiteral(" class=\"add-on__addcartdiv\""); 374 375 WriteLiteral(">\n <div"); 376 377 WriteLiteral(" class=\"add-on__qty add-on__productdetail\""); 378 379 WriteLiteral(">\n <button"); 380 381 WriteLiteral(" class=\"add-on__countbtn minus\""); 382 383 WriteLiteral(" type=\"button\""); 384 385 WriteLiteral(" tabindex=\"0\""); 386 387 WriteLiteral(">\n <img"); 388 389 WriteLiteral(" src=\"/Files/Templates/Designs/Bhg/media/icons/quantity-minus.png\""); 390 391 WriteLiteral(" alt=\"Minus\""); 392 393 WriteLiteral(">\n </button>\n " + 394 " <input"); 395 396 WriteAttribute("id", Tuple.Create(" id=\"", 5171), Tuple.Create("\"", 5210) 397 , Tuple.Create(Tuple.Create("", 5176), Tuple.Create("prodId_", 5176), true) 398 399 #line 85 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 400 , Tuple.Create(Tuple.Create("", 5183), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 401 402 #line default 403 #line hidden 404 , 5183), false) 405 ); 406 407 WriteLiteral(" type=\"text\""); 408 409 WriteLiteral(" value=\"1\""); 410 411 WriteLiteral(" tabindex=\"0\""); 412 413 WriteLiteral(" class=\"add-on__countval\""); 414 415 WriteLiteral(">\n <button"); 416 417 WriteLiteral(" class=\"add-on__countbtn plus\""); 418 419 WriteLiteral(" type=\"button\""); 420 421 WriteLiteral(" tabindex=\"0\""); 422 423 WriteLiteral(">\n <img"); 424 425 WriteLiteral(" src=\"/Files/Templates/Designs/Bhg/media/icons/quantity-plus.png\""); 426 427 WriteLiteral(" alt=\"Plus\""); 428 429 WriteLiteral(">\n </button>\n " + 430 " </div>\n"); 431 432 433 #line 90 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 434 435 436 #line default 437 #line hidden 438 439 #line 90 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 440 if (addOnDealProduct.hideAddToCartButton) { 441 442 #line default 443 #line hidden 444 WriteLiteral(" <div"); 445 446 WriteLiteral(" class=\"addon-product-addcart\""); 447 448 WriteLiteral(">\n <button"); 449 450 WriteAttribute("onclick", Tuple.Create(" onclick=\"", 5874), Tuple.Create("\"", 5925) 451 , Tuple.Create(Tuple.Create("", 5884), Tuple.Create("location.href", 5884), true) 452 , Tuple.Create(Tuple.Create(" ", 5897), Tuple.Create("=", 5898), true) 453 , Tuple.Create(Tuple.Create(" ", 5899), Tuple.Create("\'", 5900), true) 454 455 #line 93 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 456 , Tuple.Create(Tuple.Create("", 5901), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.link 457 458 #line default 459 #line hidden 460 , 5901), false) 461 , Tuple.Create(Tuple.Create("", 5923), Tuple.Create("\';", 5923), true) 462 ); 463 464 WriteLiteral(" class=\"btn add-to-cart add-on__addcart\""); 465 466 WriteLiteral(">Add to Cart</button>\n </div>\n"); 467 468 469 #line 95 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 470 } else { 471 472 #line default 473 #line hidden 474 WriteLiteral(" <div"); 475 476 WriteLiteral(" class=\"addon-product-addcart\""); 477 478 WriteLiteral(">\n <button"); 479 480 WriteAttribute("onclick", Tuple.Create(" onclick=\"", 6303), Tuple.Create("\"", 6625) 481 , Tuple.Create(Tuple.Create("", 6313), Tuple.Create("AddToCart(\'", 6313), true) 482 483 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 484 , Tuple.Create(Tuple.Create("", 6324), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 485 486 #line default 487 #line hidden 488 , 6324), false) 489 , Tuple.Create(Tuple.Create("", 6351), Tuple.Create("\',", 6351), true) 490 , Tuple.Create(Tuple.Create(" ", 6353), Tuple.Create("\'", 6354), true) 491 492 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 493 , Tuple.Create(Tuple.Create("", 6355), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.variantId 494 495 #line default 496 #line hidden 497 , 6355), false) 498 , Tuple.Create(Tuple.Create("", 6382), Tuple.Create("\',", 6382), true) 499 , Tuple.Create(Tuple.Create(" ", 6384), Tuple.Create("document.getElementById(\'prodId_", 6385), true) 500 501 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 502 , Tuple.Create(Tuple.Create("", 6417), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 503 504 #line default 505 #line hidden 506 , 6417), false) 507 , Tuple.Create(Tuple.Create("", 6444), Tuple.Create("\').value,", 6444), true) 508 , Tuple.Create(Tuple.Create(" ", 6453), Tuple.Create("\'", 6454), true) 509 510 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 511 , Tuple.Create(Tuple.Create("", 6455), Tuple.Create<System.Object, System.Int32>(gtmid 512 513 #line default 514 #line hidden 515 , 6455), false) 516 , Tuple.Create(Tuple.Create("", 6461), Tuple.Create("\',", 6461), true) 517 , Tuple.Create(Tuple.Create(" ", 6463), Tuple.Create("\'", 6464), true) 518 519 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 520 , Tuple.Create(Tuple.Create("", 6465), Tuple.Create<System.Object, System.Int32>(fbpixelid 521 522 #line default 523 #line hidden 524 , 6465), false) 525 , Tuple.Create(Tuple.Create("", 6475), Tuple.Create("\',", 6475), true) 526 , Tuple.Create(Tuple.Create(" ", 6477), Tuple.Create("\'", 6478), true) 527 528 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 529 , Tuple.Create(Tuple.Create("", 6479), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.name.Replace("'","") 530 531 #line default 532 #line hidden 533 , 6479), false) 534 , Tuple.Create(Tuple.Create("", 6517), Tuple.Create("\',", 6517), true) 535 , Tuple.Create(Tuple.Create(" ", 6519), Tuple.Create("\'", 6520), true) 536 537 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 538 , Tuple.Create(Tuple.Create("", 6521), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.brand.Replace("'","") 539 540 #line default 541 #line hidden 542 , 6521), false) 543 , Tuple.Create(Tuple.Create("", 6560), Tuple.Create("\',", 6560), true) 544 , Tuple.Create(Tuple.Create(" ", 6562), Tuple.Create("\'", 6563), true) 545 546 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 547 , Tuple.Create(Tuple.Create("", 6564), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.currency 548 549 #line default 550 #line hidden 551 , 6564), false) 552 , Tuple.Create(Tuple.Create("", 6590), Tuple.Create("\',", 6590), true) 553 , Tuple.Create(Tuple.Create(" ", 6592), Tuple.Create("\'", 6593), true) 554 555 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 556 , Tuple.Create(Tuple.Create("", 6594), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.priceDouble 557 558 #line default 559 #line hidden 560 , 6594), false) 561 , Tuple.Create(Tuple.Create("", 6623), Tuple.Create("\')", 6623), true) 562 ); 563 564 WriteLiteral(" class=\"btn add-to-cart add-on__addcart\""); 565 566 WriteLiteral(">Add to Cart</button>\n </div>\n"); 567 568 569 #line 101 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 570 } 571 572 #line default 573 #line hidden 574 WriteLiteral(" </div>\n </div>" + 575 "\n </div>\n </div>\n"); 576 577 578 #line 106 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 579 } 580 581 #line default 582 #line hidden 583 WriteLiteral(" </div>\n"); 584 585 586 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 587 588 589 #line default 590 #line hidden 591 WriteLiteral("\n\n\n <div>\n <ul"); 592 593 WriteLiteral(" class=\"bhg-orderlist_pager__list add-on-deals_pagelist\""); 594 595 WriteLiteral(">\n"); 596 597 598 #line 113 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 599 600 601 #line default 602 #line hidden 603 604 #line 113 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 605 if (addOnDealInfoList.pager.CurrentPage > 1) { 606 607 #line default 608 #line hidden 609 WriteLiteral(" <li"); 610 611 WriteLiteral(" class=\"bhg-orderlist_pager__btn bhg-pagenumber\""); 612 613 WriteLiteral(">\n <a"); 614 615 WriteLiteral(" class=\"pager__num\""); 616 617 WriteAttribute("href", Tuple.Create(" href=\"", 7299), Tuple.Create("\"", 7387) 618 619 #line 116 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 620 , Tuple.Create(Tuple.Create("", 7306), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage - 1).ToString()) 621 622 #line default 623 #line hidden 624 , 7306), false) 625 ); 626 627 WriteLiteral(">\n <i"); 628 629 WriteLiteral(" class=\"fas fa-angle-left addon-page-arrow\""); 630 631 WriteLiteral("></i>\n </a>\n </li>\n"); 632 633 634 #line 120 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 635 } 636 637 #line default 638 #line hidden 639 WriteLiteral("\n"); 640 641 642 #line 122 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 643 644 645 #line default 646 #line hidden 647 648 #line 122 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 649 if (addOnDealInfoList.pager.Pages != null) { foreach (var p in addOnDealInfoList.pager.Pages) { 650 651 #line default 652 #line hidden 653 WriteLiteral(" <li"); 654 655 WriteAttribute("class", Tuple.Create(" class=\"", 7775), Tuple.Create("\"", 7882) 656 , Tuple.Create(Tuple.Create("", 7783), Tuple.Create("bhg-orderlist_pager__btn", 7783), true) 657 , Tuple.Create(Tuple.Create(" ", 7807), Tuple.Create("bhg-pagenumber", 7808), true) 658 659 #line 126 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 660 , Tuple.Create(Tuple.Create(" ", 7822), Tuple.Create<System.Object, System.Int32>(p == addOnDealInfoList.pager.CurrentPage ? "active" : "" 661 662 #line default 663 #line hidden 664 , 7823), false) 665 ); 666 667 WriteLiteral(">\n <a"); 668 669 WriteLiteral(" class=\"pager__num add-on-pageno\""); 670 671 WriteAttribute("href", Tuple.Create(" href=\"", 7952), Tuple.Create("\"", 8000) 672 673 #line 127 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 674 , Tuple.Create(Tuple.Create("", 7959), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", p.ToString()) 675 676 #line default 677 #line hidden 678 , 7959), false) 679 ); 680 681 WriteLiteral(">"); 682 683 684 #line 127 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 685 Write(p); 686 687 688 #line default 689 #line hidden 690 WriteLiteral("</a>\n </li>\n"); 691 692 693 #line 129 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 694 } } 695 696 #line default 697 #line hidden 698 WriteLiteral("\n"); 699 700 701 #line 132 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 702 703 704 #line default 705 #line hidden 706 707 #line 132 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 708 if (addOnDealInfoList.pager.CurrentPage < addOnDealInfoList.pager.TotalPages) { 709 710 #line default 711 #line hidden 712 WriteLiteral(" <li"); 713 714 WriteLiteral(" class=\"bhg-orderlist_pager__btn bhg-pagenumber\""); 715 716 WriteLiteral(">\n <a"); 717 718 WriteLiteral(" class=\"pager__num\""); 719 720 WriteAttribute("href", Tuple.Create(" href=\"", 8339), Tuple.Create("\"", 8427) 721 722 #line 135 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 723 , Tuple.Create(Tuple.Create("", 8346), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage + 1).ToString()) 724 725 #line default 726 #line hidden 727 , 8346), false) 728 ); 729 730 WriteLiteral(">\n <i"); 731 732 WriteLiteral(" class=\"fas fa-angle-right addon-page-arrow\""); 733 734 WriteLiteral("></i>\n </a>\n </li>\n"); 735 736 737 #line 139 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Add_on_details.cshtml" 738 } 739 740 #line default 741 #line hidden 742 WriteLiteral(" </ul>\n </div>\n\n\n </div>\n </div>\n</div>\n"); 743 744 } 745 } 746 } 747
1 @using BHGSource.Models @using Dynamicweb.Frontend @{ string gtmid = ""; string fbpixelid = ""; BHGSource.Service.Helpers helpers = new BHGSource.Service.Helpers(); gtmid = helpers.GetGTMKey(); fbpixelid = helpers.GetFBPixelKey(); string discountId = ""; string page = ""; discountId = System.Web.HttpContext.Current.Request.QueryString["discountid"].ToString(); page = System.Web.HttpContext.Current.Request.QueryString["page"].ToString(); BHGSource.Service.DiscountService discountService = new BHGSource.Service.DiscountService(); AddOnDealInfoList addOnDealInfoList = new AddOnDealInfoList(); addOnDealInfoList = discountService.ReturnAllAddOnDealProducts(discountId, page); string pagingurl = "/add-on-deals?discountid=" + addOnDealInfoList.addOnDealInfo[0].discountId + "&page=pagid"; PageView pageView = PageView.GetPageviewByPageID(0); string addOnDealText = pageView.AreaSettings.GetString("Add_On_Deal_Text") != null ? pageView.AreaSettings.GetString("Add_On_Deal_Text") : ""; } <link href="/Files/Templates/Designs/Bhg/css/CustomerCenter/myaccount.css" rel="stylesheet" /> <div id="@(Model.ID)" style="scroll-margin-top: 150px"></div> <div id="individual-product-add-on-details" class="main-container type-b"> <div class="wrapper-1364"> <div id="" class="individual-product-add-on-details-section box box-416"> <h2 class="section-title">Add-On Details</h2> <div class="addon-deal-heading"> <p>@addOnDealText</p> <p class="addon-deal-discount">@addOnDealInfoList.addOnDealInfo[0].discountName</p> </div> @{ <div class="add-on__mobile-container"> @foreach (var addOnDealProduct in addOnDealInfoList.addOnDealInfo) { <div class="add-on__mobile"> <div> <div class="add-on__imgdiv"> <img class="add-on__productimage" src="@addOnDealProduct.image" /> </div> </div> <div class="add-on-detaildiv"> <div> <div class="add-on-probrand">@addOnDealProduct.brand</div> <div class="add-on-prodesc">@addOnDealProduct.name</div> <div class="add-on__price-mobile"> @if (addOnDealProduct.price == addOnDealProduct.priceDiscount) { <div class="add-on__discountprice">@addOnDealProduct.price</div> } else { <div class="add-on__discountprice">@addOnDealProduct.priceDiscount</div> <div class="add-on__price">@addOnDealProduct.price</div> } </div> @if (addOnDealProduct.size != "" && addOnDealProduct.size != null) { <div class="addon-variant-div"> <div class="addon-variant-name"> Size: </div> <div class="addon-variant-value"> @addOnDealProduct.size </div> </div> } @if (addOnDealProduct.color != "" && addOnDealProduct.color != null) { <div class="addon-variant-div"> <div class="addon-variant-name"> Color: </div> <div class="addon-variant-value"> <span class="color-box" style="background-color: @addOnDealProduct.colorCode;"></span> <span>@addOnDealProduct.color</span> </div> </div> } <div class="add-on__addcartdiv"> <div class="add-on__qty add-on__productdetail"> <button class="add-on__countbtn minus" type="button" tabindex="0"> <img src="/Files/Templates/Designs/Bhg/media/icons/quantity-minus.png" alt="Minus"> </button> <input id="prodId_@addOnDealProduct.productId" type="text" value="1" tabindex="0" class="add-on__countval"> <button class="add-on__countbtn plus" type="button" tabindex="0"> <img src="/Files/Templates/Designs/Bhg/media/icons/quantity-plus.png" alt="Plus"> </button> </div> @if (addOnDealProduct.hideAddToCartButton) { <div class="addon-product-addcart"> <button onclick="location.href = '@addOnDealProduct.link';" class="btn add-to-cart add-on__addcart">Add to Cart</button> </div> } else { <div class="addon-product-addcart"> <button onclick="AddToCart('@addOnDealProduct.productId', '@addOnDealProduct.variantId', document.getElementById('prodId_@addOnDealProduct.productId').value, '@gtmid', '@fbpixelid', '@addOnDealProduct.name.Replace("'","")', '@addOnDealProduct.brand.Replace("'","")', '@addOnDealProduct.currency', '@addOnDealProduct.priceDouble')" class="btn add-to-cart add-on__addcart">Add to Cart</button> </div> } </div> </div> </div> </div> } </div> } <div> <ul class="bhg-orderlist_pager__list add-on-deals_pagelist"> @if (addOnDealInfoList.pager.CurrentPage > 1) { <li class="bhg-orderlist_pager__btn bhg-pagenumber"> <a class="pager__num" href="@pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage - 1).ToString())"> <i class="fas fa-angle-left addon-page-arrow"></i> </a> </li> } @if (addOnDealInfoList.pager.Pages != null) { foreach (var p in addOnDealInfoList.pager.Pages) { <li class="bhg-orderlist_pager__btn bhg-pagenumber @(p == addOnDealInfoList.pager.CurrentPage ? "active" : "")"> <a class="pager__num add-on-pageno" href="@pagingurl.Replace("pagid", p.ToString())">@p</a> </li> } } @if (addOnDealInfoList.pager.CurrentPage < addOnDealInfoList.pager.TotalPages) { <li class="bhg-orderlist_pager__btn bhg-pagenumber"> <a class="pager__num" href="@pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage + 1).ToString())"> <i class="fas fa-angle-right addon-page-arrow"></i> </a> </li> } </ul> </div> </div> </div> </div>
Install this application on your home screen for quick and easy access when you’re on the go.
Just tap then “Add to Home Screen”