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

Go to the source code of this file.

Variables

 $cartManagement = Bootstrap::getObjectManager()->get(CartManagementInterface::class)
 
 $cartRepository = Bootstrap::getObjectManager()->get(CartRepositoryInterface::class)
 
 $addressFactory = Bootstrap::getObjectManager()->get(AddressInterfaceFactory::class)
 
 $cartId = $cartManagement->createEmptyCart()
 
 $cart = $cartRepository->get($cartId)
 
 $address
 

Variable Documentation

◆ $address

$address
Initial value:
= $addressFactory->create(
[
'data' => [
AddressInterface::KEY_COUNTRY_ID => 'US',
AddressInterface::KEY_REGION_ID => 15,
AddressInterface::KEY_LASTNAME => 'Doe',
AddressInterface::KEY_FIRSTNAME => 'John',
AddressInterface::KEY_STREET => 'example street',
AddressInterface::KEY_EMAIL => '[email protected]',
AddressInterface::KEY_CITY => 'example city',
AddressInterface::KEY_TELEPHONE => '000 0000',
AddressInterface::KEY_POSTCODE => 12345
]
]
)
$addressFactory
Definition: quote.php:20

Definition at line 28 of file quote.php.

◆ $addressFactory

$addressFactory = Bootstrap::getObjectManager()->get(AddressInterfaceFactory::class)

Definition at line 20 of file quote.php.

◆ $cart

$cart = $cartRepository->get($cartId)

Definition at line 24 of file quote.php.

◆ $cartId

$cartId = $cartManagement->createEmptyCart()

Definition at line 22 of file quote.php.

◆ $cartManagement

$cartManagement = Bootstrap::getObjectManager()->get(CartManagementInterface::class)

Definition at line 16 of file quote.php.

◆ $cartRepository

$cartRepository = Bootstrap::getObjectManager()->get(CartRepositoryInterface::class)

Definition at line 18 of file quote.php.