|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (ItemFactory $quoteItemFactory, StoreManagerInterface $storeManager, State $appState) | |
| init (Product $product, DataObject $request) | |
| prepare (Item $item, DataObject $request, Product $candidate) | |
| merge (Item $source, Item $target) | |
Protected Member Functions | |
| setItemStoreId (Item $item) | |
Protected Attributes | |
| $quoteItemFactory | |
| $storeManager | |
| $appState | |
Class Processor
Definition at line 21 of file Processor.php.
| __construct | ( | ItemFactory | $quoteItemFactory, |
| StoreManagerInterface | $storeManager, | ||
| State | $appState | ||
| ) |
| ItemFactory | $quoteItemFactory | |
| StoreManagerInterface | $storeManager | |
| State | $appState |
Definition at line 43 of file Processor.php.
| init | ( | Product | $product, |
| DataObject | $request | ||
| ) |
Initialize quote item object
| DataObject | $request | |
| Product | $product |
We can't modify existing child items
Definition at line 61 of file Processor.php.
Merge two quote items.
@SuppressWarnings(PHPMD.UnusedFormalParameter)
Definition at line 115 of file Processor.php.
| prepare | ( | Item | $item, |
| DataObject | $request, | ||
| Product | $candidate | ||
| ) |
Set qty and custom price for quote item
We specify qty after we know about parent (for stock)
Definition at line 89 of file Processor.php.
|
protected |
Set store_id value to quote item
| Item | $item |
Definition at line 126 of file Processor.php.
|
protected |
Definition at line 36 of file Processor.php.
|
protected |
Definition at line 26 of file Processor.php.
|
protected |
Definition at line 31 of file Processor.php.