Find a dealer

Find a dealer
Error compiling template "Designs/PacificBag/TemplateRenderer/StoreLocator.cshtml"
Line 851: 'CountryText' does not contain a definition for '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 119 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 22 using Dynamicweb.Ecommerce.International; 23 24 #line default 25 #line hidden 26 27 #line 3 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 28 using Dynamicweb.Content; 29 30 #line default 31 #line hidden 32 33 #line 118 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 34 using Dynamicweb.Rendering; 35 36 #line default 37 #line hidden 38 39 #line 120 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 40 using System.Web; 41 42 #line default 43 #line hidden 44 45 #line 121 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 46 using System.Collections.Specialized; 47 48 #line default 49 #line hidden 50 51 52 public class RazorEngine_60d2665fd17148888687ace8c1406243 : RazorTemplateBase<RazorTemplateModel<Template>> { 53 54 #line hidden 55 56 #line 10 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 10 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 11 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 13 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 14 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 15 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 117 118 119 #line default 120 #line hidden 121 122 #line 15 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 20 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 134 WriteTo(__razor_helper_writer, SnippetStart("USA")); 135 136 137 #line default 138 #line hidden 139 140 #line 20 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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=\"", 1157), Tuple.Create("\"", 1177) 149 150 #line 21 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 151 , Tuple.Create(Tuple.Create("", 1165), Tuple.Create<System.Object, System.Int32>(countryCode 152 153 #line default 154 #line hidden 155 , 1165), false) 156 ); 157 158 WriteLiteralTo(__razor_helper_writer, ">"); 159 160 161 #line 21 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 22 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 171 172 173 #line default 174 #line hidden 175 176 #line 22 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 177 WriteTo(__razor_helper_writer, SnippetEnd("USA")); 178 179 180 #line default 181 #line hidden 182 183 #line 22 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 184 185 } 186 else if (countryCode == "CA") 187 { 188 189 190 #line default 191 #line hidden 192 193 #line 26 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 194 WriteTo(__razor_helper_writer, SnippetStart("CAN")); 195 196 197 #line default 198 #line hidden 199 200 #line 26 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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=\"", 1331), Tuple.Create("\"", 1351) 209 210 #line 27 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 211 , Tuple.Create(Tuple.Create("", 1339), Tuple.Create<System.Object, System.Int32>(countryCode 212 213 #line default 214 #line hidden 215 , 1339), false) 216 ); 217 218 WriteLiteralTo(__razor_helper_writer, ">"); 219 220 221 #line 27 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 28 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 231 232 233 #line default 234 #line hidden 235 236 #line 28 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 237 WriteTo(__razor_helper_writer, SnippetEnd("CAN")); 238 239 240 #line default 241 #line hidden 242 243 #line 28 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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=\"", 1427), Tuple.Create("\"", 1447) 253 254 #line 30 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 255 , Tuple.Create(Tuple.Create("", 1435), Tuple.Create<System.Object, System.Int32>(countryCode 256 257 #line default 258 #line hidden 259 , 1435), false) 260 ); 261 262 WriteLiteralTo(__razor_helper_writer, ">"); 263 264 265 #line 30 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 31 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 275 } 276 277 #line default 278 #line hidden 279 WriteLiteralTo(__razor_helper_writer, "\r\n </select>\r\n"); 280 281 282 #line 33 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 283 284 285 #line default 286 #line hidden 287 }); 288 289 #line 33 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 290 } 291 #line default 292 #line hidden 293 294 295 #line 35 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 35 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 36 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 38 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 40 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 345 346 347 #line default 348 #line hidden 349 }); 350 351 #line 40 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 352 } 353 #line default 354 #line hidden 355 356 357 #line 42 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.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 = "PacificBag") 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 public static string GetImageWhiteSpace(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 = "PacificBag") 397 { 398 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 399 string currDevice = currentPageview.Device.ToString(); 400 string alternativeImage = "/Files/Templates/Designs/" + designName + "/images/white80.png"; 401 string widthString = ""; 402 string heightString = ""; 403 string getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : ""; 404 string getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : ""; 405 string bgColor = !string.IsNullOrEmpty(background) ? "&amp;Background="+background : ""; 406 int getImageWidth = imageWidth != 0 ? imageWidth : 0; 407 int getImageHeight = imageHeight != 0 ? imageHeight : 0; 408 409 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 410 { 411 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 412 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 413 } 414 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 415 { 416 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 417 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 418 } 419 420 if (getImageWidth != 0) 421 { 422 widthString = "&amp;Width=" + getImageWidth; 423 } 424 if (getImageHeight != 0) 425 { 426 heightString = "&amp;Height=" + getImageHeight; 427 } 428 429 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 430 return output; 431 } 432 433 #line default 434 #line hidden 435 436 437 public RazorEngine_60d2665fd17148888687ace8c1406243() { 438 } 439 440 public override void Execute() { 441 442 #line 5 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 443 444 Dynamicweb.Content.Items.Item itemArea = Pageview.Area.Item; 445 int generalSettingsPageId = Int32.Parse(itemArea["GeneralSettings"].ToString()); 446 var page = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(generalSettingsPageId); 447 Dynamicweb.Content.Items.Item generalSettings = Dynamicweb.Content.Items.Item.GetItemById(page.ItemType, page.ItemId); 448 449 450 #line default 451 #line hidden 452 453 #line 33 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 454 455 456 457 458 #line default 459 #line hidden 460 461 #line 40 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 462 463 464 465 #line default 466 #line hidden 467 WriteLiteral("\r\n"); 468 469 470 #line 42 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 471 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 472 473 #line default 474 #line hidden 475 WriteLiteral("\r\n"); 476 477 478 #line 123 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 479 480 string dealerGroups = generalSettings["DealerGroups"].ToString(); 481 string storesGroupID = !string.IsNullOrWhiteSpace(dealerGroups) ? "%" + dealerGroups + "%" : ""; 482 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 + "'"; 483 string accessRegionsDataSql = "SELECT CountryTextName, CountryTextCode2, CountryTextRegionCode FROM EcomCountryText"; 484 string regionsString = "{"; 485 string country = ""; 486 string state = ""; 487 string countryLogged = !string.IsNullOrEmpty(HttpContext.Current.Request.Params["country"]) ? HttpContext.Current.Request.Params["country"] : country; 488 string stateLogged = !string.IsNullOrEmpty(HttpContext.Current.Request.Params["state"]) ? HttpContext.Current.Request.Params["state"] : state; 489 System.Data.DataRow[] dataSet = Dynamicweb.Data.Database.CreateDataSet(accessDataSql).Tables[0].Select(); 490 System.Data.DataRow[] dataRegionsSet = Dynamicweb.Data.Database.CreateDataSet(accessRegionsDataSql).Tables[0].Select(); 491 bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 492 System.Collections.Generic.List<String> countriesList = dataSet.Select(r => ((string)r["AccessUserCountry"].ToString()).Trim() ).Distinct().ToList(); 493 Dictionary<string, string> countriesNames = new Dictionary<string, string>(); 494 495 foreach(System.Data.DataRow r in dataRegionsSet.Where(x => string.IsNullOrWhiteSpace(x["CountryTextRegionCode"].ToString()))) 496 { 497 if(!countriesNames.ContainsKey(r["CountryTextCode2"].ToString())) { 498 countriesNames.Add(r["CountryTextCode2"].ToString(), r["CountryTextName"].ToString()); 499 } 500 } 501 502 if(countryLogged != country) 503 { 504 stateLogged = ""; 505 } 506 507 if (userIsLoggedIn) 508 { 509 var user = Pageview.User; 510 countryLogged = user.Country.ToString(); 511 stateLogged = user.State.ToString(); 512 } 513 514 foreach (string i in countriesList) 515 { 516 System.Collections.Generic.List<String> regions = dataSet.Where(r => (string)r["AccessUserCountry"] == i).Select(r => ((string)r["AccessUserState"]).Trim() ).Distinct().ToList(); 517 int countNum = 0; 518 string countryStrip = i; 519 520 if(regionsString != "{") { 521 regionsString += ","; 522 } 523 regionsString += "\""+countryStrip+"\":["; 524 foreach (string region in regions){ 525 var regionTextList = !string.IsNullOrEmpty(region) ? dataRegionsSet.First(r => r["CountryTextRegionCode"].ToString() == region.ToString()) : null; 526 string regionText = regionTextList != null ? regionTextList["CountryTextName"].ToString() : ""; 527 528 if(!string.IsNullOrWhiteSpace(regionText)) 529 { 530 if(countNum != 0) { 531 regionsString += ","; 532 } 533 regionsString += "\""+@regionText+"\""; 534 countNum++; 535 } 536 } 537 regionsString += "]"; 538 539 } 540 regionsString += "}"; 541 542 543 #line default 544 #line hidden 545 WriteLiteral("\r\n<div"); 546 547 WriteLiteral(" class=\"dynamicweb-map\""); 548 549 WriteLiteral(" id=\"Maps-85\""); 550 551 WriteLiteral(" data-list-position=\"hidden\""); 552 553 WriteLiteral(">\r\n <div"); 554 555 WriteLiteral(" class=\"col-xs-12\""); 556 557 WriteLiteral(" id=\"findStoreFilter\""); 558 559 WriteLiteral(">\r\n <fieldset"); 560 561 WriteLiteral(" class=\"col-sm-3 col-xs-12 noPaddingLeft\""); 562 563 WriteLiteral(">\r\n"); 564 565 WriteLiteral(" "); 566 567 568 #line 189 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 569 Write(CountrySelect(countriesList, countriesNames)); 570 571 572 #line default 573 #line hidden 574 WriteLiteral("\r\n </fieldset>\r\n <fieldset"); 575 576 WriteLiteral(" class=\"col-sm-3 col-xs-12 regions\""); 577 578 WriteLiteral(">\r\n"); 579 580 WriteLiteral(" "); 581 582 583 #line 192 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 584 Write(RegionSelect()); 585 586 587 #line default 588 #line hidden 589 WriteLiteral("\r\n </fieldset>\r\n</div>\r\n\r\n"); 590 591 592 #line 196 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 593 Write(SnippetStart("jsVariables")); 594 595 596 #line default 597 #line hidden 598 WriteLiteral("\r\n var obj_loginLocation = {\r\n str_country : \""); 599 600 601 #line 198 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 602 Write(countryLogged); 603 604 605 #line default 606 #line hidden 607 WriteLiteral("\",\r\n str_state : \""); 608 609 610 #line 199 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 611 Write(stateLogged); 612 613 614 #line default 615 #line hidden 616 WriteLiteral("\"\r\n }\r\n"); 617 618 619 #line 201 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 620 Write(SnippetEnd("jsVariables")); 621 622 623 #line default 624 #line hidden 625 WriteLiteral("\r\n"); 626 627 628 #line 202 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 629 Write(SnippetStart("jsOnLoad")); 630 631 632 #line default 633 #line hidden 634 WriteLiteral("\r\n onLoadStoreLocator(\'"); 635 636 637 #line 203 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 638 Write(regionsString); 639 640 641 #line default 642 #line hidden 643 WriteLiteral("\');\r\n"); 644 645 646 #line 204 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 647 Write(SnippetEnd("jsOnLoad")); 648 649 650 #line default 651 #line hidden 652 WriteLiteral("\r\n <div"); 653 654 WriteLiteral(" class=\"locations-filter hide\""); 655 656 WriteLiteral(">\r\n <button"); 657 658 WriteLiteral(" data-filter-value=\"test\""); 659 660 WriteLiteral("></button>\r\n </div>\r\n <div"); 661 662 WriteLiteral(" id=\"loading\""); 663 664 WriteLiteral(" class=\"col-xs-12\""); 665 666 WriteLiteral(">&nbsp;</div>\r\n<div"); 667 668 WriteLiteral(" class=\"map col-sm-8 col-xs-12 noPaddingLeft\""); 669 670 WriteLiteral(">\r\n <div"); 671 672 WriteLiteral(" id=\"Maps-85-map\""); 673 674 WriteLiteral("></div>\r\n</div>\r\n<div"); 675 676 WriteLiteral(" class=\"list col-sm-4 col-xs-12\""); 677 678 WriteLiteral(">\r\n <div"); 679 680 WriteLiteral(" class=\"no-matches\""); 681 682 WriteLiteral(">"); 683 684 685 #line 213 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 686 Write(Translate("NoLocationsFound","No locations found")); 687 688 689 #line default 690 #line hidden 691 WriteLiteral("</div>\r\n <ol"); 692 693 WriteLiteral(" class=\"storeList\""); 694 695 WriteLiteral(" id=\"Maps-85-list\""); 696 697 WriteLiteral(" data-sort-order=\"desc\""); 698 699 WriteLiteral(">\r\n"); 700 701 702 #line 215 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 703 704 705 #line default 706 #line hidden 707 708 #line 215 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 709 foreach (System.Data.DataRow store in dataSet) 710 { 711 var regionTextList = dataRegionsSet.First(r => r["CountryTextRegionCode"].ToString() == store["AccessUserState"].ToString()); 712 string regionTextString = regionTextList != null ? regionTextList["CountryTextName"].ToString() : ""; 713 714 715 716 #line default 717 #line hidden 718 WriteLiteral(" <li"); 719 720 WriteLiteral(" data-lat=\""); 721 722 723 #line 220 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 724 Write(store["AccessUserGeoLocationLat"]); 725 726 727 #line default 728 #line hidden 729 WriteLiteral("\""); 730 731 WriteLiteral(" data-lng=\""); 732 733 734 #line 220 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 735 Write(store["AccessUserGeoLocationLng"]); 736 737 738 #line default 739 #line hidden 740 WriteLiteral("\""); 741 742 WriteLiteral(" data-title=\""); 743 744 745 #line 220 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 746 Write(store["AccessUserName"]); 747 748 749 #line default 750 #line hidden 751 WriteLiteral("\""); 752 753 WriteLiteral("\r\n data-filter-values=\"\""); 754 755 WriteLiteral(" data-country=\""); 756 757 758 #line 221 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 759 Write(store["AccessUserCountry"]); 760 761 762 #line default 763 #line hidden 764 WriteLiteral("\""); 765 766 WriteLiteral(" data-citycode=\""); 767 768 769 #line 221 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 770 Write(store["AccessUserState"]); 771 772 773 #line default 774 #line hidden 775 WriteLiteral("\""); 776 777 WriteLiteral(" data-city=\""); 778 779 780 #line 221 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 781 Write(regionTextString); 782 783 784 #line default 785 #line hidden 786 WriteLiteral("\""); 787 788 WriteLiteral(" data-sort-value=\""); 789 790 791 #line 221 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 792 Write(store["AccessUserName"]); 793 794 795 #line default 796 #line hidden 797 WriteLiteral("\""); 798 799 WriteLiteral(">\r\n <div>\r\n\r\n <b>"); 800 801 802 #line 224 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 803 Write(store["AccessUserName"]); 804 805 806 #line default 807 #line hidden 808 WriteLiteral("</b><br/>\r\n\r\n"); 809 810 WriteLiteral(" "); 811 812 813 #line 226 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 814 Write(store["AccessUserAddress"]); 815 816 817 #line default 818 #line hidden 819 WriteLiteral("<br/>\r\n"); 820 821 WriteLiteral(" "); 822 823 824 #line 227 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 825 Write(store["AccessUserCity"]); 826 827 828 #line default 829 #line hidden 830 WriteLiteral("\r\n"); 831 832 833 #line 228 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 834 835 836 #line default 837 #line hidden 838 839 #line 228 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 840 if(!string.IsNullOrEmpty(store["AccessUserState"].ToString())) { 841 842 843 #line default 844 #line hidden 845 WriteLiteral(" "); 846 847 WriteLiteral(", "); 848 849 850 #line 229 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 851 Write(Dynamicweb.Ecommerce.International.CountryText.GetRegionTexts(store["AccessUserCountry"].ToString()).First(c => c.RegionCode == store["AccessUserState"].ToString()).Name); 852 853 854 #line default 855 #line hidden 856 WriteLiteral("\r\n"); 857 858 859 #line 230 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 860 } 861 862 863 #line default 864 #line hidden 865 WriteLiteral(" "); 866 867 868 #line 231 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 869 Write(store["AccessUserZip"]); 870 871 872 #line default 873 #line hidden 874 WriteLiteral("\r\n </div>\r\n </li>\r\n"); 875 876 877 #line 234 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 878 } 879 880 881 #line default 882 #line hidden 883 WriteLiteral(" </ol>\r\n\r\n</div>\r\n"); 884 885 886 #line 238 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 887 Write(SnippetStart("externalScripts")); 888 889 890 #line default 891 #line hidden 892 WriteLiteral("\r\n<script"); 893 894 WriteLiteral(" type=\"text/javascript\""); 895 896 WriteLiteral(" src=\"//maps.googleapis.com/maps/api/js?v=3&amp;sensor=false\""); 897 898 WriteLiteral("></script>\r\n<script"); 899 900 WriteLiteral(" type=\"text/javascript\""); 901 902 WriteLiteral(" src=\"/Files/Templates/Designs/RizzoDesignFolder/Maps/javascripts/Maps.js\""); 903 904 WriteLiteral("></script>\r\n"); 905 906 907 #line 241 "C:\Domains\Sites\pacificbag.com\Files\Templates\Designs\PacificBag\TemplateRenderer\StoreLocator.cshtml" 908 Write(SnippetEnd("externalScripts")); 909 910 911 #line default 912 #line hidden 913 WriteLiteral("\r\n\r\n\r\n</div>"); 914 915 } 916 } 917 } 918

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