odiseoteam/sylius-vendor-plugin
Vendor plugin for Sylius. Add Vendor (Brand) to your products.
Installs: 738
Dependents: 0
Suggesters: 0
Stars: 23
Watchers: 4
Forks: 5
Open Issues: 4
Language:JavaScript
Type:sylius-plugin
Requires
- php: ^7.2
- sylius/sylius: ~1.3.0
- vich/uploader-bundle: ^1.6
- stefandoorn/sitemap-plugin: ^1.0
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.2
- friends-of-behat/cross-container-extension: ^1.1
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.2.1
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^5.0
- phpstan/phpstan-doctrine: ^0.10
- phpstan/phpstan-shim: ^0.10
- phpstan/phpstan-symfony: ^0.10
- phpstan/phpstan-webmozart-assert: ^0.10
- phpunit/phpunit: ^6.5
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^2.0
- symfony/browser-kit: ^3.4|^4.1
- symfony/debug-bundle: ^3.4|^4.1
- symfony/dotenv: ^3.4|^4.1
- symfony/intl: ^3.4|^4.1
- symfony/web-profiler-bundle: ^3.4|^4.1
- symfony/web-server-bundle: ^3.4|^4.1
README
Description
This plugin add vendors (Brands) to the Sylius products. The vendors are fully customizable by the admin.
Now supporting Sylius 1.3 with Symfony 4 + Flex structure.
Installation
-
Run
composer require odiseoteam/sylius-vendor-plugin
. -
Add the plugin to the bundles.php but add it before SyliusResourceBundle.
-
Import the plugin configurations. For example on services.yaml:
imports: - { resource: "@OdiseoSyliusVendorPlugin/Resources/config/config.yml" }
- Add the shop and admin routes:
odiseo_sylius_vendor_admin: resource: "@OdiseoSyliusVendorPlugin/Resources/config/routing/admin.yml" prefix: /admin odiseo_sylius_vendor_shop: resource: "@OdiseoSyliusVendorPlugin/Resources/config/routing/shop.yml" prefix: /{_locale} requirements: _locale: ^[a-z]{2}(?:_[A-Z]{2})?$
- Add the vendor select box to the product form edit page. So, you need to create "templates/bundles/SyliusAdminBundle/Product/Tab/_details.html.twig"
{# ... #} {{ form_row(form.vendors) }} {# ... #}
- Update your schema and/or migrations.
Fixtures
This plugin comes with fixtures:
Vendors
Simply add this configuration on your fixture suite:
vendor: options: vendors_per_channel: 12
Test the plugin
You can follow the instructions to test this plugins in the proper documentation page: Test the plugin.
Credits
This plugin is maintained by Odiseo. Want us to help you with this plugin or any Sylius project? Contact us on team@odiseo.com.ar.