Line 1: #pragma checksum "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "D3ACAA3DE33E9F8A97653BF37496EA99DD733990"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using System.Web.Mvc;
Line 24: using System.Web.Mvc.Ajax;
Line 25: using System.Web.Mvc.Html;
Line 26: using System.Web.Routing;
Line 27:
Line 28:
Line 29: public class _Page_Views_story_customCatalogItems_site1642_CatalogItemView_cshtml : System.Web.Mvc.WebViewPage<ClientSite.Models.CatalogItemModel> {
Line 30:
Line 31: #line hidden
Line 32:
Line 33: public _Page_Views_story_customCatalogItems_site1642_CatalogItemView_cshtml() {
Line 34: }
Line 35:
Line 36: protected ASP.global_asax ApplicationInstance {
Line 37: get {
Line 38: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 39: }
Line 40: }
Line 41:
Line 42: public override void Execute() {
Line 43:
Line 44: #line 3 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 45:
Line 46: var SiteData = ClientSite.QuickAccessData.SiteData;
Line 47: var Session = ClientSite.QuickAccessData.SessionData;
Line 48:
Line 49: //var deliveryMethods = SiteData.Site.SiteDefinitions.ShopSettings.DeliveryMethods.Where(x => Model.CurrentCatalog.Data.DeliveryMethodsForSingleCatalog.Contains(x.ID)).ToList();
Line 50: //var pickUpLocations = SiteData.Site.SiteDefinitions.ShopSettings.PickUpBranches.Where(x => Model.CurrentCatalog.Data.PickUpLocationsForSingleCatalog.Contains(x.ID)).ToList();
Line 51: //var paymentMethods = SiteData.Site.SiteDefinitions.ShopSettings.PaymentMethods.Where(x => Model.CurrentCatalog.Data.PaymentMethodsTypes.Contains(x)).ToList();
Line 52:
Line 53: var deliveryMethods = SiteData.DeliveryMethods.Where(x => Model.CurrentCatalog.Data.DeliveryMethodsForSingleCatalog.Contains(x.ID)).ToList();
Line 54: var pickUpLocations = SiteData.PickupBranches.Where(x => Model.CurrentCatalog.Data.PickUpLocationsForSingleCatalog.Contains(x.ID)).ToList();
Line 55: var paymentMethods = SiteData.SelectedPOS.PaymentDefinitions.PaymentMethods.Where(x => Model.CurrentCatalog.Data.PaymentMethodsTypes.Contains(x)).ToList();
Line 56:
Line 57: var gallery = SiteData.SiteGalleries[Model.CurrentItem.Data.GalleryID];
Line 58: string sm = "", md = "";
Line 59: int GridColums = 4;
Line 60: if (Model.CatalogModule != null)
Line 61: {
Line 62: GridColums = Model.CatalogModule.GridColumns;
Line 63: }
Line 64: else if (Model.SingleProductCatalogModule != null)
Line 65: {
Line 66: GridColums = Model.SingleProductCatalogModule.GridColumns;
Line 67: }
Line 68: switch (GridColums)
Line 69: {
Line 70: case 2: md = "6"; sm = "6"; break;
Line 71: case 3: md = "4"; sm = "6"; break;
Line 72: case 4: md = "3"; sm = "6"; break;
Line 73: case 5: md = "25"; sm = "3"; break;
Line 74: case 6: md = "2"; sm = "3"; break;
Line 75: default: md = "4"; sm = "4"; break;
Line 76: }
Line 77: var ItemPriceDetails = SiteData.Shop.GetFinalPriceForItem(Model.CurrentItem, new List<BLL.Shop.ItemProperty>(), new List<BLL.Shop.ItemIngredient>());
Line 78:
Line 79: var itemIsInCart = false;
Line 80: double itemQuantityInCart = 0;
Line 81: if (Session.Cart.Items().Where(x => x.CartItem.Item.CatalogItemID == Model.CurrentItem.CatalogItemID).ToList().Count > 0)
Line 82: {
Line 83: itemIsInCart = true;
Line 84: itemQuantityInCart = Session.Cart.Items().Where(x => x.CartItem.Item.CatalogItemID == Model.CurrentItem.CatalogItemID).ToList().Sum(x => x.Quantity);
Line 85: }
Line 86: var itemIsInStock = true;
Line 87: if (!ClientSite.Helpers.Functions.CheckItemInventory(Model.CurrentItem))
Line 88: {
Line 89: itemIsInStock = false;
Line 90: }
Line 91:
Line 92:
Line 93:
Line 94: #line default
Line 95: #line hidden
Line 96: WriteLiteral("\r\n<section");
Line 97:
Line 98: WriteLiteral(" id=\"GridTop\"");
Line 99:
Line 100: WriteLiteral(" data-category=\"\"");
Line 101:
Line 102: WriteAttribute("style", Tuple.Create(" style=\"", 2590), Tuple.Create("\"", 2862)
Line 103: , Tuple.Create(Tuple.Create("", 2598), Tuple.Create("background-image:url(\'", 2598), true)
Line 104:
Line 105: #line 51 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 106: , Tuple.Create(Tuple.Create("", 2620), Tuple.Create<System.Object, System.Int32>(SiteData.isMobile()? Model.Files.GetFileByID(ClientSite.Helpers.Functions.getCatalogItemSecondPhoto(Model.CurrentItem, SiteData)):Model.Files.GetFileByID(ClientSite.Helpers.Functions.getCatalogItemFirstPhoto(Model.CurrentItem, SiteData))
Line 107:
Line 108: #line default
Line 109: #line hidden
Line 110: , 2620), false)
Line 111: , Tuple.Create(Tuple.Create("", 2860), Tuple.Create("\')", 2860), true)
Line 112: );
Line 113:
Line 114: WriteLiteral(" class=\"longer\"");
Line 115:
Line 116: WriteLiteral("></section>\r\n<div");
Line 117:
Line 118: WriteLiteral(" id=\"CatalogItemView\"");
Line 119:
Line 120: WriteAttribute("class", Tuple.Create(" class=\"", 2916), Tuple.Create("\"", 2991)
Line 121: , Tuple.Create(Tuple.Create("", 2924), Tuple.Create("catalogItemSingleView", 2924), true)
Line 122: , Tuple.Create(Tuple.Create(" ", 2945), Tuple.Create("catalogItem", 2946), true)
Line 123:
Line 124: #line 52 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 125: , Tuple.Create(Tuple.Create("", 2957), Tuple.Create<System.Object, System.Int32>(Model.CurrentItem.CatalogItemID
Line 126:
Line 127: #line default
Line 128: #line hidden
Line 129: , 2957), false)
Line 130: );
Line 131:
Line 132: WriteLiteral(" data-incart=\"");
Line 133:
Line 134:
Line 135: #line 52 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 136: Write(itemQuantityInCart);
Line 137:
Line 138:
Line 139: #line default
Line 140: #line hidden
Line 141: WriteLiteral("\"");
Line 142:
Line 143: WriteLiteral(">\r\n <div");
Line 144:
Line 145: WriteLiteral(" class=\"itemContentWrapper row\"");
Line 146:
Line 147: WriteLiteral(">\r\n <section");
Line 148:
Line 149: WriteLiteral(" class=\"singleItemSection itemFirstDetails col-xs-12 no-pad\"");
Line 150:
Line 151: WriteLiteral(">\r\n <div");
Line 152:
Line 153: WriteLiteral(" class=\"singleItemContentWrapper\"");
Line 154:
Line 155: WriteLiteral(">\r\n <div");
Line 156:
Line 157: WriteLiteral(" class=\"itemContent col-xs-12 col-sm-12 col-md-12\"");
Line 158:
Line 159: WriteLiteral(">\r\n");
Line 160:
Line 161:
Line 162: #line 57 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 163:
Line 164:
Line 165: #line default
Line 166: #line hidden
Line 167:
Line 168: #line 57 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 169: if (!string.IsNullOrWhiteSpace(Model.CurrentItem.Name))
Line 170: {
Line 171:
Line 172:
Line 173: #line default
Line 174: #line hidden
Line 175: WriteLiteral(" <div");
Line 176:
Line 177: WriteLiteral(" id=\"headline\"");
Line 178:
Line 179: WriteLiteral(">\r\n <h1>");
Line 180:
Line 181:
Line 182: #line 60 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 183: Write(Html.Raw(Model.CurrentItem.Name));
Line 184:
Line 185:
Line 186: #line default
Line 187: #line hidden
Line 188: WriteLiteral("</h1>\r\n </div>\r\n");
Line 189:
Line 190:
Line 191: #line 62 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 192: }
Line 193:
Line 194:
Line 195: #line default
Line 196: #line hidden
Line 197: WriteLiteral(" ");
Line 198:
Line 199:
Line 200: #line 63 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 201: if (!itemIsInStock)
Line 202: {
Line 203:
Line 204:
Line 205: #line default
Line 206: #line hidden
Line 207: WriteLiteral(" <div");
Line 208:
Line 209: WriteLiteral(" class=\"outOfStockLabel\"");
Line 210:
Line 211: WriteLiteral(">\r\n");
Line 212:
Line 213:
Line 214: #line 66 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 215:
Line 216:
Line 217: #line default
Line 218: #line hidden
Line 219:
Line 220: #line 66 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 221: if (Model.CurrentCatalog.Data.OutOfStockIconFileID > 0)
Line 222: {
Line 223:
Line 224:
Line 225: #line default
Line 226: #line hidden
Line 227: WriteLiteral(" <img");
Line 228:
Line 229: WriteAttribute("src", Tuple.Create(" src=\"", 3821), Tuple.Create("\"", 3899)
Line 230:
Line 231: #line 68 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 232: , Tuple.Create(Tuple.Create("", 3827), Tuple.Create<System.Object, System.Int32>(Model.Files.GetFileByID(Model.CurrentCatalog.Data.OutOfStockIconFileID)
Line 233:
Line 234: #line default
Line 235: #line hidden
Line 236: , 3827), false)
Line 237: );
Line 238:
Line 239: WriteAttribute("alt", Tuple.Create(" alt=\"", 3900), Tuple.Create("\"", 3947)
Line 240:
Line 241: #line 68 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 242: , Tuple.Create(Tuple.Create("", 3906), Tuple.Create<System.Object, System.Int32>(Model.CurrentCatalog.Data.OutOfStockText
Line 243:
Line 244: #line default
Line 245: #line hidden
Line 246: , 3906), false)
Line 247: );
Line 248:
Line 249: WriteLiteral(" />\r\n");
Line 250:
Line 251:
Line 252: #line 69 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 253: }
Line 254: else
Line 255: {
Line 256:
Line 257:
Line 258: #line default
Line 259: #line hidden
Line 260: WriteLiteral(" <span>");
Line 261:
Line 262:
Line 263: #line 72 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 264: Write(Model.CurrentCatalog.Data.OutOfStockText);
Line 265:
Line 266:
Line 267: #line default
Line 268: #line hidden
Line 269: WriteLiteral("</span>\r\n");
Line 270:
Line 271:
Line 272: #line 73 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 273: }
Line 274:
Line 275:
Line 276: #line default
Line 277: #line hidden
Line 278: WriteLiteral(" </div>\r\n");
Line 279:
Line 280:
Line 281: #line 75 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 282: }
Line 283:
Line 284:
Line 285: #line default
Line 286: #line hidden
Line 287: WriteLiteral(" ");
Line 288:
Line 289:
Line 290: #line 76 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 291: if (!string.IsNullOrWhiteSpace(Model.CurrentItem.Data.Subtitle))
Line 292: {
Line 293:
Line 294:
Line 295: #line default
Line 296: #line hidden
Line 297: WriteLiteral(" <div");
Line 298:
Line 299: WriteLiteral(" id=\"subheadline\"");
Line 300:
Line 301: WriteLiteral(">\r\n <h2>");
Line 302:
Line 303:
Line 304: #line 79 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 305: Write(Html.Raw(Model.CurrentItem.Data.Subtitle));
Line 306:
Line 307:
Line 308: #line default
Line 309: #line hidden
Line 310: WriteLiteral("</h2>\r\n </div>\r\n");
Line 311:
Line 312:
Line 313: #line 81 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 314: }
Line 315:
Line 316:
Line 317: #line default
Line 318: #line hidden
Line 319: WriteLiteral(" <div");
Line 320:
Line 321: WriteLiteral(" class=\"catalogTextContainer\"");
Line 322:
Line 323: WriteLiteral(">\r\n");
Line 324:
Line 325:
Line 326: #line 83 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 327:
Line 328:
Line 329: #line default
Line 330: #line hidden
Line 331:
Line 332: #line 83 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 333: if (!string.IsNullOrWhiteSpace(Model.CurrentItem.Data.Description))
Line 334: {
Line 335:
Line 336:
Line 337: #line default
Line 338: #line hidden
Line 339: WriteLiteral(" <div");
Line 340:
Line 341: WriteLiteral(" id=\"catalogText\"");
Line 342:
Line 343: WriteLiteral(">\r\n");
Line 344:
Line 345: WriteLiteral(" ");
Line 346:
Line 347:
Line 348: #line 86 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 349: Write(Html.Raw(Model.CurrentItem.Data.Description));
Line 350:
Line 351:
Line 352: #line default
Line 353: #line hidden
Line 354: WriteLiteral("\r\n </div>\r\n");
Line 355:
Line 356:
Line 357: #line 88 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 358: }
Line 359:
Line 360:
Line 361: #line default
Line 362: #line hidden
Line 363: WriteLiteral(" </div>\r\n </div>\r\n </div>\r\n <" +
Line 364: "/section>\r\n\r\n <section");
Line 365:
Line 366: WriteLiteral(" class=\"selectOptions singleItemSection col-xs-12 active\"");
Line 367:
Line 368: WriteLiteral(">\r\n <form");
Line 369:
Line 370: WriteLiteral(" id=\"checkout-form\"");
Line 371:
Line 372: WriteLiteral(" class=\"shop-form singleItemForm\"");
Line 373:
Line 374: WriteLiteral(">\r\n <div");
Line 375:
Line 376: WriteLiteral(" class=\"propertiesDetails checkoutStage active\"");
Line 377:
Line 378: WriteLiteral(" data-stage=\"1\"");
Line 379:
Line 380: WriteLiteral(" data-ok=\"true\"");
Line 381:
Line 382: WriteLiteral(">\r\n <div");
Line 383:
Line 384: WriteLiteral(" class=\"checkoutStageContent itemContent\"");
Line 385:
Line 386: WriteLiteral(">\r\n <div");
Line 387:
Line 388: WriteLiteral(" class=\"checkoutStageContentDetails checkoutFormWrapper\"");
Line 389:
Line 390: WriteLiteral(">\r\n <div");
Line 391:
Line 392: WriteLiteral(" class=\"checkOutContainer\"");
Line 393:
Line 394: WriteLiteral(" data-counter=\"");
Line 395:
Line 396:
Line 397: #line 99 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 398: Write(Model.PropertiesGroups.Count);
Line 399:
Line 400:
Line 401: #line default
Line 402: #line hidden
Line 403: WriteLiteral("\"");
Line 404:
Line 405: WriteLiteral(">\r\n <div");
Line 406:
Line 407: WriteLiteral(" class=\"item-custom-details\"");
Line 408:
Line 409: WriteLiteral(">\r\n");
Line 410:
Line 411:
Line 412: #line 101 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 413:
Line 414:
Line 415: #line default
Line 416: #line hidden
Line 417:
Line 418: #line 101 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 419: foreach (var CF in Model.CustomFields.OrderBy(x => x.Data.DisplayOrder))
Line 420: {
Line 421: if (!string.IsNullOrWhiteSpace(Model.CurrentItem.Data.CustomFieldValues[CF.CustomFieldID]))
Line 422: {
Line 423: if (CF.Data.OpenInPopUp)
Line 424: {
Line 425:
Line 426:
Line 427: #line default
Line 428: #line hidden
Line 429: WriteLiteral(" <button");
Line 430:
Line 431: WriteLiteral(" type=\"button\"");
Line 432:
Line 433: WriteLiteral(" class=\"custom-field openInPop\"");
Line 434:
Line 435: WriteLiteral(" onclick=\"openCustomFieldPop($(this));\"");
Line 436:
Line 437: WriteLiteral(" data-text=\"\"");
Line 438:
Line 439: WriteAttribute("id", Tuple.Create(" id=\"", 6153), Tuple.Create("\"", 6188)
Line 440: , Tuple.Create(Tuple.Create("", 6158), Tuple.Create("customField", 6158), true)
Line 441:
Line 442: #line 107 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 443: , Tuple.Create(Tuple.Create("", 6169), Tuple.Create<System.Object, System.Int32>(CF.CustomFieldID
Line 444:
Line 445: #line default
Line 446: #line hidden
Line 447: , 6169), false)
Line 448: );
Line 449:
Line 450: WriteLiteral(">\r\n");
Line 451:
Line 452:
Line 453: #line 108 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 454:
Line 455:
Line 456: #line default
Line 457: #line hidden
Line 458:
Line 459: #line 108 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 460: if (CF.Data.CustomFieldFileID > 0)
Line 461: {
Line 462:
Line 463:
Line 464: #line default
Line 465: #line hidden
Line 466: WriteLiteral(" <div");
Line 467:
Line 468: WriteLiteral(" class=\"custom-field-img\"");
Line 469:
Line 470: WriteLiteral(">\r\n <img");
Line 471:
Line 472: WriteAttribute("src", Tuple.Create(" src=\"", 6488), Tuple.Create("\"", 6533)
Line 473:
Line 474: #line 111 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 475: , Tuple.Create(Tuple.Create("", 6494), Tuple.Create<System.Object, System.Int32>(Model.Files[CF.Data.CustomFieldFileID]
Line 476:
Line 477: #line default
Line 478: #line hidden
Line 479: , 6494), false)
Line 480: );
Line 481:
Line 482: WriteAttribute("alt", Tuple.Create(" alt=\"", 6534), Tuple.Create("\"", 6553)
Line 483:
Line 484: #line 111 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 485: , Tuple.Create(Tuple.Create("", 6540), Tuple.Create<System.Object, System.Int32>(CF.Data.Name
Line 486:
Line 487: #line default
Line 488: #line hidden
Line 489: , 6540), false)
Line 490: );
Line 491:
Line 492: WriteLiteral(" />\r\n </div>\r\n");
Line 493:
Line 494:
Line 495: #line 113 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 496: }
Line 497:
Line 498:
Line 499: #line default
Line 500: #line hidden
Line 501: WriteLiteral(" <span");
Line 502:
Line 503: WriteLiteral(" class=\"custom-field-title\"");
Line 504:
Line 505: WriteLiteral(">");
Line 506:
Line 507:
Line 508: #line 114 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 509: Write(CF.Data.Name);
Line 510:
Line 511:
Line 512: #line default
Line 513: #line hidden
Line 514: WriteLiteral("</span>\r\n <div");
Line 515:
Line 516: WriteLiteral(" class=\"textInPopup\"");
Line 517:
Line 518: WriteLiteral(" style=\"display:none;\"");
Line 519:
Line 520: WriteLiteral(">\r\n");
Line 521:
Line 522: WriteLiteral(" ");
Line 523:
Line 524:
Line 525: #line 116 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 526: Write(Html.Raw(Model.CurrentItem.Data.CustomFieldValues[CF.CustomFieldID]));
Line 527:
Line 528:
Line 529: #line default
Line 530: #line hidden
Line 531: WriteLiteral("\r\n </div>\r\n " +
Line 532: " </button>\r\n");
Line 533:
Line 534:
Line 535: #line 119 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 536: }
Line 537: else
Line 538: {
Line 539:
Line 540:
Line 541: #line default
Line 542: #line hidden
Line 543: WriteLiteral(" <div");
Line 544:
Line 545: WriteLiteral(" class=\"custom-field\"");
Line 546:
Line 547: WriteAttribute("id", Tuple.Create(" id=\"", 7349), Tuple.Create("\"", 7384)
Line 548: , Tuple.Create(Tuple.Create("", 7354), Tuple.Create("customField", 7354), true)
Line 549:
Line 550: #line 122 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 551: , Tuple.Create(Tuple.Create("", 7365), Tuple.Create<System.Object, System.Int32>(CF.CustomFieldID
Line 552:
Line 553: #line default
Line 554: #line hidden
Line 555: , 7365), false)
Line 556: );
Line 557:
Line 558: WriteLiteral(">\r\n");
Line 559:
Line 560:
Line 561: #line 123 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 562:
Line 563:
Line 564: #line default
Line 565: #line hidden
Line 566:
Line 567: #line 123 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 568: if (CF.Data.CustomFieldFileID > 0)
Line 569: {
Line 570:
Line 571:
Line 572: #line default
Line 573: #line hidden
Line 574: WriteLiteral(" <div");
Line 575:
Line 576: WriteLiteral(" class=\"custom-field-img\"");
Line 577:
Line 578: WriteLiteral(">\r\n <img");
Line 579:
Line 580: WriteAttribute("src", Tuple.Create(" src=\"", 7684), Tuple.Create("\"", 7729)
Line 581:
Line 582: #line 126 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 583: , Tuple.Create(Tuple.Create("", 7690), Tuple.Create<System.Object, System.Int32>(Model.Files[CF.Data.CustomFieldFileID]
Line 584:
Line 585: #line default
Line 586: #line hidden
Line 587: , 7690), false)
Line 588: );
Line 589:
Line 590: WriteAttribute("alt", Tuple.Create(" alt=\"", 7730), Tuple.Create("\"", 7749)
Line 591:
Line 592: #line 126 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 593: , Tuple.Create(Tuple.Create("", 7736), Tuple.Create<System.Object, System.Int32>(CF.Data.Name
Line 594:
Line 595: #line default
Line 596: #line hidden
Line 597: , 7736), false)
Line 598: );
Line 599:
Line 600: WriteLiteral(" />\r\n </div>\r\n");
Line 601:
Line 602:
Line 603: #line 128 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 604: }
Line 605:
Line 606:
Line 607: #line default
Line 608: #line hidden
Line 609: WriteLiteral(" ");
Line 610:
Line 611:
Line 612: #line 129 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 613: if (CF.Data.Type != BLL.Content.CustomField.CustomFieldType.CheckBox)
Line 614: {
Line 615:
Line 616:
Line 617: #line default
Line 618: #line hidden
Line 619: WriteLiteral(" <span");
Line 620:
Line 621: WriteLiteral(" class=\"custom-field-title\"");
Line 622:
Line 623: WriteLiteral(">");
Line 624:
Line 625:
Line 626: #line 131 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 627: Write(CF.Data.Name);
Line 628:
Line 629:
Line 630: #line default
Line 631: #line hidden
Line 632: WriteLiteral(": </span>\r\n");
Line 633:
Line 634: WriteLiteral(" <span>");
Line 635:
Line 636:
Line 637: #line 132 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 638: Write(Html.Raw(Model.CurrentItem.Data.CustomFieldValues[CF.CustomFieldID]));
Line 639:
Line 640:
Line 641: #line default
Line 642: #line hidden
Line 643: WriteLiteral("</span>\r\n");
Line 644:
Line 645:
Line 646: #line 133 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 647: }
Line 648: else if (CF.Data.CustomFieldFileID == 0)
Line 649: {
Line 650:
Line 651:
Line 652: #line default
Line 653: #line hidden
Line 654: WriteLiteral(" <span");
Line 655:
Line 656: WriteLiteral(" class=\"custom-field-title\"");
Line 657:
Line 658: WriteLiteral(">");
Line 659:
Line 660:
Line 661: #line 136 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 662: Write(CF.Data.Name);
Line 663:
Line 664:
Line 665: #line default
Line 666: #line hidden
Line 667: WriteLiteral(": </span>\r\n");
Line 668:
Line 669: WriteLiteral(" <span>");
Line 670:
Line 671:
Line 672: #line 137 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 673: Write(Html.Raw(Model.CurrentItem.Data.CustomFieldValues[CF.CustomFieldID]));
Line 674:
Line 675:
Line 676: #line default
Line 677: #line hidden
Line 678: WriteLiteral("</span>\r\n");
Line 679:
Line 680:
Line 681: #line 138 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 682: }
Line 683:
Line 684:
Line 685: #line default
Line 686: #line hidden
Line 687: WriteLiteral(" </div>\r\n");
Line 688:
Line 689:
Line 690: #line 140 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 691: }
Line 692:
Line 693: }
Line 694: }
Line 695:
Line 696:
Line 697: #line default
Line 698: #line hidden
Line 699: WriteLiteral(" </div>\r\n");
Line 700:
Line 701:
Line 702: #line 145 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 703:
Line 704:
Line 705: #line default
Line 706: #line hidden
Line 707:
Line 708: #line 145 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 709: var properties = Model.PropertiesGroups.Where(x => !x.Data.IngredientGroup).OrderBy(x => x.DisplayOrder).ToList();
Line 710:
Line 711: #line default
Line 712: #line hidden
Line 713: WriteLiteral("\r\n\r\n\r\n");
Line 714:
Line 715:
Line 716: #line 148 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 717:
Line 718:
Line 719: #line default
Line 720: #line hidden
Line 721:
Line 722: #line 148 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 723: var ingerdients = Model.IngredientsGroups.OrderBy(x => x.DisplayOrder).ToList();
Line 724:
Line 725: #line default
Line 726: #line hidden
Line 727: WriteLiteral("\r\n");
Line 728:
Line 729:
Line 730: #line 149 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 731:
Line 732:
Line 733: #line default
Line 734: #line hidden
Line 735:
Line 736: #line 149 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 737: if (ingerdients.Count > 0)
Line 738: {
Line 739:
Line 740:
Line 741: #line default
Line 742: #line hidden
Line 743: WriteLiteral(" <div");
Line 744:
Line 745: WriteLiteral(" class=\"item-ingredients\"");
Line 746:
Line 747: WriteLiteral(">\r\n");
Line 748:
Line 749:
Line 750: #line 152 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 751:
Line 752:
Line 753: #line default
Line 754: #line hidden
Line 755:
Line 756: #line 152 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 757: foreach (var ingGroup in Model.IngredientsGroups.Where(x => x.Data.Status == 1 && x.PropertiesGroupID != 1988 && x.PropertiesGroupID != 1989 && x.PropertiesGroupID != 1990 && x.PropertiesGroupID != 1991))
Line 758: {
Line 759:
Line 760:
Line 761: #line default
Line 762: #line hidden
Line 763: WriteLiteral(" <div test");
Line 764:
Line 765: WriteLiteral(" class=\"ingredientGroupSelection\"");
Line 766:
Line 767: WriteLiteral(" data-id=\"");
Line 768:
Line 769:
Line 770: #line 154 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 771: Write(ingGroup.PropertiesGroupID);
Line 772:
Line 773:
Line 774: #line default
Line 775: #line hidden
Line 776: WriteLiteral("\"");
Line 777:
Line 778: WriteLiteral(" data-max=\"");
Line 779:
Line 780:
Line 781: #line 154 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 782: Write(ingGroup.Data.MaxSelection);
Line 783:
Line 784:
Line 785: #line default
Line 786: #line hidden
Line 787: WriteLiteral("\"");
Line 788:
Line 789: WriteLiteral(" data-min=\"");
Line 790:
Line 791:
Line 792: #line 154 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 793: Write(ingGroup.Data.MinSelection);
Line 794:
Line 795:
Line 796: #line default
Line 797: #line hidden
Line 798: WriteLiteral("\"");
Line 799:
Line 800: WriteLiteral(">\r\n <h3>");
Line 801:
Line 802:
Line 803: #line 155 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 804: Write(ingGroup.Name);
Line 805:
Line 806:
Line 807: #line default
Line 808: #line hidden
Line 809: WriteLiteral("</h3>\r\n\r\n");
Line 810:
Line 811:
Line 812: #line 157 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 813:
Line 814:
Line 815: #line default
Line 816: #line hidden
Line 817:
Line 818: #line 157 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 819: foreach (var ing in Model.Ingredients.Where(x => x.PropertyGroupID == ingGroup.PropertiesGroupID && x.Data.Status == 1).OrderBy(x=>x.Data.DisplayOrder).ToList())
Line 820: {
Line 821:
Line 822:
Line 823: #line default
Line 824: #line hidden
Line 825: WriteLiteral(" <div");
Line 826:
Line 827: WriteAttribute("class", Tuple.Create(" class=\"", 10370), Tuple.Create("\"", 10439)
Line 828: , Tuple.Create(Tuple.Create("", 10378), Tuple.Create("propertyOption", 10378), true)
Line 829:
Line 830: #line 159 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 831: , Tuple.Create(Tuple.Create(" ", 10392), Tuple.Create<System.Object, System.Int32>(ing.Data.PropertyIconFileID > 0?"hasImg":""
Line 832:
Line 833: #line default
Line 834: #line hidden
Line 835: , 10393), false)
Line 836: );
Line 837:
Line 838: WriteLiteral(">\r\n");
Line 839:
Line 840:
Line 841: #line 160 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 842:
Line 843:
Line 844: #line default
Line 845: #line hidden
Line 846:
Line 847: #line 160 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 848: if (ing.Data.PropertyIconFileID > 0)
Line 849: {
Line 850:
Line 851:
Line 852: #line default
Line 853: #line hidden
Line 854: WriteLiteral(" <div");
Line 855:
Line 856: WriteLiteral(" class=\"propertyIcon\"");
Line 857:
Line 858: WriteLiteral(">\r\n <img");
Line 859:
Line 860: WriteAttribute("src", Tuple.Create(" src=\"", 10737), Tuple.Create("\"", 10803)
Line 861:
Line 862: #line 163 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 863: , Tuple.Create(Tuple.Create("", 10743), Tuple.Create<System.Object, System.Int32>(SiteData.SiteFiles.GetFileByID(ing.Data.PropertyIconFileID)
Line 864:
Line 865: #line default
Line 866: #line hidden
Line 867: , 10743), false)
Line 868: );
Line 869:
Line 870: WriteAttribute("alt", Tuple.Create(" alt=\"", 10804), Tuple.Create("\"", 10819)
Line 871:
Line 872: #line 163 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 873: , Tuple.Create(Tuple.Create("", 10810), Tuple.Create<System.Object, System.Int32>(ing.Name
Line 874:
Line 875: #line default
Line 876: #line hidden
Line 877: , 10810), false)
Line 878: );
Line 879:
Line 880: WriteLiteral(" />\r\n </div>\r\n");
Line 881:
Line 882:
Line 883: #line 165 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 884: }
Line 885:
Line 886:
Line 887: #line default
Line 888: #line hidden
Line 889: WriteLiteral(" ");
Line 890:
Line 891:
Line 892: #line 166 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 893: if (ingGroup.Data.MaxSelection == 1)
Line 894: {
Line 895:
Line 896:
Line 897: #line default
Line 898: #line hidden
Line 899: WriteLiteral(" <input");
Line 900:
Line 901: WriteLiteral(" type=\"radio\"");
Line 902:
Line 903: WriteAttribute("name", Tuple.Create(" name=\"", 11165), Tuple.Create("\"", 11215)
Line 904: , Tuple.Create(Tuple.Create("", 11172), Tuple.Create("ingredientGroup_", 11172), true)
Line 905:
Line 906: #line 168 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 907: , Tuple.Create(Tuple.Create("", 11188), Tuple.Create<System.Object, System.Int32>(ingGroup.PropertiesGroupID
Line 908:
Line 909: #line default
Line 910: #line hidden
Line 911: , 11188), false)
Line 912: );
Line 913:
Line 914: WriteLiteral(" class=\"ingredientGroup\"");
Line 915:
Line 916: WriteLiteral(" data-id=\"");
Line 917:
Line 918:
Line 919: #line 168 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 920: Write(ingGroup.PropertiesGroupID);
Line 921:
Line 922:
Line 923: #line default
Line 924: #line hidden
Line 925: WriteLiteral("\"");
Line 926:
Line 927: WriteLiteral(" data-price=\"");
Line 928:
Line 929:
Line 930: #line 168 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 931: Write(ing.Data.ExtraPrice);
Line 932:
Line 933:
Line 934: #line default
Line 935: #line hidden
Line 936: WriteLiteral("\"");
Line 937:
Line 938: WriteLiteral(" ");
Line 939:
Line 940:
Line 941: #line 168 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 942: Write(ingGroup.Data.Required ? "required" : "");
Line 943:
Line 944:
Line 945: #line default
Line 946: #line hidden
Line 947: WriteLiteral(" value=\"");
Line 948:
Line 949:
Line 950: #line 168 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 951: Write(ing.PropertyID);
Line 952:
Line 953:
Line 954: #line default
Line 955: #line hidden
Line 956: WriteLiteral("\" />\r\n");
Line 957:
Line 958:
Line 959: #line 169 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 960: }
Line 961: else
Line 962: {
Line 963:
Line 964:
Line 965: #line default
Line 966: #line hidden
Line 967: WriteLiteral(" <input");
Line 968:
Line 969: WriteLiteral(" type=\"checkbox\"");
Line 970:
Line 971: WriteAttribute("name", Tuple.Create(" name=\"", 11631), Tuple.Create("\"", 11681)
Line 972: , Tuple.Create(Tuple.Create("", 11638), Tuple.Create("ingredientGroup_", 11638), true)
Line 973:
Line 974: #line 172 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 975: , Tuple.Create(Tuple.Create("", 11654), Tuple.Create<System.Object, System.Int32>(ingGroup.PropertiesGroupID
Line 976:
Line 977: #line default
Line 978: #line hidden
Line 979: , 11654), false)
Line 980: );
Line 981:
Line 982: WriteLiteral(" class=\"ingredientGroup\"");
Line 983:
Line 984: WriteLiteral(" data-id=\"");
Line 985:
Line 986:
Line 987: #line 172 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 988: Write(ingGroup.PropertiesGroupID);
Line 989:
Line 990:
Line 991: #line default
Line 992: #line hidden
Line 993: WriteLiteral("\"");
Line 994:
Line 995: WriteLiteral(" data-price=\"");
Line 996:
Line 997:
Line 998: #line 172 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 999: Write(ing.Data.ExtraPrice);
Line 1000:
Line 1001:
Line 1002: #line default
Line 1003: #line hidden
Line 1004: WriteLiteral("\"");
Line 1005:
Line 1006: WriteLiteral(" ");
Line 1007:
Line 1008:
Line 1009: #line 172 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1010: Write(ingGroup.Data.Required ? "required" : "");
Line 1011:
Line 1012:
Line 1013: #line default
Line 1014: #line hidden
Line 1015: WriteLiteral(" value=\"");
Line 1016:
Line 1017:
Line 1018: #line 172 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1019: Write(ing.PropertyID);
Line 1020:
Line 1021:
Line 1022: #line default
Line 1023: #line hidden
Line 1024: WriteLiteral("\" />\r\n");
Line 1025:
Line 1026:
Line 1027: #line 173 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1028: }
Line 1029:
Line 1030:
Line 1031: #line default
Line 1032: #line hidden
Line 1033: WriteLiteral(" <label");
Line 1034:
Line 1035: WriteAttribute("for", Tuple.Create(" for=\"", 11964), Tuple.Create("\"", 12013)
Line 1036: , Tuple.Create(Tuple.Create("", 11970), Tuple.Create("ingredientGroup_", 11970), true)
Line 1037:
Line 1038: #line 174 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1039: , Tuple.Create(Tuple.Create("", 11986), Tuple.Create<System.Object, System.Int32>(ingGroup.PropertiesGroupID
Line 1040:
Line 1041: #line default
Line 1042: #line hidden
Line 1043: , 11986), false)
Line 1044: );
Line 1045:
Line 1046: WriteLiteral(">");
Line 1047:
Line 1048:
Line 1049: #line 174 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1050: Write(ing.Name);
Line 1051:
Line 1052:
Line 1053: #line default
Line 1054: #line hidden
Line 1055: WriteLiteral(" ");
Line 1056:
Line 1057:
Line 1058: #line 174 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1059: Write(ing.Data.ExtraPrice > 0 ? ing.Data.ExtraPrice + "+" : "");
Line 1060:
Line 1061:
Line 1062: #line default
Line 1063: #line hidden
Line 1064: WriteLiteral("</label>\r\n </div>\r\n");
Line 1065:
Line 1066:
Line 1067: #line 176 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1068: }
Line 1069:
Line 1070:
Line 1071: #line default
Line 1072: #line hidden
Line 1073: WriteLiteral(" <span");
Line 1074:
Line 1075: WriteLiteral(" class=\"error propertyError\"");
Line 1076:
Line 1077: WriteLiteral(" data-id=\"");
Line 1078:
Line 1079:
Line 1080: #line 177 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1081: Write(ingGroup.PropertiesGroupID);
Line 1082:
Line 1083:
Line 1084: #line default
Line 1085: #line hidden
Line 1086: WriteLiteral("\"");
Line 1087:
Line 1088: WriteLiteral(" style=\"display:none;\"");
Line 1089:
Line 1090: WriteLiteral(">");
Line 1091:
Line 1092:
Line 1093: #line 177 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1094: Write(SiteData.LanguagePack["DynamicForm.Required"]);
Line 1095:
Line 1096:
Line 1097: #line default
Line 1098: #line hidden
Line 1099: WriteLiteral("</span>\r\n ");
Line 1100:
Line 1101: WriteLiteral("\r\n </div>\r\n");
Line 1102:
Line 1103:
Line 1104: #line 201 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1105: }
Line 1106:
Line 1107:
Line 1108: #line default
Line 1109: #line hidden
Line 1110: WriteLiteral(" ");
Line 1111:
Line 1112: WriteLiteral("\r\n </div>\r\n");
Line 1113:
Line 1114:
Line 1115: #line 236 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1116: }
Line 1117:
Line 1118:
Line 1119: #line default
Line 1120: #line hidden
Line 1121: WriteLiteral(" </div>\r\n </div>\r\n " +
Line 1122: " </div>\r\n </div>\r\n <div");
Line 1123:
Line 1124: WriteLiteral(" class=\"personalDetails checkoutStage active\"");
Line 1125:
Line 1126: WriteLiteral(" data-stage=\"2\"");
Line 1127:
Line 1128: WriteLiteral(" data-ok=\"true\"");
Line 1129:
Line 1130: WriteLiteral(">\r\n <div");
Line 1131:
Line 1132: WriteLiteral(" class=\"checkoutStageContent\"");
Line 1133:
Line 1134: WriteLiteral(">\r\n <div");
Line 1135:
Line 1136: WriteLiteral(" class=\"checkoutStageContentDetails\"");
Line 1137:
Line 1138: WriteLiteral(">\r\n <div");
Line 1139:
Line 1140: WriteLiteral(" class=\"personalDetailsWrapper checkoutFormWrapper\"");
Line 1141:
Line 1142: WriteLiteral(">\r\n <div");
Line 1143:
Line 1144: WriteLiteral(" class=\"checkOutContainer\"");
Line 1145:
Line 1146: WriteLiteral(">\r\n <div");
Line 1147:
Line 1148: WriteLiteral(" class=\"row\"");
Line 1149:
Line 1150: WriteLiteral(">\r\n <div");
Line 1151:
Line 1152: WriteLiteral(" class=\"col-xs-12 form-titles\"");
Line 1153:
Line 1154: WriteLiteral(">\r\n <h3>לקבלת הצעת מחיר</h3>\r\n " +
Line 1155: " <p>השאירו פרטים ונשוב בהקדם</p>\r\n " +
Line 1156: " </div>\r\n <di" +
Line 1157: "v");
Line 1158:
Line 1159: WriteAttribute("class", Tuple.Create(" class=\"", 19999), Tuple.Create("\"", 20159)
Line 1160: , Tuple.Create(Tuple.Create("", 20007), Tuple.Create("col-md-8", 20007), true)
Line 1161: , Tuple.Create(Tuple.Create(" ", 20015), Tuple.Create("col-xs-12", 20016), true)
Line 1162: , Tuple.Create(Tuple.Create(" ", 20025), Tuple.Create("checkoutInputsWrapper", 20026), true)
Line 1163: , Tuple.Create(Tuple.Create(" ", 20047), Tuple.Create("no-pad", 20048), true)
Line 1164: , Tuple.Create(Tuple.Create(" ", 20054), Tuple.Create("pull-right", 20055), true)
Line 1165:
Line 1166: #line 251 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1167: , Tuple.Create(Tuple.Create(" ", 20065), Tuple.Create<System.Object, System.Int32>(SiteData.SiteCatalog.Data.Mode == BLL.Catalog.CatalogMode.CartForQuotes?"no-bottom-pad":""
Line 1168:
Line 1169: #line default
Line 1170: #line hidden
Line 1171: , 20066), false)
Line 1172: );
Line 1173:
Line 1174: WriteLiteral(">\r\n <div");
Line 1175:
Line 1176: WriteLiteral(" class=\"col-xs-12 col-sm-6 pull-right\"");
Line 1177:
Line 1178: WriteLiteral(">\r\n <div");
Line 1179:
Line 1180: WriteLiteral(" class=\"input-wrap\"");
Line 1181:
Line 1182: WriteLiteral(">\r\n <label");
Line 1183:
Line 1184: WriteLiteral(" for=\"userFName\"");
Line 1185:
Line 1186: WriteLiteral(">*");
Line 1187:
Line 1188:
Line 1189: #line 254 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1190: Write(SiteData.LanguagePack["TableOrderModule.Form.FirstName"]);
Line 1191:
Line 1192:
Line 1193: #line default
Line 1194: #line hidden
Line 1195: WriteLiteral("</label>\r\n <input");
Line 1196:
Line 1197: WriteLiteral(" type=\"text\"");
Line 1198:
Line 1199: WriteLiteral(" name=\"userFName\"");
Line 1200:
Line 1201: WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 20558), Tuple.Create("\"", 20631)
Line 1202:
Line 1203: #line 255 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1204: , Tuple.Create(Tuple.Create("", 20572), Tuple.Create<System.Object, System.Int32>(SiteData.LanguagePack["TableOrderModule.Form.FirstName"]
Line 1205:
Line 1206: #line default
Line 1207: #line hidden
Line 1208: , 20572), false)
Line 1209: );
Line 1210:
Line 1211: WriteLiteral(" class=\"input-data form-control\"");
Line 1212:
Line 1213: WriteAttribute("value", Tuple.Create(" value=\"", 20664), Tuple.Create("\"", 20748)
Line 1214:
Line 1215: #line 255 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1216: , Tuple.Create(Tuple.Create("", 20672), Tuple.Create<System.Object, System.Int32>(Session.CurrentUser != null ? Session.CurrentUser.UserData.FirstName : ""
Line 1217:
Line 1218: #line default
Line 1219: #line hidden
Line 1220: , 20672), false)
Line 1221: );
Line 1222:
Line 1223: WriteLiteral(" required />\r\n </div>\r\n " +
Line 1224: " </div>\r\n " +
Line 1225: " <input");
Line 1226:
Line 1227: WriteLiteral(" type=\"hidden\"");
Line 1228:
Line 1229: WriteLiteral(" name=\"paymentMethod\"");
Line 1230:
Line 1231: WriteLiteral(" class=\"input-data form-control\"");
Line 1232:
Line 1233: WriteLiteral(" aria-label=\"cash\"");
Line 1234:
Line 1235: WriteLiteral(" value=\"3\"");
Line 1236:
Line 1237: WriteLiteral(" required />\r\n <div");
Line 1238:
Line 1239: WriteLiteral(" class=\"col-xs-12 col-sm-6 pull-right\"");
Line 1240:
Line 1241: WriteLiteral(">\r\n <div");
Line 1242:
Line 1243: WriteLiteral(" class=\"input-wrap\"");
Line 1244:
Line 1245: WriteLiteral(">\r\n <label");
Line 1246:
Line 1247: WriteLiteral(" for=\"userLName\"");
Line 1248:
Line 1249: WriteLiteral(">*");
Line 1250:
Line 1251:
Line 1252: #line 261 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1253: Write(SiteData.LanguagePack["TableOrderModule.Form.LastName"]);
Line 1254:
Line 1255:
Line 1256: #line default
Line 1257: #line hidden
Line 1258: WriteLiteral("</label>\r\n <input");
Line 1259:
Line 1260: WriteLiteral(" type=\"text\"");
Line 1261:
Line 1262: WriteLiteral(" name=\"userLName\"");
Line 1263:
Line 1264: WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 21424), Tuple.Create("\"", 21496)
Line 1265:
Line 1266: #line 262 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1267: , Tuple.Create(Tuple.Create("", 21438), Tuple.Create<System.Object, System.Int32>(SiteData.LanguagePack["TableOrderModule.Form.LastName"]
Line 1268:
Line 1269: #line default
Line 1270: #line hidden
Line 1271: , 21438), false)
Line 1272: );
Line 1273:
Line 1274: WriteLiteral(" class=\"input-data form-control\"");
Line 1275:
Line 1276: WriteAttribute("value", Tuple.Create(" value=\"", 21529), Tuple.Create("\"", 21612)
Line 1277:
Line 1278: #line 262 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1279: , Tuple.Create(Tuple.Create("", 21537), Tuple.Create<System.Object, System.Int32>(Session.CurrentUser != null ? Session.CurrentUser.UserData.LastName : ""
Line 1280:
Line 1281: #line default
Line 1282: #line hidden
Line 1283: , 21537), false)
Line 1284: );
Line 1285:
Line 1286: WriteLiteral(" required />\r\n </div>\r\n " +
Line 1287: " </div>\r\n " +
Line 1288: " <div");
Line 1289:
Line 1290: WriteLiteral(" class=\"col-xs-12 col-sm-6 pull-right\"");
Line 1291:
Line 1292: WriteLiteral(">\r\n <div");
Line 1293:
Line 1294: WriteLiteral(" class=\"input-wrap\"");
Line 1295:
Line 1296: WriteLiteral(">\r\n <label");
Line 1297:
Line 1298: WriteLiteral(" for=\"userPhone\"");
Line 1299:
Line 1300: WriteLiteral(">*");
Line 1301:
Line 1302:
Line 1303: #line 267 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1304: Write(SiteData.LanguagePack["TableOrderModule.Form.Phone"]);
Line 1305:
Line 1306:
Line 1307: #line default
Line 1308: #line hidden
Line 1309: WriteLiteral("</label>\r\n <input");
Line 1310:
Line 1311: WriteLiteral(" type=\"tel\"");
Line 1312:
Line 1313: WriteLiteral(" name=\"userPhone\"");
Line 1314:
Line 1315: WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 22125), Tuple.Create("\"", 22194)
Line 1316:
Line 1317: #line 268 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1318: , Tuple.Create(Tuple.Create("", 22139), Tuple.Create<System.Object, System.Int32>(SiteData.LanguagePack["TableOrderModule.Form.Phone"]
Line 1319:
Line 1320: #line default
Line 1321: #line hidden
Line 1322: , 22139), false)
Line 1323: );
Line 1324:
Line 1325: WriteLiteral(" class=\"input-data form-control Phone\"");
Line 1326:
Line 1327: WriteAttribute("value", Tuple.Create(" value=\"", 22233), Tuple.Create("\"", 22313)
Line 1328:
Line 1329: #line 268 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1330: , Tuple.Create(Tuple.Create("", 22241), Tuple.Create<System.Object, System.Int32>(Session.CurrentUser != null ? Session.CurrentUser.UserData.Phone : ""
Line 1331:
Line 1332: #line default
Line 1333: #line hidden
Line 1334: , 22241), false)
Line 1335: );
Line 1336:
Line 1337: WriteLiteral(" required />\r\n </div>\r\n " +
Line 1338: " </div>\r\n " +
Line 1339: " <div");
Line 1340:
Line 1341: WriteLiteral(" class=\"col-xs-12 col-sm-6 pull-right emailWrapper\"");
Line 1342:
Line 1343: WriteLiteral(">\r\n <div");
Line 1344:
Line 1345: WriteLiteral(" class=\"input-wrap\"");
Line 1346:
Line 1347: WriteLiteral(">\r\n <label");
Line 1348:
Line 1349: WriteLiteral(" for=\"userEmail\"");
Line 1350:
Line 1351: WriteLiteral(">*");
Line 1352:
Line 1353:
Line 1354: #line 273 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1355: Write(SiteData.LanguagePack["Shop.UserEmail"]);
Line 1356:
Line 1357:
Line 1358: #line default
Line 1359: #line hidden
Line 1360: WriteLiteral("</label>\r\n <input");
Line 1361:
Line 1362: WriteLiteral(" type=\"email\"");
Line 1363:
Line 1364: WriteLiteral(" name=\"userEmail\"");
Line 1365:
Line 1366: WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 22828), Tuple.Create("\"", 22884)
Line 1367:
Line 1368: #line 274 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1369: , Tuple.Create(Tuple.Create("", 22842), Tuple.Create<System.Object, System.Int32>(SiteData.LanguagePack["Shop.UserEmail"]
Line 1370:
Line 1371: #line default
Line 1372: #line hidden
Line 1373: , 22842), false)
Line 1374: );
Line 1375:
Line 1376: WriteLiteral(" class=\"input-data form-control EMail\"");
Line 1377:
Line 1378: WriteAttribute("value", Tuple.Create(" value=\"", 22923), Tuple.Create("\"", 22998)
Line 1379:
Line 1380: #line 274 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1381: , Tuple.Create(Tuple.Create("", 22931), Tuple.Create<System.Object, System.Int32>(Session.CurrentUser != null ? Session.CurrentUser.UserEmail : ""
Line 1382:
Line 1383: #line default
Line 1384: #line hidden
Line 1385: , 22931), false)
Line 1386: );
Line 1387:
Line 1388: WriteLiteral(" required />\r\n </div>\r\n " +
Line 1389: " </div>\r\n " +
Line 1390: " </div>\r\n\r\n ");
Line 1391:
Line 1392: WriteLiteral("\r\n </div>\r\n " +
Line 1393: " <div");
Line 1394:
Line 1395: WriteLiteral(" class=\"addToCart\"");
Line 1396:
Line 1397: WriteLiteral(">\r\n <div");
Line 1398:
Line 1399: WriteLiteral(" class=\"normal-form-submit\"");
Line 1400:
Line 1401: WriteLiteral(">\r\n <input");
Line 1402:
Line 1403: WriteLiteral(" type=\"submit\"");
Line 1404:
Line 1405: WriteLiteral(" class=\"form-submit hvr-fade add-to-cart\"");
Line 1406:
Line 1407: WriteLiteral(" value=\"שליחה >\"");
Line 1408:
Line 1409: WriteLiteral(" />\r\n <div");
Line 1410:
Line 1411: WriteLiteral(" class=\"spinner\"");
Line 1412:
Line 1413: WriteLiteral(">\r\n <i");
Line 1414:
Line 1415: WriteLiteral(" class=\"fa fa-spinner fa-spin fa-2x fa-fw\"");
Line 1416:
Line 1417: WriteLiteral(" style=\"display:none;\"");
Line 1418:
Line 1419: WriteLiteral(@"></i>
Line 1420: </div>
Line 1421: </div>
Line 1422: </div>
Line 1423: </div>
Line 1424: </div>
Line 1425: </div>
Line 1426: </div>
Line 1427: </div>
Line 1428: <div");
Line 1429:
Line 1430: WriteLiteral(" class=\"paymentDetails checkoutStage\"");
Line 1431:
Line 1432: WriteLiteral(" data-stage=\"4\"");
Line 1433:
Line 1434: WriteLiteral(">\r\n <div");
Line 1435:
Line 1436: WriteLiteral(" class=\"checkoutStageContent checkoutFormWrapper\"");
Line 1437:
Line 1438: WriteLiteral(">\r\n <div");
Line 1439:
Line 1440: WriteLiteral(" class=\"checkoutStageContentDetails payment\"");
Line 1441:
Line 1442: WriteLiteral(">\r\n <div");
Line 1443:
Line 1444: WriteLiteral(" class=\"col-xs-12 finalPrice\"");
Line 1445:
Line 1446: WriteLiteral(">\r\n\r\n </div>\r\n <div");
Line 1447:
Line 1448: WriteLiteral(" class=\"paymentWrapper\"");
Line 1449:
Line 1450: WriteLiteral(">\r\n\r\n </div>\r\n </div>\r\n " +
Line 1451: " </div>\r\n </div>\r\n </form>\r\n </secti" +
Line 1452: "on>\r\n </div>\r\n</div>\r\n\r\n<script>\r\n var form_id = \"#checkout-form.singleIte" +
Line 1453: "mForm\";\r\n function submitSingleItemForm(){\r\n $(form_id + \" .form-submit" +
Line 1454: "\").on(\"click\", function (event) {\r\n event.preventDefault();\r\n " +
Line 1455: " var formValid = false;\r\n $(form_id + \" .input-data\")." +
Line 1456: "not(\".not-to-valid\").each(function () {\r\n if ($(this).valid()" +
Line 1457: ") {\r\n formValid = true;\r\n }\r\n " +
Line 1458: " else {\r\n $(this).focus();\r\n " +
Line 1459: " return formValid = false;\r\n }\r\n }).promis" +
Line 1460: "e().done(function () {\r\n if (formValid) {\r\n " +
Line 1461: " checkBeforeAddTocart(true);\r\n }\r\n\r\n });\r" +
Line 1462: "\n });\r\n }\r\n function checkBeforeAddTocart(isFinal) {\r\n v" +
Line 1463: "ar propertyGroupsCount = $(\".propertyGroup\").length;\r\n var propertyGroups" +
Line 1464: "ErrorsCount = 0;\r\n $(\".propertyGroup\").each(function () {\r\n va" +
Line 1465: "r pID = $(this).attr(\"data-id\");\r\n var GroupName = $(this).attr(\"name" +
Line 1466: "\");\r\n var value = $(\"input[name=\" + GroupName + \"]:checked\").val();\r\n" +
Line 1467: " if (($(this).attr(\"required\") != undefined && $(this).val() == null)" +
Line 1468: " || (this.type == \"radio\" && $(this).attr(\"required\") != undefined && value == n" +
Line 1469: "ull)) {\r\n if (this.type == \"radio\") {\r\n $(\".pr" +
Line 1470: "opertyError[data-id=\" + pID+\"]\").show();\r\n propertyGroupsErro" +
Line 1471: "rsCount++;\r\n }\r\n else {\r\n $(thi" +
Line 1472: "s).next().show();\r\n propertyGroupsErrorsCount++;\r\n " +
Line 1473: " }\r\n\r\n }\r\n else {\r\n if (this.type == \"r" +
Line 1474: "adio\") {\r\n $(\".propertyError[data-id=\" + pID + \"]\").hide();\r\n" +
Line 1475: " }\r\n else {\r\n $(this).next().hi" +
Line 1476: "de();\r\n }\r\n }\r\n });\r\n $(\".ingredientGrou" +
Line 1477: "pSelection\").each(function () {\r\n var min = $(this).attr(\"data-min\");" +
Line 1478: "\r\n var pID = $(this).attr(\"data-id\");\r\n var GroupName = $(" +
Line 1479: "this).attr(\"name\");\r\n var valuesChecked = $(this).find(\".ingredientGr" +
Line 1480: "oup:checked\").length;\r\n if (valuesChecked < min) { \r\n " +
Line 1481: " var textValue1 = $(\".selectTextValue[data-group=3507]\").is(\":check" +
Line 1482: "ed\");\r\n var textValue2 = $(\".selectTextValue[data-group=3509]\").i" +
Line 1483: "s(\":checked\");\r\n if (pID == \"3507\" && $(\"input[name=\'ingredientGr" +
Line 1484: "oup_3507\']:checked\").length == 0) {\r\n if (textValue1) {\r\n " +
Line 1485: " $(\".propertyError[data-id=3507]\").hide();\r\n " +
Line 1486: " }\r\n else {\r\n $(\".propertyError[data" +
Line 1487: "-id=3507]\").show();\r\n var headerHeight = $(\"#header2\").le" +
Line 1488: "ngth > 0 ? $(\"#header2\").outerHeight() : $(\"#header\").outerHeight();\r\n " +
Line 1489: " $(\'html,body\').animate({ scrollTop: $(\".propertyError[data-id=\" + " +
Line 1490: "pID + \"]\").offset().top - (headerHeight + 30) }, \'slow\');\r\n " +
Line 1491: " propertyGroupsErrorsCount++;\r\n }\r\n }\r\n " +
Line 1492: " else if (pID == \"3509\" && $(\"input[name=\'ingredientGroup_3509\']:check" +
Line 1493: "ed\").length == 0) {\r\n if (textValue2) {\r\n " +
Line 1494: " $(\".propertyError[data-id=3509]\").hide();\r\n }\r\n " +
Line 1495: " else {\r\n $(\".propertyError[data-id=3509]\").show" +
Line 1496: "();\r\n var headerHeight = $(\"#header2\").length > 0 ? $(\"#h" +
Line 1497: "eader2\").outerHeight() : $(\"#header\").outerHeight();\r\n $(" +
Line 1498: "\'html,body\').animate({ scrollTop: $(\".propertyError[data-id=\" + pID + \"]\").offse" +
Line 1499: "t().top - (headerHeight + 30) }, \'slow\');\r\n propertyGroup" +
Line 1500: "sErrorsCount++;\r\n }\r\n }\r\n else " +
Line 1501: "{\r\n $(\".propertyError[data-id=\" + pID + \"]\").show();\r\n " +
Line 1502: " var headerHeight = $(\"#header2\").length > 0 ? $(\"#header2\").outerHe" +
Line 1503: "ight() : $(\"#header\").outerHeight();\r\n $(\'html,body\').animate" +
Line 1504: "({ scrollTop: $(\".propertyError[data-id=\" + pID + \"]\").offset().top - (headerHei" +
Line 1505: "ght + 30) }, \'slow\');\r\n propertyGroupsErrorsCount++;\r\n " +
Line 1506: " }\r\n\r\n \r\n }\r\n else {\r\n " +
Line 1507: " $(\".propertyError[data-id=\" + pID + \"]\").hide();\r\n }\r\n });\r" +
Line 1508: "\n if (propertyGroupsErrorsCount == 0) {\r\n addToSinglesCart(\'");
Line 1509:
Line 1510:
Line 1511: #line 493 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1512: Write(Model.CurrentItem.CatalogItemID);
Line 1513:
Line 1514:
Line 1515: #line default
Line 1516: #line hidden
Line 1517: WriteLiteral("\', \'");
Line 1518:
Line 1519:
Line 1520: #line 493 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1521: Write(Model.CurrentCatalog.CatalogID);
Line 1522:
Line 1523:
Line 1524: #line default
Line 1525: #line hidden
Line 1526: WriteLiteral("\', \"1\", isFinal);\r\n }\r\n }\r\n\r\n function addToSinglesCart(itemID, cata" +
Line 1527: "logID, quantity, isFinal) {\r\n var properties = {};\r\n $(\".item-prop" +
Line 1528: "erties .propertyGroup\").each(function () {\r\n var groupID = $(this).at" +
Line 1529: "tr(\"data-id\");\r\n console.log(\"type: \" + this.type || this.tagName.toL" +
Line 1530: "owerCase());\r\n if (this.type == \"radio\") {\r\n var Group" +
Line 1531: "Name = $(this).attr(\"name\");\r\n var value = $(\"input[name=\" + Grou" +
Line 1532: "pName+\"]:checked\").val();\r\n properties[groupID] = value;\r\n " +
Line 1533: " }\r\n else {\r\n var value = $(this).val();\r\n " +
Line 1534: " properties[groupID] = value;\r\n }\r\n\r\n });\r\n var " +
Line 1535: "propertiesData = JSON.stringify(properties);\r\n\r\n var ingredients = {};\r\n " +
Line 1536: " $(\".catalogItem\" + itemID + \" .item-ingredients .ingredientGroup\").each(f" +
Line 1537: "unction () {\r\n var groupID = $(this).attr(\"data-id\");\r\n co" +
Line 1538: "nsole.log(\"type: \" + this.type || this.tagName.toLowerCase());\r\n var " +
Line 1539: "GroupName = $(this).attr(\"name\");\r\n var value = \"\";\r\n if (" +
Line 1540: "$(this).is(\":checked\"))\r\n value = $(this).val();\r\n //v" +
Line 1541: "ar value = $(\"input[name=\" + GroupName+\"]:checked\").val();\r\n //proper" +
Line 1542: "ties.push({ groupID: groupID, value: value });\r\n if (ingredients[grou" +
Line 1543: "pID] != \"\" && ingredients[groupID] != undefined && ingredients[groupID] != value" +
Line 1544: ")\r\n ingredients[groupID] += \",\" + value;\r\n else\r\n " +
Line 1545: " ingredients[groupID] = value;\r\n });\r\n var ingredientsDa" +
Line 1546: "ta = JSON.stringify(ingredients);\r\n\r\n $.post(\"");
Line 1547:
Line 1548:
Line 1549: #line 532 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1550: Write(Url.Action("AddToSinglesCart", "Home"));
Line 1551:
Line 1552:
Line 1553: #line default
Line 1554: #line hidden
Line 1555: WriteLiteral(@""", { CatalogItemID: itemID, CatalogID: catalogID, Quantity: quantity, Properties: propertiesData, Ingredients: ingredientsData, }, function (data) {
Line 1556: $("".addedToCartDetails"").html(data);
Line 1557: $("".addedToCartDetails"").addClass(""active"");
Line 1558: if (isFinal) {
Line 1559: $(form_id + "" .form-submit"").attr(""disabled"", ""true"");
Line 1560: $(form_id + "" .spinner .fa-spinner"").show();
Line 1561: $.post('");
Line 1562:
Line 1563:
Line 1564: #line 538 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1565: Write(Url.Action("CheckOutUserSingleProduct", "Home"));
Line 1566:
Line 1567:
Line 1568: #line default
Line 1569: #line hidden
Line 1570: WriteLiteral(@"', $(form_id).serialize(), function (data) {
Line 1571: //successFunc(data);
Line 1572: //$("".checkoutStageContentDetails.payment .paymentWrapper"").html(data);
Line 1573: window.location = window.location.origin + data;
Line 1574: ");
Line 1575:
Line 1576: WriteLiteral("\r\n });\r\n }\r\n\r\n });\r\n return false;\r\n }" +
Line 1577: "\r\n\r\n function continueCheckout(){\r\n moveToCheckoutStages(\'4\', true" +
Line 1578: ");\r\n $(\".normal-form-submit input\").attr(\"disabled\", false);\r\n " +
Line 1579: " $(\".normal-form-submit .spinner\").hide();\r\n }\r\n\r\n function openSh" +
Line 1580: "areBox() {\r\n $(\"#CatalogItemView .allShareButtons\").toggleClass(\"shareOpe" +
Line 1581: "n\");\r\n }\r\n function shareFB() {\r\n url = window.location.href;\r\n " +
Line 1582: " FB.ui({\r\n method: \'share\',\r\n href: url,\r\n }, fu" +
Line 1583: "nction (response) { });\r\n }\r\n function openCustomFieldPop(element) {\r\n " +
Line 1584: " var text = $(element).find(\".textInPopup\").html();\r\n var id = $(eleme" +
Line 1585: "nt).attr(\"id\");\r\n $(\"#shop-modal\").attr(\"data-cf\",id);\r\n $(\"#shop-" +
Line 1586: "modal .row\").html(text);\r\n $(\"#shop-modal\").modal(\'show\');\r\n }\r\n\r\n " +
Line 1587: "$(document).ready(function () {\r\n //$(\".propertyOption.hasImg\").each(func" +
Line 1588: "tion () {\r\n // var input = $(this).find(\"input\");\r\n // $(inp" +
Line 1589: "ut).insertBefore($(this).find(\"label\"));\r\n //});\r\n $(\".propertyIco" +
Line 1590: "n\").click(function () {\r\n $(this).parent().siblings().removeClass(\"ac" +
Line 1591: "tive\");\r\n $(this).parent().addClass(\"active\");\r\n if ($(thi" +
Line 1592: "s).parent().find(\"input[type=radio]\").length >0){\r\n $(this).paren" +
Line 1593: "t().find(\"input[type=radio]\").trigger(\'click\');\r\n }\r\n else" +
Line 1594: " if ($(this).parent().find(\"input[type=checkbox]\").length >0) {\r\n " +
Line 1595: " $(this).parent().find(\"input[type=checkbox]\").trigger(\'click\');\r\n }\r" +
Line 1596: "\n \r\n });\r\n $(\".propertyOption label\").click(function ()" +
Line 1597: " {\r\n $(this).parent().siblings().removeClass(\"active\");\r\n " +
Line 1598: "$(this).parent().addClass(\"active\");\r\n $(this).parent().find(\"input[t" +
Line 1599: "ype=radio]\").trigger(\'click\');\r\n });\r\n\r\n if (window.innerWidth <10" +
Line 1600: "24) {\r\n $(\'.relatedItemsCarousel\').css(\"direction\", \"ltr\");\r\n " +
Line 1601: " $(\'.relatedItemsCarousel\').owlCarousel({\r\n center: false,\r\n " +
Line 1602: " items: 1,\r\n loop: true,\r\n margin: 0,\r\n " +
Line 1603: " dots: false,\r\n nav: true,\r\n navText: [\"\", \"\"],\r\n " +
Line 1604: " responsive: {\r\n 991: {\r\n items: 3,\r\n " +
Line 1605: " },\r\n 768: {\r\n items: 2,\r\n " +
Line 1606: " },\r\n 300: {\r\n items: 1\r\n }" +
Line 1607: "\r\n }\r\n });\r\n }\r\n\r\n\r\n\r\n $(\'#shop-modal\').on(\'" +
Line 1608: "hidden.bs.modal\', function (e) {\r\n $(\"#shop-modal\").attr(\"data-cf\", \"" +
Line 1609: "\");\r\n });\r\n\r\n if (window.innerWidth > 991) {\r\n $(\".flex" +
Line 1610: "slider.large\").flexslider({\r\n animation: \"slide\",\r\n " +
Line 1611: " minItems: 1,\r\n maxItems: 1,\r\n slideshow: false, " +
Line 1612: " //Boolean: Animate slider automatically\r\n animatio" +
Line 1613: "nLoop: true,\r\n slideshowSpeed: 4000, //Integer: Set the" +
Line 1614: " speed of the slideshow cycling, in milliseconds\r\n directionNav: " +
Line 1615: "true,\r\n controlNav: false,\r\n prevText: \"\",\r\n " +
Line 1616: " nextText: \"\",\r\n start: function (slider1) {\r\n " +
Line 1617: " slider1.resize();\r\n }\r\n });\r\n }\r\n " +
Line 1618: " else {\r\n $(\".flexslider.large\").flexslider({\r\n ani" +
Line 1619: "mation: \"slide\",\r\n minItems: 1,\r\n maxItems: 1,\r\n " +
Line 1620: " slideshow: false, //Boolean: Animate slider automat" +
Line 1621: "ically\r\n animationLoop: true,\r\n slideshowSpeed: 40" +
Line 1622: "00, //Integer: Set the speed of the slideshow cycling, in milliseconds" +
Line 1623: "\r\n directionNav: false,\r\n controlNav: true,\r\n " +
Line 1624: " prevText: \"\",\r\n nextText: \"\",\r\n start: " +
Line 1625: "function (slider1) {\r\n slider1.resize();\r\n }\r\n" +
Line 1626: " });\r\n }\r\n\r\n\r\n\r\n });\r\n\r\n function selectTab(button, coun" +
Line 1627: "ter) {\r\n $(button).addClass(\"active\");\r\n $(button).siblings().remo" +
Line 1628: "veClass(\"active\");\r\n $(\".catalog-fields .catalog-fields-tab-text\").each(f" +
Line 1629: "unction () {\r\n var currentCounter = $(this).attr(\"data-counter\");\r\n " +
Line 1630: " if (currentCounter == counter) {\r\n $(this).addClass(\"ac" +
Line 1631: "tive\");\r\n $(this).siblings().removeClass(\"active\");\r\n " +
Line 1632: "}\r\n });\r\n }\r\n function catalogFieldReadMore() {\r\n $(\"#Catalo" +
Line 1633: "gModule #CatalogItemView .catalog-fields.columnsLayout\").toggleClass(\"openConten" +
Line 1634: "t\");\r\n }\r\n</script>\r\n\r\n<script>\r\n var deliveryOptionsCount = $(\".deliveryO" +
Line 1635: "ptionBox\").length;\r\n $(document).ready(function () {\r\n $(\".billing" +
Line 1636: "Details input\").attr(\"disabled\", true);\r\n $(\".deliveryDetails input\")" +
Line 1637: ".attr(\"disabled\", true);\r\n if ($(\"input[name=deliveryMethod]:checked\"" +
Line 1638: ").length > 0 ) {\r\n var val = $(\"input[name=deliveryMethod]:check" +
Line 1639: "ed\").val();\r\n $.post(\"");
Line 1640:
Line 1641:
Line 1642: #line 691 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1643: Write(Url.Action("UpdateDeliveryMethod", "Home"));
Line 1644:
Line 1645:
Line 1646: #line default
Line 1647: #line hidden
Line 1648: WriteLiteral(@""", { ""DeliveryMethodID"": val, ""DeliveryType"": $(""input[name=deliveryMethod]:checked"").attr(""data-type"")}, function (data) {
Line 1649: updateCart();
Line 1650: $(""input[name=deliveryType]"").val(data);
Line 1651: });
Line 1652: }
Line 1653: });
Line 1654: function checkCoupon() {
Line 1655: var couponValue = $(""#coupon"").val();
Line 1656: $.post(""");
Line 1657:
Line 1658:
Line 1659: #line 699 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1660: Write(Url.Action("CheckCoupon", "Home"));
Line 1661:
Line 1662:
Line 1663: #line default
Line 1664: #line hidden
Line 1665: WriteLiteral(@""", { ""CouponCode"": couponValue }, function (data) {
Line 1666: if (data != ""success"") {
Line 1667: $("".couponError"").html(data);
Line 1668: $("".couponError"").show();
Line 1669: }
Line 1670: else {
Line 1671: $("".couponError"").hide();
Line 1672: $("".couponSuccess"").show();
Line 1673: $("".removeCoupon"").show();
Line 1674: $("".CouponOk"").hide();
Line 1675: updateCart();
Line 1676: }
Line 1677: });
Line 1678: }
Line 1679:
Line 1680: function removeCoupon() {
Line 1681: $.post(""");
Line 1682:
Line 1683:
Line 1684: #line 715 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1685: Write(Url.Action("RemoveCoupon", "Home"));
Line 1686:
Line 1687:
Line 1688: #line default
Line 1689: #line hidden
Line 1690: WriteLiteral(@""", {}, function (data) {
Line 1691: $("".couponSuccess"").hide();
Line 1692: $("".removeCoupon"").hide();
Line 1693: $("".CouponOk"").show();
Line 1694: $(""#coupon"").val("""");
Line 1695: updateCart();
Line 1696: });
Line 1697: }
Line 1698: </script>
Line 1699:
Line 1700:
Line 1701: <script");
Line 1702:
Line 1703: WriteLiteral(" type=\"text/javascript\"");
Line 1704:
Line 1705: WriteLiteral(@">
Line 1706:
Line 1707: var allOptions = $(""select[name=deliveryLocation]"").html();
Line 1708: function selectCity(city) {
Line 1709: $(""select[name=deliveryLocation]"").html(allOptions);
Line 1710: $("".shop-details"").hide();
Line 1711: $(""select[name=deliveryLocation] option"").each(function () {
Line 1712: if ($(this).attr(""data-city"") != city) {
Line 1713: if ($(this).val() != ""0"") {
Line 1714: $(this).addClass(""placeholder"");
Line 1715: $(this).attr(""disabled"", true);
Line 1716: $(this).remove();
Line 1717: }
Line 1718: }
Line 1719: else {
Line 1720: $(this).removeClass(""placeholder"");
Line 1721: $(this).attr(""disabled"", false);
Line 1722: }
Line 1723: });
Line 1724: $(""select[name=deliveryLocation]"").val('0');
Line 1725: $("".deliveryLocations"").show();
Line 1726: }
Line 1727: function selectDestination(destination) {
Line 1728: $.post(""");
Line 1729:
Line 1730:
Line 1731: #line 749 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1732: Write(Url.Action("UpdateDeliveryMethodDestination", "Home"));
Line 1733:
Line 1734:
Line 1735: #line default
Line 1736: #line hidden
Line 1737: WriteLiteral("\", { \"Destination\": destination }, function (data) {\r\n updateCart();\r\n" +
Line 1738: " });\r\n }\r\n function selectLocation() {\r\n var hours = $(\"sele" +
Line 1739: "ct[name=deliveryLocation] option:selected\").attr(\"data-hours\");\r\n var str" +
Line 1740: "eet = $(\"select[name=deliveryLocation] option:selected\").attr(\"data-street\");\r\n " +
Line 1741: " var location = $(\"select[name=deliveryLocation] option:selected\").html();" +
Line 1742: "\r\n $(\"input[name=deliveryLocationAddress]\").val(location);\r\n $(\".s" +
Line 1743: "hop-details .address .street\").html(street);\r\n $(\".shop-details .hours\")." +
Line 1744: "html(hours);\r\n $(\".shop-details\").show();\r\n }\r\n\r\n\r\n\r\n $(document).r" +
Line 1745: "eady(function () {\r\n if ($(\"select[name=dateSelection]\").val() != \"\" && $" +
Line 1746: "(\"select[name=dateSelection]\").val() != null) {\r\n selectDate($(\"selec" +
Line 1747: "t[name=dateSelection]\").val());\r\n }\r\n $(\".deliveryOptionBox label\"" +
Line 1748: ").click(function () {\r\n $(\".deliveryOptionBox\").removeClass(\"active\")" +
Line 1749: ";\r\n $(this).parent().toggleClass(\"active\");\r\n $(this).prev" +
Line 1750: "().trigger(\'click\');\r\n });\r\n $(\".deliveryOptionBox label\").keydown" +
Line 1751: "(function (event) {\r\n if (event.keyCode == 13) {\r\n $(\"" +
Line 1752: ".deliveryOptionBox\").removeClass(\"active\");\r\n $(this).parent().to" +
Line 1753: "ggleClass(\"active\");\r\n $(this).prev().trigger(\'click\');\r\n " +
Line 1754: " }\r\n });\r\n\r\n\r\n\r\n $(\".form-submit\").click(function () {\r\n " +
Line 1755: " var hasError = false;\r\n \r\n \r\n\r\n if ($(\".del" +
Line 1756: "iveryOptionBox\").length >= 1) {\r\n\r\n if ($(\"input[name=deliveryMet" +
Line 1757: "hod]:checked\").length == 0) {\r\n $(\".deliveryMethodsError\").sh" +
Line 1758: "ow();\r\n $(\".deliveryOptionLabel\")[0].focus();\r\n " +
Line 1759: " hasError = true;\r\n return false;\r\n }\r\n " +
Line 1760: " else {\r\n hasError = false;\r\n " +
Line 1761: " $(\".deliveryMethodsError\").hide();\r\n }\r\n\r\n }\r\n " +
Line 1762: " if (!hasError) {\r\n if ($(\"#billingEqualsDelivery\").is(\":chec" +
Line 1763: "ked\")) {\r\n $(\".billingDetails\").hide();\r\n }\r\n " +
Line 1764: " if (!$(\".deliveryDetails\").hasClass(\"open\")) {\r\n " +
Line 1765: " $(\".deliveryDetails\").hide();\r\n }\r\n if (!$(\".de" +
Line 1766: "liveryMethods\").hasClass(\"open\")) {\r\n $(\".deliveryMethods\").h" +
Line 1767: "ide();\r\n }\r\n }\r\n\r\n });\r\n\r\n $(\"#checkout-form" +
Line 1768: ".singleItemForm .input-data\").on(\"keypress\", function (e) {\r\n if (e.k" +
Line 1769: "eyCode === 13 && e.currentTarget.type != \"textarea\") {\r\n $(form_i" +
Line 1770: "d + \" .form-submit\").trigger(\"click\");\r\n return false;\r\n " +
Line 1771: " }\r\n });\r\n\r\n\r\n //change set form to different from, so add to cart w" +
Line 1772: "ill be finished before submit and build order\r\n setForm(\'#checkout-form.s" +
Line 1773: "ingleItemForm\', \'");
Line 1774:
Line 1775:
Line 1776: #line 826 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1777: Write(Url.Action("CheckOutUserSingleProduct", "Home"));
Line 1778:
Line 1779:
Line 1780: #line default
Line 1781: #line hidden
Line 1782: WriteLiteral(@"', function (data) {
Line 1783: //checkBeforeAddTocart();
Line 1784: //$("".checkoutStageContentDetails.payment .paymentWrapper"").html(data);
Line 1785: window.location = window.location.origin + data;
Line 1786: });
Line 1787:
Line 1788: $(""*[name=deliveryMethod]"").change(function () {
Line 1789: console.log(""delivery change"");
Line 1790: var val = $(""*[name=deliveryMethod]:checked"").val();
Line 1791: var type = $(""input[name=deliveryMethod]:checked"").attr(""data-type"");
Line 1792: if (val == undefined && window.innerWidth < 767) {
Line 1793: var val = $(""select[name=deliveryMethod]"").val();
Line 1794: var type = $(""select[name=deliveryMethod] option:selected"").attr(""data-type"");
Line 1795: }
Line 1796: if (type != ""4"" || (type == ""4"" && $(""select[name=destination]"").val() != null)) {
Line 1797:
Line 1798: }
Line 1799: $.post(""");
Line 1800:
Line 1801:
Line 1802: #line 843 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1803: Write(Url.Action("UpdateDeliveryMethod", "Home"));
Line 1804:
Line 1805:
Line 1806: #line default
Line 1807: #line hidden
Line 1808: WriteLiteral("\", { \"DeliveryMethodID\": val, \"DeliveryType\": type}, function (data) {\r\n " +
Line 1809: " updateCart();\r\n $(\"input[name=deliveryType]\").val(" +
Line 1810: "data);\r\n });\r\n if (type == \"1\") {\r\n $" +
Line 1811: "(\"form#checkout-form .checkoutFormWrapper .pickUpBranches\").hide();\r\n " +
Line 1812: " $(\".deliveryDetailsEpost\").hide();\r\n $(\".deliveryDetailsCa" +
Line 1813: "lcWeight\").hide();\r\n $(\".deliveryDetails\").addClass(\"open\");\r\n " +
Line 1814: " $(\".deliveryDetails input\").attr(\"disabled\", false);\r\n " +
Line 1815: " }\r\n else if (type == \"2\") {\r\n $(\".deliveryDetails\"" +
Line 1816: ").removeClass(\"open\");\r\n $(\".deliveryDetails input\").attr(\"disab" +
Line 1817: "led\", true);\r\n $(\".deliveryDetailsEpost\").hide();\r\n " +
Line 1818: " $(\".deliveryDetailsCalcWeight\").hide();\r\n setTimeout(functi" +
Line 1819: "on () {\r\n $(\"form#checkout-form .checkoutFormWrapper .pickUp" +
Line 1820: "Branches\").show();\r\n }, 500);\r\n }\r\n else" +
Line 1821: " if (type == \"3\") {\r\n $(\".pickUpBranches\").hide();\r\n " +
Line 1822: " $(\".deliveryDetailsCalcWeight\").hide();\r\n $(\".deliveryDetai" +
Line 1823: "ls\").removeClass(\"open\");\r\n $(\".deliveryDetails input\").attr(\"di" +
Line 1824: "sabled\", true);\r\n $(\".deliveryDetailsEpost\").show();\r\n " +
Line 1825: " }\r\n else if (type == \"4\") {\r\n $(\".pickUpBranches\")" +
Line 1826: ".hide();\r\n $(\".deliveryDetails\").addClass(\"open\");\r\n " +
Line 1827: " $(\".deliveryDetailsEpost\").hide();\r\n $(\".deliveryDetails in" +
Line 1828: "put\").attr(\"disabled\", false);\r\n if ($(\".deliveryDetailsCalcWeig" +
Line 1829: "ht select option\").length == 2) {\r\n selectDestination($(\".de" +
Line 1830: "liveryDetailsCalcWeight select option:nth-child(2)\").val());\r\n " +
Line 1831: " $(\"select[name=destination]\").val($(\".deliveryDetailsCalcWeight select option" +
Line 1832: ":nth-child(2)\").val())\r\n }\r\n else {\r\n " +
Line 1833: " $(\".deliveryDetailsCalcWeight\").show();\r\n }\r\n " +
Line 1834: " }\r\n $.post(\"");
Line 1835:
Line 1836:
Line 1837: #line 883 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1838: Write(Url.Action("GetDeliveryTimeTable", "Home"));
Line 1839:
Line 1840:
Line 1841: #line default
Line 1842: #line hidden
Line 1843: WriteLiteral(@""", {}, function (data) {
Line 1844: $("".deliveryDetailsTimeTable"").html(data);
Line 1845: if ($(""select[name=dateSelection]"").val() != """" && $(""select[name=dateSelection]"").val()!=null){
Line 1846: selectDate($(""select[name=dateSelection]"").val() );
Line 1847: }
Line 1848: });
Line 1849: });
Line 1850: if (deliveryOptionsCount == 1 ) {
Line 1851: $("".deliveryOptionBox:first-child label.deliveryOptionLabel"").trigger(""click"");
Line 1852: //$("".deliveryOptionBox input[name=deliveryMethod]"").trigger('click');
Line 1853: }
Line 1854:
Line 1855: $(""#billingEqualsDelivery"").change(function () {
Line 1856: $("".billingDetails"").toggleClass(""open"");
Line 1857: if ($("".billingDetails"").hasClass(""open"")) {
Line 1858: $("".billingDetails input"").attr(""disabled"", false);
Line 1859: }
Line 1860: else {
Line 1861: $("".billingDetails input"").attr(""disabled"", true);
Line 1862: }
Line 1863: });
Line 1864: });
Line 1865: function selectDate(DateSelected) {
Line 1866: $.post(""");
Line 1867:
Line 1868:
Line 1869: #line 906 "C:\Inetpub\vhosts\getmood.io\httpdocs\Views\story\customCatalogItems\site1642\CatalogItemView.cshtml"
Line 1870: Write(Url.Action("SelectDeliveryTimeTableDate", "Home"));
Line 1871:
Line 1872:
Line 1873: #line default
Line 1874: #line hidden
Line 1875: WriteLiteral("\", { DateSelected: DateSelected}, function (data) {\r\n $(\".HoursOptions" +
Line 1876: "\").html(data);\r\n });\r\n }\r\n\r\n\r\n\r\n function goToItemDetails() {\r\n " +
Line 1877: " $(\".itemFirstDetails\").removeClass(\"shortLayout\");\r\n $(\"#GridWrap\").r" +
Line 1878: "emoveClass(\"shortLayout\");\r\n var slider2 = $(\".flexslider.large\").data(\'f" +
Line 1879: "lexslider\');\r\n slider2.resize();\r\n $(\".checkoutStage\").removeClass" +
Line 1880: "(\"active\");\r\n $(\"section.selectOptions.singleItemSection\").removeClass(\"a" +
Line 1881: "ctive\");\r\n }\r\n\r\n</script>\r\n\r\n\r\n\r\n<style>\r\n .propertyOption.hasImg label { " +
Line 1882: "display: inline-block; }\r\n .FooterForm.form-container-wide { display: none; }" +
Line 1883: "\r\n #GridPage .max-width { max-width: 100%; }\r\n #CatalogItemView { max-widt" +
Line 1884: "h: 1170px; margin-right: auto; margin-left: auto; }\r\n\r\n\r\n .ingredientGroupSel" +
Line 1885: "ection[data-id=\'3506\'] .propertyOption.hasImg, .ingredientGroupSelection[data-id" +
Line 1886: "=\'974\'] .propertyOption.hasImg { width: calc(33.33% - 24px); max-width: none; ma" +
Line 1887: "rgin-right: 30px; }\r\n .ingredientGroupSelection { width: 100%; display: block" +
Line 1888: "; overflow: auto; }\r\n .item-ingredients { display: block; width: 100%; float:" +
Line 1889: " left; }\r\n .propertyOption { max-width: none; }\r\n .ingredientGroupSelectio" +
Line 1890: "n[data-id=\'3506\'] .propertyOption.hasImg:nth-child(4), .ingredientGroupSelection" +
Line 1891: "[data-id=\'974\'] .propertyOption.hasImg:nth-child(4) { margin-right: 0; }\r\n .i" +
Line 1892: "ngredientGroupSelection[data-id=\'3507\'] .propertyOption.hasImg,\r\n .ingredient" +
Line 1893: "GroupSelection[data-id=\'3509\'] .propertyOption.hasImg,\r\n .ingredientGroupSele" +
Line 1894: "ction[data-id=\'976\'] .propertyOption.hasImg { width: calc(25% - 16px); max-width" +
Line 1895: ": none; margin-right: 15px; }\r\n\r\n .ingredientGroupSelection[data-id=\'3507" +
Line 1896: "\'] .propertyOption.hasImg:nth-child(5),\r\n .ingredientGroupSelection[data-" +
Line 1897: "id=\'3507\'] .propertyOption.hasImg:nth-child(9),\r\n .ingredientGroupSelecti" +
Line 1898: "on[data-id=\'3507\'] .propertyOption.hasImg:nth-child(13),\r\n .ingredientGro" +
Line 1899: "upSelection[data-id=\'3509\'] .propertyOption.hasImg:nth-child(5),\r\n .ingre" +
Line 1900: "dientGroupSelection[data-id=\'3509\'] .propertyOption.hasImg:nth-child(9),\r\n " +
Line 1901: " .ingredientGroupSelection[data-id=\'3509\'] .propertyOption.hasImg:nth-child(13)" +
Line 1902: ",\r\n .ingredientGroupSelection[data-id=\'976\'] .propertyOption.hasImg:nth-c" +
Line 1903: "hild(5),\r\n .ingredientGroupSelection[data-id=\'976\'] .propertyOption.hasIm" +
Line 1904: "g:nth-child(9),\r\n .ingredientGroupSelection[data-id=\'976\'] .propertyOptio" +
Line 1905: "n.hasImg:nth-child(13) { margin-right: 0; }\r\n\r\n .propertyOption.hasImg input[" +
Line 1906: "type=radio] { display: inline-block; width: 18px; height: 18px; border: 1px soli" +
Line 1907: "d #567760; border-radius: 0; -webkit-appearance: none; margin-right: 8px;cursor:" +
Line 1908: "pointer; }\r\n .propertyOptionSelect { width: 100%; }\r\n form.shop-form input" +
Line 1909: "[type=radio]:checked { background: #56775E url(/warehouse/temp/capocaoco/checkbo" +
Line 1910: "x-v-white.svg) no-repeat; background-size: 10px 12px; background-position: cente" +
Line 1911: "r; border-color: #567760; }\r\n form.shop-form input[type=radio]:checked:after " +
Line 1912: "{ display: none; }\r\n form.shop-form input[type=radio]:focus { outline: none; " +
Line 1913: "}\r\n\r\n .form-titles p { font-size: 80%; margin-bottom: 25px; }\r\n .singleIte" +
Line 1914: "mContentWrapper { margin-bottom: 65px; }\r\n</style>\r\n\r\n\r\n\r\n<script>\r\n console." +
Line 1915: "log(\"item-ingredients\");\r\n function CalculateIngredientsPrice() {\r\n va" +
Line 1916: "r extraPrice = 0;\r\n var currentPrice = $(\"#CatalogItemView .itemContent\")" +
Line 1917: ".find(\".finalPrice\").attr(\"data-price\");\r\n if (currentPrice != undefined)" +
Line 1918: " {\r\n currentPrice = currentPrice.replace(\",\", \"\");\r\n }\r\n " +
Line 1919: " var decimals = $(\"#CatalogItemView .itemContent\").find(\".finalPrice\").attr(\"da" +
Line 1920: "ta-decimals\");\r\n $(\".ingredientGroup\").each(function () {\r\n if" +
Line 1921: " ($(this).is(\":checked\")) {\r\n extraPrice = extraPrice + parseInt(" +
Line 1922: "$(this).attr(\"data-price\"));\r\n }\r\n });\r\n if (currentPri" +
Line 1923: "ce != undefined && currentPrice.indexOf(\".\") > -1) {\r\n if (extraPrice" +
Line 1924: " != undefined) {\r\n $(\"#CatalogItemView .itemContent\").find(\".fina" +
Line 1925: "lPrice\").html(parseFloat(parseFloat(currentPrice) + parseFloat(extraPrice)).toFi" +
Line 1926: "xed(parseInt(decimals)));\r\n }\r\n }\r\n else {\r\n " +
Line 1927: " if (extraPrice != undefined) {\r\n $(\"#CatalogItemView .itemConten" +
Line 1928: "t\").find(\".finalPrice\").html(parseFloat(parseFloat(currentPrice) + parseFloat(ex" +
Line 1929: "traPrice)));\r\n }\r\n }\r\n }\r\n\r\n\r\n $(document).ready(functio" +
Line 1930: "n () {\r\n CalculateIngredientsPrice();\r\n //$(\".ingredientGroup\").cl" +
Line 1931: "ick(function () {\r\n // var isChecked = $(this).is(\":checked\");\r\n " +
Line 1932: " // if (isChecked) {\r\n // $(this).prop(\"checked\", true);\r\n " +
Line 1933: " // }\r\n // else {\r\n // $(this).prop(\"checked\", fal" +
Line 1934: "se); \r\n // }\r\n //});\r\n $(\".ingredientGrou" +
Line 1935: "p\").change(function () {\r\n var isChecked = $(this).is(\":checked\");\r\n " +
Line 1936: " var GroupDiv = $(this).closest(\".ingredientGroupSelection\");\r\n " +
Line 1937: " var max = $(GroupDiv).attr(\"data-max\");\r\n var min = $(GroupDiv)." +
Line 1938: "attr(\"data-min\");\r\n var selectedIngredients = $(GroupDiv).find(\".ingr" +
Line 1939: "edientGroup:checked\");\r\n console.log(selectedIngredients.length);\r\n " +
Line 1940: " if ($(this).attr(\"data-id\") == 1988 || $(this).attr(\"data-id\") == 1989" +
Line 1941: " || $(this).attr(\"data-id\") == 1990 || $(this).attr(\"data-id\") == 1991) {\r\n " +
Line 1942: " switch ($(this).attr(\"data-id\")) {\r\n case \"1988\":\r" +
Line 1943: "\n if ($(\"input[data-id=1989]:checked\").length > 0 || $(\"i" +
Line 1944: "nput[data-id=1990]:checked\").length > 0 || $(\"input[data-id=1991]:checked\").leng" +
Line 1945: "th > 0) {\r\n if ($(\"input[data-id=1989]:checked\").leng" +
Line 1946: "th > 0) {\r\n $(\"input[data-id=1989]:checked\").prop" +
Line 1947: "(\"checked\", false);\r\n }\r\n " +
Line 1948: "if ($(\"input[data-id=1990]:checked\").length > 0) {\r\n " +
Line 1949: " $(\"input[data-id=1990]:checked\").prop(\"checked\", false);\r\n " +
Line 1950: " }\r\n if ($(\"input[data-id=1991]:checked\").le" +
Line 1951: "ngth > 0) {\r\n $(\"input[data-id=1991]:checked\").pr" +
Line 1952: "op(\"checked\", false);\r\n }\r\n " +
Line 1953: " $(this).prop(\"checked\", true);\r\n }\r\n " +
Line 1954: " else {\r\n if (selectedIngredients.length < min &&" +
Line 1955: " isChecked) {\r\n $(this).prop(\"checked\", true);\r\n " +
Line 1956: " }\r\n if (selectedIngredient" +
Line 1957: "s.length > max && max > 0) {\r\n $(this).prop(\"chec" +
Line 1958: "ked\", false);\r\n }\r\n }\r\n " +
Line 1959: " break;\r\n case \"1989\":\r\n " +
Line 1960: " if ($(\"input[data-id=1988]:checked\").length > 0 || $(\"input[data-id=1990]:che" +
Line 1961: "cked\").length > 0 || $(\"input[data-id=1991]:checked\").length > 0) {\r\n " +
Line 1962: " if ($(\"input[data-id=1988]:checked\").length > 0) {\r\n " +
Line 1963: " $(\"input[data-id=1988]:checked\").prop(\"checked\", false);\r\n " +
Line 1964: " }\r\n if ($(\"input[data-id=1" +
Line 1965: "990]:checked\").length > 0) {\r\n $(\"input[data-id=1" +
Line 1966: "990]:checked\").prop(\"checked\", false);\r\n }\r\n " +
Line 1967: " if ($(\"input[data-id=1991]:checked\").length > 0) {\r\n " +
Line 1968: " $(\"input[data-id=1991]:checked\").prop(\"checked\", false);\r" +
Line 1969: "\n }\r\n $(this).prop(\"checke" +
Line 1970: "d\", true);\r\n }\r\n else {\r\n " +
Line 1971: " if (selectedIngredients.length < min && isChecked) {\r\n " +
Line 1972: " $(this).prop(\"checked\", true);\r\n " +
Line 1973: " }\r\n if (selectedIngredients.length > max && max " +
Line 1974: "> 0) {\r\n $(this).prop(\"checked\", false);\r\n " +
Line 1975: " }\r\n }\r\n break" +
Line 1976: ";\r\n case \"1990\":\r\n if ($(\"input[data-i" +
Line 1977: "d=1988]:checked\").length > 0 || $(\"input[data-id=1989]:checked\").length > 0 || $" +
Line 1978: "(\"input[data-id=1991]:checked\").length > 0) {\r\n if ($" +
Line 1979: "(\"input[data-id=1988]:checked\").length > 0) {\r\n $" +
Line 1980: "(\"input[data-id=1988]:checked\").prop(\"checked\", false);\r\n " +
Line 1981: " }\r\n if ($(\"input[data-id=1989]:checked\").length " +
Line 1982: "> 0) {\r\n $(\"input[data-id=1989]:checked\").prop(\"c" +
Line 1983: "hecked\", false);\r\n }\r\n if " +
Line 1984: "($(\"input[data-id=1991]:checked\").length > 0) {\r\n " +
Line 1985: " $(\"input[data-id=1991]:checked\").prop(\"checked\", false);\r\n " +
Line 1986: " }\r\n $(this).prop(\"checked\", true);\r\n " +
Line 1987: " }\r\n else {\r\n if " +
Line 1988: "(selectedIngredients.length < min && isChecked) {\r\n " +
Line 1989: " $(this).prop(\"checked\", true);\r\n }\r\n " +
Line 1990: " if (selectedIngredients.length > max && max > 0) {\r\n " +
Line 1991: " $(this).prop(\"checked\", false);\r\n }" +
Line 1992: "\r\n }\r\n break;\r\n " +
Line 1993: " case \"1991\":\r\n if ($(\"input[data-id=1988]:checked\").leng" +
Line 1994: "th > 0 || $(\"input[data-id=1989]:checked\").length > 0 || $(\"input[data-id=1990]:" +
Line 1995: "checked\").length > 0) {\r\n if ($(\"input[data-id=1988]:" +
Line 1996: "checked\").length > 0) {\r\n $(\"input[data-id=1988]:" +
Line 1997: "checked\").prop(\"checked\", false);\r\n }\r\n " +
Line 1998: " if ($(\"input[data-id=1989]:checked\").length > 0) {\r\n " +
Line 1999: " $(\"input[data-id=1989]:checked\").prop(\"checked\", false);\r\n " +
Line 2000: " }\r\n if ($(\"input[data-id=1990" +
Line 2001: "]:checked\").length > 0) {\r\n $(\"input[data-id=1990" +
Line 2002: "]:checked\").prop(\"checked\", false);\r\n }\r\n " +
Line 2003: " $(this).prop(\"checked\", true);\r\n }\r\n " +
Line 2004: " else {\r\n if (selectedIngredients.l" +
Line 2005: "ength < min && isChecked) {\r\n $(this).prop(\"check" +
Line 2006: "ed\", true);\r\n }\r\n if (sele" +
Line 2007: "ctedIngredients.length > max && max > 0) {\r\n $(th" +
Line 2008: "is).prop(\"checked\", false);\r\n }\r\n " +
Line 2009: " }\r\n break;\r\n }\r\n }\r\n " +
Line 2010: " else {\r\n if (selectedIngredients.length < min && isChecked) " +
Line 2011: "{\r\n $(this).prop(\"checked\", true);\r\n }\r\n " +
Line 2012: " if (selectedIngredients.length > max && max > 0) {\r\n " +
Line 2013: " $(this).prop(\"checked\", false);\r\n }\r\n } " +
Line 2014: " \r\n });\r\n \r\n $(\".ingredientGroup\").change(fun" +
Line 2015: "ction () {\r\n CalculateIngredientsPrice();\r\n });\r\n });\r\n\r\n</" +
Line 2016: "script>");
Line 2017:
Line 2018: }
Line 2019: }
Line 2020: }
Line 2021:
|