Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
product_configurable_not_available.php File Reference

Go to the source code of this file.

Variables

 $productRepository
 
 $installer = Bootstrap::getObjectManager()->create(CategorySetup::class)
 
 $options = $attribute->getOptions()
 
 $attributeValues = []
 
 $attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default')
 
 $associatedProductIds = []
 
 $productsSku = [1110, 1120]
 
 $isFirstOption = true
 
 $product = Bootstrap::getObjectManager()->create(Product::class)
 
 $optionsFactory = Bootstrap::getObjectManager()->create(Factory::class)
 
 $configurableAttributesData
 
 $configurableOptions = $optionsFactory->create($configurableAttributesData)
 
 $extensionConfigurableAttributes = $product->getExtensionAttributes()
 
 $stockItem = $product->getExtensionAttributes()->getStockItem()
 

Variable Documentation

◆ $associatedProductIds

$associatedProductIds = []

Definition at line 35 of file product_configurable_not_available.php.

◆ $attributeSetId

$attributeSetId = $installer->getAttributeSetId('catalog_product', 'Default')

Definition at line 34 of file product_configurable_not_available.php.

◆ $attributeValues

$attributeValues = []

Definition at line 33 of file product_configurable_not_available.php.

◆ $configurableAttributesData

$configurableAttributesData
Initial value:
= [
[
'attribute_id' => $attribute->getId(),
'code' => $attribute->getAttributeCode(),
'label' => $attribute->getStoreLabel(),
'position' => '0',
'values' => $attributeValues,
],
]

Definition at line 75 of file product_configurable_not_available.php.

◆ $configurableOptions

$configurableOptions = $optionsFactory->create($configurableAttributesData)

Definition at line 85 of file product_configurable_not_available.php.

◆ $extensionConfigurableAttributes

$extensionConfigurableAttributes = $product->getExtensionAttributes()

Definition at line 87 of file product_configurable_not_available.php.

◆ $installer

$installer = Bootstrap::getObjectManager()->create(CategorySetup::class)

Definition at line 27 of file product_configurable_not_available.php.

◆ $isFirstOption

$isFirstOption = true

Definition at line 39 of file product_configurable_not_available.php.

◆ $options

$options = $attribute->getOptions()

Definition at line 31 of file product_configurable_not_available.php.

◆ $optionsFactory

$optionsFactory = Bootstrap::getObjectManager()->create(Factory::class)

Definition at line 73 of file product_configurable_not_available.php.

◆ $product

$product = Bootstrap::getObjectManager()->create(Product::class)

Definition at line 70 of file product_configurable_not_available.php.

◆ $productRepository

$productRepository
Initial value:
= Bootstrap::getObjectManager()
->create(ProductRepositoryInterface::class)

Definition at line 23 of file product_configurable_not_available.php.

◆ $productsSku

$productsSku = [1110, 1120]

Definition at line 36 of file product_configurable_not_available.php.

◆ $stockItem

$stockItem = $product->getExtensionAttributes()->getStockItem()

Definition at line 102 of file product_configurable_not_available.php.