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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $productRepository = $objectManager->get(ProductRepositoryInterface::class)
 
 $productLinkFactory = $objectManager->get(ProductLinkInterfaceFactory::class)
 
 $productIds = ['11', '22']
 
 $website = $objectManager->create(Website::class)
 
 $websiteIds = [$website->getId()]
 
 $groupedProductInStock = $objectManager->create(Product::class)
 
 $groupedProductOutOfStock = $objectManager->create(Product::class)
 

Variable Documentation

◆ $groupedProductInStock

$groupedProductInStock = $objectManager->create(Product::class)

◆ $groupedProductOutOfStock

$groupedProductOutOfStock = $objectManager->create(Product::class)

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

◆ $productIds

$productIds = ['11', '22']

◆ $productLinkFactory

$productLinkFactory = $objectManager->get(ProductLinkInterfaceFactory::class)

◆ $productRepository

$productRepository = $objectManager->get(ProductRepositoryInterface::class)

◆ $website

$website = $objectManager->create(Website::class)

◆ $websiteIds

$websiteIds = [$website->getId()]