Search by Store
-
I applied this plugin into my website and I happy with the function that provided.
Right now I finding a way to filter out the result by Store when I type store name into the input.
function codeStore( infoWindow ) { var latLng, autoLoad = false, keepStartMarker = false, store_name = $( "#wpsl-search-input" ).val(); geocoder.geocode( { 'address': store_name}, function( response, status ) { if ( status == google.maps.GeocoderStatus.OK ) { latLng = response[0].geometry.location; /* Remove any previous markers and add a new one */ deleteOverlays( keepStartMarker ); addMarker( latLng, 0, '', true, infoWindow ); // This marker is the 'start location' marker. With a storeId of 0, no name and is draggable /* Try to find stores that match the radius, location criteria */ findStoreLocations( latLng, resetMap, autoLoad, infoWindow ); } else { geocodeErrors( status ); } }); }
Any solution on this ?
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Search by Store’ is closed to new replies.