From 3f6f64e5088b3c38802018f7b9f7508bf8a2cf06 Mon Sep 17 00:00:00 2001 From: arti0090 Date: Sun, 24 Apr 2022 16:57:47 +0200 Subject: [PATCH 1/3] Using Sylius template event to change logo --- .../shop-customizations.rst | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/getting-started-with-sylius/shop-customizations.rst b/docs/getting-started-with-sylius/shop-customizations.rst index 988d6c11468..4bb4d4585a0 100644 --- a/docs/getting-started-with-sylius/shop-customizations.rst +++ b/docs/getting-started-with-sylius/shop-customizations.rst @@ -25,12 +25,29 @@ The first step is to detect which template is responsible for displaying the log to customize a logo image. It's placed in **SyliusShopBundle**, at ``Resources/views/Layout/Header/_logo.html.twig`` path, so to override it, -you should create the ``templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig`` file and copy the original file content. +you should create the ``templates/shop/Layout/Header/_logo.html.twig`` file and copy the original file content. Next, replace the ``img`` element source with a link to the logo or properly imported asset image (take a look at `Symfony assets documentation `_ for more info). The other way to achieve this is to modify the configuration of the ``sylius.shop.layout.header.grid`` template event. -Learn more about it in :doc:`this doc`. +Here for sake of example the same logo file ``templates/shop/Layout/Header/_logo.html.twig`` used as in the example above. +Add the configuration to the file that stores your sylius template event settings: + +.. code-block:: yaml + + # config.yaml + + sylius_ui: + events: + sylius.shop.layout.header.grid: + blocks: + logo: 'bundles/SyliusShopBundle/Layout/Header/_logo.html.twig' + +If you want to learn more about template customization with sylius template events - click :doc:`here`. + +.. hint:: + + We encourage to create and register another ``.yaml`` file to store template changes for more clarity in configuration files. .. hint:: From dce26c78e432cf760d6df0b37e84717ff0060949 Mon Sep 17 00:00:00 2001 From: Kevin Kaniaburka Date: Thu, 28 Apr 2022 15:36:45 +0200 Subject: [PATCH 2/3] [Maintenance] Specify the default path in the ECS configuration --- ecs.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ecs.php b/ecs.php index ec6ceee8b10..acbb00cebd7 100644 --- a/ecs.php +++ b/ecs.php @@ -37,6 +37,7 @@ $parameters = $containerConfigurator->parameters(); $parameters->set(Option::PARALLEL, true); + $parameters->set(Option::PATHS, ['src/Sylius']); $parameters->set(Option::SKIP, [ InlineDocCommentDeclarationSniff::class . '.MissingVariable', InlineDocCommentDeclarationSniff::class . '.NoAssignment', From 6787b88150625cf40cbcd5ae471a278454b0e87e Mon Sep 17 00:00:00 2001 From: Rafikooo Date: Thu, 28 Apr 2022 14:15:47 +0200 Subject: [PATCH 3/3] [Docs] Updated Sylius Plus installation guide --- .../installation/sylius_plus_installation.rst | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/docs/book/installation/sylius_plus_installation.rst b/docs/book/installation/sylius_plus_installation.rst index 7b2b172bf6a..b33dc22343c 100644 --- a/docs/book/installation/sylius_plus_installation.rst +++ b/docs/book/installation/sylius_plus_installation.rst @@ -291,9 +291,31 @@ Installing Sylius Plus as a plugin to a Sylius application use InventorySourceAwareTrait; } -**7.** Add wkhtmltopdf binary for Invoicing purposes. +**7.** Install wkhtmltopdf binary: -If you do not have the ``wkhtmltopdf`` binary, download it `here `_. +Default configuration assumes enabled PDF file generator. If you don't want to use that feature change your app configuration: + +.. code-block:: yaml + + # config/packages/sylius_plus.yaml + sylius_plus: + pdf_generator: + enabled: false + +.. warning:: + + Sylius Plus uses both the Sylius Invoicing and Sylius Refund plugins which have their own configuration for disabling PDF Generator. + + +Check if you have wkhtmltopdf binary. +If not, you can download it `here `_. + +By default wkhtmltopdf is installed in ``/usr/local/bin/wkhtmltopdf`` directory. + +.. tip:: + + If you not sure if you have already installed wkhtmltopdf and where it is located, write the following command in the terminal: + ``which wkhtmltopdf`` In case wkhtmltopdf is not located in ``/usr/local/bin/wkhtmltopdf``, add the following snippet at the end of your application's ``.env`` file: