Beschrijving
Pazzey's Store Locator
Beschrijving
This is a Store Locator plugin for WordPress that incorporates Google Maps.
What it can do:
- Adds a custom post type called Stores for input of store locations
- Automatically retrieves Google Maps coordinates of location
- Bulk import stores from CSV files
- Lets you add a store locator in any page/post using a shortcode
- Search by entering city and state/province, zip/postal code or part of an address
- Shows results on right ordered by distance
- REST API support for headless WordPress setups
- Modern, responsive design
- Secure AJAX-based searches with nonce verification
Installatie
- Download and unzip the file
- Upload the pazzeys-store-locator folder to your WordPress plugins folder
- Log in to WordPress and go to Plugins
- Click on the Activate link for Pazzey’s Store Locator
- Go to Stores > Settings and enter your Google Maps API key
- Start adding store locations!
Google Maps API Key
This plugin requires a Google Maps API key to function. You can obtain one from the Google Cloud Console.
You need to enable the following APIs:
* Maps JavaScript API
* Geocoding API
You can configure the API key in two ways:
1. Through the Settings page (Stores > Settings)
2. By adding this to your wp-config.php: define( 'PAZZEY_GOOGLE_MAPS_API_KEY', 'your-api-key-here' );
FAQ
How do I embed the Store Locator?
Use the new post type ‘Stores’ to enter the information about your store locations. Once all Store Locations are entered, type in [storelocator] in your Post or Page to embed it.
Can I customize the size?
Yes, you can specify width and height: [storelocator width=”800″ height=”600″]
What do I enter for the Google Coordinates?
No need to worry about that! Just save the new Store location and it will automatically populate using the Google Geocoding API.
What if coordinates don’t populate?
- Check that you have entered a valid Google Maps API key in Settings
- Check the address you entered – it may have a misspelled street name
- Ensure the State/Province, City and Country have been entered
- If your address has a Suite or Apt number at the beginning, try typing it after the street address instead
Can I style the Store Locator?
Yes, you can override the styles in your theme’s CSS. The main container has the class
.pazzey-store-locator.How do I bulk import stores?
Go to Stores > Bulk Import in your WordPress admin. You can upload a CSV file with your store data. The CSV should include columns for: title, description, address, city, state, country, postal, lat, lng.
You can either provide lat/lng coordinates, or provide address and city and the plugin will automatically geocode them using the Google Maps API.
Download the sample CSV from the import page to see the expected format.
Beoordelingen
Bijdragers & ontwikkelaars
“Pazzey's Store Locator” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Pazzey's Store Locator” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
2.1.0
- Added bulk import feature for CSV files (Stores > Bulk Import)
- Smart geocoding: uses provided coordinates or auto-geocodes from address
- CSV validation with preview before import
- Duplicate detection to prevent re-importing existing stores
- Downloadable error report for failed imports
- Sample CSV template download
2.0.0
- Complete rewrite for WordPress 6.x compatibility
- Added Settings page for Google Maps API key configuration
- Replaced iframe architecture with direct DOM embedding
- Converted XML responses to JSON via wp_ajax
- Added proper input sanitization and output escaping
- Added nonce verification for all AJAX requests
- Replaced deprecated functions (get_page, extract)
- Added REST API support (show_in_rest)
- Proper script/style enqueueing
- Responsive design
- Internationalization ready
- Added uninstall handler
- Fixed all PHP notices and warnings
- HTTPS for all Google API requests
- Uses wp_remote_get instead of cURL
1.2
- Fixed issue with HTML tags showing in the link for Google Maps
- Changed bloginfo(url) to bloginfo(wpurl) for non-root WP installations
1.1
- Fixed shortcode URL bug
1.0
- Initial release







