PHP code example of koempf / akeneo-attributes-to-variants-bundle

1. Go to this page and download the library: Download koempf/akeneo-attributes-to-variants-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

koempf / akeneo-attributes-to-variants-bundle example snippets




return [
    \Koempf\AttributeToVariantsBundle\KoempfAttributeToVariantsBundle::class => ['dev' => true, 'test' => true, 'prod' => true],
];
shell
php bin/console koempf:attribute-to-variants:add --attribute=attribute_code --families=family_code1,family_code2,family_code3
php bin/console koempf:attribute-to-variants:add --attribute=attribute_code --families='*'