2017 © Pedro Peláez
 

project ezplatform-sylius

eZ Platform distribution coupled with Sylius eCommerce

image

netgen/ezplatform-sylius

eZ Platform distribution coupled with Sylius eCommerce

  • Friday, February 2, 2018
  • by emodric
  • Repository
  • 10 Watchers
  • 25 Stars
  • 5 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 1 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

eZ Platform & Sylius eCommerce integration

This is a proof of concept integration of eZ Platform & Sylius eCommerce. eZ Platform being a really good CMS, and Sylius being a really good eCommerce solution, both running on Symfony full stack framework, and considering the fact that there is no quality solution that does both CMS and eCommerce right, it is only natural to try and connect the two., (*1)

Here both, eZ Platform and Sylius, run on same Symfony full stack instance. A bundle exists to assist the integration, by implementing custom user providers that make it possible to connect the users together., (*2)

Sylius users act as primary users, while eZ Platform users are secondary, you can use them (if they're connected to Sylius users) or not, it's up to you. However, you will at least need one Sylius admin user to be connected to one eZ Platform admin user in order to enable seamless login to both admin panels., (*3)

Limitations

Due to way Sylius users are implemented, it is currently not possible to be logged in with both Sylius admin and Sylius shop users. Use a second browser or incognito mode to login both ways. Hopefully, this will be solved by the time this integration reaches a stable release., (*4)

Installation instructions

Run the following instructions to install the integration. This will first install Sylius, then install eZ Platform, and finally connect the admin users from Sylius and eZ Platform together., (*5)

IMPORTANT

Always make sure your default locale is compatible with default locale from your eZ Platform database. app/config/config.yml file sets the default locale to en_GB due to eng-GB (which is converted internally to en_GB) being the default locale in eZ Platform clean data., (*6)

Due to how Sylius install process works and the fact that this integration requires additional database tables, you first need to create the database schema and then run Sylius install command. Due to this, when asked by Sylius install command, DO NOT drop and create the database and its schema (meaning, answer the first two questions NO)., (*7)

$ git clone https://github.com/netgen/ezplatform-sylius.git
$ cd ezplatform-sylius
$ composer install
$ php bin/console --env=prod doctrine:schema:create
$ php bin/console --env=prod sylius:install
$ php bin/console --env=prod ezplatform:install clean
$ php bin/console --env=prod assetic:dump
$ php bin/console --env=prod assets:install --relative --symlink
$ php bin/console --env=prod ezsylius:user:connect

To connect the users, when asked, select the admin Sylius user type, then enter the e-mail address of Sylius admin user (the one you specified while running sylius:install command), then enter the username of eZ Platform admin user (usually admin)., (*8)

Once all this is done, you will need to generate assets for Sylius frontend and backend interfaces. You need yarn installed for this. Once installed, to generate the assets, run the following from the project root:, (*9)

$ yarn install
$ yarn build

eZ Publish legacy administration

When installing and activating eZ Publish legacy administration interface, be sure to activate the EzSyliusBundle after EzPublishLegacyBundle., (*10)

To activate support for Sylius Product field type in legacy administration interface, activate ezsylius legacy extension in your INI files, regenerate legacy autoloads and clear legacy caches., (*11)

Access the eZ Platform admin interface

eZ Platform admin interface is available in standard /admin route. Use the Sylius admin username and password to login., (*12)

Access the Sylius shop and Sylius admin interface

If you didn't change any parameters while running composer install, Sylius shop will be available at /shop, while Sylius admin interface will be available at /sylius/admin/. If you don't like these paths, you can change them in app/config/sylius_parameters.yml., (*13)

The Versions

02/02 2018

dev-master

9999999-dev https://github.com/netgen/ezplatform-sylius

eZ Platform distribution coupled with Sylius eCommerce

  Sources   Download

GPL-2.0 GPL-2.0-only

The Requires

 

The Development Requires

03/01 2018

1.13.x-dev

1.13.9999999.9999999-dev https://github.com/netgen/ezplatform-sylius

eZ Platform distribution coupled with Sylius eCommerce

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

14/11 2017

1.12.x-dev

1.12.9999999.9999999-dev https://github.com/netgen/ezplatform-sylius

eZ Platform distribution coupled with Sylius eCommerce

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

13/11 2017

1.11.x-dev

1.11.9999999.9999999-dev https://github.com/netgen/ezplatform-sylius

eZ Platform distribution coupled with Sylius eCommerce

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

17/08 2017

1.10.x-dev

1.10.9999999.9999999-dev https://github.com/netgen/ezplatform-sylius

eZ Platform distribution coupled with Sylius eCommerce

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires