Home
Softono
b

bitbagcommerce

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
2

Software by bitbagcommerce

SyliusCmsPlugin
Open Source

SyliusCmsPlugin

# [![](https://bitbag.io/wp-content/uploads/2021/01/CMS.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) # BitBag SyliusCMSPlugin **Deprecation note.** This repository supports Sylius 1.x versions only. The Sylius 2.x support is currently handled by Sylius team ([link to the repository](https://github.com/Sylius/CmsPlugin)). ---- [![](https://img.shields.io/packagist/l/bitbag/cms-plugin.svg) ](https://packagist.org/packages/bitbag/cms-plugin "License") [ ![](https://img.shields.io/packagist/v/bitbag/cms-plugin.svg) ](https://packagist.org/packages/bitbag/cms-plugin "Version") [ ![](https://img.shields.io/github/actions/workflow/status/BitBagCommerce/SyliusCmsPlugin/build.yml) ](https://github.com/BitBagCommerce/SyliusCmsPlugin/actions "Build status") [ ![](https://img.shields.io/scrutinizer/g/BitBagCommerce/SyliusCMSPlugin.svg) ](https://scrutinizer-ci.com/g/BitBagCommerce/SyliusCMSPlugin/ "Scrutinizer") [![](https://poser.pugx.org/bitbag/cms-plugin/downloads)](https://packagist.org/packages/bitbag/cms-plugin "Total Downloads") [![Slack](https://img.shields.io/badge/community%20chat-slack-FF1493.svg)](http://sylius-devs.slack.com) [![Support](https://img.shields.io/badge/support-contact%20author-blue])](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) <p> <img align="left" src="https://sylius.com/assets/badge-approved-by-sylius.png" width="85"> </p> We want to impact many unique eCommerce projects and build our brand recognition worldwide, so we are heavily involved in creating open-source solutions, especially for Sylius. We have already created over **35 extensions, which have been downloaded almost 2 million times.** You can find more information about our eCommerce services and technologies on our website: https://bitbag.io/. We have also created a unique service dedicated to creating plugins: https://bitbag.io/services/sylius-plugin-development. Do you like our work? Would you like to join us? Check out the **“Career” tab:** https://bitbag.io/pl/kariera. # About Us --- BitBag is a software house that implements tailor-made eCommerce platforms with the entire infrastructure—from creating eCommerce platforms to implementing PIM and CMS systems to developing custom eCommerce applications, specialist B2B solutions, and migrations from other platforms. We actively participate in Sylius's development. We have already completed **over 150 projects**, cooperating with clients worldwide, including smaller enterprises and large international companies. We have completed projects for such important brands as **Mytheresa, Foodspring, Planeta Huerto (Carrefour Group), Albeco, Mollie, and ArtNight.** We have a 70-person team of experts: business analysts and consultants, eCommerce developers, project managers, and QA testers. **Our services:** * B2B and B2C eCommerce platform implementations * Multi-vendor marketplace platform implementations * eCommerce migrations * Sylius plugin development * Sylius consulting * Project maintenance and long-term support * PIM and CMS implementations **Some numbers from BitBag regarding Sylius:** * 70 experts on board * +150 projects delivered on top of Sylius, * 30 countries of BitBag’s customers, * 7 years in the Sylius ecosystem. * +35 plugins created for Sylius --- [![](https://bitbag.io/wp-content/uploads/2024/09/badges-sylius.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) --- ## Table of Content *** * [Overview](#overview) * [Important documents](#important-documents) * [Usage](#usage) * [Demo](#demo) * [Additional resources for developers](#additional-resources-for-developers) * [License](#license) * [Contact and Support](#contact-and-support) * [Community](#community) # Overview --- Almost every eCommerce app has to present some content. Managing it is often done via third-party libraries like WordPress, eZ Platform, or a built-in content management system. As Sylius does not have a CMS in the standard platform, we decided to develop our own, which will be as flexible as Sylius. This plugin allows you to add dynamic blocks with images, text, or HTML to your storefront, as well as pages and FAQ sections. <img align="left" src="https://bitbag.io/wp-content/uploads/2021/01/Sylius-CMS-Plugin-Building-Block-1-1024x1024.png"> --- # Important documents --- - [Installation](doc/installation.md) - [Upgrading](UPGRADE.md) - [Blocks](doc/blocks.md) - [Pages](doc/pages.md) - [Sections](doc/sections.md) - [Media](doc/media.md) - [FAQs](doc/faqs.md) - [Fixtures](doc/fixtures.md) - [WYSIWYG](doc/wysiwyg.md) - [Importing resources](doc/importing-resources.md) - [Using Twig functions in the admin panel](doc/twig-functions-in-admin.md) - [Sitemap](doc/sitemap.md) - [Customization](doc/customization.md) # Usage --- Check how the **SyliusCMSPlugin** works in practice - **[click here](https://github.com/BitBagCommerce/SyliusCmsPlugin/blob/master/doc/use_case.md)** --- If you need some help with Sylius development, don't be hesitated to contact us directly. You can fill the form on [this site](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) or send us an e-mail at [email protected]! --- [![](https://bitbag.io/wp-content/uploads/2021/08/sylius-badges-transparent-wide.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) # Demo --- We created a demo app with some useful use-cases of plugins! Visit http://demo.sylius.com/ to take a look at it. **If you need an overview of Sylius' capabilities, schedule a consultation with our expert.** [![](https://bitbag.io/wp-content/uploads/2020/10/button_free_consulatation-1.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) # Additional resources for developers --- To learn more about our contribution workflow and more, we encourage you to use the following resources: * [Sylius Documentation](https://docs.sylius.com/en/latest/) * [Sylius Contribution Guide](https://docs.sylius.com/en/latest/contributing/) * [Sylius Online Course](https://sylius.com/online-course/) * [Sylius CMS Blog](https://bitbag.io/blog/sylius-cms) # License --- This plugin's source code is completely free and released under the terms of the MIT license. [//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen.) # Contact and Support --- This open-source plugin was developed to help the Sylius community. If you have any additional questions, would like help with installing or configuring the plugin, or need any assistance with your Sylius project - let us know! **Contact us** or send us an **e-mail to [email protected]** with your question(s). [![](https://bitbag.io/wp-content/uploads/2020/10/button-contact.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms) # Community --- For online communication, we invite you to chat with us & other users on **[Sylius Slack](https://sylius-devs.slack.com/).** [![](https://bitbag.io/wp-content/uploads/2024/09/badges-partners.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_cms)

