This plugin add geolocation features to Sylius
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
etc/build
src
tests
.gitignore
.travis.yml
LICENSE
README.md
behat.yml.dist
composer.json
composer.lock
easy-coding-standard.neon
logo_odiseo.png
phpspec.yml.dist
phpstan.neon
phpunit.xml.dist

README.md

Odiseo
Odiseo Sylius Geo Plugin

Description

This plugin add GeoLocation features to Sylius:

  • Autocomplete the country in the address form on the checkout page based on your ip
  • Provides cool twig helpers
  • More features coming...

Installation

  1. Run composer require odiseoteam/sylius-geo-plugin.

  2. Add the plugin to the AppKernel:

public function registerBundles(): array
{
    $bundles = [
        ...
        //This plugin use the geoip2 bundle
        new \GpsLab\Bundle\GeoIP2Bundle\GpsLabGeoIP2Bundle(),
        new \Odiseo\SyliusGeoPlugin\OdiseoSyliusGeoPlugin(),
    ];
}
  1. Configure the plugin:
app/config/config.yml
imports:
    - { resource: '@OdiseoSyliusGeoPlugin/Resources/config/app/config.yml' }
  1. Execute php bin/console geoip2:update.

Credits

This plugins is maintained by Odiseo, a team of senior developers. Contact us: team@odiseo.com.ar.