Welcome to BHG!
Error compiling template "/Designs/Bhg/ContentPage/Paragraph/Purchase_with_Purchase.cshtml" Line 80: '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 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 17 using BHGSource.Models; 18 19 #line default 20 #line hidden 21 22 #line 2 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 23 using Dynamicweb.Frontend; 24 25 #line default 26 #line hidden 27 28 29 public class RazorEngine_ed4ccff4e79046348290d07450c93e29 : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 30 31 #line hidden 32 33 public RazorEngine_ed4ccff4e79046348290d07450c93e29() { 34 } 35 36 public override void Execute() { 37 38 #line 3 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 39 40 string gtmid = ""; 41 string fbpixelid = ""; 42 BHGSource.Service.Helpers helpers = new BHGSource.Service.Helpers(); 43 gtmid = helpers.GetGTMKey(); 44 fbpixelid = helpers.GetFBPixelKey(); 45 46 string productId = ""; 47 string varientId = ""; 48 double total = 0; 49 string page = ""; 50 productId = System.Web.HttpContext.Current.Request.QueryString["productid"].ToString(); 51 varientId = System.Web.HttpContext.Current.Request.QueryString["varientid"].ToString(); 52 page = System.Web.HttpContext.Current.Request.QueryString["page"].ToString(); 53 var currentCart = Dynamicweb.Ecommerce.Common.Context.Cart; 54 if (currentCart != null) 55 { 56 total = currentCart.TotalPrice; 57 } 58 BHGSource.Service.DiscountService discountService = new BHGSource.Service.DiscountService(); 59 AddOnDealInfoList addOnDealInfoList = new AddOnDealInfoList(); 60 addOnDealInfoList = discountService.ReturnAllDiscountsPurchaseWithPurchase(productId, varientId, page, total.ToString()); 61 string pagingurl = "/purchase-with-purchase?productId=" + productId + "&varientId=" + varientId + "&page=pagid"; 62 63 PageView pageView = PageView.GetPageviewByPageID(0); 64 string purchaseWithPurchaseText = pageView.AreaSettings.GetString("Purchase_With_Purchase_Text") != null ? pageView.AreaSettings.GetString("Purchase_With_Purchase_Text") : ""; 65 66 67 #line default 68 #line hidden 69 WriteLiteral("\n<link"); 70 71 WriteLiteral(" href=\"/Files/Templates/Designs/Bhg/css/CustomerCenter/myaccount.css\""); 72 73 WriteLiteral(" rel=\"stylesheet\""); 74 75 WriteLiteral(" />\n<div"); 76 77 WriteAttribute("id", Tuple.Create(" id=\"", 1507), Tuple.Create("\"", 1523) 78 79 #line 31 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 80 , Tuple.Create(Tuple.Create("", 1512), Tuple.Create<System.Object, System.Int32>(Model.ID 81 82 #line default 83 #line hidden 84 , 1512), false) 85 ); 86 87 WriteLiteral(" style=\"scroll-margin-top: 150px\""); 88 89 WriteLiteral("></div>\n\n<div"); 90 91 WriteLiteral(" id=\"individual-product-add-on-details\""); 92 93 WriteLiteral(" class=\"main-container type-b\""); 94 95 WriteLiteral(">\n <div"); 96 97 WriteLiteral(" class=\"wrapper-1364\""); 98 99 WriteLiteral(">\n\n <div"); 100 101 WriteLiteral(" id=\"\""); 102 103 WriteLiteral(" class=\"individual-product-add-on-details-section box box-416\""); 104 105 WriteLiteral(">\n <h2"); 106 107 WriteLiteral(" class=\"section-title\""); 108 109 WriteLiteral(">Add-On Details</h2>\n <div"); 110 111 WriteLiteral(" class=\"addon-deal-heading\""); 112 113 WriteLiteral(">\n <p>"); 114 115 116 #line 39 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 117 Write(purchaseWithPurchaseText); 118 119 120 #line default 121 #line hidden 122 WriteLiteral("</p>\n <p"); 123 124 WriteLiteral(" class=\"addon-deal-discount\""); 125 126 WriteLiteral(">"); 127 128 129 #line 40 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 130 Write(addOnDealInfoList.addOnDealInfo[0].discountName); 131 132 133 #line default 134 #line hidden 135 WriteLiteral("</p>\n </div>\n"); 136 137 138 #line 42 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 139 140 141 #line default 142 #line hidden 143 144 #line 42 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 145 146 147 148 #line default 149 #line hidden 150 WriteLiteral(" <div"); 151 152 WriteLiteral(" class=\"add-on__mobile-container\""); 153 154 WriteLiteral(">\n"); 155 156 157 #line 44 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 158 159 160 #line default 161 #line hidden 162 163 #line 44 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 164 foreach (var addOnDealProduct in addOnDealInfoList.addOnDealInfo) 165 { 166 167 168 #line default 169 #line hidden 170 WriteLiteral(" <div"); 171 172 WriteLiteral(" class=\"add-on__mobile\""); 173 174 WriteLiteral(">\n <div>\n <div"); 175 176 WriteLiteral(" class=\"add-on__imgdiv\""); 177 178 WriteLiteral(">\n <img"); 179 180 WriteLiteral(" class=\"add-on__productimage\""); 181 182 WriteAttribute("src", Tuple.Create(" src=\"", 2422), Tuple.Create("\"", 2451) 183 184 #line 49 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 185 , Tuple.Create(Tuple.Create("", 2428), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.image 186 187 #line default 188 #line hidden 189 , 2428), false) 190 ); 191 192 WriteLiteral(" />\n </div>\n </div>\n " + 193 " <div"); 194 195 WriteLiteral(" class=\"add-on-detaildiv\""); 196 197 WriteLiteral(">\n <div>\n <div"); 198 199 WriteLiteral(" class=\"add-on-probrand\""); 200 201 WriteLiteral(">"); 202 203 204 #line 54 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 205 Write(addOnDealProduct.brand); 206 207 208 #line default 209 #line hidden 210 WriteLiteral("</div>\n <div"); 211 212 WriteLiteral(" class=\"add-on-prodesc\""); 213 214 WriteLiteral(">"); 215 216 217 #line 55 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 218 Write(addOnDealProduct.name); 219 220 221 #line default 222 #line hidden 223 WriteLiteral("</div>\n <div"); 224 225 WriteLiteral(" class=\"add-on__price-mobile\""); 226 227 WriteLiteral(">\n"); 228 229 230 #line 57 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 231 232 233 #line default 234 #line hidden 235 236 #line 57 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 237 if (addOnDealProduct.price == addOnDealProduct.priceDiscount) 238 { 239 240 241 #line default 242 #line hidden 243 WriteLiteral(" <div"); 244 245 WriteLiteral(" class=\"add-on__discountprice\""); 246 247 WriteLiteral(">"); 248 249 250 #line 59 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 251 Write(addOnDealProduct.price); 252 253 254 #line default 255 #line hidden 256 WriteLiteral("</div>\n"); 257 258 259 #line 60 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 260 } 261 else 262 { 263 264 265 #line default 266 #line hidden 267 WriteLiteral(" <div"); 268 269 WriteLiteral(" class=\"add-on__discountprice\""); 270 271 WriteLiteral(">"); 272 273 274 #line 63 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 275 Write(addOnDealProduct.priceDiscount); 276 277 278 #line default 279 #line hidden 280 WriteLiteral("</div>\n"); 281 282 WriteLiteral(" <div"); 283 284 WriteLiteral(" class=\"add-on__price\""); 285 286 WriteLiteral(">"); 287 288 289 #line 64 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 290 Write(addOnDealProduct.price); 291 292 293 #line default 294 #line hidden 295 WriteLiteral("</div>\n"); 296 297 298 #line 65 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 299 } 300 301 302 #line default 303 #line hidden 304 WriteLiteral(" </div>\n"); 305 306 307 #line 67 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 308 309 310 #line default 311 #line hidden 312 313 #line 67 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 314 if (addOnDealProduct.size != "" && addOnDealProduct.size != null) 315 { 316 317 318 #line default 319 #line hidden 320 WriteLiteral(" <div"); 321 322 WriteLiteral(" class=\"addon-variant-div\""); 323 324 WriteLiteral(">\n <div"); 325 326 WriteLiteral(" class=\"addon-variant-name\""); 327 328 WriteLiteral(">\n Size:\n " + 329 " </div>\n <div"); 330 331 WriteLiteral(" class=\"addon-variant-value\""); 332 333 WriteLiteral(">\n"); 334 335 WriteLiteral(" "); 336 337 338 #line 74 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 339 Write(addOnDealProduct.size); 340 341 342 #line default 343 #line hidden 344 WriteLiteral("\n </div>\n " + 345 " </div>\n"); 346 347 348 #line 77 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 349 } 350 351 352 #line default 353 #line hidden 354 WriteLiteral(" "); 355 356 357 #line 78 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 358 if (addOnDealProduct.color != "" && addOnDealProduct.color != null) 359 { 360 361 362 #line default 363 #line hidden 364 WriteLiteral(" <div"); 365 366 WriteLiteral(" class=\"addon-variant-div\""); 367 368 WriteLiteral(">\n <div"); 369 370 WriteLiteral(" class=\"addon-variant-name\""); 371 372 WriteLiteral(">\n Color:\n " + 373 " </div>\n <div"); 374 375 WriteLiteral(" class=\"addon-variant-value\""); 376 377 WriteLiteral(">\n <span"); 378 379 WriteLiteral(" class=\"color-box\""); 380 381 WriteAttribute("style", Tuple.Create(" style=\"", 4799), Tuple.Create("\"", 4853) 382 , Tuple.Create(Tuple.Create("", 4807), Tuple.Create("background-color:", 4807), true) 383 384 #line 85 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 385 , Tuple.Create(Tuple.Create(" ", 4824), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.colorCode 386 387 #line default 388 #line hidden 389 , 4825), false) 390 , Tuple.Create(Tuple.Create("", 4852), Tuple.Create(";", 4852), true) 391 ); 392 393 WriteLiteral("></span> <span>"); 394 395 396 #line 85 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 397 Write(addOnDealProduct.color); 398 399 400 #line default 401 #line hidden 402 WriteLiteral("</span>\n </div>\n " + 403 " </div>\n"); 404 405 406 #line 88 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 407 } 408 409 410 #line default 411 #line hidden 412 WriteLiteral(" <div"); 413 414 WriteLiteral(" class=\"add-on__addcartdiv\""); 415 416 WriteLiteral(">\n <div"); 417 418 WriteLiteral(" class=\"add-on__qty add-on__productdetail\""); 419 420 WriteLiteral(">\n <button"); 421 422 WriteLiteral(" class=\"add-on__countbtn minus\""); 423 424 WriteLiteral(" type=\"button\""); 425 426 WriteLiteral(" tabindex=\"0\""); 427 428 WriteLiteral(">\n <img"); 429 430 WriteLiteral(" src=\"/Files/Templates/Designs/Bhg/media/icons/quantity-minus.png\""); 431 432 WriteLiteral(" alt=\"Minus\""); 433 434 WriteLiteral(">\n </button>\n " + 435 " <input"); 436 437 WriteAttribute("id", Tuple.Create(" id=\"", 5540), Tuple.Create("\"", 5579) 438 , Tuple.Create(Tuple.Create("", 5545), Tuple.Create("prodId_", 5545), true) 439 440 #line 94 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 441 , Tuple.Create(Tuple.Create("", 5552), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 442 443 #line default 444 #line hidden 445 , 5552), false) 446 ); 447 448 WriteLiteral(" type=\"text\""); 449 450 WriteLiteral(" value=\"1\""); 451 452 WriteLiteral(" tabindex=\"0\""); 453 454 WriteLiteral(" class=\"add-on__countval\""); 455 456 WriteLiteral(">\n <button"); 457 458 WriteLiteral(" class=\"add-on__countbtn plus\""); 459 460 WriteLiteral(" type=\"button\""); 461 462 WriteLiteral(" tabindex=\"0\""); 463 464 WriteLiteral(">\n <img"); 465 466 WriteLiteral(" src=\"/Files/Templates/Designs/Bhg/media/icons/quantity-plus.png\""); 467 468 WriteLiteral(" alt=\"Plus\""); 469 470 WriteLiteral(">\n </button>\n " + 471 " </div>\n"); 472 473 474 #line 99 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 475 476 477 #line default 478 #line hidden 479 480 #line 99 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 481 if (addOnDealProduct.hideAddToCartButton) 482 { 483 484 485 #line default 486 #line hidden 487 WriteLiteral(" <div"); 488 489 WriteLiteral(" class=\"addon-product-addcart\""); 490 491 WriteLiteral(">\n <button"); 492 493 WriteAttribute("onclick", Tuple.Create(" onclick=\"", 6243), Tuple.Create("\"", 6294) 494 , Tuple.Create(Tuple.Create("", 6253), Tuple.Create("location.href", 6253), true) 495 , Tuple.Create(Tuple.Create(" ", 6266), Tuple.Create("=", 6267), true) 496 , Tuple.Create(Tuple.Create(" ", 6268), Tuple.Create("\'", 6269), true) 497 498 #line 102 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 499 , Tuple.Create(Tuple.Create("", 6270), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.link 500 501 #line default 502 #line hidden 503 , 6270), false) 504 , Tuple.Create(Tuple.Create("", 6292), Tuple.Create("\';", 6292), true) 505 ); 506 507 WriteLiteral(" class=\"btn add-to-cart add-on__addcart\""); 508 509 WriteLiteral(">Add to Cart</button>\n </div>\n"); 510 511 512 #line 104 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 513 } 514 else 515 { 516 517 518 #line default 519 #line hidden 520 WriteLiteral(" <div"); 521 522 WriteLiteral(" class=\"addon-product-addcart\""); 523 524 WriteLiteral(">\n <button"); 525 526 WriteAttribute("onclick", Tuple.Create(" onclick=\"", 6672), Tuple.Create("\"", 6994) 527 , Tuple.Create(Tuple.Create("", 6682), Tuple.Create("AddToCart(\'", 6682), true) 528 529 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 530 , Tuple.Create(Tuple.Create("", 6693), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 531 532 #line default 533 #line hidden 534 , 6693), false) 535 , Tuple.Create(Tuple.Create("", 6720), Tuple.Create("\',", 6720), true) 536 , Tuple.Create(Tuple.Create(" ", 6722), Tuple.Create("\'", 6723), true) 537 538 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 539 , Tuple.Create(Tuple.Create("", 6724), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.variantId 540 541 #line default 542 #line hidden 543 , 6724), false) 544 , Tuple.Create(Tuple.Create("", 6751), Tuple.Create("\',", 6751), true) 545 , Tuple.Create(Tuple.Create(" ", 6753), Tuple.Create("document.getElementById(\'prodId_", 6754), true) 546 547 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 548 , Tuple.Create(Tuple.Create("", 6786), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 549 550 #line default 551 #line hidden 552 , 6786), false) 553 , Tuple.Create(Tuple.Create("", 6813), Tuple.Create("\').value,", 6813), true) 554 , Tuple.Create(Tuple.Create(" ", 6822), Tuple.Create("\'", 6823), true) 555 556 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 557 , Tuple.Create(Tuple.Create("", 6824), Tuple.Create<System.Object, System.Int32>(gtmid 558 559 #line default 560 #line hidden 561 , 6824), false) 562 , Tuple.Create(Tuple.Create("", 6830), Tuple.Create("\',", 6830), true) 563 , Tuple.Create(Tuple.Create(" ", 6832), Tuple.Create("\'", 6833), true) 564 565 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 566 , Tuple.Create(Tuple.Create("", 6834), Tuple.Create<System.Object, System.Int32>(fbpixelid 567 568 #line default 569 #line hidden 570 , 6834), false) 571 , Tuple.Create(Tuple.Create("", 6844), Tuple.Create("\',", 6844), true) 572 , Tuple.Create(Tuple.Create(" ", 6846), Tuple.Create("\'", 6847), true) 573 574 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 575 , Tuple.Create(Tuple.Create("", 6848), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.name.Replace("'","") 576 577 #line default 578 #line hidden 579 , 6848), false) 580 , Tuple.Create(Tuple.Create("", 6886), Tuple.Create("\',", 6886), true) 581 , Tuple.Create(Tuple.Create(" ", 6888), Tuple.Create("\'", 6889), true) 582 583 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 584 , Tuple.Create(Tuple.Create("", 6890), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.brand.Replace("'","") 585 586 #line default 587 #line hidden 588 , 6890), false) 589 , Tuple.Create(Tuple.Create("", 6929), Tuple.Create("\',", 6929), true) 590 , Tuple.Create(Tuple.Create(" ", 6931), Tuple.Create("\'", 6932), true) 591 592 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 593 , Tuple.Create(Tuple.Create("", 6933), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.currency 594 595 #line default 596 #line hidden 597 , 6933), false) 598 , Tuple.Create(Tuple.Create("", 6959), Tuple.Create("\',", 6959), true) 599 , Tuple.Create(Tuple.Create(" ", 6961), Tuple.Create("\'", 6962), true) 600 601 #line 108 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 602 , Tuple.Create(Tuple.Create("", 6963), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.priceDouble 603 604 #line default 605 #line hidden 606 , 6963), false) 607 , Tuple.Create(Tuple.Create("", 6992), Tuple.Create("\')", 6992), true) 608 ); 609 610 WriteLiteral(" class=\"btn add-to-cart add-on__addcart\""); 611 612 WriteLiteral(">Add to Cart</button>\n </div>\n"); 613 614 615 #line 110 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 616 } 617 618 619 #line default 620 #line hidden 621 WriteLiteral(" </div>\n </div>" + 622 "\n </div>\n </div>\n"); 623 624 625 #line 115 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 626 } 627 628 629 #line default 630 #line hidden 631 WriteLiteral(" </div>\n"); 632 633 634 #line 117 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 635 636 637 #line default 638 #line hidden 639 WriteLiteral("\n\n\n <div>\n <ul"); 640 641 WriteLiteral(" class=\"bhg-orderlist_pager__list add-on-deals_pagelist\""); 642 643 WriteLiteral(">\n"); 644 645 646 #line 122 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 647 648 649 #line default 650 #line hidden 651 652 #line 122 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 653 if (addOnDealInfoList.pager.CurrentPage > 1) 654 { 655 656 657 #line default 658 #line hidden 659 WriteLiteral(" <li"); 660 661 WriteLiteral(" class=\"bhg-orderlist_pager__btn bhg-pagenumber\""); 662 663 WriteLiteral(">\n <a"); 664 665 WriteLiteral(" class=\"pager__num\""); 666 667 WriteAttribute("href", Tuple.Create(" href=\"", 7668), Tuple.Create("\"", 7756) 668 669 #line 125 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 670 , Tuple.Create(Tuple.Create("", 7675), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage - 1).ToString()) 671 672 #line default 673 #line hidden 674 , 7675), false) 675 ); 676 677 WriteLiteral(">\n <i"); 678 679 WriteLiteral(" class=\"fas fa-angle-left addon-page-arrow\""); 680 681 WriteLiteral("></i>\n </a>\n </li>\n"); 682 683 684 #line 129 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 685 } 686 687 688 #line default 689 #line hidden 690 WriteLiteral("\n"); 691 692 693 #line 131 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 694 695 696 #line default 697 #line hidden 698 699 #line 131 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 700 if (addOnDealInfoList.pager.Pages != null) 701 { 702 foreach (var p in addOnDealInfoList.pager.Pages) 703 { 704 705 706 #line default 707 #line hidden 708 WriteLiteral(" <li"); 709 710 WriteAttribute("class", Tuple.Create(" class=\"", 8144), Tuple.Create("\"", 8251) 711 , Tuple.Create(Tuple.Create("", 8152), Tuple.Create("bhg-orderlist_pager__btn", 8152), true) 712 , Tuple.Create(Tuple.Create(" ", 8176), Tuple.Create("bhg-pagenumber", 8177), true) 713 714 #line 135 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 715 , Tuple.Create(Tuple.Create(" ", 8191), Tuple.Create<System.Object, System.Int32>(p == addOnDealInfoList.pager.CurrentPage ? "active" : "" 716 717 #line default 718 #line hidden 719 , 8192), false) 720 ); 721 722 WriteLiteral(">\n <a"); 723 724 WriteLiteral(" class=\"pager__num add-on-pageno\""); 725 726 WriteAttribute("href", Tuple.Create(" href=\"", 8321), Tuple.Create("\"", 8369) 727 728 #line 136 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 729 , Tuple.Create(Tuple.Create("", 8328), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", p.ToString()) 730 731 #line default 732 #line hidden 733 , 8328), false) 734 ); 735 736 WriteLiteral(">"); 737 738 739 #line 136 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 740 Write(p); 741 742 743 #line default 744 #line hidden 745 WriteLiteral("</a>\n </li>\n"); 746 747 748 #line 138 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 749 } 750 } 751 752 753 #line default 754 #line hidden 755 WriteLiteral("\n"); 756 757 758 #line 141 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 759 760 761 #line default 762 #line hidden 763 764 #line 141 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 765 if (addOnDealInfoList.pager.CurrentPage < addOnDealInfoList.pager.TotalPages) 766 { 767 768 769 #line default 770 #line hidden 771 WriteLiteral(" <li"); 772 773 WriteLiteral(" class=\"bhg-orderlist_pager__btn bhg-pagenumber\""); 774 775 WriteLiteral(">\n <a"); 776 777 WriteLiteral(" class=\"pager__num\""); 778 779 WriteAttribute("href", Tuple.Create(" href=\"", 8708), Tuple.Create("\"", 8796) 780 781 #line 144 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 782 , Tuple.Create(Tuple.Create("", 8715), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage + 1).ToString()) 783 784 #line default 785 #line hidden 786 , 8715), false) 787 ); 788 789 WriteLiteral(">\n <i"); 790 791 WriteLiteral(" class=\"fas fa-angle-right addon-page-arrow\""); 792 793 WriteLiteral("></i>\n </a>\n </li>\n"); 794 795 796 #line 148 "D:\DW-Websites\BHG\Ecom\DEV\Custom\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 797 } 798 799 800 #line default 801 #line hidden 802 WriteLiteral(" </ul>\n </div>\n\n\n </div>\n </div>\n</div>\n\n"); 803 804 } 805 } 806 } 807
1 @using BHGSource.Models 2 @using Dynamicweb.Frontend 3 @{ 4 string gtmid = ""; 5 string fbpixelid = ""; 6 BHGSource.Service.Helpers helpers = new BHGSource.Service.Helpers(); 7 gtmid = helpers.GetGTMKey(); 8 fbpixelid = helpers.GetFBPixelKey(); 9 10 string productId = ""; 11 string varientId = ""; 12 double total = 0; 13 string page = ""; 14 productId = System.Web.HttpContext.Current.Request.QueryString["productid"].ToString(); 15 varientId = System.Web.HttpContext.Current.Request.QueryString["varientid"].ToString(); 16 page = System.Web.HttpContext.Current.Request.QueryString["page"].ToString(); 17 var currentCart = Dynamicweb.Ecommerce.Common.Context.Cart; 18 if (currentCart != null) 19 { 20 total = currentCart.TotalPrice; 21 } 22 BHGSource.Service.DiscountService discountService = new BHGSource.Service.DiscountService(); 23 AddOnDealInfoList addOnDealInfoList = new AddOnDealInfoList(); 24 addOnDealInfoList = discountService.ReturnAllDiscountsPurchaseWithPurchase(productId, varientId, page, total.ToString()); 25 string pagingurl = "/purchase-with-purchase?productId=" + productId + "&varientId=" + varientId + "&page=pagid"; 26 27 PageView pageView = PageView.GetPageviewByPageID(0); 28 string purchaseWithPurchaseText = pageView.AreaSettings.GetString("Purchase_With_Purchase_Text") != null ? pageView.AreaSettings.GetString("Purchase_With_Purchase_Text") : ""; 29 } 30 <link href="/Files/Templates/Designs/Bhg/css/CustomerCenter/myaccount.css" rel="stylesheet" /> 31 <div id="@(Model.ID)" style="scroll-margin-top: 150px"></div> 32 33 <div id="individual-product-add-on-details" class="main-container type-b"> 34 <div class="wrapper-1364"> 35 36 <div id="" class="individual-product-add-on-details-section box box-416"> 37 <h2 class="section-title">Add-On Details</h2> 38 <div class="addon-deal-heading"> 39 <p>@purchaseWithPurchaseText</p> 40 <p class="addon-deal-discount">@addOnDealInfoList.addOnDealInfo[0].discountName</p> 41 </div> 42 @{ 43 <div class="add-on__mobile-container"> 44 @foreach (var addOnDealProduct in addOnDealInfoList.addOnDealInfo) 45 { 46 <div class="add-on__mobile"> 47 <div> 48 <div class="add-on__imgdiv"> 49 <img class="add-on__productimage" src="@addOnDealProduct.image" /> 50 </div> 51 </div> 52 <div class="add-on-detaildiv"> 53 <div> 54 <div class="add-on-probrand">@addOnDealProduct.brand</div> 55 <div class="add-on-prodesc">@addOnDealProduct.name</div> 56 <div class="add-on__price-mobile"> 57 @if (addOnDealProduct.price == addOnDealProduct.priceDiscount) 58 { 59 <div class="add-on__discountprice">@addOnDealProduct.price</div> 60 } 61 else 62 { 63 <div class="add-on__discountprice">@addOnDealProduct.priceDiscount</div> 64 <div class="add-on__price">@addOnDealProduct.price</div> 65 } 66 </div> 67 @if (addOnDealProduct.size != "" && addOnDealProduct.size != null) 68 { 69 <div class="addon-variant-div"> 70 <div class="addon-variant-name"> 71 Size: 72 </div> 73 <div class="addon-variant-value"> 74 @addOnDealProduct.size 75 </div> 76 </div> 77 } 78 @if (addOnDealProduct.color != "" && addOnDealProduct.color != null) 79 { 80 <div class="addon-variant-div"> 81 <div class="addon-variant-name"> 82 Color: 83 </div> 84 <div class="addon-variant-value"> 85 <span class="color-box" style="background-color: @addOnDealProduct.colorCode;"></span> <span>@addOnDealProduct.color</span> 86 </div> 87 </div> 88 } 89 <div class="add-on__addcartdiv"> 90 <div class="add-on__qty add-on__productdetail"> 91 <button class="add-on__countbtn minus" type="button" tabindex="0"> 92 <img src="/Files/Templates/Designs/Bhg/media/icons/quantity-minus.png" alt="Minus"> 93 </button> 94 <input id="prodId_@addOnDealProduct.productId" type="text" value="1" tabindex="0" class="add-on__countval"> 95 <button class="add-on__countbtn plus" type="button" tabindex="0"> 96 <img src="/Files/Templates/Designs/Bhg/media/icons/quantity-plus.png" alt="Plus"> 97 </button> 98 </div> 99 @if (addOnDealProduct.hideAddToCartButton) 100 { 101 <div class="addon-product-addcart"> 102 <button onclick="location.href = '@addOnDealProduct.link';" class="btn add-to-cart add-on__addcart">Add to Cart</button> 103 </div> 104 } 105 else 106 { 107 <div class="addon-product-addcart"> 108 <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> 109 </div> 110 } 111 </div> 112 </div> 113 </div> 114 </div> 115 } 116 </div> 117 } 118 119 120 <div> 121 <ul class="bhg-orderlist_pager__list add-on-deals_pagelist"> 122 @if (addOnDealInfoList.pager.CurrentPage > 1) 123 { 124 <li class="bhg-orderlist_pager__btn bhg-pagenumber"> 125 <a class="pager__num" href="@pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage - 1).ToString())"> 126 <i class="fas fa-angle-left addon-page-arrow"></i> 127 </a> 128 </li> 129 } 130 131 @if (addOnDealInfoList.pager.Pages != null) 132 { 133 foreach (var p in addOnDealInfoList.pager.Pages) 134 { 135 <li class="bhg-orderlist_pager__btn bhg-pagenumber @(p == addOnDealInfoList.pager.CurrentPage ? "active" : "")"> 136 <a class="pager__num add-on-pageno" href="@pagingurl.Replace("pagid", p.ToString())">@p</a> 137 </li> 138 } 139 } 140 141 @if (addOnDealInfoList.pager.CurrentPage < addOnDealInfoList.pager.TotalPages) 142 { 143 <li class="bhg-orderlist_pager__btn bhg-pagenumber"> 144 <a class="pager__num" href="@pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage + 1).ToString())"> 145 <i class="fas fa-angle-right addon-page-arrow"></i> 146 </a> 147 </li> 148 } 149 </ul> 150 </div> 151 152 153 </div> 154 </div> 155 </div> 156 157
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”