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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $product = $objectManager->create(Product::class)
 
 $stockItem = $objectManager->create(StockItemInterface::class)
 
 $extensionAttributes = $product->getExtensionAttributes()
 
 $productRepository = $objectManager->get(ProductRepositoryInterface::class)
 
 $addressData = include __DIR__ . '/address_data.php'
 
 $billingAddress = $objectManager->create(Address::class, ['data' => $addressData])
 
 $shippingAddress = clone $billingAddress
 
 $store
 
 $quote = $objectManager->create(Quote::class)
 
 $quoteRepository = $objectManager->get(CartRepositoryInterface::class)
 

Variable Documentation

◆ $addressData

$addressData = include __DIR__ . '/address_data.php'

Definition at line 43 of file quote_with_new_customer.php.

◆ $billingAddress

$billingAddress = $objectManager->create(Address::class, ['data' => $addressData])

Definition at line 44 of file quote_with_new_customer.php.

◆ $extensionAttributes

$extensionAttributes = $product->getExtensionAttributes()

Definition at line 36 of file quote_with_new_customer.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 19 of file quote_with_new_customer.php.

◆ $product

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

Definition at line 22 of file quote_with_new_customer.php.

◆ $productRepository

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

Definition at line 40 of file quote_with_new_customer.php.

◆ $quote

$quote = $objectManager->create(Quote::class)

Definition at line 56 of file quote_with_new_customer.php.

◆ $quoteRepository

$quoteRepository = $objectManager->get(CartRepositoryInterface::class)

Definition at line 73 of file quote_with_new_customer.php.

◆ $shippingAddress

$shippingAddress = clone $billingAddress

Definition at line 47 of file quote_with_new_customer.php.

◆ $stockItem

$stockItem = $objectManager->create(StockItemInterface::class)

Definition at line 33 of file quote_with_new_customer.php.

◆ $store

$store
Initial value:
= $objectManager->get(StoreManagerInterface::class)
->getStore()

Definition at line 52 of file quote_with_new_customer.php.