FIND AN AUTHORIZED IBANEZ DEALER

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ut porta odio, ut sodales nisi. Vivamus tincidunt ante ac nulla cursus, non facilisis neque laoreet.

Error compiling template "Designs/hoshinoB2C/TemplateRenderer/StoreLocator.cshtml"
Line 469: The type or namespace name 'Extranet' does not exist in the namespace 'Dynamicweb.Frontend' (are you missing an assembly reference?)
Line 682: 'Country.Name' is obsolete: 'Use GetName'

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 81 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 22 using Dynamicweb.Ecommerce.International; 23 24 #line default 25 #line hidden 26 27 #line 80 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 28 using Dynamicweb.Rendering; 29 30 #line default 31 #line hidden 32 33 #line 4 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 34 using Dynamicweb.Content; 35 36 #line default 37 #line hidden 38 39 #line 82 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 40 using System.Web; 41 42 #line default 43 #line hidden 44 45 #line 83 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 46 using System.Collections.Specialized; 47 48 #line default 49 #line hidden 50 51 52 public class RazorEngine_4378253cf1cc40e9a066119229a3883e : RazorTemplateBase<RazorTemplateModel<Template>> { 53 54 #line hidden 55 56 #line 9 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 9 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 10 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 76 WriteTo(__razor_helper_writer, Translate("selectYourCountry", "Choose a State:")); 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 12 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 13 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 14 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 117 118 119 #line default 120 #line hidden 121 122 #line 14 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 19 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 134 WriteTo(__razor_helper_writer, SnippetStart("USA")); 135 136 137 #line default 138 #line hidden 139 140 #line 19 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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=\"", 1220), Tuple.Create("\"", 1240) 149 150 #line 20 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 151 , Tuple.Create(Tuple.Create("", 1228), Tuple.Create<System.Object, System.Int32>(countryCode 152 153 #line default 154 #line hidden 155 , 1228), false) 156 ); 157 158 WriteLiteralTo(__razor_helper_writer, ">"); 159 160 161 #line 20 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 21 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 171 172 173 #line default 174 #line hidden 175 176 #line 21 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 177 WriteTo(__razor_helper_writer, SnippetEnd("USA")); 178 179 180 #line default 181 #line hidden 182 183 #line 21 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 184 185 } 186 else if (countryCode == "CA") 187 { 188 189 190 #line default 191 #line hidden 192 193 #line 25 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 194 WriteTo(__razor_helper_writer, SnippetStart("CAN")); 195 196 197 #line default 198 #line hidden 199 200 #line 25 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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=\"", 1394), Tuple.Create("\"", 1414) 209 210 #line 26 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 211 , Tuple.Create(Tuple.Create("", 1402), Tuple.Create<System.Object, System.Int32>(countryCode 212 213 #line default 214 #line hidden 215 , 1402), false) 216 ); 217 218 WriteLiteralTo(__razor_helper_writer, ">"); 219 220 221 #line 26 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 27 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 231 232 233 #line default 234 #line hidden 235 236 #line 27 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 237 WriteTo(__razor_helper_writer, SnippetEnd("CAN")); 238 239 240 #line default 241 #line hidden 242 243 #line 27 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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=\"", 1490), Tuple.Create("\"", 1510) 253 254 #line 29 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 255 , Tuple.Create(Tuple.Create("", 1498), Tuple.Create<System.Object, System.Int32>(countryCode 256 257 #line default 258 #line hidden 259 , 1498), false) 260 ); 261 262 WriteLiteralTo(__razor_helper_writer, ">"); 263 264 265 #line 29 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 30 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 32 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 283 284 285 #line default 286 #line hidden 287 }); 288 289 #line 32 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 290 } 291 #line default 292 #line hidden 293 294 295 #line 34 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 34 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\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 35 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 315 WriteTo(__razor_helper_writer, Translate("selectYourRegion","Choose a 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, " name=\"locality\""); 325 326 WriteLiteralTo(__razor_helper_writer, ">\r\n <option"); 327 328 WriteLiteralTo(__razor_helper_writer, " value=\"\""); 329 330 WriteLiteralTo(__razor_helper_writer, ">"); 331 332 333 #line 37 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 334 WriteTo(__razor_helper_writer, Translate("all","All")); 335 336 337 #line default 338 #line hidden 339 WriteLiteralTo(__razor_helper_writer, "</option>\r\n </select>\r\n"); 340 341 342 #line 39 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 343 344 345 #line default 346 #line hidden 347 }); 348 349 #line 39 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 350 } 351 #line default 352 #line hidden 353 354 355 #line 41 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 356 357 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 = "hoshinoB2C") 358 { 359 Dynamicweb.Frontend.PageView currentPageview = Dynamicweb.Frontend.PageView.Current(); 360 string currDevice = currentPageview.Device.ToString(), 361 alternativeImage = !string.IsNullOrEmpty(currentPageview.Area.Item["NoImage"].ToString()) ? currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/"+ designName + "/images/alternative"+ currentPageview.Area.Item["Theme"] +"Image.png", 362 widthString = "", 363 heightString = "", 364 getImageFormat = imageFormat != "jpg" ? "&amp;Format=" + imageFormat : "", 365 getImageCompression = imageCompression != 0 ? "&amp;Compression=" + imageCompression : "", 366 bgColor = !string.IsNullOrEmpty(background) ? "&amp;backgroud="+background : ""; 367 int getImageWidth = imageWidth != 0 ? imageWidth : 0, 368 getImageHeight = imageHeight != 0 ? imageHeight : 0; 369 370 if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 371 { 372 getImageWidth = imageWidthTablet != 0 ? imageWidthTablet : getImageWidth; 373 getImageHeight = imageHeightTablet != 0 ? imageHeightTablet : getImageHeight; 374 } 375 else if (currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 376 { 377 getImageWidth = imageWidthMobile != 0 ? imageWidthMobile : getImageWidth; 378 getImageHeight = imageHeightMobile != 0 ? imageHeightMobile : getImageHeight; 379 } 380 381 if (getImageWidth != 0) 382 { 383 widthString = "&amp;Width=" + getImageWidth; 384 } 385 if (getImageHeight != 0) 386 { 387 heightString = "&amp;Height=" + getImageHeight; 388 } 389 390 string output = "/Admin/Public/GetImage.ashx?Image=" + sourceString + widthString + heightString + "&amp;altFmImage_path=" + alternativeImage + getImageFormat + getImageCompression + "&amp;Crop=" + imageCrop + bgColor; 391 return output; 392 } 393 394 #line default 395 #line hidden 396 397 398 public RazorEngine_4378253cf1cc40e9a066119229a3883e() { 399 } 400 401 public override void Execute() { 402 403 #line 5 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 404 405 Dynamicweb.Content.Items.Item itemArea = Pageview.Area.Item; 406 int generalSettingsPage = Int32.Parse(itemArea["GeneralSettings"].ToString()); 407 Dynamicweb.Content.Items.Item generalSettings = Dynamicweb.Content.Items.Item.GetItemById(Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(generalSettingsPage).ItemType, Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(generalSettingsPage).ItemId); 408 409 410 #line default 411 #line hidden 412 413 #line 32 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 414 415 416 417 418 #line default 419 #line hidden 420 421 #line 39 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 422 423 424 425 #line default 426 #line hidden 427 WriteLiteral("\r\n"); 428 429 430 #line 41 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 431 string designName = GetString("Template:DesignBaseUrl").Replace("/Files/Templates/Designs/", "").Replace("/", ""); 432 433 #line default 434 #line hidden 435 WriteLiteral("\r\n"); 436 437 438 #line 85 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 439 440 string dealerGroups = generalSettings["DealerGroups"].ToString(), 441 storesGroupID = !string.IsNullOrWhiteSpace(dealerGroups) ? "%" + dealerGroups + "%" : "", 442 accessDataSql = "SELECT AccessUserState,AccessUserEmail, AccessUserCompany, 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 + "'", 443 accessRegionsDataSql = "SELECT CountryTextName, CountryTextCode2, CountryTextRegionCode FROM EcomCountryText", 444 regionsString = "{", 445 country = "", 446 state = "", 447 countryLogged = !string.IsNullOrEmpty(HttpContext.Current.Request.Params["country"]) ? HttpContext.Current.Request.Params["country"] : country, 448 stateLogged = !string.IsNullOrEmpty(HttpContext.Current.Request.Params["state"]) ? HttpContext.Current.Request.Params["state"] : state; 449 System.Data.DataRow[] dataSet = Dynamicweb.Data.Database.CreateDataSet(accessDataSql).Tables[0].Select(), 450 dataRegionsSet = Dynamicweb.Data.Database.CreateDataSet(accessRegionsDataSql).Tables[0].Select(); 451 bool userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 452 System.Collections.Generic.List<String> countriesList = dataSet.Select(r => ((string)r["AccessUserCountry"].ToString()).Trim() ).Distinct().ToList(); 453 Dictionary<string, string> countriesNames = new Dictionary<string, string>(); 454 455 foreach(System.Data.DataRow r in dataRegionsSet.Where(x => string.IsNullOrWhiteSpace(x["CountryTextRegionCode"].ToString()))) 456 { 457 if(!countriesNames.ContainsKey(r["CountryTextCode2"].ToString())) { 458 countriesNames.Add(r["CountryTextCode2"].ToString(), r["CountryTextName"].ToString()); 459 } 460 } 461 462 if(countryLogged != country) 463 { 464 stateLogged = ""; 465 } 466 467 if (userIsLoggedIn) 468 { 469 Dynamicweb.Frontend.Extranet user = Pageview.User; 470 countryLogged = user.Country.ToString(); 471 stateLogged = user.State.ToString(); 472 } 473 474 foreach (string i in countriesList) 475 { 476 System.Collections.Generic.List<String> regions = dataSet.Where(r => (string)r["AccessUserCountry"] == i).Select(r => ((string)r["AccessUserState"]).Trim() ).Distinct().ToList(); 477 int countNum = 0; 478 string countryStrip = i; 479 480 if(regionsString != "{") { 481 regionsString += ","; 482 } 483 regionsString += "\""+countryStrip+"\":["; 484 foreach (string region in regions){ 485 var regionTextList = !string.IsNullOrEmpty(region) ? dataRegionsSet.First(r => r["CountryTextRegionCode"].ToString() == region.ToString()) : null; 486 string regionText = regionTextList != null ? regionTextList["CountryTextName"].ToString() : ""; 487 488 if(!string.IsNullOrWhiteSpace(regionText)) 489 { 490 if(countNum != 0) { 491 regionsString += ","; 492 } 493 regionsString += "\""+@regionText+"\""; 494 countNum++; 495 } 496 } 497 regionsString += "]"; 498 499 } 500 regionsString += "}"; 501 502 503 #line default 504 #line hidden 505 WriteLiteral("\r\n<div"); 506 507 WriteLiteral(" class=\"list col-sm-4 col-xs-12 pull-right\""); 508 509 WriteLiteral(">\r\n <h3>"); 510 511 512 #line 149 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 513 Write(Translate("storesContacts","Contacts")); 514 515 516 #line default 517 #line hidden 518 WriteLiteral("</h3>\r\n <ol"); 519 520 WriteLiteral(" class=\"storeList\""); 521 522 WriteLiteral(" id=\"Maps-85-list\""); 523 524 WriteLiteral(" data-sort-order=\"desc\""); 525 526 WriteLiteral(">\r\n\r\n"); 527 528 529 #line 152 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 530 531 532 #line default 533 #line hidden 534 535 #line 152 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 536 foreach (System.Data.DataRow store in dataSet) 537 { 538 var regionTextList = dataRegionsSet.First(r => r["CountryTextRegionCode"].ToString() == store["AccessUserState"].ToString()); 539 string regionTextString = regionTextList != null ? regionTextList["CountryTextName"].ToString() : ""; 540 541 string storeEmail = store["AccessUserEmail"].ToString(); 542 string storeWebsite = store["AccessUserCompany"].ToString(); 543 544 545 546 #line default 547 #line hidden 548 WriteLiteral(" <li"); 549 550 WriteLiteral(" data-lat=\""); 551 552 553 #line 160 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 554 Write(store["AccessUserGeoLocationLat"]); 555 556 557 #line default 558 #line hidden 559 WriteLiteral("\""); 560 561 WriteLiteral(" data-lng=\""); 562 563 564 #line 160 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 565 Write(store["AccessUserGeoLocationLng"]); 566 567 568 #line default 569 #line hidden 570 WriteLiteral("\""); 571 572 WriteLiteral(" data-title=\""); 573 574 575 #line 160 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 576 Write(store["AccessUserName"]); 577 578 579 #line default 580 #line hidden 581 WriteLiteral("\""); 582 583 WriteLiteral("\r\n data-filter-values=\"\""); 584 585 WriteLiteral(" data-country=\""); 586 587 588 #line 161 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 589 Write(store["AccessUserCountry"]); 590 591 592 #line default 593 #line hidden 594 WriteLiteral("\""); 595 596 WriteLiteral(" data-citycode=\""); 597 598 599 #line 161 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 600 Write(store["AccessUserState"]); 601 602 603 #line default 604 #line hidden 605 WriteLiteral("\""); 606 607 WriteLiteral(" data-city=\""); 608 609 610 #line 161 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 611 Write(regionTextString); 612 613 614 #line default 615 #line hidden 616 WriteLiteral("\""); 617 618 WriteLiteral(" data-sort-value=\""); 619 620 621 #line 161 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 622 Write(store["AccessUserName"]); 623 624 625 #line default 626 #line hidden 627 WriteLiteral("\""); 628 629 WriteLiteral(">\r\n <div>\r\n\r\n <b>"); 630 631 632 #line 164 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 633 Write(store["AccessUserName"]); 634 635 636 #line default 637 #line hidden 638 WriteLiteral("</b><br/>\r\n"); 639 640 WriteLiteral(" "); 641 642 643 #line 165 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 644 Write(store["AccessUserAddress"]); 645 646 647 #line default 648 #line hidden 649 WriteLiteral("<br/>\r\n"); 650 651 WriteLiteral(" "); 652 653 654 #line 166 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 655 Write(store["AccessUserCity"]); 656 657 658 #line default 659 #line hidden 660 WriteLiteral("\r\n"); 661 662 663 #line 167 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 664 665 666 #line default 667 #line hidden 668 669 #line 167 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 670 if (!string.IsNullOrEmpty(store["AccessUserState"].ToString())) 671 { 672 673 674 #line default 675 #line hidden 676 WriteLiteral(" "); 677 678 WriteLiteral(", "); 679 680 681 #line 169 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 682 Write(Dynamicweb.Ecommerce.Services.Countries.GetCountry(store["AccessUserCountry"].ToString()).Regions.First(c => c.RegionCode == store["AccessUserState"].ToString()).Name); 683 684 685 #line default 686 #line hidden 687 WriteLiteral("\r\n"); 688 689 690 #line 170 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 691 } 692 693 694 #line default 695 #line hidden 696 WriteLiteral(" "); 697 698 699 #line 171 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 700 Write(store["AccessUserZip"]); 701 702 703 #line default 704 #line hidden 705 WriteLiteral("\r\n <br/>\r\n\r\n"); 706 707 708 #line 174 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 709 710 711 #line default 712 #line hidden 713 714 #line 174 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 715 if (!string.IsNullOrWhiteSpace(storeWebsite)) 716 { 717 718 719 #line default 720 #line hidden 721 WriteLiteral(" <a"); 722 723 WriteAttribute("href", Tuple.Create(" href=\'", 9300), Tuple.Create("\'", 9320) 724 725 #line 176 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 726 , Tuple.Create(Tuple.Create("", 9307), Tuple.Create<System.Object, System.Int32>(storeWebsite 727 728 #line default 729 #line hidden 730 , 9307), false) 731 ); 732 733 WriteLiteral(" target=\"_blank\""); 734 735 WriteLiteral(">\r\n"); 736 737 WriteLiteral(" "); 738 739 740 #line 177 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 741 Write(storeWebsite); 742 743 744 #line default 745 #line hidden 746 WriteLiteral("\r\n </a>\r\n"); 747 748 749 #line 179 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 750 } 751 752 753 #line default 754 #line hidden 755 WriteLiteral("\r\n"); 756 757 758 #line 181 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 759 760 761 #line default 762 #line hidden 763 764 #line 181 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 765 if (!string.IsNullOrWhiteSpace(storeEmail)) 766 { 767 768 769 #line default 770 #line hidden 771 WriteLiteral(" <br/>\r\n"); 772 773 WriteLiteral(" <a"); 774 775 WriteAttribute("href", Tuple.Create(" href=\'", 9504), Tuple.Create("\'", 9529) 776 , Tuple.Create(Tuple.Create("", 9511), Tuple.Create("mailto:", 9511), true) 777 778 #line 184 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 779 , Tuple.Create(Tuple.Create("", 9518), Tuple.Create<System.Object, System.Int32>(storeEmail 780 781 #line default 782 #line hidden 783 , 9518), false) 784 ); 785 786 WriteLiteral(">\r\n"); 787 788 WriteLiteral(" "); 789 790 791 #line 185 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 792 Write(storeEmail); 793 794 795 #line default 796 #line hidden 797 WriteLiteral("\r\n </a>\r\n"); 798 799 800 #line 187 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 801 } 802 803 804 #line default 805 #line hidden 806 WriteLiteral("\r\n </div>\r\n </li>\r\n"); 807 808 809 #line 191 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 810 } 811 812 813 #line default 814 #line hidden 815 WriteLiteral(" </ol>\r\n\r\n</div>\r\n\r\n<div"); 816 817 WriteLiteral(" class=\"dynamicweb-map col-xs-12\""); 818 819 WriteLiteral(" id=\"Maps-85\""); 820 821 WriteLiteral(" data-list-position=\"hidden\""); 822 823 WriteLiteral(">\r\n <div"); 824 825 WriteLiteral(" class=\"noPadding col-xs-12\""); 826 827 WriteLiteral(" id=\"findStoreFilter\""); 828 829 WriteLiteral(">\r\n <fieldset"); 830 831 WriteLiteral(" class=\"col-sm-6 col-xs-12 noPaddingLeft\""); 832 833 WriteLiteral(">\r\n"); 834 835 WriteLiteral(" "); 836 837 838 #line 199 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 839 Write(CountrySelect(countriesList, countriesNames)); 840 841 842 #line default 843 #line hidden 844 WriteLiteral("\r\n </fieldset>\r\n <fieldset"); 845 846 WriteLiteral(" class=\"col-sm-6 col-xs-12 noPaddingRight\""); 847 848 WriteLiteral(">\r\n"); 849 850 WriteLiteral(" "); 851 852 853 #line 202 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 854 Write(RegionSelect()); 855 856 857 #line default 858 #line hidden 859 WriteLiteral("\r\n </fieldset>\r\n </div>\r\n\r\n <div"); 860 861 WriteLiteral(" class=\"locations-filter hide\""); 862 863 WriteLiteral(">\r\n <button"); 864 865 WriteLiteral(" data-filter-value=\"test\""); 866 867 WriteLiteral("></button>\r\n </div>\r\n\r\n <div"); 868 869 WriteLiteral(" class=\"no-matches\""); 870 871 WriteLiteral(">"); 872 873 874 #line 210 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 875 Write(Translate("NoLocationsFound","No locations found")); 876 877 878 #line default 879 #line hidden 880 WriteLiteral("</div>\r\n\r\n <div"); 881 882 WriteLiteral(" id=\"loading\""); 883 884 WriteLiteral(" class=\"col-xs-12\""); 885 886 WriteLiteral(">&nbsp;</div>\r\n <div"); 887 888 WriteLiteral(" class=\"map col-xs-12 noPadding\""); 889 890 WriteLiteral(">\r\n <div"); 891 892 WriteLiteral(" id=\"Maps-85-map\""); 893 894 WriteLiteral("></div>\r\n </div>\r\n</div>\r\n\r\n"); 895 896 897 #line 218 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 898 Write(SnippetStart("jsVariables")); 899 900 901 #line default 902 #line hidden 903 WriteLiteral("\r\n var obj_loginLocation = {\r\n str_country : \""); 904 905 906 #line 220 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 907 Write(countryLogged); 908 909 910 #line default 911 #line hidden 912 WriteLiteral("\",\r\n str_state : \""); 913 914 915 #line 221 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 916 Write(stateLogged); 917 918 919 #line default 920 #line hidden 921 WriteLiteral("\"\r\n }\r\n"); 922 923 924 #line 223 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 925 Write(SnippetEnd("jsVariables")); 926 927 928 #line default 929 #line hidden 930 WriteLiteral("\r\n"); 931 932 933 #line 224 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 934 Write(SnippetStart("jsOnLoad")); 935 936 937 #line default 938 #line hidden 939 WriteLiteral("\r\n onLoadStoreLocator(\'"); 940 941 942 #line 225 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 943 Write(regionsString); 944 945 946 #line default 947 #line hidden 948 WriteLiteral("\');\r\n"); 949 950 951 #line 226 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 952 Write(SnippetEnd("jsOnLoad")); 953 954 955 #line default 956 #line hidden 957 WriteLiteral("\r\n\r\n"); 958 959 WriteLiteral("\r\n"); 960 961 962 #line 229 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 963 Write(SnippetStart("outScripts")); 964 965 966 #line default 967 #line hidden 968 WriteLiteral("\r\n <script"); 969 970 WriteLiteral(" type=\"text/javascript\""); 971 972 WriteLiteral(" src=\"//maps.googleapis.com/maps/api/js?v=3&amp;sensor=false&amp;key=\""); 973 974 WriteLiteral("></script>\r\n <script"); 975 976 WriteLiteral(" type=\"text/javascript\""); 977 978 WriteLiteral(" src=\"/Files/Templates/Designs/hoshinoB2C/Maps/javascripts/Maps.js\""); 979 980 WriteLiteral("></script>\r\n"); 981 982 983 #line 232 "f:\Domains\Sites\shop.ibanez.com\Files\Templates\Designs\hoshinoB2C\TemplateRenderer\StoreLocator.cshtml" 984 Write(SnippetEnd("outScripts")); 985 986 987 #line default 988 #line hidden 989 } 990 } 991 } 992

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