Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (FixtureModel $fixtureModel, \Magento\Setup\Fixtures\AttributeSet\AttributeSetFixture $attributeSetsFixture, \Magento\Setup\Fixtures\AttributeSet\Pattern $attributePattern, ProductGenerator $productGenerator, CollectionFactory $attributeCollectionFactory, ConfigurableProductGenerator $configurableProductGenerator, ProductCollectionFactory $collectionFactory, ProductsAmountProvider $productsAmountProvider, CategoryResolver $categoryResolver, WebsiteCategoryProvider $websiteCategoryProvider, PriceProvider $priceProvider, \Magento\Setup\Fixtures\AttributeSet\SwatchesGenerator $swatchesGenerator, \Magento\Framework\Serialize\SerializerInterface $serializer) | |
execute () | |
getActionTitle () | |
introduceParamLabels () | |
printInfo (OutputInterface $output) | |
![]() | |
__construct (FixtureModel $fixtureModel) | |
execute () | |
getActionTitle () | |
printInfo (OutputInterface $output) | |
introduceParamLabels () | |
getPriority () | |
Protected Attributes | |
$priority = 50 | |
![]() | |
$priority | |
$fixtureModel | |
Generate configurable products based on profile configuration Generated configurable options are not displayed individually in catalog Support one of two formats:
2.2 Generate products based on dynamically created attribute set with specified amount of attributes and options <configurable_products> <config> <attributes>{Amount of attributes in configurable product}</attributes> <options>{Amount of options per attribute}</options> <sku>{Configurable sku pattern with s}</sku> <products>{Amount of configurable products}</products> <category>[{Category Name}]</category> By default category name from CategoriesFixture will be used <swatches>color|image</swatches> Type of Swatch attribute </config> </configurable_products>
2.3 Generate products based on dynamically created attribute set with specified configuration per each attribute <configurable_products> <config> <attributes>
<attribute> <options>{Amount of options per attribute}</options> <swatches>color|image</swatches> Type of Swatch attribute </attribute>
<attribute> <options>{Amount of options per attribute}</options> </attribute> </attributes> <sku>{Configurable sku pattern with s}</sku> <products>{Amount of configurable products}</products> </config> </configurable_products>
Products will be uniformly distributed per categories and websites If node "assign_entities_to_all_websites" from profile is set to "1" then products will be assigned to all websites
Definition at line 77 of file ConfigurableProductsFixture.php.
__construct | ( | FixtureModel | $fixtureModel, |
\Magento\Setup\Fixtures\AttributeSet\AttributeSetFixture | $attributeSetsFixture, | ||
\Magento\Setup\Fixtures\AttributeSet\Pattern | $attributePattern, | ||
ProductGenerator | $productGenerator, | ||
CollectionFactory | $attributeCollectionFactory, | ||
ConfigurableProductGenerator | $configurableProductGenerator, | ||
ProductCollectionFactory | $collectionFactory, | ||
ProductsAmountProvider | $productsAmountProvider, | ||
CategoryResolver | $categoryResolver, | ||
WebsiteCategoryProvider | $websiteCategoryProvider, | ||
PriceProvider | $priceProvider, | ||
\Magento\Setup\Fixtures\AttributeSet\SwatchesGenerator | $swatchesGenerator, | ||
\Magento\Framework\Serialize\SerializerInterface | $serializer | ||
) |
FixtureModel | $fixtureModel | |
AttributeSet\AttributeSetFixture | $attributeSetsFixture | |
AttributeSet\Pattern | $attributePattern | |
ProductGenerator | $productGenerator | |
CollectionFactory | $attributeCollectionFactory | |
ConfigurableProductGenerator | $configurableProductGenerator | |
ProductCollectionFactory | $collectionFactory | |
ProductsAmountProvider | $productsAmountProvider | |
CategoryResolver | $categoryResolver | |
WebsiteCategoryProvider | $websiteCategoryProvider | |
PriceProvider | $priceProvider | |
AttributeSet\SwatchesGenerator | $swatchesGenerator | |
\Magento\Framework\Serialize\SerializerInterface | $serializer | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 175 of file ConfigurableProductsFixture.php.
execute | ( | ) |
{} @SuppressWarnings(PHPMD)
Definition at line 209 of file ConfigurableProductsFixture.php.
getActionTitle | ( | ) |
{}
Definition at line 404 of file ConfigurableProductsFixture.php.
introduceParamLabels | ( | ) |
printInfo | ( | OutputInterface | $output | ) |
|
protected |
Definition at line 82 of file ConfigurableProductsFixture.php.