Release description
For more details about the release, please refer to this blogpost.
Upgrade from 1.6
-
Require upgraded Sylius version using Composer:
composer require sylius/sylius:~1.7.0 --update-with-dependencies
You might need to adjust your
config.platform.php
setting incomposer.json
, because Sylius 1.7 requires PHP 7.3 or higher. -
Update your
package.json
in order to add new dependencies:{ "dependencies": { + "chart.js": "^2.9.3", + "slick-carousel": "^1.8.1", }, "devDependencies": { + "@symfony/webpack-encore": "^0.28.0", + "sass-loader": "^7.0.1", } ... }
Run
yarn install && yarn build
to use them. -
Remove not needed bundles from your list of used bundles in
config/bundles.php
if you are not using it apart from Sylius:- Sonata\CoreBundle\SonataCoreBundle::class => ['all' => true], - Sonata\IntlBundle\SonataIntlBundle::class => ['all' => true], - Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['all' => true],
You should remove
config/packages/sonata_core.yaml
as well. -
Remove
config/packages/twig_extensions.yaml
file if you are not using thetwig/extensions
package in your application. -
Add the following snippet to
config/packages/twig.yaml
to enableTwig\Extra\Intl\IntlExtension
:services: _defaults: public: false autowire: true autoconfigure: true Twig\Extra\Intl\IntlExtension: ~
-
Copy migration files into
src/Migrations
:Run
bin/console doctrine:migrations:migrate
to use them. -
Clear cache by
bin/console cache:clear
.
Template events
Sylius\Bundle\UiBundle\Block\BlockEventListener
has been deprecated, usesylius_ui
configuration instead.
Breaking changes
Those are excluded from our BC promise:
Sylius\Bundle\ShopBundle\EventListener\UserMailerListener
has been removed and replaced withSylius\Bundle\CoreBundle\EventListener\MailerListener
Billing and shipping addresses have been switched with one another
Until now shipping address used to be the default address of an Order. We have changed that, so now the billing address became the default address during checkout. It is an important change in our checkout process, please have that in mind.
Details
- #11166 [Behat][ProductAttribute] Remove unnecessary step (@GSadee)
- #11167 Fix UPGRADE-1.7 file (@Zales0123)
- #11168 [Docs] Remove sensio.sphinx.refinclude (@Tomanhez)
- #10632 [ShopBundle] Logged customer after completing checkout can view order in his account (@Tomanhez)
- #10638 [Behat][Minor] Add a few typehints (@lchrusciel)
- #10643 [Fixture] channel fixture fix (@AdamKasp)
- #10651 removed customer from customer order grid (@AdamKasp)
- #10653 [Order] Added "no payments" label for order without payment (@AdamKasp, @Zales0123)
- #10658 [Payment] Filtering payments by channel (@AdamKasp, @Zales0123)
- #10660 [Fixture] Shipment and payment date are same like order (@AdamKasp)
- #10665 Remove ShippingBundle spec from autoload-dev (@mmenozzi)
- #10666 Test doctrine migrations up & down (@loic425)
- #10670 Fix unnecessarily centered payment (@Zales0123)
- #10674 Add authorize constant to payment transitions (@alexander-schranz)
- #10679 Change channel code to name (@AdamKasp)
- #10687 Add support menu and CTAs (@pjedrzejewski)
- #10694 [Admin][Product] Extract some variant related templates from product show (@GSadee)
- #10699 Admin avatar - fixtures (@AdamKasp)
- #10702 fix order orders grid (@AdamKasp)
- #10707 [Currency] added parameterized currency during installation (, @Jeroen-G)
- #10711 [Docs] update docs. (@AdamKasp)
- #10715 [Fixtures] Add env variable for channel hostname (@GSadee)
- #10718 [Product] Go to edit from product show page (@AdamKasp)
- #10721 Fixed: use_authorize option comparison (fixes #) (@igormukhingmailcom)
- #10723 [Admin][Product] Fix displaying variants on product show page (@GSadee)
- #10731 [Docs] Plugins technical review checklist (@Zales0123)
- #10735 Do not impose a length of two on attribute codes and names (@loevgaard)
- #10736 Channel page rework (@kulczy)
- #10754 clean Twig unused variable (@oallain)
- #10756 Changed visibility to make it usable when extending (@loevgaard)
- #10759 Fix user impersonated listener when impersonating another user resource (@loic425)
- #10762 [Docs] Added Docs and Instructions for how to store images on AWS-S3 (@itinance)
- #10783 [Admin] Fix Github issue tracker link (@Zales0123)
- #10791 Allow to define free products (@Zales0123)
- #10796 [Admin][Order] Add promotions to order summary (@GSadee)
- #10803 Add Webpack Encore (@kulczy)
- #10810 [Admin][Order] Remove unnecessary tag (@GSadee)
- #10811 Explicitly list deprecated things in the code & solve Twig deprecations (@pamil)
- #10812 [Shop] Hide shipping costs for orders with virtual products (@GSadee)
- #10814 Make Psalm more aggressive (@pamil)
- #10818 [Payum][Checkout] Pass address data to PayPal after checkout (@Zales0123)
- #10822 Fix typo in TaxonomyElementInterface classname (@pamil)
- #10827 New Webpack approach (@kulczy)
- #10829 Remove Symfony ^3.4 support on the master branch (@pamil)
- #10831 [Docs] Theming Guide: Webpack Encore v1 (@CoderMaggie)
- #10833 Change banner (@kulczy)
- #10834 Remove usage of deprecated "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" (@pamil)
- #10836 Do not use deprecated Symfony events (@pamil)
- #10839 [Psalm] Improve docblocks (@pamil)
- #10840 [Psalm] Treat PossiblyUndefined* and PossiblyFalse* as errors (@pamil)
- #10843 [Psalm] Treat checks from level 5 as errors (@pamil)
- #10845 [Psalm] Fix the build (@pamil)
- #10847 Deprecate Stripe Checkout due to lacking support for SCA (@pamil)
- #10848 Update Webpack docs (@kulczy)
- #10854 [Behat][Admin][Order] Fix scenarios for displaying promotions on master after upmerge (@GSadee)
- #10858 [Psalm] Treat MismatchingDocblockReturnType as errors (@pamil)
- #10859 [Psalm] Treat MethodSignatureMismatch as errors (@pamil)
- #10861 Add Bootstrap based theming guide (@kulczy)
- #10870 Allow guest checkout no matter what (@loevgaard)
- #10873 [Psalm] Fix the build after Symfony 4.4 update (@pamil)
- #10875 Revert changes causing BC break (@pamil)
- #10876 Add warning message to the theming guide (@kulczy)
- #10883 Rework Behat testing from classes/ids to attributes for login and registration pages (@Tomanhez)
- #10885 Add help messages to settings requirements checked in CLI (@akondas)
- #10888 Add missing sass-loader to dependencies (@kulczy)
- #10893 Improve emails templates (@kulczy, @GSadee, @pamil)
- #10894 Add documentation for customising emails per channel (@pamil)
- #10895 Fix misspellings in french fixtures files (@DjLeChuck)
- #10897 Minor fixes - Rework behat tests (@Tomanhez)
- #10900 [Docs] [Channel]Fix docs with channel (@AdamKasp)
- #10902 [Documentation][Cookbook] How to add Google Analytics script to shop? (@AdamKasp, @CoderMaggie)
- #10903 Homepage rework + fixed tests (@kulczy, @AdamKasp)
- #10904 Decrement length constraint on postcode (@loevgaard)
- #10906 [Homepage] Fixes (@AdamKasp)
- #10908 Fix carousel links (@kulczy)
- #10911 Add code to exception message since name can be null (@loevgaard)
- #10914 Translate emails (@GSadee)
- #10915 [Behat] Cleaning Behat checkout pages (@AdamKasp)
- #10921 [Behat] Rework behat - using attributes instead class/id in address and shipping page (@AdamKasp)
- #10924 New template events architecture (introduction) (@pamil)
- #10932 [Admin][Order] Add resending an order confirmation email (@GSadee)
- #10936 [Psalm] Exclude deprecated doctrine classes from analysis (@GSadee)
- #10937 Rework ShowPage and IndexPage in Shop/Product (@Tomanhez)
- #10940 [Behat] Rework behat - using attributes instead class/id part in payment page (@AdamKasp)
- #10950 [Admin][Order] Add resending a shipment confirmation email (@GSadee)
- #10953 Rework ShowPage and IndexPage in Shop/Product to DataAttributes (@Tomanhez)
- #10955 Fix some Twig deprecations (@pamil)
- #10956 [Email] Use channel hostname in urls (@GSadee)
- #10957 [Email][Shipment] Fix shipment confirmation email to send information about tracking only if it is provided (@GSadee)
- #10959 Lock static analysis tools versions and fix the build (@pamil)
- #10960 Handle pluralisation in translations with Intl ICU (@pamil)
- #10962 [Hot-Fix] Fix failing specs after prophecy update (@Zales0123, @pamil)
- #10965 Upgrade to PHPStan 0.12 (@pamil)
- #10966 Upgrade to PHPSpec ^6.1 (@pamil)
- #10969 Use Symfony CLI command instead of symfony/web-server-bundle (@pamil)
- #10970 Require Symfony ^4.4 (@pamil)
- #10971 Use Symfony CLI command to check security (@pamil)
- #10972 [Travis] Use HTTPS for JS Behat tests (@pamil)
- #10973 [Behat] Remove js requirement from bulk delete scenarios (@Zales0123)
- #10974 Remove doctrine/doctrine-fixtures-bundle from dependencies and move doctrine/data-fixtures to dev dependencies (@pamil)
- #10975 Upgrade to KNP Menu 3 (@pamil)
- #10976 Upgrade to KNP Gaufrette ^0.8 and KNP Gaufrette Bundle ^0.7 (@pamil)
- #10977 Remove sonata-project/intl-bundle in favour of twig/intl-extra (@pamil)
- #10980 Add a description to the Plus logo (@kulczy)
- #10981 [Behat] Spend less time waiting for slug generation (@Zales0123)
- #10984 Upgrade to Sonata Block Bundle ^4.0 (@pamil)
- #10988 Template events system - refactoring & HTML debug comments (@pamil)
- #10989 Template events system - CLI command for debugging (@pamil)
- #10990 Template events system - data collector & profiler (@pamil)
- #10991 Template events system - replace topbar with newly introduced events (@pamil)
- #10996 Making functions protected in Product for more flexible extenidng (@antonioperic)
- #11001 [HotFix] SyliusGridBundle downgrade to 1.7.3 (@Tomanhez)
- #11008 Change footer url (@kulczy)
- #11009 Rework behats after checkout and thanks page (@AdamKasp)
- #11010 [HomePage][Behat] Rework behats - home page (@AdamKasp)
- #11011 [Contact][Behat] Rework behats - contact page (@AdamKasp)
- #11012 [Channel][Taxon][Shop] Menu taxon on channel (@Zales0123)
- #11014 Use template blocks for our homepage (@pamil)
- #11016 Fix key order and functions names (@AdamKasp)
- #11017 [Behat][Checkout] Add html attributes for testing JS functionality in checkout pages (@AdamKasp)
- #11020 Require LiipImagineBundle ^2.3 (@pamil)
- #11021 Require PHP ^7.3 (@pamil)
- #11023 Fix doubled package in Composer's conflict section (@pamil)
- #11026 [Maintenance] Mention about SonataCore removal in UPGRADE.md (@lchrusciel)
- #11027 [Maintenance] Update github PR template (@lchrusciel)
- #11032 Rework behats - summaryOrderPage (@AdamKasp, @Tomanhez)
- #11033 [Checkout] Make billing address the default one (@Zales0123, @GSadee)
- #11034 [Docs] Add sphinx-copybutton to docs and update sensio.sphinx (@Tomanhez)
- #11036 Template events reloaded: improved HTML debug, improved code structure, added _event variable to the context (@pamil)
- #11037 php-http/guzzle6-adapter dependency upgraded (@pfazzi)
- #11039 [Checkout] Add missing unit test for using deprecated different billing address flag (@GSadee)
- #11040 Happy New Year! (@GSadee)
- #11043 [Address] Change addresses order (@AdamKasp)
- #11044 [Docs] Fix docs build (@Tomanhez)
- #11050 Add dashboard chart (@kulczy)
- #11051 [Docs] Update resource documentation (@lchrusciel)
- #11052 Disabled all buttons from the column after click (@kulczy)
- #11054 [Documentation] Sylius Plus features documentation v1 (@CoderMaggie)
- #11055 Define countries for a channel (@pamil)
- #11059 Rendering multiple dependent template events at once + admin-side CRUD events (@pamil)
- #11066 [Shipment] Ship a shipment with tracking code on the list (@AdamKasp, @GSadee, @lchrusciel)
- #11067 [Fixture] Extend fixtures (@AdamKasp)
- #11070 [Fixture] Add missing euro (@AdamKasp)
- #11071 Template events for admin's layout (@pamil)
- #11072 Replace "_include.html.twig" template event blocks with a simpler solution (@pamil)
- #11075 Fix testing migrations (@loic425)
- #11078 [Checkout] Add note to UPGRADE file about switching billing and shipping addresses (@GSadee)
- #11080 [Fixtures] Replace Cook Islands with New Zealand (@AdamKasp)
- #11082 [Admin] Feed dashboard graph with real data (@Zales0123, @GSadee)
- #11083 [Behat] Fix missing Behat step (@Zales0123)
- #11086 [Shipment] Add shipment show page (@Tomanhez, @GSadee)
- #11089 [Shipment] Add date when shipment has been shipped (@AdamKasp, @GSadee)
- #11090 [Admin] Use shipment action for shipment grid (@lchrusciel)
- #11093 [Behats] Rework password, profile update, change password, pages (@AdamKasp)
- #11094 [Fixtures] Fulfill 60% orders fixtures (@Tomanhez)
- #11096 [Behats] Cart summary page - test attributes added (@AdamKasp)
- #11100 [Behats] Rework address book tests (@Tomanhez)
- #11101 [Behat] Rework testing product reviews to use test attributes (@GSadee)
- #11103 [Behat] Add attributes to registration page and fix summary page. (@AdamKasp)
- #11104 [Behat] Rework testing customer orders to use test attributes (@GSadee)
- #11105 [Fixtures] Change order for orders (@Tomanhez)
- #11106 [Dashboard] Sales on dashboard updated (@AdamKasp)
- #11108 Make ShopBillingData a resource (@GSadee)
- #11118 [Behats] Rework behat attributes for Shop/Account/DashboardPage (@Tomanhez)
- #11143 [Shop] Replace Sonata block events with Sylius template events (@pamil)
- #11151 [Admin] Replace Sonata block events with Sylius template events (@pamil)
- #11152 Update Mink-related libraries to allow for Symfony 5 (@pamil)
- #11154 Filter variables passed to legacy Sonata block events (@pamil)
- #11159 [Behat] Fix missing html attributes coverage (@AdamKasp, @pamil)
- #11160 Mark new template events implementation as experimental (@pamil)
- CVE-2019-16768: Internal exception message exposure in login action.
- #10632 [ShopBundle] Logged customer after completing checkout can view order in his account (@Tomanhez)
- #10638 [Behat][Minor] Add a few typehints (@lchrusciel)
- #10643 [Fixture] channel fixture fix (@AdamKasp)
- #10651 removed customer from customer order grid (@AdamKasp)
- #10653 [Order] Added "no payments" label for order without payment (@AdamKasp, @Zales0123)
- #10658 [Payment] Filtering payments by channel (@AdamKasp, @Zales0123)
- #10660 [Fixture] Shipment and payment date are same like order (@AdamKasp)
- #10665 Remove ShippingBundle spec from autoload-dev (@mmenozzi)
- #10666 Test doctrine migrations up & down (@loic425)
- #10670 Fix unnecessarily centered payment (@Zales0123)
- #10674 Add authorize constant to payment transitions (@alexander-schranz)
- #10679 Change channel code to name (@AdamKasp)
- #10687 Add support menu and CTAs (@pjedrzejewski)
- #10694 [Admin][Product] Extract some variant related templates from product show (@GSadee)
- #10699 Admin avatar - fixtures (@AdamKasp)
- #10702 fix order orders grid (@AdamKasp)
- #10707 [Currency] added parameterized currency during installation (, @Jeroen-G)
- #10711 [Docs] update docs. (@AdamKasp)
- #10715 [Fixtures] Add env variable for channel hostname (@GSadee)
- #10718 [Product] Go to edit from product show page (@AdamKasp)
- #10721 Fixed: use_authorize option comparison (@igormukhingmailcom)
- #10723 [Admin][Product] Fix displaying variants on product show page (@GSadee)
- #10731 [Docs] Plugins technical review checklist (@Zales0123)
- #10735 Do not impose a length of two on attribute codes and names (@loevgaard)
- #10736 Channel page rework (@kulczy)
- #10754 clean Twig unused variable (@oallain)
- #10756 Changed visibility to make it usable when extending (@loevgaard)
- #10759 Fix user impersonated listener when impersonating another user resource (@loic425)
- #10783 [Admin] Fix Github issue tracker link (@Zales0123)
- #10791 Allow to define free products (@Zales0123)
- #10796 [Admin][Order] Add promotions to order summary (@GSadee)
- #10803 Add Webpack Encore (@kulczy)
- #10810 [Admin][Order] Remove unnecessary tag (@GSadee)
- #10811 Explicitly list deprecated things in the code & solve Twig deprecations (@pamil)
- #10812 [Shop] Hide shipping costs for orders with virtual products (@GSadee)
- #10814 Make Psalm more aggressive (@pamil)
- #10818 [Payum][Checkout] Pass address data to PayPal after checkout (@Zales0123)
- #10822 Fix typo in TaxonomyElementInterface classname (@pamil)
- #10827 New Webpack approach (@kulczy)
- #10829 Remove Symfony ^3.4 support on the master branch (@pamil)
- #10831 [Docs] Theming Guide: Webpack Encore v1 (@CoderMaggie)
- #10833 Change banner (@kulczy)
- #10834 Remove usage of deprecated "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" (@pamil)
- #10836 Do not use deprecated Symfony events (@pamil)
- #10839 [Psalm] Improve docblocks (@pamil)
- #10840 [Psalm] Treat PossiblyUndefined* and PossiblyFalse* as errors (@pamil)
- #10843 [Psalm] Treat checks from level 5 as errors (@pamil)
- #10845 [Psalm] Fix the build (@pamil)
- #10847 Deprecate Stripe Checkout due to lacking support for SCA (@pamil)
- #10848 Update Webpack docs (@kulczy)
- #10854 [Behat][Admin][Order] Fix scenarios for displaying promotions on master after upmerge (@GSadee)
- #10858 [Psalm] Treat MismatchingDocblockReturnType as errors (@pamil)
- #10859 [Psalm] Treat MethodSignatureMismatch as errors (@pamil)
- #10860 [Channel] channel types (@AdamKasp)
- #10861 Add Bootstrap based theming guide (@kulczy)
- #10873 [Psalm] Fix the build after Symfony 4.4 update (@pamil)
- #10875 Revert changes causing BC break (@pamil)
- #10876 Add warning message to the theming guide (@kulczy)
- #10883 Rework Behat testing from classes/ids to attributes for login and registration pages (@Tomanhez)
- #10885 Add help messages to settings requirements checked in CLI (@akondas)
- #10888 Add missing sass-loader to dependencies (@kulczy)
- #10893 Improve emails templates (@kulczy, @GSadee, @pamil)
- #10894 Add documentation for customising emails per channel (@pamil)
- #10895 Fix misspellings in french fixtures files (@DjLeChuck)
- #10897 Minor fixes - Rework behat tests (@Tomanhez)
- #10900 [Docs] [Channel]Fix docs with channel (@AdamKasp)