sylius/product-bundle-plugin

Product bundle for Sylius.

Fund package maintenance!
sylius

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 2

Open Issues: 0

Type:sylius-plugin


README

Sylius Logo.

ProductBundle Plugin

This plugin provides product bundles feature for your Sylius store

Installation

Requirements:

We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.

Package Version
PHP ^8.2
sylius/sylius ^2.0
MySQL ^8.4
NodeJS ^20.x

Beware!

This installation instruction assumes that you're using Symfony Flex. If you don't, take a look at the legacy installation instruction. However, we strongly encourage you to use Symfony Flex, it's much quicker!

  1. Require plugin with composer:

    composer require sylius/product-bundle-plugin

    Remember to allow community recipes with composer config extra.symfony.allow-contrib true or during plugin installation process

  2. Update your rector config

    <?php
    
    declare(strict_types=1);
    
    use Rector\Config\RectorConfig;
    use Sylius\SyliusRector\Set\SyliusProductBundle;
    
    return static function (RectorConfig $rectorConfig): void {
        $rectorConfig->importNames();
        $rectorConfig->removeUnusedImports();
        $rectorConfig->import(__DIR__ . '/vendor/sylius/sylius-rector/config/config.php');
        $rectorConfig->paths([
            __DIR__ . '/src'
        ]);
    
        $rectorConfig->sets([
            SyliusProductBundle::PRODUCT_BUNDLE,
        ]);
    };

    And then run:

    vendor/bin/rector process src
  3. Run yarn encore dev or yarn encore production

  4. Database update:

    bin/console doctrine:migrations:migrate

Note: If you are running it on production, add the -e prod flag to this command.

Clear application cache by using command:

  bin/console cache:clear

Documentation

For more information about the plugin, please refer to the Sylius documentation.

Security issues

If you think that you have found a security issue, please do not use the issue tracker and do not post it publicly. Instead, all security issues must be sent to security@sylius.com

Community

For online communication, we invite you to chat with us & other users on Sylius Slack.

License

This plugin's source code is completely free and released under the terms of the MIT license.