Pazzey's Store Locator

Popis

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
  • 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

Snímky obrazovky

  • Store Locator custom post type input page.
  • Shortcode usage.
  • Embedded Store Locator.

Instalace

  1. Download and unzip the file
  2. Upload the pazzeys-store-locator folder to your WordPress plugins folder
  3. Log in to WordPress and go to Plugins
  4. Click on the Activate link for Pazzey’s Store Locator
  5. Go to Stores > Settings and enter your Google Maps API key
  6. 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' );

Nejčastější dotazy

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.

Recenze

8. 2. 2017
Very limited options, no way to set location or zoom for map. However, it is simple to use and may suit smaller projects. View our full review of Pazzey’s Store Locator and other Store Locator Plugins.
Přečtěte si všechny 4 recenze

Autoři

Pazzey's Store Locator je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.

Spolupracovníci

Přehled změn

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