|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Go to the source code of this file.
Variables | |
| $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() | |
| $simpleProducts [] | |
| $productRepository = $objectManager->get(Magento\Catalog\Api\ProductRepositoryInterface::class) | |
| $product = $objectManager->create(\Magento\Catalog\Model\Product::class) | |
| $bundleOptions = [] | |
| $bundleOptionsQty = [] | |
| foreach($product->getExtensionAttributes() ->getBundleProductOptions() as $option) | $buyRequest |
| $addressData = include __DIR__ . '/address_data.php' | |
| $billingAddress = $objectManager->create(\Magento\Quote\Model\Quote\Address::class, ['data' => $addressData]) | |
| $shippingAddress = clone $billingAddress | |
| $quote = $objectManager->create(\Magento\Quote\Model\Quote::class) | |
| $rate = $objectManager->create(\Magento\Quote\Model\Quote\Address\Rate::class) | |
| $quoteIdMask = $objectManager->create(\Magento\Quote\Model\QuoteIdMaskFactory::class)->create() | |
| $addressData = include __DIR__ . '/address_data.php' |
Definition at line 171 of file quote_with_bundle.php.
| $billingAddress = $objectManager->create(\Magento\Quote\Model\Quote\Address::class, ['data' => $addressData]) |
Definition at line 172 of file quote_with_bundle.php.
| $bundleOptions = [] |
Definition at line 153 of file quote_with_bundle.php.
| $bundleOptionsQty = [] |
Definition at line 154 of file quote_with_bundle.php.
| foreach ( $product->getExtensionAttributes() ->getBundleProductOptions() as $option) $buyRequest |
Definition at line 166 of file quote_with_bundle.php.
| $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() |
Definition at line 7 of file quote_with_bundle.php.
| $product = $objectManager->create(\Magento\Catalog\Model\Product::class) |
Definition at line 40 of file quote_with_bundle.php.
| $productRepository = $objectManager->get(Magento\Catalog\Api\ProductRepositoryInterface::class) |
Definition at line 36 of file quote_with_bundle.php.
| $quote = $objectManager->create(\Magento\Quote\Model\Quote::class) |
Definition at line 180 of file quote_with_bundle.php.
| $quoteIdMask = $objectManager->create(\Magento\Quote\Model\QuoteIdMaskFactory::class)->create() |
Definition at line 203 of file quote_with_bundle.php.
| $rate = $objectManager->create(\Magento\Quote\Model\Quote\Address\Rate::class) |
Definition at line 191 of file quote_with_bundle.php.
| $shippingAddress = clone $billingAddress |
Definition at line 176 of file quote_with_bundle.php.
| $simpleProducts[] |
Create simple and bundle products for quote
Definition at line 9 of file quote_with_bundle.php.