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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $product = $objectManager->create(\Magento\Catalog\Model\Product::class)
 
 $typeInstance = $product->getTypeInstance()
 
 $optionCollection = $typeInstance->getOptionsCollection($product)
 
 $bundleOptions = []
 
 $bundleOptionsQty = []
 
foreach($optionCollection as $option) $requestInfo
 
 $quote = $objectManager->create(\Magento\Quote\Model\Quote::class)
 

Variable Documentation

◆ $bundleOptions

$bundleOptions = []

Definition at line 21 of file quote_with_bundle_and_options.php.

◆ $bundleOptionsQty

$bundleOptionsQty = []

Definition at line 22 of file quote_with_bundle_and_options.php.

◆ $objectManager

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 9 of file quote_with_bundle_and_options.php.

◆ $optionCollection

$optionCollection = $typeInstance->getOptionsCollection($product)

Definition at line 19 of file quote_with_bundle_and_options.php.

◆ $product

$product = $objectManager->create(\Magento\Catalog\Model\Product::class)

Definition at line 12 of file quote_with_bundle_and_options.php.

◆ $quote

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

Definition at line 39 of file quote_with_bundle_and_options.php.

◆ $requestInfo

foreach ( $optionCollection as $option) $requestInfo
Initial value:
= new \Magento\Framework\DataObject(
['qty' => 1, 'bundle_option' => $bundleOptions, 'bundle_option_qty' => $bundleOptionsQty]
)

Definition at line 34 of file quote_with_bundle_and_options.php.

◆ $typeInstance

$typeInstance = $product->getTypeInstance()

Definition at line 17 of file quote_with_bundle_and_options.php.