Download the PHP package burnbright/silverstripe-shop-geocoding without Composer
On this page you can find all versions of the php package burnbright/silverstripe-shop-geocoding. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download burnbright/silverstripe-shop-geocoding
More information about burnbright/silverstripe-shop-geocoding
Files in burnbright/silverstripe-shop-geocoding
Package silverstripe-shop-geocoding
Short Description Geocoding support for SilverShop.
License BSD-3-Clause
Informations about the package silverstripe-shop-geocoding
SilverShop Geocoding
Adds geocoding support to SilverShop. Work out address coordinates, based on entered address.
Makes use of the geocoder-php/Geocoder library.
Installation
Configuration
A default configuration is provided, but you can define your own.
In _config.php:
To test ips locally, you can configure a 'test ip' in your config:
Add relocateuser=1
to a url to rerun the geocoder.
Disable address coordinates geocoding
By default an address's latitude and longitude is automatically retrieved on save if it has not already been worked out. This behavior can be disabled like this:
Disable automatic visitor ip geocoding
By default this module geocodes the ip of every visitor. This behaviour can be disabled like this:
Warning
Relying on 3rd-party geocoding services can potentially slow down your website, especially if the external service comes under heavy load. You may want to consider setting up your own geocoding server instance.
Map fall back
If an address can't be geocoded, then provide a fallback checkout step for designating the coordinates with a google map field.
Be sure to add the checkout step to yaml config. After billing address will probably work best:
All versions of silverstripe-shop-geocoding with dependencies
betterbrief/silverstripe-googlemapfield Version ^2
willdurand/geocoder Version ^4.0
geocoder-php/chain-provider Version ^4.1
geocoder-php/google-maps-provider Version ^4.4
geocoder-php/free-geoip-provider Version ^4.2
geocoder-php/host-ip-provider Version ^4.0
guzzlehttp/guzzle Version ^7.0
php-http/guzzle7-adapter Version ^1.0 || ^2