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

Go to the source code of this file.

Variables

 $addressData = include __DIR__ . '/../../../Magento/Sales/_files/address_data.php'
 
 $objectManager = Bootstrap::getObjectManager()
 
 $billingAddress = $objectManager->create(Address::class, ['data' => $addressData])
 
 $payment = $objectManager->create(Payment::class)
 
 $orderItem1 = $objectManager->create(Item::class)
 
 $orderAmount = 100
 
 $customerEmail = $billingAddress->getEmail()
 
 $order = $objectManager->create(Order::class)
 
 $orderRepository = $objectManager->get(OrderRepositoryInterface::class)
 

Variable Documentation

◆ $addressData

$addressData = include __DIR__ . '/../../../Magento/Sales/_files/address_data.php'

Definition at line 16 of file order_with_guest_and_virtual_product.php.

◆ $billingAddress

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

Definition at line 20 of file order_with_guest_and_virtual_product.php.

◆ $customerEmail

$customerEmail = $billingAddress->getEmail()

Definition at line 43 of file order_with_guest_and_virtual_product.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 18 of file order_with_guest_and_virtual_product.php.

◆ $order

$order = $objectManager->create(Order::class)

Definition at line 46 of file order_with_guest_and_virtual_product.php.

◆ $orderAmount

$orderAmount = 100

Definition at line 42 of file order_with_guest_and_virtual_product.php.

◆ $orderItem1

$orderItem1 = $objectManager->create(Item::class)

Definition at line 32 of file order_with_guest_and_virtual_product.php.

◆ $orderRepository

$orderRepository = $objectManager->get(OrderRepositoryInterface::class)

Definition at line 67 of file order_with_guest_and_virtual_product.php.

◆ $payment

$payment = $objectManager->create(Payment::class)

Definition at line 24 of file order_with_guest_and_virtual_product.php.