}
$(“#myStoreHours”).html(hours);
CommonFunctionsJS.markAsMyStore();
},
displayVisitorsStores:function() {
$(“#dhStoreList”).empty();
var within100count = 0;
for (var i=0; i’ +
‘
+ ‘
‘ + GoogleMapJS.hvtStoresInfo.location[GoogleMapJS.visitorStoreInfo[i]].name + ‘
‘
+ ‘
‘ + GoogleMapJS.hvtStoresInfo.location[GoogleMapJS.visitorStoreInfo[i]].address1
+ ‘, ‘ + GoogleMapJS.hvtStoresInfo.location[GoogleMapJS.visitorStoreInfo[i]].city
+ ‘, ‘ + GoogleMapJS.hvtStoresInfo.location[GoogleMapJS.visitorStoreInfo[i]].state
+ ‘ ‘ + GoogleMapJS.hvtStoresInfo.location[GoogleMapJS.visitorStoreInfo[i]].zip
+ ‘
‘
+ ‘
‘ + GoogleMapJS.hvtStoresInfo.location[GoogleMapJS.visitorStoreInfo[i]].phone + ‘
‘
+ ‘
approx ‘ + GoogleMapJS.hvtStoresInfo.location[GoogleMapJS.visitorStoreInfo[i]].distance + ‘ miles
‘
+ ‘
‘
+’‘
+”);
}
}
$(‘.designHelpQuestion, .fewDetails, #popupFooter .submitLocation’).hide();
$(‘#requestDesignHelp .storeList, #popupFooter .backStep, #popupFooter’).show();
if(within100count == 0) {
$(‘#storeListMessage’).html(“We’re sorry but Havertys does not serve your area.”);
}
else if(within100count > 0) {
$(‘.finishBtn’).show();
$(‘.ui-dialog-title’).text(‘Select a showroom’);
if(within100count == 1) {
$(‘#storeListMessage’).html(“We’ve found a showroom near you!”);
} else if(within100count > 1) {
$(‘#storeListMessage’).html(“Choose the location most convenient to you.”);
}
}
},
// opens a tab with directions to a Havertys store given a latitude and longitude
openInGoogleMaps:function( latitude, longitude ){
try {
// if we didn’t get latitude or longitude, that’s very bad
if ( !latitude || !longitude ){
throw(“The store data does not include latitude or longitude. Uh-oh.”);
}
// get Google Maps URL based on lat & long
var googleMapsURL = “https://www.google.com/maps/dir/?api=1&destination=”;
var googleMapsDirectionsURL = googleMapsURL+latitude+”,”+longitude;
var opened = false;
// reverse geocode to get place id (specific place marker for havertys store)
var latLong = new google.maps.LatLng(latitude, longitude);
var geocoder = new google.maps.Geocoder();
geocoder.geocode({‘location’: latLong}, function( results, status){
if ( status === google.maps.GeocoderStatus.OK ){
for ( var i=0; i

Havertys 2D Room Planner lets you create a floor plan with a bird’s-eye view.
- 1Choose an example plan from our gallery or create your own
- 2Start with your room’s shape and dimensions
- 3Click the product icons to drop them into your plan
- 4Arrange the pieces to create your perfect set-up
With our 2D Room Planner, you can choose just the right amount of furniture for your space, explore different styles and design furniture layouts.
When you’re done, you can save, email and print your plans.
Share them with a Havertys associate and they’ll help you create your perfect look.