Download the PHP package doopcompany/sylius-product-variant-attribute-plugin without Composer
On this page you can find all versions of the php package doopcompany/sylius-product-variant-attribute-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download doopcompany/sylius-product-variant-attribute-plugin
More information about doopcompany/sylius-product-variant-attribute-plugin
Files in doopcompany/sylius-product-variant-attribute-plugin
Package sylius-product-variant-attribute-plugin
Short Description Plugin for Sylius to add attributes on product variants.
License MIT
Informations about the package sylius-product-variant-attribute-plugin
Sylius Product Variant Attribute Plugin
Add attributes on your products variants.
Install
Install the plugin with composer
$ composer require doopcompany/sylius-product-variant-attribute-plugin
Register the plugin to your config/bundles.php
Import the configuration file, for example in config/packages/doop_sylius_product_variant_attribute_plugin.yaml
Import the routing file, for example in config/routes/sylius_admin.yaml
Update your ProductVariant entity by implementing the ProductVariantInterface and using the ProductVariantTrait
Finally, don't forget to update your database!
Usage
Like in product edition, variants now has an Attributes tab in which you can add attributes. The operation and
possibilities are the same as with the existing attributes.
The variant attributes list differ from the existing one used for products. A new entry is added to the Catalog menu
in order to manage this new list.
By default, the existing entry Attributes is renamed to Products attributes. You can change this behaviour by
defining the following configuration: