dvasilcenko/sylius-attribute-enabler-plugin

Attribute Enabler plugin for Sylius.

v1.0.0 2018-06-25 19:03 UTC

This package is not auto-updated.

Last update: 2024-04-19 00:46:31 UTC


README

SyliusAttributeEnablerPlugin allows to enable/disable attributes in Admin panel.

Installation

Require plugin with composer:

composer require dvasilcenko/sylius-attribute-enabler-plugin

Import configuration:

imports:
    - { resource: "@DvasilcenkoSyliusAttributeEnablerPlugin/Resources/config/app/config.yml" }

Import services:

    - { resource: "@DvasilcenkoSyliusAttributeEnablerPlugin/Resources/config/app/services.yml" }

Add plugin class to your AppKernel:

$bundles = [
    new \Dvasilcenko\SyliusAttributeEnablerPlugin\DvasilcenkoSyliusAttributeEnablerPlugin(),
];

Update the database schema

bin/console doctrine:schema:update --force

Copy templates from

vendor/dvasilcenko/sylius-attribute-enabler-plugin/src/Resources/views/SyliusAdminBundle/

to

app/Resources/SyliusAdminBundle/

Clear cache:

bin/console cache:clear

To see form label translations refresh administrators language