Find a dealer 2

Support

Find a dealer 2
Error compiling template "Designs/USKidsGolf/TemplateRenderer/StoreLocatorWithZipcode.cshtml"
Line 869: 'CountryText' non contiene una definizione per 'GetRegionTexts'

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 83 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 using System.Collections.Generic; 19 using System.Linq; 20 21 #line 2 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 22 using Dynamicweb.Ecommerce.International; 23 24 #line default 25 #line hidden 26 27 #line 3 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 28 using Dynamicweb.Content; 29 30 #line default 31 #line hidden 32 33 #line 82 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 34 using Dynamicweb.Rendering; 35 36 #line default 37 #line hidden 38 39 #line 84 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 40 using System.Web; 41 42 #line default 43 #line hidden 44 45 #line 85 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 46 using System.Collections.Specialized; 47 48 #line default 49 #line hidden 50 51 52 public class RazorEngine_1a59b89dcc114547950e9da933f188d1 : RazorTemplateBase<RazorTemplateModel<Template>> { 53 54 #line hidden 55 56 #line 11 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 57 public RazorEngine.Templating.TemplateWriter CountrySelect(System.Collections.Generic.List<String> countriesList, Dictionary<string, string> countriesNames){ 58 #line default 59 #line hidden 60 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 61 62 #line 11 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 63 64 65 66 #line default 67 #line hidden 68 WriteLiteralTo(__razor_helper_writer, " <label"); 69 70 WriteLiteralTo(__razor_helper_writer, " class=\"text-left\""); 71 72 WriteLiteralTo(__razor_helper_writer, ">"); 73 74 75 #line 12 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 76 WriteTo(__razor_helper_writer, Translate("selectYourCountry", "Select your country:")); 77 78 79 #line default 80 #line hidden 81 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 82 83 WriteLiteralTo(__razor_helper_writer, " <select"); 84 85 WriteLiteralTo(__razor_helper_writer, " name=\"country\""); 86 87 WriteLiteralTo(__razor_helper_writer, ">\r\n <option"); 88 89 WriteLiteralTo(__razor_helper_writer, " selected=\"selected\""); 90 91 WriteLiteralTo(__razor_helper_writer, " value=\"\""); 92 93 WriteLiteralTo(__razor_helper_writer, ">"); 94 95 96 #line 14 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 97 WriteTo(__razor_helper_writer, Translate("all", "All")); 98 99 100 #line default 101 #line hidden 102 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 103 104 WriteLiteralTo(__razor_helper_writer, " "); 105 106 107 #line 15 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 108 WriteTo(__razor_helper_writer, RenderSnippet("US")); 109 110 111 #line default 112 #line hidden 113 WriteLiteralTo(__razor_helper_writer, "\r\n"); 114 115 116 #line 16 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 117 118 119 #line default 120 #line hidden 121 122 #line 16 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 123 foreach (string countryCode in countriesList.OrderBy(s => s)) 124 { 125 string countryStrip = countriesNames.ContainsKey(countryCode) ? countriesNames[countryCode] : countryCode; 126 if (countryCode == "US") 127 { 128 129 130 #line default 131 #line hidden 132 133 #line 21 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 134 WriteTo(__razor_helper_writer, SnippetStart("USA")); 135 136 137 #line default 138 #line hidden 139 140 #line 21 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 141 142 143 144 #line default 145 #line hidden 146 WriteLiteralTo(__razor_helper_writer, " <option"); 147 148 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 1146), Tuple.Create("\"", 1166) 149 150 #line 22 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 151 , Tuple.Create(Tuple.Create("", 1154), Tuple.Create<System.Object, System.Int32>(countryCode 152 153 #line default 154 #line hidden 155 , 1154), false) 156 ); 157 158 WriteLiteralTo(__razor_helper_writer, ">"); 159 160 161 #line 22 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 162 WriteTo(__razor_helper_writer, countryStrip); 163 164 165 #line default 166 #line hidden 167 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 168 169 170 #line 23 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 171 172 173 #line default 174 #line hidden 175 176 #line 23 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 177 WriteTo(__razor_helper_writer, SnippetEnd("USA")); 178 179 180 #line default 181 #line hidden 182 183 #line 23 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 184 185 } 186 else if (countryCode == "CA") 187 { 188 189 190 #line default 191 #line hidden 192 193 #line 27 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 194 WriteTo(__razor_helper_writer, SnippetStart("CAN")); 195 196 197 #line default 198 #line hidden 199 200 #line 27 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 201 202 203 204 #line default 205 #line hidden 206 WriteLiteralTo(__razor_helper_writer, " <option"); 207 208 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 1320), Tuple.Create("\"", 1340) 209 210 #line 28 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 211 , Tuple.Create(Tuple.Create("", 1328), Tuple.Create<System.Object, System.Int32>(countryCode 212 213 #line default 214 #line hidden 215 , 1328), false) 216 ); 217 218 WriteLiteralTo(__razor_helper_writer, ">"); 219 220 221 #line 28 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 222 WriteTo(__razor_helper_writer, countryStrip); 223 224 225 #line default 226 #line hidden 227 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 228 229 230 #line 29 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 231 232 233 #line default 234 #line hidden 235 236 #line 29 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 237 WriteTo(__razor_helper_writer, SnippetEnd("CAN")); 238 239 240 #line default 241 #line hidden 242 243 #line 29 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 244 245 } 246 247 248 #line default 249 #line hidden 250 WriteLiteralTo(__razor_helper_writer, " <option"); 251 252 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 1416), Tuple.Create("\"", 1436) 253 254 #line 31 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 255 , Tuple.Create(Tuple.Create("", 1424), Tuple.Create<System.Object, System.Int32>(countryCode 256 257 #line default 258 #line hidden 259 , 1424), false) 260 ); 261 262 WriteLiteralTo(__razor_helper_writer, ">"); 263 264 265 #line 31 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 266 WriteTo(__razor_helper_writer, countryStrip); 267 268 269 #line default 270 #line hidden 271 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 272 273 274 #line 32 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 275 } 276 277 #line default 278 #line hidden 279 WriteLiteralTo(__razor_helper_writer, "\r\n </select>\r\n"); 280 281 282 #line 34 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 283 284 285 #line default 286 #line hidden 287 }); 288 289 #line 34 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 290 } 291 #line default 292 #line hidden 293 294 295 #line 36 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 296 public RazorEngine.Templating.TemplateWriter RegionSelect(){ 297 #line default 298 #line hidden 299 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 300 301 #line 36 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 302 303 304 305 #line default 306 #line hidden 307 WriteLiteralTo(__razor_helper_writer, " <label"); 308 309 WriteLiteralTo(__razor_helper_writer, " class=\"text-left\""); 310 311 WriteLiteralTo(__razor_helper_writer, ">"); 312 313 314 #line 37 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 315 WriteTo(__razor_helper_writer, Translate("selectYourRegion","Select your region:")); 316 317 318 #line default 319 #line hidden 320 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 321 322 WriteLiteralTo(__razor_helper_writer, " <select"); 323 324 WriteLiteralTo(__razor_helper_writer, " data-width=\"100%\""); 325 326 WriteLiteralTo(__razor_helper_writer, " name=\"locality\""); 327 328 WriteLiteralTo(__razor_helper_writer, ">\r\n <option"); 329 330 WriteLiteralTo(__razor_helper_writer, " value=\"\""); 331 332 WriteLiteralTo(__razor_helper_writer, ">"); 333 334 335 #line 39 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 336 WriteTo(__razor_helper_writer, Translate("all","All")); 337 338 339 #line default 340 #line hidden 341 WriteLiteralTo(__razor_helper_writer, "</option>\r\n </select>\r\n"); 342 343 344 #line 41 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 345 346 347 #line default 348 #line hidden 349 }); 350 351 #line 41 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 352 } 353 #line default 354 #line hidden 355 356 357 #line 43 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 358 359 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "USKidsGolf") 360 { 361 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 362 string currDevice = currentPageview.Device.ToString(); 363 string alternativeImage = !String.IsNullOrEmpty(currentPageview.Area.Item["NoImage"].ToString()) ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg"; 364 string widthString = ""; 365 string heightString = ""; 366 string getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : ""; 367 string getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : ""; 368 string bgColor = !string.IsNullOrEmpty(background) ? "&amp;Background="+background : ""; 369 int getImageWidth = imageWidth != 0 ? imageWidth : 0; 370 int getImageHeight = imageHeight != 0 ? imageHeight : 0; 371 372 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 373 { 374 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 375 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 376 } 377 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 378 { 379 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 380 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 381 } 382 383 if (getImageWidth != 0) 384 { 385 widthString = "&amp;Width=" + getImageWidth; 386 } 387 if (getImageHeight != 0) 388 { 389 heightString = "&amp;Height=" + getImageHeight; 390 } 391 392 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 393 return output; 394 } 395 396 #line default 397 #line hidden 398 399 400 public RazorEngine_1a59b89dcc114547950e9da933f188d1() { 401 } 402 403 public override void Execute() { 404 405 #line 5 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 406 407 Dynamicweb.Content.Items.Item itemArea = Pageview.Area.Item; 408 int generalSettingsPageId = GetPageIdByNavigationTag("generalsettings");// Int32.Parse(itemArea["GeneralSettings"].ToString()); 409 var page = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(generalSettingsPageId); 410 Dynamicweb.Content.Items.Item generalSettings = page.Item; 411 412 413 414 #line default 415 #line hidden 416 417 #line 34 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 418 419 420 421 422 #line default 423 #line hidden 424 425 #line 41 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 426 427 428 429 #line default 430 #line hidden 431 WriteLiteral("\r\n"); 432 433 434 #line 43 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 435 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 436 437 #line default 438 #line hidden 439 WriteLiteral("\r\n"); 440 441 442 #line 87 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 443 444 string dealerGroups = generalSettings["DealerGroups"].ToString(); 445 string storesGroupID = !string.IsNullOrWhiteSpace(dealerGroups) ? "%" + dealerGroups + "%" : ""; 446 string accessDataSql = "SELECT AccessUserState, AccessUserCountry, AccessUserZip, AccessUserAddress, AccessUserName, AccessUserCity, AccessUserGeoLocationLat, AccessUserImage, AccessUserGeoLocationLng FROM accessUser WHERE AccessUserCountry is not NULL AND AccessUserCountry != '' AND AccessUserGeoLocationLat IS NOT NULL AND AccessUserGroups LIKE '" + storesGroupID + "'"; 447 string accessRegionsDataSql = "SELECT CountryTextName, CountryTextCode2, CountryTextRegionCode FROM EcomCountryText"; 448 string regionsString = "{"; 449 string country = ""; 450 string state = ""; 451 string countryLogged = !string.IsNullOrEmpty(HttpContext.Current.Request.Params["country"]) ? HttpContext.Current.Request.Params["country"] : country; 452 string stateLogged = !string.IsNullOrEmpty(HttpContext.Current.Request.Params["state"]) ? HttpContext.Current.Request.Params["state"] : state; 453 System.Data.DataRow[] dataSet = Dynamicweb.Data.Database.CreateDataSet(accessDataSql).Tables[0].Select(); 454 System.Data.DataRow[] dataRegionsSet = Dynamicweb.Data.Database.CreateDataSet(accessRegionsDataSql).Tables[0].Select(); 455 bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 456 System.Collections.Generic.List<String> countriesList = dataSet.Select(r => ((string)r["AccessUserCountry"].ToString()).Trim() ).Distinct().ToList(); 457 Dictionary<string, string> countriesNames = new Dictionary<string, string>(); 458 459 foreach(System.Data.DataRow r in dataRegionsSet.Where(x => string.IsNullOrWhiteSpace(x["CountryTextRegionCode"].ToString()))) 460 { 461 if(!countriesNames.ContainsKey(r["CountryTextCode2"].ToString())) { 462 countriesNames.Add(r["CountryTextCode2"].ToString(), r["CountryTextName"].ToString()); 463 } 464 } 465 466 if(countryLogged != country) 467 { 468 stateLogged = ""; 469 } 470 471 if (userIsLoggedIn) 472 { 473 var user = Pageview.User; 474 countryLogged = user.Country.ToString(); 475 stateLogged = user.State.ToString(); 476 } 477 478 foreach (string i in countriesList) 479 { 480 System.Collections.Generic.List<String> regions = dataSet.Where(r => (string)r["AccessUserCountry"] == i).Select(r => ((string)r["AccessUserState"]).Trim() ).Distinct().ToList(); 481 int countNum = 0; 482 string countryStrip = i; 483 484 if(regionsString != "{") { 485 regionsString += ","; 486 } 487 regionsString += "\""+countryStrip+"\":["; 488 foreach (string region in regions){ 489 var regionTextList = !string.IsNullOrEmpty(region) ? dataRegionsSet.First(r => r["CountryTextRegionCode"].ToString() == region.ToString()) : null; 490 string regionText = regionTextList != null ? regionTextList["CountryTextName"].ToString() : ""; 491 492 if(!string.IsNullOrWhiteSpace(regionText)) 493 { 494 if(countNum != 0) { 495 regionsString += ","; 496 } 497 regionsString += "\""+@regionText+"\""; 498 countNum++; 499 } 500 } 501 regionsString += "]"; 502 503 } 504 regionsString += "}"; 505 506 507 #line default 508 #line hidden 509 WriteLiteral("\r\n<div"); 510 511 WriteLiteral(" class=\"dynamicweb-map\""); 512 513 WriteLiteral(" id=\"Maps-85\""); 514 515 WriteLiteral(" data-list-position=\"hidden\""); 516 517 WriteLiteral(">\r\n <div"); 518 519 WriteLiteral(" class=\"col-xs-12\""); 520 521 WriteLiteral(" id=\"findStoreFilter\""); 522 523 WriteLiteral(">\r\n <fieldset"); 524 525 WriteLiteral(" class=\"mandatory col-sm-3 col-xs-12\""); 526 527 WriteLiteral(" name=\"tag_adr\""); 528 529 WriteLiteral(">\r\n <label"); 530 531 WriteLiteral(" class=\"text-left\""); 532 533 WriteLiteral(" for=\"zipCode\""); 534 535 WriteLiteral(">"); 536 537 538 #line 153 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 539 Write(Translate("Zip Code")); 540 541 542 #line default 543 #line hidden 544 WriteLiteral("</label>\r\n <input"); 545 546 WriteLiteral(" type=\"text\""); 547 548 WriteLiteral(" name=\"zip\""); 549 550 WriteLiteral(" id=\"zipCode\""); 551 552 WriteAttribute("title", Tuple.Create(" title=\"", 7952), Tuple.Create("\"", 7982) 553 554 #line 154 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 555 , Tuple.Create(Tuple.Create("", 7960), Tuple.Create<System.Object, System.Int32>(Translate("Zip Code") 556 557 #line default 558 #line hidden 559 , 7960), false) 560 ); 561 562 WriteLiteral(" />\r\n </fieldset>\r\n <fieldset"); 563 564 WriteLiteral(" class=\"col-sm-3 col-xs-12\""); 565 566 WriteLiteral(" name=\"tag_dst\""); 567 568 WriteLiteral(">\r\n <label"); 569 570 WriteLiteral(" class=\"text-left\""); 571 572 WriteLiteral(" for=\"radius\""); 573 574 WriteLiteral(">"); 575 576 577 #line 157 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 578 Write(Translate("Distance")); 579 580 581 #line default 582 #line hidden 583 WriteLiteral("</label>\r\n <select"); 584 585 WriteLiteral(" id=\"radius\""); 586 587 WriteLiteral(" name=\"radius\""); 588 589 WriteLiteral(">\r\n <option"); 590 591 WriteLiteral(" value=\"5\""); 592 593 WriteLiteral(">5 "); 594 595 596 #line 159 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 597 Write(Translate("miles")); 598 599 600 #line default 601 #line hidden 602 WriteLiteral("</option>\r\n <option"); 603 604 WriteLiteral(" value=\"15\""); 605 606 WriteLiteral(">15 "); 607 608 609 #line 160 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 610 Write(Translate("miles")); 611 612 613 #line default 614 #line hidden 615 WriteLiteral("</option>\r\n <option"); 616 617 WriteLiteral(" value=\"25\""); 618 619 WriteLiteral(">25 "); 620 621 622 #line 161 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 623 Write(Translate("miles")); 624 625 626 #line default 627 #line hidden 628 WriteLiteral("</option>\r\n <option"); 629 630 WriteLiteral(" value=\"50\""); 631 632 WriteLiteral(">50 "); 633 634 635 #line 162 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 636 Write(Translate("miles")); 637 638 639 #line default 640 #line hidden 641 WriteLiteral("</option>\r\n </select>\r\n </fieldset>\r\n <div"); 642 643 WriteLiteral(" class=\"locations-filter col-xs-12 col-sm-3\""); 644 645 WriteLiteral(">\r\n <button"); 646 647 WriteLiteral(" class=\"btn btn-bg\""); 648 649 WriteLiteral(" data-filter-value=\"test\""); 650 651 WriteLiteral(">"); 652 653 654 #line 166 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 655 Write(Translate("search","Search")); 656 657 658 #line default 659 #line hidden 660 WriteLiteral("</button>\r\n </div>\r\n</div>\r\n\r\n"); 661 662 663 #line 170 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 664 Write(SnippetStart("jsOnLoad")); 665 666 667 #line default 668 #line hidden 669 WriteLiteral("\r\nonLoadMaps();\r\n"); 670 671 672 #line 172 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 673 Write(SnippetEnd("jsOnLoad")); 674 675 676 #line default 677 #line hidden 678 WriteLiteral("\r\n <div"); 679 680 WriteLiteral(" id=\"loading\""); 681 682 WriteLiteral(" class=\"col-xs-12\""); 683 684 WriteLiteral(">&nbsp;</div>\r\n<div"); 685 686 WriteLiteral(" class=\"map col-sm-8 col-xs-12 noPaddingLeft\""); 687 688 WriteLiteral(">\r\n <div"); 689 690 WriteLiteral(" id=\"Maps-85-map\""); 691 692 WriteLiteral("></div>\r\n</div>\r\n<div"); 693 694 WriteLiteral(" class=\"list col-sm-4 col-xs-12\""); 695 696 WriteLiteral(">\r\n <div"); 697 698 WriteLiteral(" class=\"no-matches\""); 699 700 WriteLiteral(">"); 701 702 703 #line 178 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 704 Write(Translate("NoLocationsFound","No locations found")); 705 706 707 #line default 708 #line hidden 709 WriteLiteral("</div>\r\n <ol"); 710 711 WriteLiteral(" class=\"storeList\""); 712 713 WriteLiteral(" id=\"Maps-85-list\""); 714 715 WriteLiteral(" data-sort-order=\"desc\""); 716 717 WriteLiteral(">\r\n"); 718 719 720 #line 180 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 721 722 723 #line default 724 #line hidden 725 726 #line 180 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 727 foreach (System.Data.DataRow store in dataSet) 728 { 729 var regionTextList = dataRegionsSet.First(r => r["CountryTextRegionCode"].ToString() == store["AccessUserState"].ToString()); 730 string regionTextString = regionTextList != null ? regionTextList["CountryTextName"].ToString() : ""; 731 732 733 734 #line default 735 #line hidden 736 WriteLiteral(" <li"); 737 738 WriteLiteral(" data-lat=\""); 739 740 741 #line 185 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 742 Write(store["AccessUserGeoLocationLat"]); 743 744 745 #line default 746 #line hidden 747 WriteLiteral("\""); 748 749 WriteLiteral(" data-lng=\""); 750 751 752 #line 185 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 753 Write(store["AccessUserGeoLocationLng"]); 754 755 756 #line default 757 #line hidden 758 WriteLiteral("\""); 759 760 WriteLiteral(" data-title=\""); 761 762 763 #line 185 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 764 Write(store["AccessUserName"]); 765 766 767 #line default 768 #line hidden 769 WriteLiteral("\""); 770 771 WriteLiteral("\r\n data-filter-values=\"\""); 772 773 WriteLiteral(" data-country=\""); 774 775 776 #line 186 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 777 Write(store["AccessUserCountry"]); 778 779 780 #line default 781 #line hidden 782 WriteLiteral("\""); 783 784 WriteLiteral(" data-citycode=\""); 785 786 787 #line 186 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 788 Write(store["AccessUserState"]); 789 790 791 #line default 792 #line hidden 793 WriteLiteral("\""); 794 795 WriteLiteral(" data-city=\""); 796 797 798 #line 186 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 799 Write(regionTextString); 800 801 802 #line default 803 #line hidden 804 WriteLiteral("\""); 805 806 WriteLiteral(" data-sort-value=\""); 807 808 809 #line 186 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 810 Write(store["AccessUserName"]); 811 812 813 #line default 814 #line hidden 815 WriteLiteral("\""); 816 817 WriteLiteral(">\r\n <div>\r\n\r\n <b>"); 818 819 820 #line 189 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 821 Write(store["AccessUserName"]); 822 823 824 #line default 825 #line hidden 826 WriteLiteral("</b><br/>\r\n\r\n"); 827 828 WriteLiteral(" "); 829 830 831 #line 191 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 832 Write(store["AccessUserAddress"]); 833 834 835 #line default 836 #line hidden 837 WriteLiteral("<br/>\r\n"); 838 839 WriteLiteral(" "); 840 841 842 #line 192 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 843 Write(store["AccessUserCity"]); 844 845 846 #line default 847 #line hidden 848 WriteLiteral("\r\n"); 849 850 851 #line 193 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 852 853 854 #line default 855 #line hidden 856 857 #line 193 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 858 if(!string.IsNullOrEmpty(store["AccessUserState"].ToString())) { 859 860 861 #line default 862 #line hidden 863 WriteLiteral(" "); 864 865 WriteLiteral(", "); 866 867 868 #line 194 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 869 Write(Dynamicweb.Ecommerce.International.CountryText.GetRegionTexts(store["AccessUserCountry"].ToString()).First(c => c.RegionCode == store["AccessUserState"].ToString()).Name); 870 871 872 #line default 873 #line hidden 874 WriteLiteral("\r\n"); 875 876 877 #line 195 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 878 } 879 880 881 #line default 882 #line hidden 883 WriteLiteral(" "); 884 885 886 #line 196 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 887 Write(store["AccessUserZip"]); 888 889 890 #line default 891 #line hidden 892 WriteLiteral("\r\n </div>\r\n </li>\r\n"); 893 894 895 #line 199 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 896 } 897 898 899 #line default 900 #line hidden 901 WriteLiteral(" </ol>\r\n\r\n</div>\r\n"); 902 903 904 #line 203 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 905 Write(SnippetStart("externalScripts")); 906 907 908 #line default 909 #line hidden 910 WriteLiteral("\r\n<script"); 911 912 WriteLiteral(" type=\"text/javascript\""); 913 914 WriteLiteral(" src=\"//maps.googleapis.com/maps/api/js?v=3&amp;sensor=false\""); 915 916 WriteLiteral("></script>\r\n<script"); 917 918 WriteLiteral(" type=\"text/javascript\""); 919 920 WriteLiteral(" src=\"/Files/Templates/Designs/RizzoDesignFolder/Maps/javascripts/Maps.js\""); 921 922 WriteLiteral("></script>\r\n"); 923 924 925 #line 206 "c:\Domains\Sites\uskidsgolfpro.com\Files\Templates\Designs\USKidsGolf\TemplateRenderer\StoreLocatorWithZipcode.cshtml" 926 Write(SnippetEnd("externalScripts")); 927 928 929 #line default 930 #line hidden 931 WriteLiteral("\r\n\r\n\r\n</div>"); 932 933 } 934 } 935 } 936

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Ecommerce.International 3 @using Dynamicweb.Content 4 @using Dynamicweb.Rendering 5 @{ 6 Dynamicweb.Content.Items.Item itemArea = Pageview.Area.Item; 7 int generalSettingsPageId = GetPageIdByNavigationTag("generalsettings");// Int32.Parse(itemArea["GeneralSettings"].ToString()); 8 var page = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(generalSettingsPageId); 9 Dynamicweb.Content.Items.Item generalSettings = page.Item; 10 11 @helper CountrySelect(System.Collections.Generic.List<String> countriesList, Dictionary<string, string> countriesNames){ 12 <label class="text-left">@Translate("selectYourCountry", "Select your country:")</label> 13 <select name="country"> 14 <option selected="selected" value="">@Translate("all", "All")</option> 15 @RenderSnippet("US") 16 @foreach (string countryCode in countriesList.OrderBy(s => s)) 17 { 18 string countryStrip = countriesNames.ContainsKey(countryCode) ? countriesNames[countryCode] : countryCode; 19 if (countryCode == "US") 20 { 21 @SnippetStart("USA") 22 <option value="@countryCode">@countryStrip</option> 23 @SnippetEnd("USA") 24 } 25 else if (countryCode == "CA") 26 { 27 @SnippetStart("CAN") 28 <option value="@countryCode">@countryStrip</option> 29 @SnippetEnd("CAN") 30 } 31 <option value="@countryCode">@countryStrip</option> 32 } 33 </select> 34 } 35 36 @helper RegionSelect(){ 37 <label class="text-left">@Translate("selectYourRegion","Select your region:")</label> 38 <select data-width="100%" name="locality"> 39 <option value="">@Translate("all","All")</option> 40 </select> 41 } 42 } 43 @{ string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", "");}@functions{ 44 public static string GetImage(string sourceString, int imageWidth, int imageHeight, int imageWidthTablet = 0, int imageHeightTablet = 0, int imageWidthMobile = 0, int imageHeightMobile = 0, string imageFormat = "jpg", int imageCompression = 0, int imageCrop = 5, string background = "", string designName = "USKidsGolf") 45 { 46 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 47 string currDevice = currentPageview.Device.ToString(); 48 string alternativeImage = !String.IsNullOrEmpty(currentPageview.Area.Item["NoImage"].ToString()) ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternativeImage.jpg"; 49 string widthString = ""; 50 string heightString = ""; 51 string getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : ""; 52 string getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : ""; 53 string bgColor = !string.IsNullOrEmpty(background) ? "&amp;Background="+background : ""; 54 int getImageWidth = imageWidth != 0 ? imageWidth : 0; 55 int getImageHeight = imageHeight != 0 ? imageHeight : 0; 56 57 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 58 { 59 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 60 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 61 } 62 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 63 { 64 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 65 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 66 } 67 68 if (getImageWidth != 0) 69 { 70 widthString = "&amp;Width=" + getImageWidth; 71 } 72 if (getImageHeight != 0) 73 { 74 heightString = "&amp;Height=" + getImageHeight; 75 } 76 77 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 78 return output; 79 } 80 } 81 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 82 @using Dynamicweb.Rendering; 83 @using System; 84 @using System.Web; 85 @using System.Collections.Specialized; 86 87 @{ 88 string dealerGroups = generalSettings["DealerGroups"].ToString(); 89 string storesGroupID = !string.IsNullOrWhiteSpace(dealerGroups) ? "%" + dealerGroups + "%" : ""; 90 string accessDataSql = "SELECT AccessUserState, AccessUserCountry, AccessUserZip, AccessUserAddress, AccessUserName, AccessUserCity, AccessUserGeoLocationLat, AccessUserImage, AccessUserGeoLocationLng FROM accessUser WHERE AccessUserCountry is not NULL AND AccessUserCountry != '' AND AccessUserGeoLocationLat IS NOT NULL AND AccessUserGroups LIKE '" + storesGroupID + "'"; 91 string accessRegionsDataSql = "SELECT CountryTextName, CountryTextCode2, CountryTextRegionCode FROM EcomCountryText"; 92 string regionsString = "{"; 93 string country = ""; 94 string state = ""; 95 string countryLogged = !string.IsNullOrEmpty(HttpContext.Current.Request.Params["country"]) ? HttpContext.Current.Request.Params["country"] : country; 96 string stateLogged = !string.IsNullOrEmpty(HttpContext.Current.Request.Params["state"]) ? HttpContext.Current.Request.Params["state"] : state; 97 System.Data.DataRow[] dataSet = Dynamicweb.Data.Database.CreateDataSet(accessDataSql).Tables[0].Select(); 98 System.Data.DataRow[] dataRegionsSet = Dynamicweb.Data.Database.CreateDataSet(accessRegionsDataSql).Tables[0].Select(); 99 bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 100 System.Collections.Generic.List<String> countriesList = dataSet.Select(r => ((string)r["AccessUserCountry"].ToString()).Trim() ).Distinct().ToList(); 101 Dictionary<string, string> countriesNames = new Dictionary<string, string>(); 102 103 foreach(System.Data.DataRow r in dataRegionsSet.Where(x => string.IsNullOrWhiteSpace(x["CountryTextRegionCode"].ToString()))) 104 { 105 if(!countriesNames.ContainsKey(r["CountryTextCode2"].ToString())) { 106 countriesNames.Add(r["CountryTextCode2"].ToString(), r["CountryTextName"].ToString()); 107 } 108 } 109 110 if(countryLogged != country) 111 { 112 stateLogged = ""; 113 } 114 115 if (userIsLoggedIn) 116 { 117 var user = Pageview.User; 118 countryLogged = user.Country.ToString(); 119 stateLogged = user.State.ToString(); 120 } 121 122 foreach (string i in countriesList) 123 { 124 System.Collections.Generic.List<String> regions = dataSet.Where(r => (string)r["AccessUserCountry"] == i).Select(r => ((string)r["AccessUserState"]).Trim() ).Distinct().ToList(); 125 int countNum = 0; 126 string countryStrip = i; 127 128 if(regionsString != "{") { 129 regionsString += ","; 130 } 131 regionsString += "\""+countryStrip+"\":["; 132 foreach (string region in regions){ 133 var regionTextList = !string.IsNullOrEmpty(region) ? dataRegionsSet.First(r => r["CountryTextRegionCode"].ToString() == region.ToString()) : null; 134 string regionText = regionTextList != null ? regionTextList["CountryTextName"].ToString() : ""; 135 136 if(!string.IsNullOrWhiteSpace(regionText)) 137 { 138 if(countNum != 0) { 139 regionsString += ","; 140 } 141 regionsString += "\""+@regionText+"\""; 142 countNum++; 143 } 144 } 145 regionsString += "]"; 146 147 } 148 regionsString += "}"; 149 } 150 <div class="dynamicweb-map" id="Maps-85" data-list-position="hidden"> 151 <div class="col-xs-12" id="findStoreFilter"> 152 <fieldset class="mandatory col-sm-3 col-xs-12" name="tag_adr"> 153 <label class="text-left" for="zipCode">@Translate("Zip Code")</label> 154 <input type="text" name="zip" id="zipCode" title="@Translate("Zip Code")" /> 155 </fieldset> 156 <fieldset class="col-sm-3 col-xs-12" name="tag_dst"> 157 <label class="text-left" for="radius">@Translate("Distance")</label> 158 <select id="radius" name="radius"> 159 <option value="5">5 @Translate("miles")</option> 160 <option value="15">15 @Translate("miles")</option> 161 <option value="25">25 @Translate("miles")</option> 162 <option value="50">50 @Translate("miles")</option> 163 </select> 164 </fieldset> 165 <div class="locations-filter col-xs-12 col-sm-3"> 166 <button class="btn btn-bg" data-filter-value="test">@Translate("search","Search")</button> 167 </div> 168 </div> 169 170 @SnippetStart("jsOnLoad") 171 onLoadMaps(); 172 @SnippetEnd("jsOnLoad") 173 <div id="loading" class="col-xs-12">&nbsp;</div> 174 <div class="map col-sm-8 col-xs-12 noPaddingLeft"> 175 <div id="Maps-85-map"></div> 176 </div> 177 <div class="list col-sm-4 col-xs-12"> 178 <div class="no-matches">@Translate("NoLocationsFound","No locations found")</div> 179 <ol class="storeList" id="Maps-85-list" data-sort-order="desc"> 180 @foreach (System.Data.DataRow store in dataSet) 181 { 182 var regionTextList = dataRegionsSet.First(r => r["CountryTextRegionCode"].ToString() == store["AccessUserState"].ToString()); 183 string regionTextString = regionTextList != null ? regionTextList["CountryTextName"].ToString() : ""; 184 185 <li data-lat="@store["AccessUserGeoLocationLat"]" data-lng="@store["AccessUserGeoLocationLng"]" data-title="@store["AccessUserName"]" 186 data-filter-values="" data-country="@store["AccessUserCountry"]" data-citycode="@store["AccessUserState"]" data-city="@regionTextString" data-sort-value="@store["AccessUserName"]"> 187 <div> 188 189 <b>@store["AccessUserName"]</b><br/> 190 191 @store["AccessUserAddress"]<br/> 192 @store["AccessUserCity"] 193 @if(!string.IsNullOrEmpty(store["AccessUserState"].ToString())) { 194 @:, @Dynamicweb.Ecommerce.International.CountryText.GetRegionTexts(store["AccessUserCountry"].ToString()).First(c => c.RegionCode == store["AccessUserState"].ToString()).Name 195 } 196 @store["AccessUserZip"] 197 </div> 198 </li> 199 } 200 </ol> 201 202 </div> 203 @SnippetStart("externalScripts") 204 <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?v=3&amp;sensor=false"></script> 205 <script type="text/javascript" src="/Files/Templates/Designs/RizzoDesignFolder/Maps/javascripts/Maps.js"></script> 206 @SnippetEnd("externalScripts") 207 208 209 </div>

Our Mission

The mission of U.S. Kids Golf is to help kids have fun learning the lifelong game of golf and encourage family interaction that builds lasting memories.