CMS Plugins & Extensions Traditional CMS
244 Github Stars
SyliusElasticsearchPlugin
Open Source

SyliusElasticsearchPlugin

# [![](https://bitbag.io/wp-content/uploads/2021/01/elasticsearch.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_elasticsearch) # BitBag SyliusElasticsearchPlugin ---- [![](https://img.shields.io/packagist/l/bitbag/elasticsearch-plugin.svg) ](https://packagist.org/packages/bitbag/elasticsearch-plugin "License") [ ![](https://img.shields.io/packagist/v/bitbag/elasticsearch-plugin.svg) ](https://packagist.org/packages/bitbag/elasticsearch-plugin "Version") [ ![](https://img.shields.io/github/actions/workflow/status/BitBagCommerce/SyliusElasticsearchPlugin/build.yml) ](https://github.com/BitBagCommerce/SyliusElasticsearchPlugin/actions "Build status") [ ![](https://img.shields.io/scrutinizer/g/BitBagCommerce/SyliusElasticsearchPlugin.svg) ](https://scrutinizer-ci.com/g/BitBagCommerce/SyliusElasticsearchPlugin/ "Scrutinizer") [![](https://poser.pugx.org/bitbag/elasticsearch-plugin/downloads)](https://packagist.org/packages/bitbag/elasticsearch-plugin "Total Downloads") [![Slack](https://img.shields.io/badge/community%20chat-slack-FF1493.svg)](http://sylius-devs.slack.com) [![Support](https://img.shields.io/badge/support-contact%20author-blue])](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_elasticsearch) <p> <img align="left" src="https://sylius.com/assets/badge-approved-by-sylius.png" width="85"> </p> We want to impact many unique eCommerce projects and build our brand recognition worldwide, so we are heavily involved in creating open-source solutions, especially for Sylius. We have already created over **35 extensions, which have been downloaded almost 2 million times.** You can find more information about our eCommerce services and technologies on our website: https://bitbag.io/. We have also created a unique service dedicated to creating plugins: https://bitbag.io/services/sylius-plugin-development. Do you like our work? Would you like to join us? Check out the **“Career” tab:** https://bitbag.io/pl/kariera. # About Us --- BitBag is a software house that implements tailor-made eCommerce platforms with the entire infrastructure—from creating eCommerce platforms to implementing PIM and CMS systems to developing custom eCommerce applications, specialist B2B solutions, and migrations from other platforms. We actively participate in Sylius's development. We have already completed **over 150 projects**, cooperating with clients worldwide, including smaller enterprises and large international companies. We have completed projects for such important brands as **Mytheresa, Foodspring, Planeta Huerto (Carrefour Group), Albeco, Mollie, and ArtNight.** We have a 70-person team of experts: business analysts and consultants, eCommerce developers, project managers, and QA testers. **Our services:** * B2B and B2C eCommerce platform implementations * Multi-vendor marketplace platform implementations * eCommerce migrations * Sylius plugin development * Sylius consulting * Project maintenance and long-term support * PIM and CMS implementations **Some numbers from BitBag regarding Sylius:** * 70 experts on board * +150 projects delivered on top of Sylius, * 30 countries of BitBag’s customers, * 7 years in the Sylius ecosystem. * +35 plugins created for Sylius --- [![](https://bitbag.io/wp-content/uploads/2024/09/badges-sylius.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_elasticsearch) --- ## Table of Content *** * [Overview](#overview) * [Installation](#installation) * [Usage](#usage) * [Customization](#customization) * [Testing](#testing) * [Functionalities](#functionalities) * [Demo](#demo) * [License](#license) * [Contact and Support](#contact-and-support) * [Community](#community) # Overview ---- Working [Sylius](https://sylius.com/) [Elasticsearch](https://www.elastic.co/products/elasticsearch) integration based on [FOSElasticaBundle](https://github.com/FriendsOfSymfony/FOSElasticaBundle). The main goal of this plugin is to support filtering products by options, attributes, taxons, channels and name in the front product list page. It totally replaces the default Sylius `sylius_shop_product_index` route. What is more, the plugin has a nice Sylius-oriented architecture that allows mapping resources to the Elastic document easier. It is flexible as well, so that you can customize the existing features for your specific business needs. If you are curious about the details of this plugin, read [this blog post](https://bitbag.io/blog/elasticsearch-for-sylius) and watch the video below. [![](https://img.youtube.com/vi/DUswiGQePLE/0.jpg)](https://www.youtube.com/watch?v=DUswiGQePLE) # Installation --- For the full installation guide, please go **[here](doc/installation.md).** ## Requirements ---- This plugin requires elasticsearch server running. You can install it by following the instructions on the [official website](https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html). In plugin repository there is Docker Compose file that can be used to run Elasticsearch server. **Note:** This Plugin supports ElasticSearch 7.0 and above. If you're looking for ElasticSearch Plugin for older versions check SyliusElasticSearchPlugin in version 1.x. We work on stable, supported and up-to-date versions of packages. We recommend you to do the same. | Package | Version | |---------------|-----------------| | PHP | 8.2 or 8.3 | | sylius/sylius | \>= 2.0 | | MySQL | \>= 5.7 | | NodeJS | \>= 18.x | | ElasticSearch | \>= 7.x | ## Usage ### Scope of the search This plugin offers a site-wide search feature and taxon search feature. It is easily extendable to add more search scopes. For example in Marketplace suite you can create Vendor specific search scope. ### Searching site-wide products There is searchbar in the header of the shop. <div align="center"> <img src="doc/es_browser.png" /> </div> You can easily modify it by overriding the `@BitBagSyliusElasticsearchPlugin/Shop/Layout/Header/searchForm.html.twig` and templates `@BitBagSyliusElasticsearchPlugin/Shop/SearchForm/searchForm.html.twig` or disable it by setting: ```yml sylius_twig_hooks: hooks: 'sylius_shop.base.header.content': search_form: template: "@BitBagSyliusElasticsearchPlugin/Shop/Layout/Header/searchForm.html.twig" priority: 250 enabled: false 'sylius_shop.base.header.content.search_form': content: component: 'bitbag.sylius_elasticsearch_plugin:search_form' props: template: "@BitBagSyliusElasticsearchPlugin/Shop/SearchForm/searchForm.html.twig" priority: 0 enabled: false ``` ### Searching taxon products When you go now to the ` /{_locale}/taxons/{slug}` page, you should see a totally new set of filters. You should see something like this: <div align="center"> <img src="doc/es_results.png" /> </div> It is important that the `routing.yml` from the plugin are loaded before `sylius_shop`: ```yaml bitbag_sylius_elasticsearch_plugin: resource: "@BitBagSyliusElasticsearchPlugin/config/routing.yml" sylius_shop: resource: "@SyliusShopBundle/Resources/config/routing.yml" prefix: /{_locale} requirements: _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$ ``` ### Excluding options and attributes in the filter menu You might not want to show some specific options or attributes in the menu. You can set specific parameters for that: ```yml parameters: bitbag_es_excluded_facet_attributes: ['jeans_material'] bitbag_es_excluded_facet_options: ['t_shirt_size'] ``` By default, all options and attributes filters are shown. It is also possible to disable options and attribute filters autodiscovery by setting the following parameters: ```yml parameters: bitbag_es_facets_auto_discover: false ``` Then you have to manually register your filters: Available filters: * [`TaxonFacet`](https://github.com/BitBagCommerce/SyliusElasticsearchPlugin/blob/master/src/Facet/TaxonFacet.php) which allows to filter your search results by taxons using the ElasticSearch [`Terms`](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html) aggregation. * [`AttributeFacet`](https://github.com/BitBagCommerce/SyliusElasticsearchPlugin/blob/master/src/Facet/AttributeFacet.php) which allows to filter your search results by product attributes values using the ElasticSearch [`Terms`](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html) aggregation. * [`OptionFacet`](https://github.com/BitBagCommerce/SyliusElasticsearchPlugin/blob/master/src/Facet/OptionFacet.php) which is the same as `AttributeFacet` but for product options. * [`PriceFacet`](https://github.com/BitBagCommerce/SyliusElasticsearchPlugin/blob/master/src/Facet/PriceFacet.php) which allows to filter search results by price range the ElasticSearch [`Histogram`](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html) aggregation. Example of manual registration of filters: ```yml services: bitbag_sylius_elasticsearch_plugin.facet.attribute.t_shirt_brand: class: BitBag\SyliusElasticsearchPlugin\Facet\AttributeFacet arguments: - '@bitbag_sylius_elasticsearch_plugin.property_name_resolver.attribute' - '@=service("sylius.repository.product_attribute").findOneBy({"code": "t_shirt_brand"})' - '@sylius.context.locale' bitbag_sylius_elasticsearch_plugin.facet.registry: class: BitBag\SyliusElasticsearchPlugin\Facet\Registry calls: - method: addFacet arguments: - t_shirt_brand - '@bitbag_sylius_elasticsearch_plugin.facet.attribute.t_shirt_brand' - method: addFacet arguments: - price - '@bitbag_sylius_elasticsearch_plugin.facet.price' - method: addFacet arguments: - taxon - '@bitbag_sylius_elasticsearch_plugin.facet.taxon' ``` ### Reindexing By default, current indexes listen on all Doctrine events. You can override this setting for each index by overriding index definition in your `config.yml` file: ```yml fos_elastica: indexes: bitbag_attribute_taxons: types: default: persistence: listener: insert: true update: false delete: true ``` Indexes with `bitbag_shop_product`, `bitbag_attribute_taxons` and `bitbag_option_taxons` keys are available so far. ### Search fuzziness >Fuzziness in Elasticsearch is a feature that allows search queries to match terms even if there are minor typos or spelling mistakes. It works by calculating the Levenshtein distance (edit distance) between the query term and indexed terms, enabling the search engine to find similar words—for example, a search for “aple” can still match “apple.” Fuzziness is commonly used in full-text search to improve result accuracy despite small user input errors. You can set the fuzziness of the search by overriding the `bitbag_sylius_elasticsearch_plugin.query_builder.contains_name` service in your service file `(min. -> 0, max. -> 2)`: ```xml <service id="bitbag_sylius_elasticsearch_plugin.query_builder.contains_name" class="BitBag\SyliusElasticsearchPlugin\QueryBuilder\ContainsNameQueryBuilder"> <argument type="service" id="sylius.context.locale" /> <argument type="service" id="bitbag_sylius_elasticsearch_plugin.search_property_name_resolver_registry" /> <argument type="string">AUTO</argument> </service> ``` ```yaml bitbag_sylius_elasticsearch_plugin.query_builder.contains_name: class: BitBag\SyliusElasticsearchPlugin\QueryBuilder\ContainsNameQueryBuilder arguments: - '@sylius.context.locale' - '@bitbag_sylius_elasticsearch_plugin.search_property_name_resolver_registry' - 'AUTO' ``` ## Customization ### Available services you can [decorate](https://symfony.com/doc/current/service_container/service_decoration.html) and forms you can [extend](http://symfony.com/doc/current/form/create_form_type_extension.html) ```bash $ bin/console debug:container | grep bitbag_sylius_elasticsearch_plugin ``` ### Parameters you can override in your parameters.yml(.dist) file ```bash $ bin/console debug:container --parameters | grep bitbag ``` ## Testing ```bash $ composer install $ cd tests/Application $ APP_ENV=test bin/console doctrine:database:create $ APP_ENV=test bin/console doctrine:schema:create // run elasticsearch $ APP_ENV=test bin/console sylius:fixtures:load $ APP_ENV=test bin/console fos:elastica:populate $ APP_ENV=test symfony server:run 127.0.0.1:8080 -d $ APP_ENV=test bin/console assets:install $ open http://localhost:8080 $ vendor/bin/behat $ vendor/bin/phpspec run ``` # Functionalities --- All main functionalities of the plugin are described **[here.](https://github.com/BitBagCommerce/SyliusElasticsearchPlugin/blob/master/doc/functionalities.md)** --- If you need some help with Sylius development, don't be hesitated to contact us directly. You can fill the form on [this site](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_elasticsearch) or send us an e-mail at [email protected]! --- [![](https://bitbag.io/wp-content/uploads/2021/08/sylius-badges-transparent-wide.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_elasticsearch) # Demo --- We created a demo app with some useful use-cases of plugins! Visit http://demo.sylius.com/ to take a look at it. **If you need an overview of Sylius' capabilities, schedule a consultation with our expert.** [![](https://bitbag.io/wp-content/uploads/2020/10/button_free_consulatation-1.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_elasticsearch) # Additional resources for developers --- To learn more about our contribution workflow and more, we encourage you to use the following resources: * [Sylius Documentation](https://docs.sylius.com/en/latest/) * [Sylius Contribution Guide](https://docs.sylius.com/en/latest/contributing/) * [Sylius Online Course](https://sylius.com/online-course/) * [Sylius Elasticsearch Plugin Blog](https://bitbag.io/blog/elasticsearch-for-sylius) # License --- This plugin's source code is completely free and released under the terms of the MIT license. [//]: # (These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen.) # Contact and Support --- This open-source plugin was developed to help the Sylius community. If you have any additional questions, would like help with installing or configuring the plugin, or need any assistance with your Sylius project - let us know! **Contact us** or send us an **e-mail to [email protected]** with your question(s). [![](https://bitbag.io/wp-content/uploads/2020/10/button-contact.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_elasticsearch) # Community ---- For online communication, we invite you to chat with us & other users on **[Sylius Slack](https://sylius-devs.slack.com/).** [![](https://bitbag.io/wp-content/uploads/2024/09/badges-partners.png)](https://bitbag.io/contact-us/?utm_source=github&utm_medium=referral&utm_campaign=plugins_elasticsearch)

E-commerce Platforms Search Engines
131 Github Stars