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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $categoryLinkManagement = $objectManager->get(\Magento\Catalog\Api\CategoryLinkManagementInterface::class)
 
 $tierPrices = []
 
 $tierPriceFactory = $objectManager->get(\Magento\Catalog\Api\Data\ProductTierPriceInterfaceFactory::class)
 
 $tpExtensionAttributesFactory = $objectManager->get(ProductTierPriceExtensionFactory::class)
 
 $adminWebsite = $objectManager->get(\Magento\Store\Api\WebsiteRepositoryInterface::class)->get('admin')
 
 $tierPriceExtensionAttributes1
 
 $tierPrices []
 
 $tierPriceExtensionAttributes2
 
 $product = $objectManager->create(\Magento\Catalog\Model\Product::class)
 
 $oldOptions
 
 $options = []
 
 $customOptionFactory = $objectManager->create(\Magento\Catalog\Api\Data\ProductCustomOptionInterfaceFactory::class)
 
 $productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class)
 

Variable Documentation

◆ $adminWebsite

$adminWebsite = $objectManager->get(\Magento\Store\Api\WebsiteRepositoryInterface::class)->get('admin')

Definition at line 23 of file product_simple_with_decimal_qty.php.

◆ $categoryLinkManagement

$categoryLinkManagement = $objectManager->get(\Magento\Catalog\Api\CategoryLinkManagementInterface::class)

Definition at line 15 of file product_simple_with_decimal_qty.php.

◆ $customOptionFactory

$customOptionFactory = $objectManager->create(\Magento\Catalog\Api\Data\ProductCustomOptionInterfaceFactory::class)

Definition at line 173 of file product_simple_with_decimal_qty.php.

◆ $objectManager

Definition at line 12 of file product_simple_with_decimal_qty.php.

◆ $oldOptions

$oldOptions

Definition at line 100 of file product_simple_with_decimal_qty.php.

◆ $options

$options = []

Definition at line 170 of file product_simple_with_decimal_qty.php.

◆ $product

$product = $objectManager->create(\Magento\Catalog\Model\Product::class)

Definition at line 71 of file product_simple_with_decimal_qty.php.

◆ $productRepository

$productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class)

Definition at line 186 of file product_simple_with_decimal_qty.php.

◆ $tierPriceExtensionAttributes1

$tierPriceExtensionAttributes1
Initial value:

Definition at line 24 of file product_simple_with_decimal_qty.php.

◆ $tierPriceExtensionAttributes2

$tierPriceExtensionAttributes2
Initial value:
->setWebsiteId($adminWebsite->getId())
->setPercentageValue(50)

Definition at line 57 of file product_simple_with_decimal_qty.php.

◆ $tierPriceFactory

$tierPriceFactory = $objectManager->get(\Magento\Catalog\Api\Data\ProductTierPriceInterfaceFactory::class)

Definition at line 19 of file product_simple_with_decimal_qty.php.

◆ $tierPrices [1/2]

$tierPrices = []

Definition at line 17 of file product_simple_with_decimal_qty.php.

◆ $tierPrices [2/2]

$tierPrices[]
Initial value:
[
'data' => [
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
'qty' => 2,
'value' => 8,
],
]
)->setExtensionAttributes($tierPriceExtensionAttributes1)

Definition at line 27 of file product_simple_with_decimal_qty.php.

◆ $tpExtensionAttributesFactory

$tpExtensionAttributesFactory = $objectManager->get(ProductTierPriceExtensionFactory::class)

Definition at line 21 of file product_simple_with_decimal_qty.php.