1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml" ng-app="Module"> 3<head> 4 <title>Cargills Online - Sri Lanka's Freshest Online Grocery Store</title> 5 <meta name="description" content="Cargills Online â Sri Lankaâs freshest online shopping for your produce & all your daily needs at the best prices. Pick from a wide range of products, delivered straight to you! A Sri Lankan Online Shopping and Delivery Service " /> 6 <meta name="keywords" content="online grocery shopping sri lanka, online grocery sri lanka, online supermarket, online supermarket sri lanka, buy groceries online, offers for groceries, grocery delivery, supermarket, fresh vegetables, buy groceries online sri lanka" /> 7 8 9 <meta id="_sMetaImageSecure" property="og:image:secure_url" content="http://cargillsonline.com/VendorItems/Og-image.png" /> 10 <meta id="_sMetaImageTypePD" property="og:image:type" content="image/png" /> 11 <meta id="_sMetaImageHeightPD" property="og:image:height" content="400" /> 12 <meta id="_sMetaImageWidthPD" property="og:image:width" content="300" /> 13 <meta property="og:url" content="https://cargillsonline.com/" /> 14 <meta property="og:type" content="website" /> 15 16 <link rel="shortcut icon" href="/Assets/web/img/fav.png" type="image/x-icon" /> 17 <meta name="viewport" content="width=device-width, user-scalable=no" /> 18 <link rel="stylesheet" href="/Assets/web/css/bootstrap.css" /> 19 <link rel="stylesheet" href="/Assets/web/css/style.css" /> 20 21 <link rel="stylesheet" href="/Assets/web/css/animate.css" /> 22 <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" 23 rel="stylesheet" type="text/css" /> 24
24<script src="/scripts/angular.js"></script>
24 25
25<script src="/Scripts/ui-bootstrap-tpls-0.13.4.min.js" type="text/javascript"></script>
25 26
26<script type="text/javascript" src="/Angular/Web/Layout/App.js"></script>
26 27 <link href="/Assets/web/css/jquery-ui.css" rel="stylesheet" /> 28
28<script type="text/javascript" src="/Angular/Web/Layout/Layout.js"></script>
28 29
29<script src="/Assets/web/js/aes.js"></script>
29 30 31 <!-- Google tag (gtag.js) -->
vendor: 87 bytes, lines 31-32
31 32 <script async=async async=async src="https://www.googletagmanager.com/gtag/js?id=
32G-5XW4RYY9CK
vendor: 17 bytes, lines 32-33
32"></script> 33
33<script> 34
vendor: 159 bytes, lines 34-38
34window.dataLayer = window.dataLayer || []; 35 function gtag() { dataLayer.push(arguments); } 36 gtag('js', new Date()); 37 38 gtag('config', '
38G-5XW4RYY9CK
vendor: 9 bytes, lines 38-39
38'); 39
39</script>
39 40 41 <link href="/Assets/jquery-ui111.css" rel="stylesheet" /> 42
42<script src="/Assets/jquery-1.12.4.js"></script>
42 43
43<script src="/Assets/jquery-ui.js"></script>
43 44
44<script type="text/javascript"> 45 jQuery(function ($) { 46 var date = new Date(); 47 date.setMonth(date.getMonth() - (12 * 16)); 48 var da = date.getDate() + "/" + (date.getMonth() + 1) + "/" + date.getFullYear(); 49 $('#txtUpdateDOB').datepicker({ 50 changeMonth: true, 51 changeYear: true, 52 dateFormat: "dd/mm/yy", 53 maxDate: da, 54 yearRange: "1901:+nn" 55 }); 56 }); 57 58 jQuery(function ($) { 59 var date = new Date(); 60 date.setMonth(date.getMonth() - (12 * 16)); 61 var da = date.getDate() + "/" + (date.getMonth() + 1) + "/" + date.getFullYear(); 62 $('#txtDob').datepicker({ 63 changeMonth: true, 64 changeYear: true, 65 dateFormat: "dd/mm/yy", 66 maxDate: da, 67 yearRange: "1901:+nn" 68 }); 69 }); 70 </script>
70 71 72 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.css" /> 73 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.theme.min.css" /> 74 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.transitions.min.css" /> 75 76
76<script data-require="[email protected]" data-semver="2.1.3" src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
76 77
77<script src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
77 78 79 <!-- Google Tag Manager --> 80
80<script>
vendor: 495 bytes, lines 80-88
80 81 (function (w, d, s, l, i) { 82 w[l] = w[l] || []; w[l].push({ 83 'gtm.start': 84 new Date().getTime(), event: 'gtm.js' 85 }); var f = d.getElementsByTagName(s)[0], 86 j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 87 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); 88 })(window, document, 'script', 'dataLayer', '
88GTM-TMTXXW8
vendor: 3 bytes, line 88
88');
88</script>
88 89 <!-- End Google Tag Manager --> 90 <!-- Facebook Pixel Code --> 91
91<script>
vendor: 607 bytes, lines 91-103
91 92 !function (f, b, e, v, n, t, s) { 93 if (f.fbq) return; n = f.fbq = function () { 94 n.callMethod ? 95 n.callMethod.apply(n, arguments) : n.queue.push(arguments) 96 }; 97 if (!f._fbq) f._fbq = n; n.push = n; n.loaded = !0; n.version = '2.0'; 98 n.queue = []; t = b.createElement(e); t.async = !0; 99 t.src = v; s = b.getElementsByTagName(e)[0]; 100 s.parentNode.insertBefore(t, s) 101 }(window, document, 'script', 102 'https://connect.facebook.net/en_US/fbevents.js'); 103 fbq('init', '
103440637928256681
vendor: 44 bytes, lines 103-105
103'); 104 fbq('track', 'PageView'); 105
105</script>
105 106 <noscript> 107 <img height="1" width="1" 108 src="https://www.facebook.com/tr?id=440637928256681&ev=PageView 109&noscript=1" /> 110 </noscript> 111 112 <!-- Meta Pixel Code --> 113 114 115 <!-- End Meta Pixel Code --> 116 <style> 117.number span.UnProR { 118 border: none !important; 119 margin-right: 20%; 120} 121 122.number { 123 justify-content: space-between !important; 124 align-items: center !important; 125} 126 127.DelProR { 128 margin-right: 10px; 129 margin-left: 20%; 130} 131 ul.sb_dropdown li a:hover .searchBarquant, ul.sb_dropdown li a:hover .searchBarprice { 132 color: #d90d0e; 133 font-weight: 600; 134 } 135 136 div#spnSession { 137 margin-right: 25px; 138 } 139 140 div#spnSession { 141 margin-right: 35px; 142 } 143 144 .mid3-right { 145 background-color: #d90d0e; 146 padding: 4px 1px 0px; 147 margin-left: -45px; 148 } 149 150 .mid3-right .dropdown:hover .dropdown-content { 151 display: block; 152 } 153
154 .sb_input::placeholder { 155 font-size: 12px !important; 156 font-weight: bold; 157 } 158 159 h1 { 160 font-size: 180px; 161 line-height: 180px; 162 text-transform: uppercase; 163 color: #1275AD; 164 position: absolute; 165 text-shadow: 0 1px 1px #45A8DF; 166 top: -25px; 167 left: -20px; 168 white-space: nowrap; 169 } 170 171 span.reference { 172 position: fixed; 173 left: 10px; 174 bottom: 10px; 175 font-size: 11px; 176 } 177 178 span.reference a { 179 color: #fff; 180 text-decoration: none; 181 text-transform: uppercase; 182 text-shadow: 0 1px 0 #000; 183 } 184 185 span.reference a:hover { 186 color: #f0f0f0; 187 } 188 189 .box { 190 height: auto; 191 width: 100%; 192 position: relative; 193 } 194 195 .checkout1 p { 196 color: #fff; 197 font-size: 17px; 198 display: flex; 199 align-items: center; 200 } 201 202 .checkout1 p i { 203 font-size: 18px; 204 } 205 206 div#myModalCart h4.modal-title { 207 width: auto; 208 } 209 210 .box h2 { 211 background-color: #1275AD; 212 border-color: #0E5A85 #0E5A85 #0E5A85; 213 border-style: ridge ridge solid; 214 border-width: 1px; 215 color: #FFFFFF; 216 font-size: 22px; 217 padding: 10px; 218 text-shadow: 1px 1px 1px #000000; 219 } 220 221 .mmbsr { 222 width: 56% !important; 223 } 224 225 .sb_wrapper { 226 margin: 0px 0px 0px; 227 padding: 0; 228 width: 100%; 229 z-index: 8; 230 /* border-radius: 6px !important; 231 border: 2px solid #a9a9a9;*/ 232 left: 50%; 233 top: 50%; 234 transform: translate(-50%, -50%); 235 } 236 237 .sb_wrapper input[type="text"] { 238 border-top-left-radius: 4px; 239 border-bottom-left-radius: 4px; 240 border: 2px solid #a9a9a9; 241 background: #fff; 242 font-size: 12px; 243 outline: none; 244 padding: 1px 0px 1px 10px; 245 width: 100%; 246 float: left; 247 margin: 0px 0px; 248 line-height: 26px; 249 border-top-right-radius: 4px; 250 border-bottom-right-radius: 4px; 251 } 252 253 ul.sb_dropdown { 254 border-top-left-radius: 0px; 255 border-bottom-left-radius: 4px; 256 border: none; 257 background: #fff; 258 font-size: 12px; 259 outline: none; 260 padding: 1px 0px 1px 10px; 261 width: 100%; 262 float: left; 263 margin: 0px 0px; 264 line-height: 26px; 265 border-top-right-radius: 0px; 266 border-bottom-right-radius: 4px; 267 } 268 269 ul.sb_dropdown { 270 float: left; 271 list-style: none; 272 width: 100%; 273 padding: 6px 5px; 274 background-color: #fff; 275 height: auto; 276 position: absolute; 277 top: 33px; 278 } 279 280 ul.sb_dropdown li { 281 float: left; 282 width: 100%; 283 border-bottom: 1px solid #f3f3f3; 284 padding: 5px; 285 display: flex; 286 align-items: center; 287 } 288 289 ul.sb_dropdown li a img { 290 width: 150px; 291 padding-right: 10px; 292 } 293 294 ul.sb_dropdown li a { 295 color: #303030; 296 font-size: 13px; 297 text-decoration: none; 298 padding-left: 10px; 299 } 300 301 ul.sb_dropdown li input[type="checkbox"] { 302 float: left; 303 margin: 10px 4px 0 5px; 304 } 305 306 ul.sb_dropdown li.sb_filter { 307 width: 348px; 308 border: 1px solid #f9f9f9; 309 clear: both; 310 background: #ddd; 311 font-size: 12px; 312 text-transform: uppercase; 313 letter-spacing: 1px; 314 color: #444; 315 height: 16px; 316 line-height: 16px; 317 padding: 5px; 318 -moz-box-shadow: 0px 0px 2px #777; 319 -webkit-box-shadow: 0px 0px 3px #555 inset; 320 -box-shadow: 0px 0px 3px #555 inset; 321 } 322 323 span.sb_up { 324 position: absolute; 325 top: 3px; 326 left: 0px; 327 width: 14px; 328 height: 41px; 329 background-color: #f2f2f2; 330 background-position: center center; 331 background-repeat: no-repeat; 332 z-index: 10; 333 border: 1px solid #fff; 334 -moz-box-shadow: 1px 0px 1px #ddd; 335 -webkit-box-shadow: 1px 0px 1px #ddd; 336 -box-shadow: 1px 0px 1px #ddd; 337 } 338 339 340 input.sb_search { 341 height: 28px; 342 width: 40px; 343 float: left; 344 border: none; 345 margin: 0px 0px; 346 border: none; 347 outline: none; 348 cursor: pointer; 349 background: #f9f9f9 url(/../Assets/web/icons/search.png) no-repeat center center; 350 border-top-right-radius: 4px; 351 border-bottom-right-radius: 4px; 352 } 353 354 .mid3-left { 355 float: left; 356 width: auto; 357 padding: 0px 5px 0px; 358 margin: 0px 0px 0px 0px; 359 } 360 361 .mid3-lefts:hover { 362 /*background-color: none !important; 363 color: #d90d0e; 364 border-radius: 3px; 365 padding: 4px 5px 0px;*/ 366 } 367 368 .mid3-left { 369 float: left; 370 width: auto; 371 padding: 0px 0px 0px; 372 margin: 0px 0px 0px 0px; 373 } 374 375 .mid1 a img { 376 padding-top: 0px; 377 width: 135px; 378 padding-left: 0px; 379 } 380 381 .mid3-bottom { 382 width: 100%; 383 float: left; 384 padding-top: 0px; 385 } 386 387 .mid3-right p a { 388 color: #fff; 389 font-size: 14px; 390 font-weight: lighter; 391 text-decoration: none; 392 } 393 394 .mid3-right { 395 background-color: #d90d0e; 396 padding: 4px 1px 0px; 397 margin-left: 0px; 398 } 399 400 .psLocation { 401 margin-top: 5px; 402 margin-bottom: 5px; 403 cursor: pointer; 404 text-align: left; 405 } 406 407 .divPSLocation { 408 width: 96%; 409 float: left; 410 padding: 5px 30px; 411 border: 1px solid black; 412 margin-bottom: 5px; 413 border-radius: 10px; 414 } 415 416 .divPSLocationActive { 417 border: 1px solid red; 418 } 419 420 .psLocaionImage { 421 float: left; 422 width: 30px; 423 margin-right: 10px; 424 } 425 426 .psHeaderImage { 427 width: 16px; 428 height: 18px; 429 } 430 431 i#PSDownArrow { 432 cursor: pointer; 433 vertical-align: middle; 434 padding: 12px 0px 0px 10px; 435 color: #fff; 436 } 437 438 input#btnSearch { 439 position: absolute; 440 right: 2px; 441 top: 2px; 442 } 443 444 form#ui_element p { 445 position: relative; 446 } 447 448 .searchBarprice { 449 width: 17%; 450 float: left; 451 } 452 453 .searchBarName1, .searchBarquant, .searchBarprice { 454 color: #505050; 455 font-size: 14px; 456 } 457 458 .searchBarName1 { 459 white-space: nowrap; 460 overflow: hidden; 461 text-overflow: ellipsis; 462 } 463 464 .searchBarName1 span { 465 display: block; 466 font-size: 11px; 467 line-height: initial; 468 } 469 470 ul.sb_dropdown li { 471 float: left; 472 width: 100%; 473 border-bottom: 1px solid #ccc; 474 padding: 5px; 475 display: flex; 476 align-items: center; 477 } 478 479 ul.sb_dropdown li a { 480 display: flex; 481 align-items: center; 482 width: 100%; 483 } 484 485 .last-tab { 486 justify-content: center; 487 background-color: #fff; 488 width: 100%; 489 text-align: center; 490 padding: 4px; 491 float: left; 492 margin-bottom: 0px; 493 position: sticky !important; 494 bottom: -5px; 495 } 496 497 .last-tab a { 498 color: #a9a9a9; 499 font-weight: 600; 500 text-decoration: none; 501 font-size: 18px; 502 } 503 504 p.last-tab a:hover { 505 color: #d90d0e; 506 } 507 508 ul.sb_dropdown { 509 max-height: 400px; 510 overflow-y: auto; 511 margin-top: -4px; 512 border: 2px solid #a9a9a9; 513 border-top: 0px; 514 padding-top: 0px; 515 padding-bottom: 0px; 516 border-right: 2px double #a9a9a9; 517 } 518 519 ul.sb_dropdown li a { 520 text-decoration: none; 521 } 522 523 i.fa.fa-home { 524 font-size: 22px; 525 margin-right: 20px; 526 } 527 528 ul.sb_dropdown li a:hover .searchBarName1 { 529 color: #d90d0e; 530 font-weight: 600; 531 } 532 533 .middle-header .row { 534 align-items: center; 535 padding: 5px 0px; 536 } 537 538 539 @media (max-width:767px) { 540 .number input { 541 width: 30px; 542 } 543 544 div#myModalCart .modal-dialog { 545 right: 0px; 546 } 547 548 .number { 549 float: left; 550 } 551 552 .checkout1 p a label { 553 margin: 0px; 554 padding: 0px 0px; 555 } 556 557 .slot-info { 558 margin-top: 45px; 559 margin-bottom: -45px; 560 margin-left: 10px; 561 text-align: center; 562 width: 100%; 563 } 564 565 .header { 566 position: fixed; 567 width: 100%; 568 z-index: 999999; 569 background-color: #f5f5f5; 570 height: 124px; 571 top: 0px; 572 } 573 574 .header + div { 575 padding-top: 120px; 576 } 577 578 .div-supermain { 579 background-color: #f5f5f5; 580 margin-top: 10px; 581 } 582 583 .mid3-lefts .dropdown-content { 584 margin-top: 18px;
585 border-radius: 6px; 586 left: -100px !important; 587 } 588 589 .mid3-right.cart-round { 590 z-index: 99999999999999 !important; 591 margin-top: 5px !important; 592 } 593 594 .mid3-bottom { 595 z-index: 9999999999 !important; 596 } 597 598 .cart-round-number p { 599 height: 17px !important; 600 width: 17px !important; 601 font-size: 11px !important; 602 line-height: 15px !important; 603 } 604 .mid3-right p a i { 605 padding-right: 6px !important; 606 font-size: 20px !important; 607 padding-left: 6px !important; 608 padding-top: 5px; 609 } 610 div#navbarNavDropdown { 611 justify-content: left; 612 padding: 10px 10px; 613 background-color: whitesmoke; 614 } 615 } 616 </style> 617 618</head> 619<body> 620 621 <div id="loader1" class="loader1" style="display:none;"> 622 623 </div> 624 <div class="header"> 625 <div class="middle-header pl-5 pr-5 pt-1 pb-1"> 626 <div class="row"> 627 <div class="col-md-1 col-4 pr-0 pl-0 head1"> 628 <div class="mid1"> 629 <a href="/"><img src="/Assets/web/img/logo.png" class="img-fluid" title="Cargills" /></a> 630 </div> 631 </div> 632 633 <div class="col-md-4 col-12 ord2 pr-0 hse"> 634 <div class="mid2"> 635 <div class="content"> 636 <div class="box"> 637 <form id="ui_element" class="sb_wrapper"> 638 <input id="txtSearch" class="sb_input" type="text" placeholder="Search for Products" autocomplete="off" /> 639 <input id="btnSearch" class="sb_search" type="submit" value="" /> 640 <ul class="sb_dropdown" style="display:none;" id="ulsearchdata" id="ulsearchdata"></ul> 641 </form> 642 </div> 643 </div> 644 </div> 645 </div> 646 <div class="col-md-3 col-12 p-0 ponter"> 647 <div class="mid3-left mid3-lefts" id="divdropdata"> 648 <a href="/Index" class="d-block d-md-none"><i class="fa fa-home" aria-hidden="true"></i></a> 649 <i class="fa fa-map-marker" aria-hidden="true"></i> 650 <div class="dropdown-new"> 651 <button id="btnChangeL" type="button" class="dropbtn" onclick="openloc()"></button> 652 <!--<i class="fa fa-angle-down" aria-hidden="true"></i>--> 653 <div class="dropdown-content" style="left: -100%;display:none" id="divpin"> 654 <div class="row lbls"> 655 <div class="col-md-12 col-12 frmss"> 656 <select class="form-control" id="ddlCity"></select> 657 </div> 658 <div class="col-md-6 col-6"> 659 <input id="btnCheckPin1" type="submit" class="butns btnsbt homepage" value="Submit" /> 660 </div> 661 <div class="col-md-6 col-6"> 662 <input id="btnCheckPin1Cancle" type="submit" value="Cancel" class="butns btnsbt homepage" /> 663 </div> 664 </div> 665 </div> 666 </div> 667 </div> 668 <div id="divPSAddress" class="mid3-left mid3-lefts newLoc" style="display: none;"> 669 <img src="/Assets/web/img/psAddressW.png" class="psHeaderImage" /> 670 <span id="spanPSAddress"></span> 671 <div class="dropdown-content" style="left: -15%;display:none" id="divPSList"> 672 <div class="row lbls"> 673 <div class="col-md-12 col-12 frmss"> 674 <select class="form-control" id="ddlPSList"></select> 675 </div> 676 <div class="col-md-6 col-6 frmss">
677 <input id="btnOkPhysicalStoreChange" type="button" name="" value="Submit" class="modalBtn" /> 678 </div> 679 <div class="col-md-6 col-6 frmss"> 680 <input id="btnCancelPhysicalStoreChange" type="button" name="" value="Cancel" class="modalBtn" /> 681 <input type="hidden" id="hfPSNewStoreId" /> 682 </div> 683 </div> 684 </div> 685 </div> 686 <i id="PSDownArrow" class="fa fa-angle-down" aria-hidden="true" style="display:none;cursor: pointer;"></i> 687 688 </div> 689 <div class="col-md-4 col-8 pl-0 pr-0 pt-md-0 head1"> 690 <div class="mid3"> 691 <div class="mid3-bottom"> 692 <div class="mid3-right"> 693 <p id="spnlogin" style="display:none;"><a href="/Login"><i class="fa fa-user" aria-hidden="true"></i><span> Login/Sign Up</span></a></p> 694 <div id="spnSession" style="display:none;"> 695 <p> 696 <i class="fa fa-user" aria-hidden="true"></i> 697 </p> 698 <div class="dropdown"> 699 <button class="dropbtn"> 700 <span id="spnAcc"> 701 My Account 702 </span> 703 <i class="fa fa-angle-down" aria-hidden="true"></i> 704 </button> 705 <div class="dropdown-content prof" id="MyAccountContent"> 706 <a href="javascript:void(0);" style="CURSOR: INITIAL;" class="bld"> <span class="d-block"></span></a> 707 <a href="/ManageProfile">My Profile</a> 708 <a href="/Orders">My Orders</a> 709 <a href="/Rewards">Cargills Rewards</a> 710 <a href="/Offers">Offers</a> 711 <a href="/ManageAddress">Manage Address</a> 712 <a href="/ManageCard">Manage Card</a> 713 <a href="/Notification">Notifications</a> 714 <a href="/Faq">FAQs</a> 715 716 <a href="" onclick="logout()">Logout</a> 717 </div> 718 </div> 719 </div> 720 </div> 721 <div class="mid3-right cart-round"> 722 <button type="button" class="btn" id="btnCart"> 723 <p> 724 <a href="javascript:void(0);"> 725 <img src="/Assets/web/img/cart-icon.png" class="cart-icon" /> 726 <span style="display:none;">My Cart</span> 727 </a> 728 </p><div id="divCartBubble" class="cart-round-number" style="display:none;"><p id="pCartBubble"></p></div> 729 </button> 730 <div class="modal" id="myModalCart"> 731 <div class="modal-dialog"> 732 <div class="modal-content"> 733 <div class="modal-header"> 734 <input id="cancelCart" type="button" value="✖" /> 735 736 <h4 class="modal-title" id="myCartCount"></h4> 737 <h4 class="modal-title" id="myCartClear">Clear</h4> 738 </div> 739 740 <div id="cardData"> 741 <input type="hidden" id="hfcartItemCount" /> 742 <input type="hidden" id="hfcartTotalAmount" /> 743 <div class="cart-content-main"> 744 <div class="cart-content" id="myCartItems"> 745 </div> 746 </div> 747 <div class="checkout"> 748 <div class="checkout1"> 749 <p><a href="javascript:void(0)" onclick="callCheckout()"><label id="myCartTotal"></label></a></p> 750 </div> 751 <div class="checkout1"> 752 <p><a href="javascript:void(0)" onclick="callCheckout()"> View Cart</a><i class="fa fa-angle-right" aria-hidden="true"></i></p> 753 </div> 754 755 </div> 756 </div> 757 <div class="container"> 758 759 <div id="cardEmptyData"> 760 <img src="/Assets/web/img/empty_cart_img_opt1.png" /> 761 762 <a href="/web/Index" class="btnAn1 fulllength">Start Shopping</a> 763 764 </div> 765 </div> 766 </div> 767 </div> 768 </div> 769 </div> 770 771 <div class="googlePlayHeader"> 772 773 <a href="https://play.google.com/store/apps/details?id=com.service.online.cargills" target="_blank"><img src="/Assets/web/img/a2.png" class="img-fluid" /></a> 774 <a href="https://apps.apple.com/in/app/cargills-online/id1524310107" target="_blank"><img src="/Assets/web/img/a1.png" class="img-fluid" /></a> 775 776 </div> 777 778 779 </div> 780 </div> 781 </div> 782 </div> 783 </div> 784 785 <div class="menu-header"> 786 <nav class="navbar navbar-expand-lg navbar-light"> 787 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
788 <span class="navbar-toggler-icon"></span> 789 </button> 790 <div class="collapse navbar-collapse" id="navbarNavDropdown"> 791 792 <ul class="navbar-nav" id="mainMenu"></ul> 793 794 </div> 795 <div class="slot-info"> 796 <span id="del-day" style="font-weight:bold">Delivery Today </span> <span id="slot-time"></span> 797 </div> 798 </nav> 799 </div> 800 </div> 801 <div style="min-height: 510px;"> 802 803 804 805
806<script src="/Scripts/angular.js"></script>
vendor: 2 bytes, line 806
806
807<script src="/Scripts/angular-messages.js"></script>
807 808<style> 809 form.ng-pristine.ng-valid { 810 width: 100%; 811 812} 813 @media (max-width: 768px) { 814 .sb_wrapper { 815 display: none; 816 } 817 .hse { 818 display: none; 819 } 820 .yet p a { 821 color: #d90d0e; 822 text-transform: uppercase; 823 font-size: 16px; 824 padding-left: 8px; 825 } 826 div#navbarNavDropdown { 827 margin-top:0 !important; 828 } 829 } 830</style>
831<script src="/Assets/web/js/jquery.min.js"></script>
vendor: 2 bytes, line 831
831
832<script src="/Assets/web/js/aes.js"></script>
vendor: 2 bytes, line 832
832
833<script> 834 $(".loader").hide(); 835</script>
835 836<div id="divM" style="display:none;"> 837<div> 838 <br /> 839</div> 840<div class="row m-0" style="justify-content: center;"> 841 <h3 class="heading">Login</h3> 842</div> 843 844 845<form action="/Web/UserLogin" method="post"> <div class="row form"> 846 <div class="col-md-6 frmss1"> 847 <label>Email or Mobile Number</label> 848 <input type="text" class="form-control" id="txtUser" name="txtUser" placeholder="[email protected]"> 849 </div> 850 <div class="col-md-6 frmss1 eye"> 851 <label>Password</label> 852 <input type="password" class="form-control" id="txtPwd" name="txtPwd" placeholder="xxxxxxxxxx"> 853 <i id="show_password" class="fa fa-eye-slash" aria-hidden="true"></i> 854 <label class="frgt"> <a id="btnForget" href="/Forget"> Forgot Password? </a></label> 855 </div> 856 <div class="col-md-12 text-center"> 857 <input type="submit" id="btnSign" class="butns5" value="Login"> 858 <div id="timer1" style="display:none;color:#d90d0e;"></div> 859 <span id="msg" style="display:none;">You have already made maximum attempt. Please wait for 60 seconds</span> 860 </div> 861 <div class="col-md-12 yet"> 862 <p>Not signed up yet? <a id="btnSignUp" href="/Signup"> SIGN UP NOW </a> 863 864 </p> 865 866 </div> 867 </div> 868</form><div class="modal fade show" id="modelAlertBox1"> 869 <div class="modal-dialog"> 870 <div class="modal-content"> 871 <div class="modal-header"> 872 <h4 class="modal-title">Cargills Online</h4> 873 </div> 874 <div class="modal-body"> 875 <div class="col-md-12"> 876 <p id="txtAlertText1"></p> 877 </div> 878 </div> 879 <div class="modal-footer"> 880 <div class="mdl123btns"> 881 <input id="btnOk" style="display:none;" type="button" name="" value="OK" class="mdl123btons" ng-click="closeAlertBox1()" /> 882 </div> 883 884 </div> 885 886 </div> 887 </div> 888</div> 889</div> 890<input type="hidden" id="WrongValue" />
891<script src='/Scripts/jquery-2.2.3.min.js'></script>
891 892
893<script> 894 setTimeout(function () { $("#divM").show(); }, 2000); 895 var checkWrong = $("#WrongValue").val(); 896 897 if (checkWrong == "1") 898 { 899 $("#btnSign").hide(); 900 $("#btnForget").hide(); 901 $("#btnSignUp").hide(); 902 $("#msg").show(); 903 $("#timer1").show(); 904 new MyTimer1(function (val) { 905 var timerMsg = "00:" + (val >= 10 ? val : "0" + val); 906 document.getElementById("timer1").textContent = timerMsg; 907 908 }); 909 910 } 911 912 function MyTimer1(callback, val) { 913 val = val || 60; 914 var timer = setInterval(function () { 915 callback(val); 916 if (val-- <= 0) { 917 clearInterval(timer); 918 countResOtp = 0; 919 $("#timer1").hide(); 920 $("#btnSign").show(); 921 $("#btnForget").show(); 922 $("#btnSignUp").show(); 923 $("#msg").hide(); 924 CallResetWrong(); 925 } 926 }, 1000); 927 } 928 929 function CallResetWrong() { 930 var eMobile = Encry("Restore"); 931 var enMobile = eMobile.toString(); 932 $.ajax({
933 url: '/Web/Restore', 934 type: "POST", 935 dataType: 'json', 936 data: { Id: enMobile }, 937 success: function (objdetails) { 938 939 }, 940 error: function (err) { 941 } 942 }); 943 } 944 945 $("#show_password").click(function () { 946 var btn = document.getElementById('txtPwd'); 947 var abc = btn.getAttribute('type'); 948 949 if (abc == "password") { 950 btn.setAttribute('type', 'text'); 951 $('#show_password').removeClass('fa fa-eye-slash').addClass('fa fa-eye'); 952 } 953 else { 954 btn.setAttribute('type', 'password'); 955 $('#show_password').removeClass('fa fa-eye').addClass('fa fa-eye-slash'); 956 } 957 958 }); 959 960 $("#btnOk").click(function () { 961 $("#modelAlertBox1").hide(); 962 }) 963</script>
963 964 </div> 965 <div class="clearfix"></div> 966 967 <div class="return pl-5 pr-5"> 968 <div class="row bordrs"> 969 <div class="returns"> 970 <p>Enter Sri Lanka's freshest online grocery store for all your grocery needs- fresh to frozen and everything in between! Now, you can order ALL your daily necessities from the comfort of your home or anywhere you want! Choose from same-day, next-day & saver to ensure you get what you need when you need it.</p> 971 </div> 972 </div> 973 <div class="row bordrs"> 974 <div class="col-md-4 no-pd"> 975 <div class="return1"> 976 <div class="card"> 977 <div class="row no-gutters"> 978 <div class="col-sm-3"> 979 <img src="/Assets/web/img/D4.jpg" class="img-fluid" /> 980 </div> 981 <div class="col-sm-9"> 982 <div class="card-body"> 983 <h5 class="card-title">Best Prices & Offers</h5> 984 <p class="card-text">Enjoy unbeatable prices and amazing offers every day.</p> 985 </div> 986 </div> 987 </div> 988 </div> 989 </div> 990 </div> 991 <div class="col-md-4 no-pd"> 992 <div class="return1"> 993 <div class="card"> 994 <div class="row no-gutters"> 995 <div class="col-sm-3"> 996 <img src="/Assets/web/img/D5.jpg" class="img-fluid" /> 997 </div> 998 <div class="col-sm-9"> 999 <div class="card-body"> 1000 <h5 class="card-title">Wide Assortment</h5> 1001 <p class="card-text">Choose from a variety of products from branded, chilled, fresh & frozen. New products added weekly!</p> 1002 </div> 1003 </div> 1004 </div> 1005 </div> 1006 </div> 1007 </div> 1008 <div class="col-md-4 no-pd"> 1009 <div class="return1"> 1010 <div class="card"> 1011 <div class="row no-gutters"> 1012 <div class="col-sm-3"> 1013 <img src="/Assets/web/img/D6.jpg" class="img-fluid" /> 1014 </div> 1015 <div class="col-sm-9"> 1016 <div class="card-body"> 1017 <h5 class="card-title">Easy Returns</h5> 1018 <p class="card-text">Not satisfied with a product? Return it at the doorstep & get a refund within hours.</p> 1019 </div> 1020 </div> 1021 </div> 1022 </div> 1023 </div> 1024 </div> 1025 </div> 1026 </div> 1027 1028 <div class="clearfix"></div> 1029 <div class="footer pl-5 pr-5"> 1030 <div class="row"> 1031 <div class="col-md-5 brders"> 1032 <div class="footer-content"> 1033 <h3>Categories</h3> 1034 <ul id="footerCategory" class="catFooter"></ul> 1035 1036 </div> 1037 </div> 1038 <div class="col-md-4 brders no-pd"> 1039 <div class="footer-content"> 1040 <h3>Useful Links</h3> 1041 <ul class="cat2"> 1042 <li><a href="/AboutUs">About Us</a></li> 1043 <li><a href="/ContactUs">Contact Us</a></li> 1044 <li><a href="/Faq">FAQ</a></li> 1045 </ul> 1046 <ul class="cat2"> 1047 <li><a href="/TermConditions">Terms & Conditions</a></li> 1048 <li><a href="/PrivacyPolicy">Privacy Policy</a></li> 1049 <li><a href="/ReturnPolicy">Return Policy</a></li> 1050 </ul> 1051 <h3>Payment Methods</h3> 1052 <div class="cardIcons"> 1053 <ul> 1054 <li><img src="/Assets/web/img/PMIcon1.png" class="img-fluid" /></li> 1055 </ul> 1056 </div> 1057 </div> 1058 </div> 1059 <div class="col-md-3 brders no-pd"> 1060 <div class="footer-content conts" style="border: none;"> 1061 <h3>Download App</h3> 1062 <div class="google-play"> 1063 <a href="https://play.google.com/store/apps/details?id=com.service.online.cargills"><img src="/Assets/web/img/g1.png" class="img-fluid" /></a> 1064 <a href="https://apps.apple.com/in/app/cargills-online/id1524310107"><img src="/Assets/web/img/g2.png" class="img-fluid" /></a> 1065 </div> 1066 <div class="socials"> 1067 <h3>Follow Us</h3> 1068 <ul> 1069 <li><a href="https://www.facebook.com/cargills-online-225589712113194/"><i class="fa fa-facebook" aria-hidden="true"></i></a></li> 1070 <li><a href="https://twitter.com/CargillsOnline"><i class="fa fa-twitter" aria-hidden="true"></i></a></li> 1071 <li><a href="https://www.instagram.com/cargillsonline/"><i class="fa fa-instagram" aria-hidden="true"></i></a></li> 1072 <li><a href="https://www.youtube.com/channel/UCJalrbJo6XQRGahj_iRMNAg"><i class="fa fa-youtube" aria-hidden="true"></i></a></li> 1073 </ul> 1074 </div> 1075 1076 </div> 1077 </div> 1078 </div> 1079 <div class="modal fade show" id="modelAlertBox"> 1080 <div class="modal-dialog"> 1081 <div class="modal-content"> 1082 <div class="modal-header"> 1083 <h4 class="modal-title">Cargills Online</h4> 1084 </div> 1085 <div class="modal-body"> 1086 <div class="col-md-12"> 1087 <p id="txtAlertText"></p> 1088 </div> 1089 </div> 1090 <div class="modal-footer">
1091 <div class="mdl123btns"> 1092 <input id="btnLogoutOk" style="display:none;" type="button" name="" value="OK" class="mdl123btons" /> 1093 </div> 1094 <div class="mdl123btns"> 1095 <input id="btnClearCartOk" style="display:none;" type="button" name="" value="OK" class="mdl123btons" /> 1096 </div> 1097 <div class="mdl123btns"> 1098 <input id="btnLogoutCancel" style="display:none;" type="button" name="" value="Cancel" class="mdl123btons" /> 1099 </div> 1100 <div class="mdl123btns"> 1101 <input id="btnCancel" style="display:none;" type="button" name="" value="Cancel" class="mdl123btons" /> 1102 </div> 1103 <div class="mdl123btns"> 1104 <input id="btnOkHome" style="display:none;" type="button" name="" value="OK" class="mdl123btons" /> 1105 </div> 1106 1107 </div> 1108 1109 </div> 1110 </div> 1111 </div> 1112 1113 <div class="modal fade show modalPopUp" id="modelUpdateAge"> 1114 <div class="modal-dialog"> 1115 <div class="modal-content"> 1116 <div class="modal-header"> 1117 <h4 class="modal-title">Cargills Online</h4> 1118 </div> 1119 <div class="modal-body"> 1120 <div class="col-md-12"> 1121 <p style="text-align: center;font-weight: 600;">Update your Date of Birth</p> 1122 </div> 1123 <div class="col-md-12" style="text-align: center;position: relative;"> 1124 <input type="text" id="txtUpdateDOB" onchange="changeUpdateDOB()" readonly=readonly /><i style="font-size: 26px;position: absolute; 1125 right: 145px;" class="fa fa-calendar" aria-hidden="true"></i> 1126 </div> 1127 <div class="col-md-12"> 1128 <p style="text-align: center;margin-top: 10px;">As per Sri Lankan law liquor & tobacco can only be sold to those 21 years of age or older.</p> 1129 </div> 1130 <div id="divConfirmAge" class="col-md-12" style="display:none;"> 1131 <input type="checkbox" id="cbConfirmAge" style="visibility: visible;margin: 6px 10px;" /><p style="font-size: 11px; 1132 font-weight: 600;">I confirm I am at least 21 years of age and I will not allow anyone below 21 years to make purchases from my account.</p> 1133 </div> 1134 </div> 1135 <div class="modal-footer"> 1136 <div class="mdl123btns"> 1137 <input id="btnUpdateAgeConfirm" type="button" name="" value="Confirm" class="modalBtn" /> 1138 <input id="btnUpdateAgeClose" type="button" name="" value="Close" class="modalBtn" /> 1139 <input type="hidden" id="hfIsAge21Check" /> 1140 </div> 1141 </div> 1142 1143 </div> 1144 </div> 1145 </div> 1146 <div class="modal fade show modalPopUp" id="modelSorryAge"> 1147 <div class="modal-dialog"> 1148 <div class="modal-content"> 1149 <div class="modal-header"> 1150 <h4 class="modal-title">Cargills Online</h4> 1151 </div> 1152 <div class="modal-body"> 1153 <div class="col-md-12" style="text-align:center;"> 1154 <img src="/Assets/web/img/sad_icon.png" /> 1155 </div> 1156 <div class="col-md-12" style="margin-top:10px;"> 1157 <p style="text-align: center;font-weight: 600;">Sorry, access can only be granted to those above 21 years of age.</p> 1158 </div> 1159 <div class="col-md-12" style="text-align: center;"> 1160 <p>In case your date of birth was incorrectly updated with us, please update it in the <a style="color:#d90d0e;text-decoration: underline;" href="/web/ManageProfile">profile section</a></p> 1161 </div> 1162 </div> 1163 <div class="modal-footer">
1164 <div class="mdl123btns"> 1165 <input id="btnSorryAgeOk" type="button" name="" value="OK" class="modalBtn" /> 1166 </div> 1167 </div> 1168 1169 </div> 1170 </div> 1171 </div> 1172 <div class="modal fade show modalPopUp" id="ageUpdateSuccess"> 1173 <div class="modal-dialog"> 1174 <div class="modal-content"> 1175 <div class="modal-header"> 1176 <h4 class="modal-title">Cargills Online</h4> 1177 </div> 1178 <div class="modal-body"> 1179 <div class="col-md-12" id="alerticon" style="text-align: center;"> 1180 <img src="/Assets/web/img/alert_icon.png" /> 1181 </div> 1182 <div class="col-md-12" style="text-align: center;"> 1183 <p id="ageUpdateSuccessP1"></p> 1184 </div> 1185 <div class="col-md-12" style="text-align: center;"> 1186 <p id="ageUpdateSuccessP2" style="display:none;">In case your date of birth was incorrectly updated with us, you may choose to update the same in the <a style="color:#d90d0e;text-decoration: underline;" href="/web/ManageProfile">profile section</a> of app</p> 1187 </div> 1188 </div> 1189 <div class="modal-footer"> 1190 <div class="mdl123btns"> 1191 <input id="btnAgeUpdateOk" type="button" name="" value="OK" class="modalBtn" /> 1192 </div> 1193 </div> 1194 1195 </div> 1196 </div> 1197 </div> 1198 <div class="modal fade show modalPopUp" id="modelImportantInformation"> 1199 <div class="modal-dialog"> 1200 <div class="modal-content"> 1201 <div class="modal-header"> 1202 <h4 class="modal-title">Cargills Online</h4> 1203 </div> 1204 <div class="modal-body"> 1205 <div class="col-md-12"> 1206 <p style="text-align: center;font-weight: 600;color:#d90d0e">Important Information</p> 1207 </div> 1208 <div class="col-md-12" style=""> 1209 <ul> 1210 <li>Liquor & tobacco products are strictly sold to customers at least 21 years of age.</li> 1211 <li>You will be required to present a proof of age at the time of delivery.</li> 1212 <li>Proof of age can be a valid NIC, driving licence or passport.</li> 1213 <li>Our delivery agent will take a photograph of the same at the time of delivery.</li> 1214 </ul> 1215 </div> 1216 </div> 1217 <div class="modal-footer"> 1218 <div class="mdl123btns"> 1219 <input id="btnOkInformation" type="button" name="" value="OK" class="modalBtn" /> 1220 </div> 1221 </div> 1222 1223 </div> 1224 </div> 1225 </div> 1226 <div class="modal fade show modalPopUp" id="modelChangeStore"> 1227 <div class="modal-dialog"> 1228 <div class="modal-content"> 1229 <div class="modal-header"> 1230 <h4 class="modal-title">Cargills Online</h4> 1231 </div> 1232 <div class="modal-body"> 1233 <div class="col-md-12" style="text-align:center;"> 1234 <img src="/Assets/web/img/change_location_icon.png" style="width: 50%;" /> 1235 </div> 1236 <div class="col-md-12" style="margin-top: 15px;"> 1237 <p id="modalStoreChangeP1"></p> 1238 </div> 1239 </div> 1240 <div class="modal-footer">
1241 <div class="mdl123btns"> 1242 <input type="hidden" id="StoreChangePinCode" /> 1243 <input id="btnOkStoreChange" type="button" name="" value="Proceed" class="modalBtn" /> 1244 <input id="btnCancelStoreChange" type="button" name="" value="Cancel" class="modalBtn" /> 1245 </div> 1246 </div> 1247 1248 </div> 1249 </div> 1250 </div> 1251 1252 <div class="modal fade show modalPopUp" id="modelChangePhysicalStoreConfirm"> 1253 <div class="modal-dialog"> 1254 <div class="modal-content"> 1255 <div class="modal-header"> 1256 <h4 class="modal-title">Cargills Online</h4> 1257 </div> 1258 <div class="modal-body"> 1259 <div class="col-md-12" style="text-align:center;"> 1260 <img src="/Assets/web/img/change_location_icon.png" style="width: 50%;" /> 1261 </div> 1262 <div class="col-md-12" style="margin-top: 15px;"> 1263 <p id="modelChangePhysicalStoreConfirmP1">Please note that changing your delivery address can have impact on product availability and delivery schedules.</p> 1264 </div> 1265 </div> 1266 <div class="modal-footer"> 1267 <div class="mdl123btns"> 1268 <input id="btnOkPhysicalStoreChangeConfirm" type="button" name="" value="Proceed" class="modalBtn" /> 1269 <input id="btnCancelPhysicalStoreChangeConfirm" type="button" name="" value="Cancel" class="modalBtn" /> 1270 </div> 1271 </div> 1272 1273 </div> 1274 </div> 1275 </div> 1276 <div class="modal fade show modalPopUp" id="modalNotice"> 1277 <div class="modal-dialog" style="top: 20%;"> 1278 <div class="modal-content"> 1279 <div class="modal-header"> 1280 <h4 class="modal-title">IMPORTANT INFORMATION</h4> 1281 </div> 1282 <div class="modal-body"> 1283 <div class="col-md-12"> 1284 <p>Dear Customer,</p> 1285 <p>We are experiencing a surge in demand. As a result from time to time our slots are full. Please note that at times some slots will become available due to order cancellations. Furthermore, we will be adding new slots everyday at 12AM. Please be patient with us as we try to serve you as best we can.</p> 1286 <p>Thank you,</p> 1287 <p>Team Cargills Online</p> 1288 </div> 1289 </div> 1290 <div class="modal-footer"> 1291 <div class="mdl123btns"> 1292 <input id="btnOkNotice" type="button" name="" value="Proceed" class="modalBtn" /> 1293 </div> 1294 </div> 1295 </div> 1296 </div> 1297 </div> 1298 </div> 1299 <div class="footer2 w-100"> 1300 <p>©Cargills Online 2020-2021</p> 1301 </div> 1302 1303 <div class="clearfix"></div> 1304 1305
1305<script src="/Assets/web/js/bootstrap.js"></script>
1305 1306
1306<script> 1307 1308 CheckLogin(); 1309 getPinCodes(); 1310 1311 function CheckLogin() { 1312 var UID = ""; 1313 if (UID != "") { 1314 $("#spnSession").show(); 1315 $("#spnlogin").hide(); 1316 CheckCart(); 1317 CheckCartItemCounts(); 1318 BindCart("2"); 1319 GetMenu1(); 1320 1321 } 1322 else { 1323 $("#spnSession").hide(); 1324 $("#spnlogin").show(); 1325 $("#divCartBubble").hide(); 1326 CheckLocation1(); 1327 GetMenu1(); 1328 } 1329 } 1330 1331 $("#btnOkHome").click(function () { 1332 $("#modelAlertBox").hide(); 1333 }) 1334 1335 function logout() { 1336 $("#txtAlertText").html("Are you sure you want to logout?"); 1337 $("#modelAlertBox").show(); 1338 $("#btnLogoutCancel").show(); 1339 $("#btnLogoutOk").show(); 1340 $("#btnClearCartOk").hide(); 1341 $("#btnCancel").hide(); 1342 $("#btnOkHome").hide(); 1343 } 1344 1345 $("#btnOkNotice").click(function () { 1346 $(".loader").fadeIn("slow"); 1347 $.ajax({
1348 type: 'POST', 1349 url: '/Web/ChangeNoticeStatus', 1350 dataType: 'json', 1351 data: {}, 1352 success: function (objdetails) { 1353 $("#modalNotice").hide(); 1354 $(".loader").fadeOut("slow"); 1355 }, 1356 error: function (ex) { 1357 $("#modalNotice").hide(); 1358 $(".loader").fadeOut("slow"); 1359 } 1360 }); 1361 }); 1362 1363 $("#btnLogoutCancel").click(function () { 1364 $("#modelAlertBox").hide(); 1365 }); 1366 1367 $("#btnCancel").click(function () { 1368 $("#modelAlertBox").hide(); 1369 }); 1370 1371 $(document).on('click', '.ageRestrictMsgPopUp', function () { 1372 $("#modelImportantInformation").show(); 1373 }); 1374 1375 $(document).on('click', '#btnOkInformation', function () { 1376 $("#modelImportantInformation").hide(); 1377 }); 1378 1379 $("#btnLogoutOk").click(function () { 1380 $("#modelAlertBox").hide(); 1381 window.location.href = "/Web/Logout"; 1382 }) 1383 1384 1385 function CheckLocation1() { 1386 var pincode = ""; 1387 if (pincode != "") { 1388 setTimeout(function () { 1389 $("#ddlCity").val(pincode); 1390 $("#btnChangeL").html(pincode + "<i class='fa fa-angle-down' aria-hidden='true'></i>"); 1391 var storeType = ""; 1392 if (storeType == "2") { 1393 $("#divPSAddress").show(); 1394 checkMultiplePhysicalStore(); 1395 } else { 1396 $("#divPSAddress").hide(); 1397 } 1398 }, 2000); 1399 1400 } 1401 else { 1402 checkPincode1("Colombo"); 1403 } 1404 } 1405 1406 function checkMultiplePhysicalStore() { 1407 $(".loader").fadeIn("slow"); 1408 $.ajax({
1409 type: 'POST', 1410 url: '/Web/CheckMultiplePhysicalStore', 1411 dataType: 'json', 1412 data: {}, 1413 success: function (objdetails) { 1414 $("#psLocationList").html(""); 1415 if (objdetails[0].Address != "NA") { 1416 if (objdetails.length > 1) { 1417 $("#PSDownArrow").show(); 1418 var psLoc = ""; 1419 $.each(objdetails, function (i, objdetails) { 1420 $("#ddlPSList").append($("<option></option>").val(objdetails.StoreId).html(objdetails.Address)); 1421 }); 1422 } else { 1423 $("#PSDownArrow").hide(); 1424 } 1425 } else { 1426 $("#PSDownArrow").hide(); 1427 } 1428 $(".loader").fadeOut("slow"); 1429 }, 1430 error: function (ex) { 1431 setTimeout(function () { CheckLocation1(); }, 500); 1432 $(".loader").fadeOut("slow"); 1433 } 1434 }); 1435 } 1436 $("#PSDownArrow").click(function () { 1437 $("#divPSList").show(); 1438 }); 1439 $("#btnCancelPhysicalStoreChange").click(function () { 1440 $("#divPSList").hide(); 1441 }); 1442 $("#btnCancelPhysicalStoreChangeConfirm").click(function () { 1443 $("#modelChangePhysicalStoreConfirm").hide(); 1444 }); 1445 $("#btnOkPhysicalStoreChange").click(function () { 1446 var StoreId = $("#ddlPSList").val(); 1447 if (StoreId != "") { 1448 var storeId = ""; 1449 if (storeId != StoreId) { 1450 $("#modelChangePhysicalStoreConfirm").show(); 1451 } 1452 else { 1453 $("#divPSList").hide(); 1454 } 1455 } else { 1456 $("#txtAlertText").html("Please select store"); 1457 $("#modelAlertBox").show(); 1458 $("#btnOkHome").show(); 1459 $("#btnCancel").hide(); 1460 $("#btnClearCartOk").hide(); 1461 $("#btnLogoutCancel").hide(); 1462 $("#btnLogoutOk").hide(); 1463 } 1464 }); 1465 $("#btnOkPhysicalStoreChangeConfirm").click(function () { 1466 var storeId = $("#ddlPSList").val(); 1467 if (storeId != "") { 1468 $(".loader1").fadeIn("slow"); 1469 $.ajax({
1470 type: 'POST', 1471 url: '/Web/UpdatePhysicalStoreCart', 1472 dataType: 'json', 1473 data: { StoreId: storeId }, 1474 success: function (objdetails) { 1475 $(".loader1").fadeOut("slow"); 1476 location.reload(); 1477 }, 1478 error: function (ex) { 1479 // alert('Failed.' + ex); 1480 } 1481 }); 1482 } else { 1483 $("#txtAlertText").html("Please select store"); 1484 $("#modelAlertBox").show(); 1485 $("#btnOkHome").show(); 1486 $("#btnCancel").hide(); 1487 $("#btnClearCartOk").hide(); 1488 $("#btnLogoutCancel").hide(); 1489 $("#btnLogoutOk").hide(); 1490 } 1491 }); 1492 1493 function CheckCart() { 1494 $(".loader").fadeIn("slow"); 1495 $.ajax({ 1496 type: 'POST', 1497 url: '/Web/CheckCartWithResponse', 1498 dataType: 'json', 1499 data: {}, 1500 success: function (objdetails) { 1501 var pincode = objdetails; 1502 if (pincode != "") { 1503 setTimeout(function () { 1504 $("#ddlCity").val(pincode); 1505 $("#btnChangeL").html(pincode + "<i class='fa fa-angle-down' aria-hidden='true'></i>"); 1506 var storeType = ""; 1507 if (storeType == "2") { 1508 $("#divPSAddress").show(); 1509 checkMultiplePhysicalStore(); 1510 } else { 1511 $("#divPSAddress").hide(); 1512 } 1513 }, 2000); 1514 } 1515 else { 1516 checkPincode1("Colombo"); 1517 } 1518 $(".loader").fadeOut("slow"); 1519 }, 1520 error: function (ex) { 1521 setTimeout(function () { CheckLocation1(); }, 500); 1522 $(".loader").fadeOut("slow"); 1523 } 1524 }); 1525 } 1526 1527 $("#btnCheckPin1").click(function () { 1528 var da = $("#ddlCity").val(); 1529 checkPincode1(da); 1530 }); 1531 1532 function getPinCodes() { 1533 $.ajax({
1534 type: 'POST', 1535 url: '/Web/GetPinCodes', 1536 dataType: 'json', 1537 data: {}, 1538 success: function (objdetails) { 1539 $.each(objdetails, function (i, objdetails) { 1540 $("#ddlCity").append($("<option></option>").val(objdetails.Location).html(objdetails.Location)); 1541 }); 1542 }, 1543 error: function (ex) { 1544 //alert('Failed.' + ex); 1545 } 1546 }); 1547 } 1548 1549 1550 function checkPincode1(da) { 1551 $(".loader1").fadeIn("slow"); 1552 $.ajax({ 1553 type: 'POST', 1554 url: '/Web/CheckDeliveryOptionV1', 1555 dataType: 'json', 1556 data: { PinCode: da }, 1557 success: function (objdetails) { 1558 $(".loader1").fadeOut("slow"); 1559 if (objdetails[0].StoreId == "-1") { 1560 alert('Sorry no stores available for this location.'); 1561 $("#ddlCity").val(da); 1562 $("#btnChangeL").html(da + "<i class='fa fa-angle-down' aria-hidden='true'></i>"); 1563 $("#divpin").hide(); 1564 } 1565 else if (objdetails[0].StoreId == "-2") { 1566 $("#modalStoreChangeP1").html("Please note that changing your delivery address can have impact on product availability and delivery schedules."); 1567 $("#StoreChangePinCode").val(objdetails[0].PinCode); 1568 $("#modelChangeStore").show(); 1569 } 1570 else { 1571 $("#ddlCity").val(da); 1572 $("#btnChangeL").html(da + "<i class='fa fa-angle-down' aria-hidden='true'></i>"); 1573 $("#divpin").hide(); 1574 var storeType = ""; 1575 if (storeType == "2") { 1576 $("#divPSAddress").show(); 1577 checkMultiplePhysicalStore(); 1578 } else { 1579 $("#divPSAddress").hide(); 1580 } 1581 } 1582 }, 1583 error: function (ex) { 1584 // alert('Failed.' + ex); 1585 } 1586 }); 1587 } 1588 1589 $("#btnCancelStoreChange").click(function () { 1590 $("#modelChangeStore").hide(); 1591 }); 1592 1593 $("#btnOkStoreChange").click(function () { 1594 var PinCode = $("#StoreChangePinCode").val(); 1595 var Locality = $("#StoreChangePinCode").val(); 1596 $(".loader1").fadeIn("slow"); 1597 $("#modelChangeStore").hide(); 1598 $.ajax({
1599 type: 'POST', 1600 url: '/Web/UpdateStoreCart', 1601 dataType: 'json', 1602 data: { PinCode: PinCode, Locality: Locality }, 1603 success: function (objdetails) { 1604 $(".loader1").fadeOut("slow"); 1605 if (objdetails[0].StoreId == "-1") { 1606 location.reload(); 1607 } 1608 else if (objdetails[0].StoreId == "-2") { 1609 location.reload(); 1610 } 1611 else { 1612 location.reload(); 1613 } 1614 1615 }, 1616 error: function (ex) { 1617 // alert('Failed.' + ex); 1618 } 1619 }); 1620 }); 1621 1622 function GetMenu1() { 1623 var menuContent = "<li class='nav-item dropdown'><a class='nav-link dropdown-toggle shops-cat' href='/Web/Category' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>Shop By Category <i class='fa fa-angle-right' aria-hidden='true' style='color: #505050'></i></a><div class='dropdown-menu' aria-labelledby='navbarDropdownMenuLink'>"; 1624 var menuall = ""; 1625 $(".loader1").fadeIn("slow"); 1626 $.ajax({
1627 url: '/Web/GetCategoriesV1', 1628 type: "POST", 1629 contentType: false, 1630 processData: false, 1631 data: "", 1632 success: function (objdetails) { 1633 $.each(objdetails, function (i, objdetails) { 1634 if (objdetails.IsAgeRestrictStatus == "0") { 1635 //menuall = menuall + "<a style='position: relative;' class='dropdown-item' href='/Web/Login'><img class='imgCatM' src='" + objdetails.Image + "'/><img class='lockImg' src='/Assets/web/img/lock_icon.png'/>" + objdetails.MenuCategoryName + "</a>"; 1636 menuall = menuall + "<a style='position: relative;' class='dropdown-item' href='/Login'>" + objdetails.MenuCategoryName + "<img class='lockImg' src='/Assets/web/img/lock_icon.png'/></a>"; 1637 $("#footerCategory").append("<li><a href='/Login'>" + objdetails.MenuCategoryName + "</a></li>"); 1638 } 1639 else if (objdetails.IsAgeRestrictStatus == "1") { 1640 //menuall = menuall + "<a id='btnUpdateAge' style='position: relative;' class='dropdown-item' href='javascript:void(0);' ><img class='imgCatM' src='" + objdetails.Image + "'/><img class='lockImg' src='/Assets/web/img/lock_icon.png'/>" + objdetails.MenuCategoryName + "</a>"; 1641 menuall = menuall + "<a id='btnUpdateAge' style='position: relative;' class='dropdown-item' href='javascript:void(0);' >" + objdetails.MenuCategoryName + "<img class='lockImg' src='/Assets/web/img/lock_icon.png'/></a>"; 1642 $("#footerCategory").append("<li><a id='btnUpdateAge' href='javascript:void(0);'>" + objdetails.MenuCategoryName + "</a></li>"); 1643 } 1644 else if (objdetails.IsAgeRestrictStatus == "2") { 1645 //menuall = menuall + "<a id='btnSorryAge' style='position: relative;' class='dropdown-item' href='javascript:void(0);'><img class='imgCatM' src='" + objdetails.Image + "'/><img class='lockImg' src='/Assets/web/img/lock_icon.png'/>" + objdetails.MenuCategoryName + "</a>"; 1646 menuall = menuall + "<a id='btnSorryAge' style='position: relative;' class='dropdown-item' href='javascript:void(0);'>" + objdetails.MenuCategoryName + "<img class='lockImg' src='/Assets/web/img/lock_icon.png'/></a>"; 1647 $("#footerCategory").append("<li><a id='btnSorryAge' href='javascript:void(0);'>" + objdetails.MenuCategoryName + "</a></li>"); 1648 } 1649 else { 1650 //menuall = menuall + "<a class='dropdown-item' href='/Web/Product?IC=" + objdetails.EnId + "&NC=" + objdetails.EnMenuCategoryName + "'><img class='imgCatM' src='" + objdetails.Image + "'/>" + objdetails.MenuCategoryName + "</a>"; 1651 menuall = menuall + "<a class='dropdown-item' href='/Product/" + objdetails.MenuCategoryName.replace(/ /g, "-").replace(/&/g, "And") +"?IC=" + objdetails.EnId + "&NC=" + objdetails.EnMenuCategoryName + "'>" + objdetails.MenuCategoryName + "</a>"; 1652 1653 $("#footerCategory").append("<li><a href='/Product/" + objdetails.MenuCategoryName.replace(/ /g, "-").replace(/&/g, "And") +"?IC=" + objdetails.EnId + "&NC=" + objdetails.EnMenuCategoryName + "'>" + objdetails.MenuCategoryName + "</a></li>"); 1654 } 1655 }); 1656 1657 menuContent = menuContent + menuall + "</div></li>"; 1658 1659 GetMenu2(menuContent); 1660 }, 1661 error: function (err) { 1662 //alert(err.statusText); 1663 } 1664 }); 1665 1666 } 1667 1668 function GetMenu2(oldHtml) { 1669 $.ajax({
1670 url: '/Web/GetPopularCatgoryV1', 1671 type: "POST", 1672 contentType: false, 1673 processData: false, 1674 data: "", 1675 success: function (objdetails) { 1676 $.each(objdetails, function (i, objdetails) { 1677 Message = objdetails.MenuCategoryName; 1678 1679 if (objdetails.IsAgeRestrictStatus == "0") { 1680 oldHtml = oldHtml + "<li class='nav-item'><a class='nav-link' href='/Login'>" + objdetails.MenuCategoryName + "</a> </li>"; 1681 } 1682 else if (objdetails.IsAgeRestrictStatus == "1") { 1683 oldHtml = oldHtml + "<li class='nav-item'><a id='btnUpdateAge' class='nav-link' href='javascript:void(0);'>" + objdetails.MenuCategoryName + "</a> </li>"; 1684 } 1685 else if (objdetails.IsAgeRestrictStatus == "2") { 1686 oldHtml = oldHtml + "<li class='nav-item'><a id='btnSorryAge' class='nav-link' href='javascript:void(0);' >" + objdetails.MenuCategoryName + "</a> </li>"; 1687 } 1688 else { 1689 oldHtml = oldHtml + "<li class='nav-item'><a class='nav-link' href='/Product/" + objdetails.MenuCategoryName.replace(/ /g, "-").replace(/&/g, "And") +"?IC=" + objdetails.EnId + "&NC=" + objdetails.EnMenuCategoryName + "'>" + objdetails.MenuCategoryName + "</a> </li>"; 1690 } 1691 }); 1692 1693 $("#mainMenu").append(oldHtml); 1694 1695 $('body').click(function (e) { 1696 $('.nav-item.show').removeClass('show'); 1697 $('.dropdown-menu.show').removeClass('show'); 1698 }); 1699 1700 $('.nav-item').click(function (e) { 1701 $(this).addClass('clicked') 1702 }); 1703 1704 // show dropdown for the link clicked 1705 $('.nav-item').hover(function (e) { 1706 if ($('.nav-item.show').length < 1) { 1707 $('.nav-item.clicked').removeClass('clicked'); 1708 } 1709 if ($('.nav-item.clicked').length < 1) { 1710 $('.nav-item.show').removeClass('show'); 1711 $('.dropdown-menu.show').removeClass('show'); 1712 $dd = $(this).find('.dropdown-menu'); 1713 $dd.parent().addClass('show'); 1714 $dd.addClass('show'); 1715 } 1716 }); 1717 $(".loader1").fadeOut("slow"); 1718 }, 1719 error: function (err) { 1720 //alert(err.statusText); 1721 } 1722 }); 1723 } 1724 1725 $(document).on('click', '#btnUpdateAge', function () { 1726 $("#modelUpdateAge").show(); 1727 }); 1728 $(document).on('click', '#btnSorryAge', function () { 1729 $("#modelSorryAge").show(); 1730 }); 1731 1732 $("#btnSorryAgeOk").click(function () { 1733 $("#modelSorryAge").hide(); 1734 }); 1735 1736 $("#btnUpdateAgeClose").click(function () { 1737 $("#modelUpdateAge").hide(); 1738 }); 1739 1740 $("#btnAgeUpdateOk").click(function () { 1741 location.reload(); 1742 }); 1743 1744 $("#btnUpdateAgeConfirm").click(function () { 1745 var age = $("#txtUpdateDOB").val(); 1746 if (age != "") { 1747 var isCheck = $("#hfIsAge21Check").val(); 1748 if (isCheck == "1") { 1749 var checkbox = $('#cbConfirmAge'); 1750 if (checkbox.is(':checked')) { 1751 updateDOB(age, "1"); 1752 } else { 1753 $("#txtAlertText").html("Please confirm that you are at least 21 years of age and will not allow anyone below 21 years to make purchases from your account."); 1754 $("#modelAlertBox").show(); 1755 $("#btnOkHome").show(); 1756 $("#btnCancel").hide(); 1757 $("#btnClearCartOk").hide(); 1758 $("#btnLogoutCancel").hide(); 1759 $("#btnLogoutOk").hide(); 1760 } 1761 } 1762 else { 1763 updateDOB(age, "2"); 1764 } 1765 } 1766 else { 1767 $("#txtAlertText").html("Please select your date of birth"); 1768 $("#modelAlertBox").show(); 1769 $("#btnOkHome").show(); 1770 $("#btnCancel").hide(); 1771 $("#btnClearCartOk").hide(); 1772 $("#btnLogoutCancel").hide(); 1773 $("#btnLogoutOk").hide(); 1774 } 1775 }); 1776 1777 function changeUpdateDOB() { 1778 var age = $("#txtUpdateDOB").val(); 1779 if (age != "") { 1780 var da1 = age.substring(0, 2); 1781 var mo1 = age.substring(3, 5); 1782 var ye1 = age.substring(6, 10); 1783 var dat = da1 + "/" + mo1 + "/" + ye1; 1784 $.ajax({
1785 type: 'POST', 1786 url: '/Web/CheckDOBDifference', 1787 dataType: 'json', 1788 data: { Date1: dat }, 1789 success: function (objdetails) { 1790 var ageDiff = objdetails; 1791 if (ageDiff == 2) { 1792 $("#divConfirmAge").show(); 1793 $("#hfIsAge21Check").val("1"); 1794 } 1795 else { 1796 $("#divConfirmAge").hide(); 1797 $("#hfIsAge21Check").val("0"); 1798 } 1799 }, 1800 error: function (ex) { 1801 // alert('Failed.' + ex); 1802 } 1803 }); 1804 } 1805 else { 1806 $("#divConfirmAge").hide(); 1807 } 1808 } 1809 1810 function updateDOB(age, type) { 1811 $.ajax({ 1812 type: 'POST', 1813 url: '/Web/UpdateDOB', 1814 dataType: 'json', 1815 data: { DOB: age }, 1816 success: function (objdetails) { 1817 if (objdetails == "-1") { 1818 window.location.href = "/Login"; 1819 } 1820 else if (objdetails == "-2") { 1821 $("#txtAlertText").html("Please select your date of birth."); 1822 $("#modelAlertBox").show(); 1823 $("#btnOkHome").show(); 1824 $("#btnCancel").hide(); 1825 $("#btnClearCartOk").hide(); 1826 $("#btnLogoutCancel").hide(); 1827 $("#btnLogoutOk").hide(); 1828 } 1829 else if (objdetails == "Success") { 1830 if (type == "1") { 1831 $("#ageUpdateSuccessP1").html("Your date of birth has been successfully updated with us. You now have access to our wide collection of liquor and tobacco products. Enjoy Responsibly!"); 1832 $("#ageUpdateSuccessP2").hide(); 1833 $("#alerticon").hide(); 1834 } 1835 else { 1836 $("#ageUpdateSuccessP1").html("Thanks for updating your date of birth. However, in compliance with Sri Lankan regulations we cannot grant you access to this category. Come back on your 21st birthday"); 1837 $("#ageUpdateSuccessP2").show(); 1838 $("#alerticon").show(); 1839 } 1840 $("#ageUpdateSuccess").show(); 1841 } 1842 else { 1843 $("#txtAlertText").html(objdetails); 1844 $("#modelAlertBox").show(); 1845 $("#btnOkHome").show(); 1846 $("#btnCancel").hide(); 1847 $("#btnClearCartOk").hide(); 1848 $("#btnLogoutCancel").hide(); 1849 $("#btnLogoutOk").hide(); 1850 } 1851 }, 1852 error: function (ex) { 1853 // alert('Failed.' + ex); 1854 } 1855 }); 1856 } 1857 1858 1859 1860 $(document).on('click', '#btnCart', function () { 1861 BindCart("1"); 1862 }); 1863 1864 function BindCart(type) { 1865 $.ajax({
1866 type: 'POST', 1867 url: '/Web/GetReviewCartDetailsD', 1868 dataType: 'json', 1869 data: {}, 1870 success: function (objdetails) { 1871 1872 if (objdetails[0].Id == -1) { 1873 window.location.href = "/Login"; 1874 } 1875 else if (objdetails[0].Id == 0) { 1876 $("#cardData").hide(); 1877 $("#cardEmptyData").show(); 1878 $("#myCartClear").hide(); 1879 1880 if (type == "1") { 1881 $("#myModalCart").show(); 1882 } 1883 } 1884 else { 1885 var subTotal = 0; 1886 var cardItems = ""; 1887 var count = objdetails.length; 1888 var countNew = 0; 1889 1890 $.each(objdetails, function (i, objdetails) { 1891 var price = objdetails.Price; 1892 var quantity = objdetails.Quantity; 1893 countNew = countNew + parseInt(quantity); 1894 var f1 = parseFloat(price); 1895 var f2 = parseFloat(quantity); 1896 subTotal = parseFloat(subTotal) + (f1 * f2); 1897 var crtplusId = "crtplus" + objdetails.Id; 1898 var minusId = "minus" + objdetails.Id; 1899 var plusId = "plus" + objdetails.Id; 1900 var quantId = "quant" + objdetails.Id; 1901 var maxQuantId = "maxQuant" + objdetails.Id; 1902 var priceId = "price" + objdetails.Id; 1903 var loaderId = "lII" + objdetails.Id; 1904 var delId = "del" + objdetails.Id; 1905 var invId = "inv" + objdetails.Id; 1906 var catCodeId = "catCode" + objdetails.Id; 1907 var unitSizeId = "unitSize" + objdetails.Id; 1908 var pNameId = "pName" + objdetails.Id; 1909 var pCodeId = "pCode" + objdetails.Id; 1910 var inventory = parseFloat(objdetails.Inventory); 1911 var status = objdetails.IsActive; 1912 var seal = objdetails.IsSaleable; 1913 var isAgeRestricted = objdetails.IsRestricted; 1914 if (objdetails.Mrp != "0.00") { 1915 cardItems = cardItems + "<div class='row brft' id='" + crtplusId + "'><div class='col-md-6 col-6'><div class='carts cart-veg' style='text-align: center;'><img src='" + objdetails.ItemImage + "' class='img-fluid' onerror=this.src='/Assets/Web/img/loading_img1.png' /><div class='cart-veg-small'><img src='/Assets/web/img/veg.png' class='img-fluid'></div></div></div><div class='col-md-6 col-6'><div class='carts1'><h4>" + objdetails.ItemName + " - " + objdetails.UnitSize + " " + objdetails.UOM + "</h4><h5 class='txtSmall'>Rs " + objdetails.Price + " <s>MRP: Rs " + objdetails.Mrp + "</s></h5><p>(Inclusive of all taxes)</p><div class='plus-minus number mmbsr'><div id='" + loaderId + "' class='loaderItem' style='display:none;'><img src='/Assets/img/ven-loader.gif' /></div>"; 1916 if (inventory < 1 || (status != "0" && status != "1") || seal == "False" || quantity < 1) { 1917 cardItems = cardItems + "<span class='DelProR' id='" + delId + "'><i class='fa fa-trash-o'></i></span><span class='UnProR'>Unavailable</span>"; 1918 } 1919 else { 1920 cardItems = cardItems + "<span class='minus minusC' id='" + minusId + "'>-</span><input type='text' id='" + quantId + "' readonly value='" + objdetails.Quantity + "' /><span class='plus plusC' id='" + plusId + "'>+</span>"; 1921 } 1922 cardItems = cardItems + "</div></div><input id='" + maxQuantId + "' type='hidden' value='" + objdetails.MaxOrderQuantity + "' /><input id='" + priceId + "' type='hidden' value='" + objdetails.Price + "' /><input id='" + invId + "' type='hidden' value='" + objdetails.Inventory + "' /><input id='" + catCodeId + "' type='hidden' value='" + objdetails.CategoryCode + "' /><input id='" + unitSizeId + "' type='hidden' value='" + objdetails.UnitSize + "' /><input id='" + pNameId + "' type='hidden' value='" + objdetails.ItemName + "' /><input id='" + pCodeId + "' type='hidden' value='" + objdetails.SKUCODE + "' /></div>"; 1923 if (isAgeRestricted == "True") { 1924 cardItems = cardItems + "<div class='col-md-6 col-12'><a class='ageRestrictMsgPopUp' href='javascript:void(0);'><img src='/Assets/web/img/alert_icon2.png' />21+ years, Proof of age required at delivery</a></div>"; 1925 } 1926 cardItems = cardItems + "</div>"; 1927 1928 1929 } 1930 else { 1931 cardItems = cardItems + "<div class='row brft' id='" + crtplusId + "'><div class='col-md-6 col-6'><div class='carts cart-veg' style='text-align: center;'><img src='" + objdetails.ItemImage + "' class='img-fluid' onerror=this.src='/Assets/Web/img/loading_img1.png' /><div class='cart-veg-small'><img src='/Assets/web/img/veg.png' class='img-fluid'></div></div></div><div class='col-md-6 col-6'><div class='carts1'><h4>" + objdetails.ItemName + " - " + objdetails.UnitSize + " " + objdetails.UOM + "</h4><h5 class='txtSmall' style=' width: 100%;'>Rs " + objdetails.Price + "</h5><p>(Inclusive of all taxes)</p><div class='plus-minus number mmbsr'><div id='" + loaderId + "' class='loaderItem' style='display:none;'><img src='/Assets/img/ven-loader.gif' /></div>"; 1932 if (inventory < 1 || (status != "0" && status != "1") || seal == "False" || quantity < 1) { 1933 cardItems = cardItems + "<span class='DelProR' id='" + delId + "'>
1933<i class='fa fa-trash-o'></i></span><span class='UnProR'>Unavailable</span>"; 1934 } 1935 else { 1936 cardItems = cardItems + "<span class='minus minusC' id='" + minusId + "'>-</span><input type='text' id='" + quantId + "' readonly value='" + objdetails.Quantity + "' /><span class='plus plusC' id='" + plusId + "'>+</span>"; 1937 } 1938 cardItems = cardItems + "</div></div><input id='" + maxQuantId + "' type='hidden' value='" + objdetails.MaxOrderQuantity + "' /><input id='" + priceId + "' type='hidden' value='" + objdetails.Price + "' /><input id='" + invId + "' type='hidden' value='" + objdetails.Inventory + "' /><input id='" + catCodeId + "' type='hidden' value='" + objdetails.CategoryCode + "' /><input id='" + unitSizeId + "' type='hidden' value='" + objdetails.UnitSize + "' /><input id='" + pNameId + "' type='hidden' value='" + objdetails.ItemName + "' /><input id='" + pCodeId + "' type='hidden' value='" + objdetails.SKUCODE + "' /></div>"; 1939 if (isAgeRestricted == "True") { 1940 cardItems = cardItems + "<div class='col-md-6 col-12'><a class='ageRestrictMsgPopUp' href='javascript:void(0);'><img src='/Assets/web/img/alert_icon2.png' />21+ years, Proof of age required at delivery</a></div>"; 1941 } 1942 cardItems = cardItems + "</div>"; 1943 } 1944 1945 }); 1946 1947 $("#myCartCount").html("Review Cart (" + countNew + " items)"); 1948 $("#myCartItems").html(cardItems); 1949 $("#myCartTotal").html("Rs." + subTotal.toFixed(2)); 1950 $("#hfcartTotalAmount").val(subTotal.toFixed(2)); 1951 $("#hfcartItemCount").val(countNew); 1952 1953 $("#cardData").show(); 1954 $("#cardEmptyData").hide(); 1955 $("#myCartClear").show(); 1956 if (type == "1") { 1957 $("#myModalCart").show(); 1958 } 1959 } 1960 1961 1962 }, 1963 error: function (ex) { 1964 // alert('Failed.' + ex); 1965 $(".loader").fadeOut("slow"); 1966 } 1967 }); 1968 } 1969 1970 $("#btnClearCartOk").click(function () { 1971 $("#modelAlertBox").hide(); 1972 $(".loader").fadeIn("slow"); 1973 $.ajax({
1974 type: 'POST', 1975 url: '/Web/ClearCart', 1976 dataType: 'json', 1977 data: {}, 1978 success: function (objdetails) { 1979 window.location.href = "/Index"; 1980 }, 1981 error: function (ex) { 1982 //alert('Failed.' + ex); 1983 $(".loader").fadeOut("slow"); 1984 } 1985 }); 1986 }) 1987 1988 $("#myCartClear").click(function () { 1989 $("#txtAlertText").html("Are you sure you want to clear cart?"); 1990 $("#modelAlertBox").show(); 1991 $("#btnCancel").show(); 1992 $("#btnClearCartOk").show(); 1993 $("#btnLogoutCancel").hide(); 1994 $("#btnLogoutOk").hide(); 1995 $("#btnOkHome").hide(); 1996 1997 }); 1998 1999 $(document).on('click', '.minusC', function () { 2000 var btnId = $(this).attr('id'); 2001 var prodId = btnId.substr(5, btnId.length - 5); 2002 var quantId = "#quant" + prodId; 2003 var quantValue = $(quantId).val(); 2004 var newQuantValue = parseInt(quantValue) - 1; 2005 var priceId = "#price" + prodId; 2006 var loaderId = "#lII" + prodId; 2007 var catCodeId = "#catCode" + prodId; 2008 var unitSizeId = "#unitSize" + prodId; 2009 var catCode = $(catCodeId).val(); 2010 var unitSize = $(unitSizeId).val(); 2011 $(loaderId).fadeIn("slow"); 2012 var price = $(priceId).val(); 2013 if (newQuantValue > 0) { 2014 AddCart(prodId, newQuantValue, catCode, unitSize, "2", ""); 2015 $(quantId).val(newQuantValue); 2016 var oldSubT = $("#hfcartTotalAmount").val(); 2017 var oldItemC = $("#hfcartItemCount").val(); 2018 var newItemC = parseInt(oldItemC) - 1; 2019 var newSubT = parseFloat(oldSubT) - parseFloat(price); 2020 $("#myCartCount").html("Review Cart (" + newItemC + " items)"); 2021 $("#hfcartItemCount").val(newItemC); 2022 $("#myCartTotal").html("Rs." + newSubT.toFixed(2)); 2023 $("#hfcartTotalAmount").val(newSubT); 2024 $(loaderId).fadeOut("slow"); 2025 CheckCartItemCounts(); 2026 } 2027 if (newQuantValue <= 0) { 2028 $("#crtplus" + prodId).hide();
2029 DeleteCart(prodId, catCode, unitSize); 2030 var oldSubT = $("#hfcartTotalAmount").val(); 2031 var oldItemC = $("#hfcartItemCount").val(); 2032 2033 var newItemC = parseInt(oldItemC) - 1; 2034 var newSubT = parseFloat(oldSubT) - parseFloat(price); 2035 $("#myCartCount").html("Review Cart (" + newItemC + " items)"); 2036 $("#hfcartItemCount").val(newItemC); 2037 $("#myCartTotal").html("Rs." + newSubT.toFixed(2)); 2038 $("#hfcartTotalAmount").val(newSubT); 2039 setTimeout(function () { 2040 BindCart("1"); 2041 CheckCartItemCounts(); 2042 }, 500); 2043 $(loaderId).fadeOut("slow"); 2044 } 2045 }); 2046 2047 $(document).on('click', '.plusC', function () { 2048 var btnId = $(this).attr('id'); 2049 var prodId = btnId.substr(4, btnId.length - 4); 2050 var quantId = "#quant" + prodId; 2051 var quantValue = $(quantId).val(); 2052 var maxQuantId = "#maxQuant" + prodId; 2053 var maxQuantValue = $(maxQuantId).val(); 2054 var priceId = "#price" + prodId; 2055 var invId = "#inv" + prodId; 2056 var invValue = $(invId).val(); 2057 var loaderId = "#lII" + prodId; 2058 var catCodeId = "#catCode" + prodId; 2059 var unitSizeId = "#unitSize" + prodId; 2060 var catCode = $(catCodeId).val(); 2061 var unitSize = $(unitSizeId).val(); 2062 var pNameId = "#pName" + prodId; 2063 var pCodeId = "#pCode" + prodId; 2064 var pName = $(pNameId).val(); 2065 var pCode = $(pCodeId).val(); 2066 $(loaderId).fadeIn("slow"); 2067 var price = $(priceId).val(); 2068 if (parseInt(quantValue) < parseInt(maxQuantValue) && parseInt(quantValue) < parseInt(invValue)) { 2069 var newQuantValue = parseInt(quantValue) + 1; 2070 AddCart(prodId, newQuantValue, catCode, unitSize, "1", quantId); 2071 $(quantId).val(newQuantValue); 2072 var oldSubT = $("#hfcartTotalAmount").val(); 2073 var oldItemC = $("#hfcartItemCount").val(); 2074 var newItemC = parseInt(oldItemC) + 1; 2075 var newSubT = parseFloat(oldSubT) + parseFloat(price); 2076 $("#myCartCount").html("Review Cart (" + newItemC + " items)"); 2077 $("#hfcartItemCount").val(newItemC); 2078 $("#myCartTotal").html("Rs." + newSubT.toFixed(2)); 2079 $("#hfcartTotalAmount").val(newSubT); 2080 CheckCartItemCounts(); 2081 logAddToCartEvent(pName, pCode, catCode, "LKR", price) 2082 $(loaderId).fadeOut("slow"); 2083 } 2084 else { 2085 $("#txtAlertText").html("Sorry, we currently have limited stock and won't be able to add anymore to your cart."); 2086 $("#btnOkHome").show(); 2087 $("#btnCancel").hide(); 2088 $("#btnClearCartOk").hide(); 2089 $("#btnLogoutCancel").hide(); 2090 $("#btnLogoutOk").hide(); 2091 $("#modelAlertBox").show(); 2092 $(loaderId).fadeOut("slow"); 2093 } 2094 }); 2095 2096 $(document).on('click', '.DelProR', function () { 2097 var btnId = $(this).attr('id'); 2098 var prodId = btnId.substr(3, btnId.length - 3); 2099 var quantId = "#quant" + prodId; 2100 var quantValue = $(quantId).val(); 2101 var newQuantValue = parseInt(quantValue) - 1; 2102 var priceId = "#price" + prodId; 2103 var loaderId = "#lII" + prodId; 2104 var catCodeId = "#catCode" + prodId; 2105 var unitSizeId = "#unitSize" + prodId; 2106 var catCode = $(catCodeId).val(); 2107 var unitSize = $(unitSizeId).val(); 2108 $(loaderId).fadeIn("slow"); 2109 var price = $(priceId).val(); 2110 $("#crtplus" + prodId).hide();
2111 DeleteCart(prodId, catCode, unitSize); 2112 var oldSubT = $("#hfcartTotalAmount").val(); 2113 var oldItemC = $("#hfcartItemCount").val(); 2114 2115 var newItemC = parseInt(oldItemC) - 1; 2116 var newSubT = parseFloat(oldSubT) - parseFloat(price); 2117 $("#myCartCount").html("Review Cart (" + newItemC + " items)"); 2118 $("#hfcartItemCount").val(newItemC); 2119 $("#myCartTotal").html("Rs." + newSubT.toFixed(2)); 2120 $("#hfcartTotalAmount").val(newSubT); 2121 setTimeout(function () { 2122 BindCart("1"); 2123 CheckCartItemCounts(); 2124 }, 500); 2125 $(loaderId).fadeOut("slow"); 2126 }); 2127 2128 function AddCart(productId, NewQuantity, CatCode, ProdSize, type, inputIdSpan) { 2129 $.ajax({ 2130 type: 'POST', 2131 url: '/Web/AddCardV1', 2132 dataType: 'json', 2133 data: { ProductId: productId, Quantity: NewQuantity, CatCode: CatCode, ProdSize: ProdSize, Type: type }, 2134 success: function (objdetails) { 2135 if (objdetails == "-3") { 2136 $(inputIdSpan).val(NewQuantity - 1); 2137 setTimeout(function () { 2138 BindCart("1"); 2139 CheckCartItemCounts(); 2140 }, 500); 2141 $("#txtAlertText").html("Sorry, more items from this product category cannot be added due to government regulations."); 2142 $("#btnOkHome").show(); 2143 $("#btnCancel").hide(); 2144 $("#btnClearCartOk").hide(); 2145 $("#btnLogoutCancel").hide(); 2146 $("#btnLogoutOk").hide(); 2147 $("#modelAlertBox").show(); 2148 } 2149 }, 2150 error: function (ex) { 2151 //alert('Failed.' + ex); 2152 $(".loader").fadeOut("slow"); 2153 } 2154 }); 2155 } 2156 2157 function DeleteCart(productId, catCode, unitSize) { 2158 $.ajax({
2159 type: 'POST', 2160 url: '/Web/DeleteCartV1', 2161 dataType: 'json', 2162 data: { ProductId: productId, CatCode: catCode, ProdSize: unitSize }, 2163 success: function (objdetails) { 2164 }, 2165 error: function (ex) { 2166 //alert('Failed.' + ex); 2167 $(".loader").fadeOut("slow"); 2168 } 2169 }); 2170 } 2171 2172 2173 $(document).on('click', '#cancelCart', function () { 2174 $("#myModalCart").hide(); 2175 location.reload(); 2176 }); 2177 2178 $(document).on("focus", "#txtSearch", function (e) { 2179 var inputVal = $(this).val(); 2180 if (inputVal.length > 2) { 2181 } 2182 else { 2183 var searchedItem = ""; 2184 $("#ulsearchdata").html(searchedItem); 2185 } 2186 }); 2187 2188 2189 $(document).on("keyup", "#txtSearch", function (e) { 2190 var inputVal = $(this).val(); 2191 if (inputVal.length > 2) { 2192 var abcs = checkAphaNumeric1(inputVal); 2193 if (abcs == true) { 2194 $.ajax({
2195 type: 'POST', 2196 url: '/Web/GetSearchBarProductsV1', 2197 dataType: 'json', 2198 data: { Search: inputVal }, 2199 success: function (objdetails) { 2200 var searchedItem = ""; 2201 if (objdetails[0].Id != "0") { 2202 2203 $.each(objdetails, function (i, objdetails) { 2204 var Uom = objdetails.Uom; 2205 var UnitSize = objdetails.UnitSize; 2206 2207 //searchedItem = searchedItem + "<li><a href='/Web/ProductDetails?ID=" + objdetails.EnId + "'><div class='searchBarImg'><img src='" + objdetails.ItemImage + "' class='img-fluid' onerror=this.src='/Assets/Web/img/loading_img1.png' /></div><div class='searchBarName'> " + objdetails.ItemName + " (" + UnitSize + " " + Uom + ") in <strong>" + objdetails.MenuCategoryName + "</strong></div> </a></li>"; 2208 var CategoryName = removeExp(objdetails.MenuCategoryName); 2209 var ItemName = removeExp(objdetails.ItemName); 2210 searchedItem = searchedItem + "<li><a class='row' href='/ProductDetails/" + CategoryName + "/" + ItemName + "?ID=" + objdetails.EnId + "'><div class='col-md-2 col-2'><img src='" + objdetails.ItemImage + "' class='img-fluid' onerror=this.src='/Assets/Web/img/loading_img1.png' /></div><div class='col-md-6 col-6 pl-0 searchBarName1'><span><strong>" + objdetails.MenuCategoryName + "</strong></span>" + objdetails.ItemName + "</div><div class='col-md-2 col-2 p-0 searchBarquant'>" + UnitSize + " " + Uom + "</div><div class='col-md-2 col-2 searchBarprice'>Rs." + objdetails.Inventory + "</div></a></li>"; 2211 }); 2212 var SearchValue = removeExp(inputVal); 2213 searchedItem = searchedItem + "<p class='last-tab'><a href='/product/" + SearchValue +"?PS=" + inputVal + "'>View All Products</a></p>" 2214 } 2215 else { 2216 searchedItem = "Sorry! No matching result found"; 2217 } 2218 $("#ulsearchdata").html(searchedItem); 2219 2220 }, 2221 error: function (ex) { 2222 //alert('Failed.' + ex); 2223 } 2224 }); 2225 } 2226 else { 2227 $("#txtAlertText").html("Please enter valid text."); 2228 $("#btnOkHome").show(); 2229 $("#btnCancel").hide(); 2230 $("#btnClearCartOk").hide(); 2231 $("#btnLogoutCancel").hide(); 2232 $("#btnLogoutOk").hide(); 2233 $("#modelAlertBox").show(); 2234 $("#txtSearch").val(''); 2235 } 2236 } 2237 }); 2238 2239 $(document).on('click', '#btnSearch', function () { 2240 var sear = $("#txtSearch").val(); 2241 if (sear != "") { 2242 var abcs = checkAphaNumeric1(sear); 2243 if (abcs == true) { 2244 url = "/product/" + sear +"?PS=" + sear; 2245 window.location.href = url; 2246 } 2247 else { 2248 $("#txtAlertText").html("Please enter the valid text."); 2249 $("#btnOkHome").show(); 2250 $("#btnCancel").hide(); 2251 $("#btnClearCartOk").hide(); 2252 $("#btnLogoutCancel").hide(); 2253 $("#btnLogoutOk").hide(); 2254 $("#modelAlertBox").show(); 2255 $("#txtSearch").val(''); 2256 } 2257 } 2258 }); 2259 2260 function checkAphaNumeric1(inputtxt) { 2261 var letters = /^[A-Za-z0-9 &'-]+$/; 2262 if (inputtxt.match(letters)) { 2263 return true; 2264 } 2265 else { 2266 return false; 2267 } 2268 } 2269 2270 function openloc() { 2271 $("#divpin").show(); 2272 } 2273 2274 $("#btnCheckPin1Cancle").click(function () { 2275 $("#divpin").hide(); 2276 }) 2277 2278 function CheckCartItemCounts() { 2279 $.ajax({
2280 type: 'POST', 2281 url: '/Web/GetReviewCartItemCount', 2282 dataType: 'json', 2283 data: {}, 2284 success: function (objdetails) { 2285 if (objdetails[0].Count == -1) { 2286 window.location.href = "/Login"; 2287 } 2288 else if (objdetails[0].Count == 0) { 2289 $("#divCartBubble").hide(); 2290 } 2291 else { 2292 $("#divCartBubble").show(); 2293 $("#pCartBubble").html(objdetails[0].Count); 2294 } 2295 }, 2296 error: function (ex) { 2297 //alert('Failed.' + ex); 2298 $(".loader").fadeOut("slow"); 2299 } 2300 }); 2301 } 2302 2303 function callCheckout() { 2304 var contentId = new Array(); 2305 var contentType = new Array(); 2306 var numItems = ""; 2307 var currency = "LKR"; 2308 var totalPrice = ""; 2309 2310 $.ajax({
2311 type: 'POST', 2312 url: '/Web/GetReviewCartDetailsD', 2313 dataType: 'json', 2314 data: {}, 2315 success: function (objdetails) { 2316 if (objdetails[0].Id == -1) { 2317 window.location.href = "/Login"; 2318 } 2319 else if (objdetails[0].Id == 0) { 2320 } 2321 else { 2322 var subTotal = 0; 2323 var cardItems = ""; 2324 var count = objdetails.length; 2325 var countNew = 0; 2326 2327 $.each(objdetails, function (i, objdetails) { 2328 var price = objdetails.Price; 2329 var quantity = objdetails.Quantity; 2330 countNew = countNew + parseInt(quantity); 2331 var f1 = parseFloat(price); 2332 var f2 = parseFloat(quantity); 2333 subTotal = parseFloat(subTotal) + (f1 * f2); 2334 contentId.push(objdetails.SKUCODE); 2335 contentType.push(objdetails.CategoryCode); 2336 2337 }); 2338 numItems = countNew; 2339 totalPrice = subTotal.toFixed(2); 2340 logInitiateCheckoutEvent(contentId, contentType, numItems, currency, totalPrice, objdetails); 2341 window.location.href = "/MyCart"; 2342 } 2343 }, 2344 error: function (ex) { 2345 // alert('Failed.' + ex); 2346 } 2347 }); 2348 } 2349 2350 function logInitiateCheckoutEvent(contentId, contentType, numItems, currency, totalPrice, objdetails) { 2351 var price1 = totalPrice.replace(',', ''); 2352 fbq('track', 'InitiateCheckout', { value: price1, CONTENT_ID: contentId, CONTENT_TYPE: contentType, NUM_ITEMS: numItems, currency: currency }); 2353 // const params4 = { 2354 // ITEM_ID: contentId, 2355 // ITEM_CATEGORY: contentType, 2356 // CURRENCY: currency, 2357 // VALUE: price1 2358 //}; 2359 //firebase.analytics().logEvent(firebase.analytics.EventName.BEGIN_CHECKOUT, params4); 2360 var jsonArr = []; 2361 2362 $.each(objdetails, function (i, objdetails) { 2363 jsonArr.push({ 2364 item_id: objdetails.SKUCODE, 2365 item_name: objdetails.ItemName, 2366 affiliation: "", 2367 coupon: "", 2368 discount: 0, 2369 index: i, 2370 item_brand: "", 2371 item_category: objdetails.CategoryCode, 2372 location_id: "ChIJIQBpAG2ahYAR_6128GcTUEo", 2373 price: objdetails.Price, 2374 quantity: objdetails.Quantity 2375 }); 2376 2377 }); 2378 2379 gtag("event", "begin_checkout", { 2380 currency: currency, 2381 value: price1, 2382 coupon: "", 2383 items: jsonArr 2384 }); 2385 } 2386 2387 function logAddToCartEvent(contentData, contentId, contentType, currency, price) { 2388 // logAddToCartEvent(pName, pCode, catCode, "LKR", price) 2389 var price1 = price.replace(',', ''); 2390 fbq('track', 'AddToCart', { value: parseFloat(price1).toFixed(2), CONTENT_ID: contentId, CONTENT_TYPE: contentType, CONTENT: contentData, currency: currency }); 2391 // const params4 = { 2392 // ITEM_ID: contentId, 2393 // ITEM_NAME: contentData, 2394 // ITEM_CATEGORY: contentType, 2395 // CURRENCY: currency, 2396 // VALUE: parseFloat(price1).toFixed(2), 2397 // PRICE: parseFloat(price1).toFixed(2) 2398 //}; 2399 //firebase.analytics().logEvent(firebase.analytics.EventName.ADD_TO_CART, params4); 2400 2401 gtag("event", "add_to_cart", { 2402 currency: currency, 2403 value: parseFloat(price1).toFixed(2), 2404 items: [ 2405 { 2406 item_id: contentId, 2407 item_name: contentData, 2408 affiliation: "", 2409 coupon: "", 2410 discount: 0, 2411 index: 0, 2412 item_brand: "", 2413 item_category: contentType, 2414 price: parseFloat(price1).toFixed(2), 2415 quantity: 1 2416 } 2417 ] 2418 }); 2419 } 2420 2421 </script>
2421 2422 2423
2423<script type="text/javascript"> 2424 $(function () { 2425 2426 var fa = $('#ui_element'); 2427 fa.find('.sb_input').bind('focus click', function () { 2428 fa.find('.sb_down') 2429 .addClass('sb_up') 2430 .removeClass('sb_down') 2431 .andSelf() 2432 .find('.sb_dropdown') 2433 .show(); 2434 }); 2435 2436 fa.find('.sb_input').bind('focus click', function () { 2437 fa.find('.sb_down') 2438 .addClass('sb_up') 2439 .removeClass('sb_down') 2440 .andSelf() 2441 .find('.sb_dropdown') 2442 .show(); 2443 }); 2444 2445 fa.bind('mouseleave', function () { 2446 fa.find('.sb_up') 2447 .addClass('sb_down') 2448 .removeClass('sb_up') 2449 .andSelf() 2450 .find('.sb_dropdown') 2451 .hide(); 2452 }); 2453 2454 fa.find('.sb_dropdown').find('label[for="all"]').prev().bind('click', function () { 2455 $(this).parent().siblings().find(':checkbox').attr('checked', this.checked).attr('disabled', this.checked); 2456 }); 2457 }); 2458 2459 GetLetestSlot(); 2460 2461 function GetLetestSlot() { 2462 const products = {}; 2463 const singleData = { Type: "1", StoreId: "", Products:products}; 2464 $.ajax({
2465 type: 'POST', 2466 url: '/Web/GetOrderDeliverySlotHomePage', 2467 dataType: 'json', 2468 data: {obj:singleData}, 2469 success: function (objdetails) { 2470 2471 if (objdetails[0].Count == 0) { 2472 } 2473 else { 2474 if (objdetails[0].Name == 'Same Day') { 2475 $('#del-day').html('Delivery Today'); 2476 } 2477 else if (objdetails[0].Name == 'Next Day') { 2478 $('#del-day').html('Delivery Tomorrow'); 2479 } 2480 2481 else { 2482 $('#del-day').html('Delivery Saver'); 2483 } 2484 2485 $("#slot-time").html(objdetails[0].Slots[0].SlotTime); 2486 //$("#name").html(objdetails[0].SlotTime); 2487 //$("#address").html(objdetails[0].SlotTime); 2488 } 2489 }, 2490 error: function (ex) { 2491 //alert('Failed.' + ex); 2492 $(".loader").fadeOut("slow"); 2493 } 2494 }); 2495 } 2496 function removeExp(name) { 2497 name = name.replace(/[^\w\s]/gi, '').replace(/\s+/g, '-'); 2498 return name; 2499} 2500 </script>
2500 2501 2502
2503<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js/v31edd6df95cf4e85bb4c19e7a9bdbcba1788362987495" integrity="sha512-iIg7k2xntmwu6/uSb5tpc/hySgZc4eoL31yB29W6tJFo2akwjPWcEqnCEdJvGexCL0KEQwVYv5BlowfhVz26hg==" data-cf-beacon='{"version":"2024.11.0","token":"0bf583d1172946f6851a3835c01223ad","spa":2}' crossorigin="anonymous"></script>
2503 2504</body> 2505</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.