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

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $addressData
 
 $billingAddress = $objectManager->create(Address::class, ['data' => $addressData])
 
 $shippingAddress = clone $billingAddress
 
 $quote = $objectManager->create(Quote::class)
 
 $quoteRepository = $objectManager->get(QuoteRepository::class)
 

Variable Documentation

◆ $addressData

$addressData
Initial value:
= [
'firstname' => 'John',
'lastname' => 'Doe',
'company' => '',
'email' => '[email protected]',
'street' => [
0 => 'test1',
],
'city' => 'Test',
'region_id' => '1',
'region' => '',
'postcode' => '9001',
'country_id' => 'US',
'telephone' => '11111111',
]

Definition at line 19 of file quote_with_fpt.php.

◆ $billingAddress

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

Definition at line 35 of file quote_with_fpt.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 17 of file quote_with_fpt.php.

◆ $quote

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

Definition at line 43 of file quote_with_fpt.php.

◆ $quoteRepository

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

Definition at line 53 of file quote_with_fpt.php.

◆ $shippingAddress

$shippingAddress = clone $billingAddress

Definition at line 38 of file quote_with_fpt.php.