Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
order_with_customer_and_two_simple_products.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])
 
 $shippingAddress = clone $billingAddress
 
 $payment = $objectManager->create(Payment::class)
 
 $orderItem1 = $objectManager->create(Item::class)
 
 $orderItem2 = $objectManager->create(Item::class)
 
 $orderAmount = 100
 
 $customerEmail = $billingAddress->getEmail()
 
 $order = $objectManager->create(Order::class)
 
 $orderRepository = $objectManager->get(OrderRepositoryInterface::class)
 
 $orderAmount2 = 50
 
 $payment2 = $objectManager->create(Payment::class)
 
 $order2 = $objectManager->create(Order::class)
 

Variable Documentation

◆ $addressData

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

◆ $billingAddress

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

◆ $customerEmail

$customerEmail = $billingAddress->getEmail()

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

◆ $order

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

◆ $order2

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

◆ $orderAmount

$orderAmount = 100

◆ $orderAmount2

$orderAmount2 = 50

◆ $orderItem1

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

◆ $orderItem2

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

◆ $orderRepository

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

◆ $payment

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

◆ $payment2

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

◆ $shippingAddress

$shippingAddress = clone $billingAddress