Manual Installation

1. Install the Plugin via Composer

composer require sylius/product-bundle-plugin

2. Enable the Bundle

# config/bundles.php

return [
    ...
    Sylius\ProductBundlePlugin\SyliusProductBundlePlugin::class  => ['all' => true],
];

3. Import Configuration

# config/packages/_sylius.yaml

imports:
    ...
    - { resource: "@SyliusProductBundlePlugin/config/config.yaml" }

4. Import routes

# config/routes.yaml

...
sylius_product_bundle:
    resource: "@SyliusProductBundlePlugin/config/routes.yaml"

5. Extend the OrderItem entity

Register the OrderItem entity

6. Extend the Product entity

Register the Product entity

7. Import plugin assets

8. Install and build assets

9. Run Doctrine Migrations

The plugin comes with database changes. Run:

10. Clear the Symfony Cache

Finally, clear the Symfony cache to ensure changes are applied:

Last updated

Was this helpful?