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

Go to the source code of this file.

Variables

 $cartRepository = Bootstrap::getObjectManager()->get(CartRepositoryInterface::class)
 
 $cartManagement = Bootstrap::getObjectManager()->get(CartManagementInterface::class)
 
 $addressFactory = Bootstrap::getObjectManager()->get(AddressInterfaceFactory::class)
 
 $storeRepository = Bootstrap::getObjectManager()->get(StoreRepositoryInterface::class)
 
 $storeManager = Bootstrap::getObjectManager()->get(StoreManagerInterface::class)
 
 $cartId = $cartManagement->createEmptyCart()
 
 $cart = $cartRepository->get($cartId)
 
 $store = $storeRepository->get('store_for_us_website')
 
 $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
]
]
)

Definition at line 36 of file create_quote_on_us_website.php.

◆ $addressFactory

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

Definition at line 21 of file create_quote_on_us_website.php.

◆ $cart

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

Definition at line 28 of file create_quote_on_us_website.php.

◆ $cartId

$cartId = $cartManagement->createEmptyCart()

Definition at line 27 of file create_quote_on_us_website.php.

◆ $cartManagement

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

Definition at line 19 of file create_quote_on_us_website.php.

◆ $cartRepository

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

Definition at line 17 of file create_quote_on_us_website.php.

◆ $store

$store = $storeRepository->get('store_for_us_website')

Definition at line 31 of file create_quote_on_us_website.php.

◆ $storeManager

$storeManager = Bootstrap::getObjectManager()->get(StoreManagerInterface::class)

Definition at line 25 of file create_quote_on_us_website.php.

◆ $storeRepository

$storeRepository = Bootstrap::getObjectManager()->get(StoreRepositoryInterface::class)

Definition at line 23 of file create_quote_on_us_website.php.