odiseoteam/sylius-geo-plugin

Geo plugin for Sylius

Installs: 258

Dependents: 0

Suggesters: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:sylius-plugin


README

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.