-
Require plugin with composer:
composer require sylius/refund-plugin
-
Add plugin class and other required bundles to your
config/bundles.php
:$bundles = [ Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true], Sylius\RefundPlugin\SyliusRefundPlugin::class => ['all' => true], ];
-
Import configuration:
imports: - { resource: "@SyliusRefundPlugin/config/config.yaml" }
-
Import routes:
sylius_refund: resource: "@SyliusRefundPlugin/config/routes.yaml"
-
Apply migrations to your database:
bin/console doctrine:migrations:migrate
-
Install assets:
Add the following line to your
assets/admin/entrypoint.js
file:import '../../vendor/sylius/refund-plugin/assets/entrypoint';
-
Run
yarn encore dev
oryarn encore production
-
Check if you have
wkhtmltopdf
binary. If not, you can download it here.In case
wkhtmltopdf
is not located in/usr/local/bin/wkhtmltopdf
, add a following snippet at the end of your application's.env
:WKHTMLTOPDF_PATH=/path/to/your/wkhtmltopdf
-
Clear cache:
bin/console cache:clear