We've brought back the attribute types templates to SyliusAttributeBundle after BC break in v1.7.0.
-
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
.
Sylius\Bundle\UiBundle\Block\BlockEventListener
has been deprecated, usesylius_ui
configuration instead.
Those are excluded from our BC promise:
Sylius\Bundle\ShopBundle\EventListener\UserMailerListener
has been removed and replaced withSylius\Bundle\CoreBundle\EventListener\MailerListener
We've moved the following templates:
@SyliusAttribute/Types/*.html.twig
You should search forSyliusAttribute/Types
andSyliusAttributeBundle:Types
in your templates and make the changes accordingly:- in the Admin area:
@SyliusAdmin/Product/Show/Types/*.html.twig
- in the Shop area:
@SyliusShop/Product/Show/Types/*.html.twig
- in the Admin area:
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.
In case when you are using Postgres in your project, function DATE_FORMAT
should be overridden.
Adjust configuration in config/packages/doctrine.yaml
to change DATE_FORMAT
implementation:
doctrine:
orm:
entity_managers:
default:
dql:
string_functions:
DATE_FORMAT: App\Doctrine\DQL\DateFormat # OR any other path to your implementation