|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Go to the source code of this file.
Variables | |
| $productRepository = Bootstrap::getObjectManager()->create(ProductRepositoryInterface::class) | |
| $installer = Bootstrap::getObjectManager()->create(CategorySetup::class) | |
| $website = Bootstrap::getObjectManager()->create(Website::class) | |
| $websiteIds = [$website->getId()] | |
| $eavConfig = Bootstrap::getObjectManager()->create(Config::class) | |
| $attribute = $eavConfig->getAttribute(\Magento\Catalog\Model\Product::ENTITY, 'test_configurable') | |
| $options = $attribute->getOptions() | |
| $attributeValues = [] | |
| $attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default') | |
| $associatedProductIds = [] | |
| $productIds = [10, 20] | |
| $product = Bootstrap::getObjectManager()->create(Product::class) | |
| $optionsFactory = Bootstrap::getObjectManager()->create(Factory::class) | |
| $configurableAttributesData | |
| $configurableOptions = $optionsFactory->create($configurableAttributesData) | |
| $extensionConfigurableAttributes = $product->getExtensionAttributes() | |
| $registry = Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class) | |
| try | |
| $itemResource = Bootstrap::getObjectManager()->get(\Magento\Quote\Model\ResourceModel\Quote\Item::class) | |
| $categoryLinkManagement | |
| $associatedProductIds = [] |
Definition at line 44 of file product_configurable.php.
| $attribute = $eavConfig->getAttribute(\Magento\Catalog\Model\Product::ENTITY, 'test_configurable') |
Definition at line 36 of file product_configurable.php.
| $attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default') |
Definition at line 43 of file product_configurable.php.
| $attributeValues = [] |
Definition at line 42 of file product_configurable.php.
| $categoryLinkManagement |
Definition at line 145 of file product_configurable.php.
| $configurableAttributesData |
Definition at line 93 of file product_configurable.php.
| $configurableOptions = $optionsFactory->create($configurableAttributesData) |
Definition at line 103 of file product_configurable.php.
| $eavConfig = Bootstrap::getObjectManager()->create(Config::class) |
Definition at line 35 of file product_configurable.php.
| $extensionConfigurableAttributes = $product->getExtensionAttributes() |
Definition at line 105 of file product_configurable.php.
| $installer = Bootstrap::getObjectManager()->create(CategorySetup::class) |
Definition at line 27 of file product_configurable.php.
| $itemResource = Bootstrap::getObjectManager()->get(\Magento\Quote\Model\ResourceModel\Quote\Item::class) |
Definition at line 121 of file product_configurable.php.
| $options = $attribute->getOptions() |
Definition at line 40 of file product_configurable.php.
| $optionsFactory = Bootstrap::getObjectManager()->create(Factory::class) |
Definition at line 91 of file product_configurable.php.
| $product = Bootstrap::getObjectManager()->create(Product::class) |
Definition at line 88 of file product_configurable.php.
| $productIds = [10, 20] |
Definition at line 45 of file product_configurable.php.
| $productRepository = Bootstrap::getObjectManager()->create(ProductRepositoryInterface::class) |
Definition at line 24 of file product_configurable.php.
| $registry = Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class) |
Definition at line 113 of file product_configurable.php.
| $website = Bootstrap::getObjectManager()->create(Website::class) |
Definition at line 30 of file product_configurable.php.
| $websiteIds = [$website->getId()] |
Definition at line 32 of file product_configurable.php.
| try |
Definition at line 116 of file product_configurable.php.