Welcome to Fashion!
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 "C:\Websites\DW_Dev\Custom\BHGSource\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 "C:\Websites\DW_Dev\Custom\BHGSource\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_5803c51c6e614c9ead2a64ce60e14bfb : Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> { 30 31 #line hidden 32 33 public RazorEngine_5803c51c6e614c9ead2a64ce60e14bfb() { 34 } 35 36 public override void Execute() { 37 38 #line 3 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 39 string gtmid = ""; string fbpixelid = ""; BHGSource.Service.Helpers helpers = new BHGSource.Service.Helpers(); gtmid = helpers.GetGTMKey(); fbpixelid = helpers.GetFBPixelKey(); string productId = ""; string varientId = ""; double total = 0; string page = ""; productId = System.Web.HttpContext.Current.Request.QueryString["productid"].ToString(); varientId = System.Web.HttpContext.Current.Request.QueryString["varientid"].ToString(); page = System.Web.HttpContext.Current.Request.QueryString["page"].ToString(); var currentCart = Dynamicweb.Ecommerce.Common.Context.Cart; if (currentCart != null) { total = currentCart.TotalPrice; } BHGSource.Service.DiscountService discountService = new BHGSource.Service.DiscountService(); AddOnDealInfoList addOnDealInfoList = new AddOnDealInfoList(); addOnDealInfoList = discountService.ReturnAllDiscountsPurchaseWithPurchase(productId, varientId, page, total.ToString()); string pagingurl = "/purchase-with-purchase?productId=" + productId + "&varientId=" + varientId + "&page=pagid"; PageView pageView = PageView.GetPageviewByPageID(0); string purchaseWithPurchaseText = pageView.AreaSettings.GetString("Purchase_With_Purchase_Text") != null ? pageView.AreaSettings.GetString("Purchase_With_Purchase_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=\"", 1507), Tuple.Create("\"", 1523) 52 53 #line 31 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 54 , Tuple.Create(Tuple.Create("", 1512), Tuple.Create<System.Object, System.Int32>(Model.ID 55 56 #line default 57 #line hidden 58 , 1512), false) 59 ); 60 61 WriteLiteral(" style=\"scroll-margin-top: 150px\""); 62 63 WriteLiteral("></div>\n\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 39 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 91 Write(purchaseWithPurchaseText); 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 40 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 42 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 113 114 115 #line default 116 #line hidden 117 118 #line 42 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 44 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 131 132 133 #line default 134 #line hidden 135 136 #line 44 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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=\"", 2422), Tuple.Create("\"", 2451) 154 155 #line 49 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 156 , Tuple.Create(Tuple.Create("", 2428), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.image 157 158 #line default 159 #line hidden 160 , 2428), 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 54 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 55 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 57 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 202 203 204 #line default 205 #line hidden 206 207 #line 57 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 59 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 220 Write(addOnDealProduct.price); 221 222 223 #line default 224 #line hidden 225 WriteLiteral("</div>\n"); 226 227 228 #line 60 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 63 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 64 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 256 Write(addOnDealProduct.price); 257 258 259 #line default 260 #line hidden 261 WriteLiteral("</div>\n"); 262 263 264 #line 65 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 265 } 266 267 #line default 268 #line hidden 269 WriteLiteral(" </div>\n"); 270 271 272 #line 67 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 273 274 275 #line default 276 #line hidden 277 278 #line 67 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 74 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 77 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 312 } 313 314 #line default 315 #line hidden 316 WriteLiteral(" "); 317 318 319 #line 78 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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=\"", 4799), Tuple.Create("\"", 4853) 342 , Tuple.Create(Tuple.Create("", 4807), Tuple.Create("background-color:", 4807), true) 343 344 #line 85 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 345 , Tuple.Create(Tuple.Create(" ", 4824), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.colorCode 346 347 #line default 348 #line hidden 349 , 4825), false) 350 , Tuple.Create(Tuple.Create("", 4852), Tuple.Create(";", 4852), true) 351 ); 352 353 WriteLiteral("></span> <span>"); 354 355 356 #line 85 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 88 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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=\"", 5540), Tuple.Create("\"", 5579) 397 , Tuple.Create(Tuple.Create("", 5545), Tuple.Create("prodId_", 5545), true) 398 399 #line 94 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 400 , Tuple.Create(Tuple.Create("", 5552), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 401 402 #line default 403 #line hidden 404 , 5552), 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 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 434 435 436 #line default 437 #line hidden 438 439 #line 99 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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=\"", 6243), Tuple.Create("\"", 6294) 451 , Tuple.Create(Tuple.Create("", 6253), Tuple.Create("location.href", 6253), true) 452 , Tuple.Create(Tuple.Create(" ", 6266), Tuple.Create("=", 6267), true) 453 , Tuple.Create(Tuple.Create(" ", 6268), Tuple.Create("\'", 6269), true) 454 455 #line 102 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 456 , Tuple.Create(Tuple.Create("", 6270), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.link 457 458 #line default 459 #line hidden 460 , 6270), false) 461 , Tuple.Create(Tuple.Create("", 6292), Tuple.Create("\';", 6292), 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 104 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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=\"", 6672), Tuple.Create("\"", 6994) 481 , Tuple.Create(Tuple.Create("", 6682), Tuple.Create("AddToCart(\'", 6682), true) 482 483 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 484 , Tuple.Create(Tuple.Create("", 6693), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 485 486 #line default 487 #line hidden 488 , 6693), false) 489 , Tuple.Create(Tuple.Create("", 6720), Tuple.Create("\',", 6720), true) 490 , Tuple.Create(Tuple.Create(" ", 6722), Tuple.Create("\'", 6723), true) 491 492 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 493 , Tuple.Create(Tuple.Create("", 6724), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.variantId 494 495 #line default 496 #line hidden 497 , 6724), false) 498 , Tuple.Create(Tuple.Create("", 6751), Tuple.Create("\',", 6751), true) 499 , Tuple.Create(Tuple.Create(" ", 6753), Tuple.Create("document.getElementById(\'prodId_", 6754), true) 500 501 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 502 , Tuple.Create(Tuple.Create("", 6786), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.productId 503 504 #line default 505 #line hidden 506 , 6786), false) 507 , Tuple.Create(Tuple.Create("", 6813), Tuple.Create("\').value,", 6813), true) 508 , Tuple.Create(Tuple.Create(" ", 6822), Tuple.Create("\'", 6823), true) 509 510 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 511 , Tuple.Create(Tuple.Create("", 6824), Tuple.Create<System.Object, System.Int32>(gtmid 512 513 #line default 514 #line hidden 515 , 6824), false) 516 , Tuple.Create(Tuple.Create("", 6830), Tuple.Create("\',", 6830), true) 517 , Tuple.Create(Tuple.Create(" ", 6832), Tuple.Create("\'", 6833), true) 518 519 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 520 , Tuple.Create(Tuple.Create("", 6834), Tuple.Create<System.Object, System.Int32>(fbpixelid 521 522 #line default 523 #line hidden 524 , 6834), false) 525 , Tuple.Create(Tuple.Create("", 6844), Tuple.Create("\',", 6844), true) 526 , Tuple.Create(Tuple.Create(" ", 6846), Tuple.Create("\'", 6847), true) 527 528 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 529 , Tuple.Create(Tuple.Create("", 6848), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.name.Replace("'","") 530 531 #line default 532 #line hidden 533 , 6848), false) 534 , Tuple.Create(Tuple.Create("", 6886), Tuple.Create("\',", 6886), true) 535 , Tuple.Create(Tuple.Create(" ", 6888), Tuple.Create("\'", 6889), true) 536 537 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 538 , Tuple.Create(Tuple.Create("", 6890), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.brand.Replace("'","") 539 540 #line default 541 #line hidden 542 , 6890), false) 543 , Tuple.Create(Tuple.Create("", 6929), Tuple.Create("\',", 6929), true) 544 , Tuple.Create(Tuple.Create(" ", 6931), Tuple.Create("\'", 6932), true) 545 546 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 547 , Tuple.Create(Tuple.Create("", 6933), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.currency 548 549 #line default 550 #line hidden 551 , 6933), false) 552 , Tuple.Create(Tuple.Create("", 6959), Tuple.Create("\',", 6959), true) 553 , Tuple.Create(Tuple.Create(" ", 6961), Tuple.Create("\'", 6962), true) 554 555 #line 108 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 556 , Tuple.Create(Tuple.Create("", 6963), Tuple.Create<System.Object, System.Int32>(addOnDealProduct.priceDouble 557 558 #line default 559 #line hidden 560 , 6963), false) 561 , Tuple.Create(Tuple.Create("", 6992), Tuple.Create("\')", 6992), 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 110 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 570 } 571 572 #line default 573 #line hidden 574 WriteLiteral(" </div>\n </div>" + 575 "\n </div>\n </div>\n"); 576 577 578 #line 115 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 579 } 580 581 #line default 582 #line hidden 583 WriteLiteral(" </div>\n"); 584 585 586 #line 117 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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 122 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 599 600 601 #line default 602 #line hidden 603 604 #line 122 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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=\"", 7668), Tuple.Create("\"", 7756) 618 619 #line 125 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 620 , Tuple.Create(Tuple.Create("", 7675), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage - 1).ToString()) 621 622 #line default 623 #line hidden 624 , 7675), 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 129 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 635 } 636 637 #line default 638 #line hidden 639 WriteLiteral("\n"); 640 641 642 #line 131 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 643 644 645 #line default 646 #line hidden 647 648 #line 131 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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=\"", 8144), Tuple.Create("\"", 8251) 656 , Tuple.Create(Tuple.Create("", 8152), Tuple.Create("bhg-orderlist_pager__btn", 8152), true) 657 , Tuple.Create(Tuple.Create(" ", 8176), Tuple.Create("bhg-pagenumber", 8177), true) 658 659 #line 135 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 660 , Tuple.Create(Tuple.Create(" ", 8191), Tuple.Create<System.Object, System.Int32>(p == addOnDealInfoList.pager.CurrentPage ? "active" : "" 661 662 #line default 663 #line hidden 664 , 8192), false) 665 ); 666 667 WriteLiteral(">\n <a"); 668 669 WriteLiteral(" class=\"pager__num add-on-pageno\""); 670 671 WriteAttribute("href", Tuple.Create(" href=\"", 8321), Tuple.Create("\"", 8369) 672 673 #line 136 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 674 , Tuple.Create(Tuple.Create("", 8328), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", p.ToString()) 675 676 #line default 677 #line hidden 678 , 8328), false) 679 ); 680 681 WriteLiteral(">"); 682 683 684 #line 136 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 685 Write(p); 686 687 688 #line default 689 #line hidden 690 WriteLiteral("</a>\n </li>\n"); 691 692 693 #line 138 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 694 } } 695 696 #line default 697 #line hidden 698 WriteLiteral("\n"); 699 700 701 #line 141 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 702 703 704 #line default 705 #line hidden 706 707 #line 141 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.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=\"", 8708), Tuple.Create("\"", 8796) 721 722 #line 144 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 723 , Tuple.Create(Tuple.Create("", 8715), Tuple.Create<System.Object, System.Int32>(pagingurl.Replace("pagid", (addOnDealInfoList.pager.CurrentPage + 1).ToString()) 724 725 #line default 726 #line hidden 727 , 8715), 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 148 "C:\Websites\DW_Dev\Custom\BHGSource\Files\Templates\Designs\Bhg\ContentPage\Paragraph\Purchase_with_Purchase.cshtml" 738 } 739 740 #line default 741 #line hidden 742 WriteLiteral(" </ul>\n </div>\n\n\n </div>\n </div>\n</div>\n\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 productId = ""; string varientId = ""; double total = 0; string page = ""; productId = System.Web.HttpContext.Current.Request.QueryString["productid"].ToString(); varientId = System.Web.HttpContext.Current.Request.QueryString["varientid"].ToString(); page = System.Web.HttpContext.Current.Request.QueryString["page"].ToString(); var currentCart = Dynamicweb.Ecommerce.Common.Context.Cart; if (currentCart != null) { total = currentCart.TotalPrice; } BHGSource.Service.DiscountService discountService = new BHGSource.Service.DiscountService(); AddOnDealInfoList addOnDealInfoList = new AddOnDealInfoList(); addOnDealInfoList = discountService.ReturnAllDiscountsPurchaseWithPurchase(productId, varientId, page, total.ToString()); string pagingurl = "/purchase-with-purchase?productId=" + productId + "&varientId=" + varientId + "&page=pagid"; PageView pageView = PageView.GetPageviewByPageID(0); string purchaseWithPurchaseText = pageView.AreaSettings.GetString("Purchase_With_Purchase_Text") != null ? pageView.AreaSettings.GetString("Purchase_With_Purchase_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>@purchaseWithPurchaseText</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”