Download the PHP package gally/sylius-plugin without Composer
On this page you can find all versions of the php package gally/sylius-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gally/sylius-plugin
More information about gally/sylius-plugin
Files in gally/sylius-plugin
Package sylius-plugin
Short Description Sylius connector for Gally
License OSL-3.0
Homepage https://elasticsuite.io
Informations about the package sylius-plugin
Gally Plugin for Sylius
Requirements
- Gally version: 1.3.x
- Sylius version: 1.12.x
Usage
-
Install the
gally/sylius-plugin
bundle- Run
composer require gally/sylius-plugin
-
Add the bundle in
config/bundles.php
. You must put it afterSyliusGridBundle
-
Import the Gally Sylius bundle configuration by adding the following lines to the imports section of
config/packages/_sylius.yaml
-
Import admin routes by creating a file
config/routes/gally_admin.yaml
-
Import shop routes by creating a file
config/routes/gally_shop.yaml
-
Implement the
Gally\SyliusPlugin\Model\GallyChannelInterface
andGally\SyliusPlugin\Model\GallyChannelTrait
in your Channel Entitysrc/App/Entity/Channel/Channel.php
. - Copy the templates from
vendor/gally/sylius-plugin/src/Resources/views/SyliusShopBundle/
totemplates/bundles/SyliusShopBundle/
. - Copy the bundle assets (Javascript & CSS files):
- Run
php bin/console assets:install
- Run
php bin/console sylius:install:assets
- Run
php bin/console sylius:theme:assets:install
- Run
- Run
php bin/console doctrine:migrations:diff
andphp bin/console doctrine:migrations:migrate
to update the database schema - Open Sylius Admin, head to Configuration > Gally and configure the Gally endpoint (URL, credentials)
- Run
-
Run this commands from your Sylius instance. This commands must be runned only once to synchronize the structure.
-
Run a full index from Sylius to Gally. This command can be run only once. Afterwards, the modified products are automatically synchronized.
- At this step, you should be able to see your product and source field in the Gally backend.
- They should also appear in your Sylius frontend when searching or browsing categories.
- And you're done !
- You can also run the command to clean data that are not present in sylius anymore:
noUiSlider
This bundle includes the noUiSlider distribution files. noUiSlider is "a lightweight, ARIA-accessible JavaScript range slider with multi-touch and keyboard support" which is used in this project for the price slider implementation.